var Urn=Object.defineProperty,Wrn=Object.defineProperties,qrn=Object.getOwnPropertyDescriptors,U3e=Object.getOwnPropertySymbols,Xrn=Object.prototype.hasOwnProperty,Yrn=Object.prototype.propertyIsEnumerable,W3e=(ni,jt,Pt)=>jt in ni?Urn(ni,jt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):ni[jt]=Pt,Ne=(ni,jt)=>{for(var Pt in jt||(jt={}))Xrn.call(jt,Pt)&&W3e(ni,Pt,jt[Pt]);if(U3e)for(var Pt of U3e(jt))Yrn.call(jt,Pt)&&W3e(ni,Pt,jt[Pt]);return ni},yn=(ni,jt)=>Wrn(ni,qrn(jt));(self.webpackChunkclient=self.webpackChunkclient||[]).push([[179],{255:ni=>{function jt(Pt){return Promise.resolve().then(()=>{var Zt=new Error("Cannot find module '"+Pt+"'");throw Zt.code="MODULE_NOT_FOUND",Zt})}jt.keys=()=>[],jt.resolve=jt,jt.id=255,ni.exports=jt},2:ni=>{"use strict";ni.exports=Pt,ni.exports.default=Pt;var jt=1e20;function Pt(ke,Pe,rt,ft,Mt,xt){this.fontSize=ke||24,this.buffer=void 0===Pe?3:Pe,this.cutoff=ft||.25,this.fontFamily=Mt||"sans-serif",this.fontWeight=xt||"normal",this.radius=rt||8;var Ht=this.size=this.fontSize+2*this.buffer,Lt=Ht+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=Ht,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(Lt*Lt),this.gridInner=new Float64Array(Lt*Lt),this.f=new Float64Array(Lt),this.z=new Float64Array(Lt+1),this.v=new Uint16Array(Lt),this.useMetrics=void 0!==this.ctx.measureText("A").actualBoundingBoxLeft,this.middle=Math.round(Ht/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function hi(ke,Pe,rt,ft,Mt,xt){for(var Ht=0;Ht-1);xt[++dn]=Lt,Ht[dn]=pi,Ht[dn+1]=jt}for(Lt=0,dn=0;Lt{"use strict";function jt(ee,De,Z){Z=Z||2;var xn,Ui,Xs,cl,Eo,sa,ci,Ye=De&&De.length,qe=Ye?De[0]*Z:ee.length,xe=Pt(ee,0,qe,Z,!0),ut=[];if(!xe||xe.next===xe.prev)return ut;if(Ye&&(xe=function(ee,De,Z,Ye){var xe,ut,Xs,qe=[];for(xe=0,ut=De.length;xe80*Z){xn=Xs=ee[0],Ui=cl=ee[1];for(var Zi=Z;ZiXs&&(Xs=Eo),sa>cl&&(cl=sa);ci=0!==(ci=Math.max(Xs-xn,cl-Ui))?1/ci:0}return At(xe,ut,Z,xn,Ui,ci),ut}function Pt(ee,De,Z,Ye,qe){var xe,ut;if(qe===Fe(ee,De,Z,Ye)>0)for(xe=De;xe=De;xe-=Ye)ut=an(xe,ee[xe],ee[xe+1],ut);return ut&&In(ut,ut.next)&&(Nl(ut),ut=ut.next),ut}function Zt(ee,De){if(!ee)return ee;De||(De=ee);var Ye,Z=ee;do{if(Ye=!1,Z.steiner||!In(Z,Z.next)&&0!==Ts(Z.prev,Z,Z.next))Z=Z.next;else{if(Nl(Z),(Z=De=Z.prev)===Z.next)break;Ye=!0}}while(Ye||Z!==De);return De}function At(ee,De,Z,Ye,qe,xe,ut){if(ee){!ut&&xe&&function(ee,De,Z,Ye){var qe=ee;do{null===qe.z&&(qe.z=pi(qe.x,qe.y,De,Z,Ye)),qe.prevZ=qe.prev,qe.nextZ=qe.next,qe=qe.next}while(qe!==ee);qe.prevZ.nextZ=null,qe.prevZ=null,function(ee){var De,Z,Ye,qe,xe,ut,xn,Ui,Xs=1;do{for(Z=ee,ee=null,xe=null,ut=0;Z;){for(ut++,Ye=Z,xn=0,De=0;De0||Ui>0&&Ye;)0!==xn&&(0===Ui||!Ye||Z.z<=Ye.z)?(qe=Z,Z=Z.nextZ,xn--):(qe=Ye,Ye=Ye.nextZ,Ui--),xe?xe.nextZ=qe:ee=qe,qe.prevZ=xe,xe=qe;Z=Ye}xe.nextZ=null,Xs*=2}while(ut>1)}(qe)}(ee,Ye,qe,xe);for(var Ui,Xs,xn=ee;ee.prev!==ee.next;)if(Ui=ee.prev,Xs=ee.next,xe?Bi(ee,Ye,qe,xe):hi(ee))De.push(Ui.i/Z),De.push(ee.i/Z),De.push(Xs.i/Z),Nl(ee),ee=Xs.next,xn=Xs.next;else if((ee=Xs)===xn){ut?1===ut?At(ee=ke(Zt(ee),De,Z),De,Z,Ye,qe,xe,2):2===ut&&Pe(ee,De,Z,Ye,qe,xe):At(Zt(ee),De,Z,Ye,qe,xe,1);break}}}function hi(ee){var De=ee.prev,Z=ee,Ye=ee.next;if(Ts(De,Z,Ye)>=0)return!1;for(var qe=ee.next.next;qe!==ee.prev;){if(rs(De.x,De.y,Z.x,Z.y,Ye.x,Ye.y,qe.x,qe.y)&&Ts(qe.prev,qe,qe.next)>=0)return!1;qe=qe.next}return!0}function Bi(ee,De,Z,Ye){var qe=ee.prev,xe=ee,ut=ee.next;if(Ts(qe,xe,ut)>=0)return!1;for(var Xs=qe.x>xe.x?qe.x>ut.x?qe.x:ut.x:xe.x>ut.x?xe.x:ut.x,cl=qe.y>xe.y?qe.y>ut.y?qe.y:ut.y:xe.y>ut.y?xe.y:ut.y,Eo=pi(qe.x=Eo&&Zi&&Zi.z<=sa;){if(ci!==ee.prev&&ci!==ee.next&&rs(qe.x,qe.y,xe.x,xe.y,ut.x,ut.y,ci.x,ci.y)&&Ts(ci.prev,ci,ci.next)>=0||(ci=ci.prevZ,Zi!==ee.prev&&Zi!==ee.next&&rs(qe.x,qe.y,xe.x,xe.y,ut.x,ut.y,Zi.x,Zi.y)&&Ts(Zi.prev,Zi,Zi.next)>=0))return!1;Zi=Zi.nextZ}for(;ci&&ci.z>=Eo;){if(ci!==ee.prev&&ci!==ee.next&&rs(qe.x,qe.y,xe.x,xe.y,ut.x,ut.y,ci.x,ci.y)&&Ts(ci.prev,ci,ci.next)>=0)return!1;ci=ci.prevZ}for(;Zi&&Zi.z<=sa;){if(Zi!==ee.prev&&Zi!==ee.next&&rs(qe.x,qe.y,xe.x,xe.y,ut.x,ut.y,Zi.x,Zi.y)&&Ts(Zi.prev,Zi,Zi.next)>=0)return!1;Zi=Zi.nextZ}return!0}function ke(ee,De,Z){var Ye=ee;do{var qe=Ye.prev,xe=Ye.next.next;!In(qe,xe)&&up(qe,Ye,Ye.next,xe)&&Gr(qe,xe)&&Gr(xe,qe)&&(De.push(qe.i/Z),De.push(Ye.i/Z),De.push(xe.i/Z),Nl(Ye),Nl(Ye.next),Ye=ee=xe),Ye=Ye.next}while(Ye!==ee);return Zt(Ye)}function Pe(ee,De,Z,Ye,qe,xe){var ut=ee;do{for(var xn=ut.next.next;xn!==ut.prev;){if(ut.i!==xn.i&&ll(ut,xn)){var Ui=Pc(ut,xn);return ut=Zt(ut,ut.next),Ui=Zt(Ui,Ui.next),At(ut,De,Z,Ye,qe,xe),void At(Ui,De,Z,Ye,qe,xe)}xn=xn.next}ut=ut.next}while(ut!==ee)}function ft(ee,De){return ee.x-De.x}function Mt(ee,De){var Z=function(ee,De){var ut,Z=De,Ye=ee.x,qe=ee.y,xe=-1/0;do{if(qe<=Z.y&&qe>=Z.next.y&&Z.next.y!==Z.y){var xn=Z.x+(qe-Z.y)*(Z.next.x-Z.x)/(Z.next.y-Z.y);if(xn<=Ye&&xn>xe){if(xe=xn,xn===Ye){if(qe===Z.y)return Z;if(qe===Z.next.y)return Z.next}ut=Z.x=Z.x&&Z.x>=Xs&&Ye!==Z.x&&rs(qeut.x||Z.x===ut.x&&Ht(ut,Z)))&&(ut=Z,Eo=sa)),Z=Z.next}while(Z!==Ui);return ut}(ee,De);if(!Z)return De;var Ye=Pc(Z,ee),qe=Zt(Z,Z.next);return Zt(Ye,Ye.next),De===Z?qe:De}function Ht(ee,De){return Ts(ee.prev,ee,De.prev)<0&&Ts(De.next,ee,ee.next)<0}function pi(ee,De,Z,Ye,qe){return(ee=1431655765&((ee=858993459&((ee=252645135&((ee=16711935&((ee=32767*(ee-Z)*qe)|ee<<8))|ee<<4))|ee<<2))|ee<<1))|(De=1431655765&((De=858993459&((De=252645135&((De=16711935&((De=32767*(De-Ye)*qe)|De<<8))|De<<4))|De<<2))|De<<1))<<1}function Je(ee){var De=ee,Z=ee;do{(De.x=0&&(ee-ut)*(Ye-xn)-(Z-ut)*(De-xn)>=0&&(Z-ut)*(xe-xn)-(qe-ut)*(Ye-xn)>=0}function ll(ee,De){return ee.next.i!==De.i&&ee.prev.i!==De.i&&!function(ee,De){var Z=ee;do{if(Z.i!==ee.i&&Z.next.i!==ee.i&&Z.i!==De.i&&Z.next.i!==De.i&&up(Z,Z.next,ee,De))return!0;Z=Z.next}while(Z!==ee);return!1}(ee,De)&&(Gr(ee,De)&&Gr(De,ee)&&function(ee,De){var Z=ee,Ye=!1,qe=(ee.x+De.x)/2,xe=(ee.y+De.y)/2;do{Z.y>xe!=Z.next.y>xe&&Z.next.y!==Z.y&&qe<(Z.next.x-Z.x)*(xe-Z.y)/(Z.next.y-Z.y)+Z.x&&(Ye=!Ye),Z=Z.next}while(Z!==ee);return Ye}(ee,De)&&(Ts(ee.prev,ee,De.prev)||Ts(ee,De.prev,De))||In(ee,De)&&Ts(ee.prev,ee,ee.next)>0&&Ts(De.prev,De,De.next)>0)}function Ts(ee,De,Z){return(De.y-ee.y)*(Z.x-De.x)-(De.x-ee.x)*(Z.y-De.y)}function In(ee,De){return ee.x===De.x&&ee.y===De.y}function up(ee,De,Z,Ye){var qe=hp(Ts(ee,De,Z)),xe=hp(Ts(ee,De,Ye)),ut=hp(Ts(Z,Ye,ee)),xn=hp(Ts(Z,Ye,De));return!!(qe!==xe&&ut!==xn||0===qe&&ou(ee,Z,De)||0===xe&&ou(ee,Ye,De)||0===ut&&ou(Z,ee,Ye)||0===xn&&ou(Z,De,Ye))}function ou(ee,De,Z){return De.x<=Math.max(ee.x,Z.x)&&De.x>=Math.min(ee.x,Z.x)&&De.y<=Math.max(ee.y,Z.y)&&De.y>=Math.min(ee.y,Z.y)}function hp(ee){return ee>0?1:ee<0?-1:0}function Gr(ee,De){return Ts(ee.prev,ee,ee.next)<0?Ts(ee,De,ee.next)>=0&&Ts(ee,ee.prev,De)>=0:Ts(ee,De,ee.prev)<0||Ts(ee,ee.next,De)<0}function Pc(ee,De){var Z=new ae(ee.i,ee.x,ee.y),Ye=new ae(De.i,De.x,De.y),qe=ee.next,xe=De.prev;return ee.next=De,De.prev=ee,Z.next=qe,qe.prev=Z,Ye.next=Z,Z.prev=Ye,xe.next=Ye,Ye.prev=xe,Ye}function an(ee,De,Z,Ye){var qe=new ae(ee,De,Z);return Ye?(qe.next=Ye.next,qe.prev=Ye,Ye.next.prev=qe,Ye.next=qe):(qe.prev=qe,qe.next=qe),qe}function Nl(ee){ee.next.prev=ee.prev,ee.prev.next=ee.next,ee.prevZ&&(ee.prevZ.nextZ=ee.nextZ),ee.nextZ&&(ee.nextZ.prevZ=ee.prevZ)}function ae(ee,De,Z){this.i=ee,this.x=De,this.y=Z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Fe(ee,De,Z,Ye){for(var qe=0,xe=De,ut=Z-Ye;xe0&&Z.holes.push(Ye+=ee[qe-1].length)}return Z}},524:(ni,jt,Pt)=>{var Zt;!function(At,hi,Bi,ke){"use strict";var rs,Pe=["","webkit","Moz","MS","ms","o"],rt=hi.createElement("div"),Mt=Math.round,xt=Math.abs,Ht=Date.now;function Lt(te,le,ye){return setTimeout(up(te,ye),le)}function dn(te,le,ye){return!!Array.isArray(te)&&(pi(te,ye[le],ye),!0)}function pi(te,le,ye){var Ue;if(te)if(te.forEach)te.forEach(le,ye);else if(te.length!==ke)for(Ue=0;Ue\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",On=At.console&&(At.console.warn||At.console.log);return On&&On.call(At.console,Ue,ln),te.apply(this,arguments)}}rs="function"!=typeof Object.assign?function(le){if(le===ke||null===le)throw new TypeError("Cannot convert undefined or null to object");for(var ye=Object(le),Ue=1;Ue-1}function an(te){return te.trim().split(/\s+/g)}function Nl(te,le,ye){if(te.indexOf&&!ye)return te.indexOf(le);for(var Ue=0;UeVl[le]}):Ue.sort()),Ue}function ee(te,le){for(var ye,Ue,Tt=le[0].toUpperCase()+le.slice(1),ln=0;ln1&&!ye.firstMultiple?ye.firstMultiple=SR(le):1===Tt&&(ye.firstMultiple=!1);var ln=ye.firstInput,On=ye.firstMultiple,wa=On?On.center:ln.center,Na=le.center=TR(Ue);le.timeStamp=Ht(),le.deltaTime=le.timeStamp-ln.timeStamp,le.angle=L0(wa,Na),le.distance=ii(wa,Na),function(te,le){var ye=le.center,Ue=te.offsetDelta||{},Tt=te.prevDelta||{},ln=te.prevInput||{};(1===le.eventType||4===ln.eventType)&&(Tt=te.prevDelta={x:ln.deltaX||0,y:ln.deltaY||0},Ue=te.offsetDelta={x:ye.x,y:ye.y}),le.deltaX=Tt.x+(ye.x-Ue.x),le.deltaY=Tt.y+(ye.y-Ue.y)}(ye,le),le.offsetDirection=P0(le.deltaX,le.deltaY);var Vl=Y_(le.deltaTime,le.deltaX,le.deltaY);le.overallVelocityX=Vl.x,le.overallVelocityY=Vl.y,le.overallVelocity=xt(Vl.x)>xt(Vl.y)?Vl.x:Vl.y,le.scale=On?function(te,le){return ii(le[0],le[1],ru)/ii(te[0],te[1],ru)}(On.pointers,Ue):1,le.rotation=On?function(te,le){return L0(le[1],le[0],ru)+L0(te[1],te[0],ru)}(On.pointers,Ue):0,le.maxPointers=ye.prevInput?le.pointers.length>ye.prevInput.maxPointers?le.pointers.length:ye.prevInput.maxPointers:le.pointers.length,function(te,le){var Tt,ln,On,wa,ye=te.lastInterval||le,Ue=le.timeStamp-ye.timeStamp;if(8!=le.eventType&&(Ue>25||ye.velocity===ke)){var Na=le.deltaX-ye.deltaX,Vl=le.deltaY-ye.deltaY,fh=Y_(Ue,Na,Vl);ln=fh.x,On=fh.y,Tt=xt(fh.x)>xt(fh.y)?fh.x:fh.y,wa=P0(Na,Vl),te.lastInterval=le}else Tt=ye.velocity,ln=ye.velocityX,On=ye.velocityY,wa=ye.direction;le.velocity=Tt,le.velocityX=ln,le.velocityY=On,le.direction=wa}(ye,le);var fh=te.element;q_(le.srcEvent.target,fh)&&(fh=le.srcEvent.target),le.target=fh}(te,ye),te.emit("hammer.input",ye),te.recognize(ye),te.session.prevInput=ye}function SR(te){for(var le=[],ye=0;ye=xt(le)?te<0?2:4:le<0?8:16}function ii(te,le,ye){ye||(ye=Ys);var Ue=le[ye[0]]-te[ye[0]],Tt=le[ye[1]]-te[ye[1]];return Math.sqrt(Ue*Ue+Tt*Tt)}function L0(te,le,ye){return ye||(ye=Ys),180*Math.atan2(le[ye[1]]-te[ye[1]],le[ye[0]]-te[ye[0]])/Math.PI}au.prototype={handler:function(){},init:function(){this.evEl&&Ll(this.element,this.evEl,this.domHandler),this.evTarget&&Ll(this.target,this.evTarget,this.domHandler),this.evWin&&Ll(Ye(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Gr(this.element,this.evEl,this.domHandler),this.evTarget&&Gr(this.target,this.evTarget,this.domHandler),this.evWin&&Gr(Ye(this.element),this.evWin,this.domHandler)}};var kR={mousedown:1,mousemove:2,mouseup:4},Y6="mousedown",K6="mousemove mouseup";function dE(){this.evEl=Y6,this.evWin=K6,this.pressed=!1,au.apply(this,arguments)}In(dE,au,{handler:function(le){var ye=kR[le.type];1&ye&&0===le.button&&(this.pressed=!0),2&ye&&1!==le.which&&(ye=4),this.pressed&&(4&ye&&(this.pressed=!1),this.callback(this.manager,ye,{pointers:[le],changedPointers:[le],pointerType:cl,srcEvent:le}))}});var Z6={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},DR={2:Ui,3:"pen",4:cl,5:"kinect"},MR="pointerdown",ER="pointermove pointerup pointercancel";function O1(){this.evEl=MR,this.evWin=ER,au.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}At.MSPointerEvent&&!At.PointerEvent&&(MR="MSPointerDown",ER="MSPointerMove MSPointerUp MSPointerCancel"),In(O1,au,{handler:function(le){var ye=this.store,Ue=!1,Tt=le.type.toLowerCase().replace("ms",""),ln=Z6[Tt],On=DR[le.pointerType]||le.pointerType,wa=On==Ui,Na=Nl(ye,le.pointerId,"pointerId");1&ln&&(0===le.button||wa)?Na<0&&(ye.push(le),Na=ye.length-1):12&ln&&(Ue=!0),!(Na<0)&&(ye[Na]=le,this.callback(this.manager,ln,{pointers:ye,changedPointers:[le],pointerType:On,srcEvent:le}),Ue&&ye.splice(Na,1))}});var Ps={touchstart:1,touchmove:2,touchend:4,touchcancel:8},uE="touchstart",Vi="touchstart touchmove touchend touchcancel";function R1(){this.evTarget=uE,this.evWin=Vi,this.started=!1,au.apply(this,arguments)}function Q6(te,le){var ye=ae(te.touches),Ue=ae(te.changedTouches);return 12&le&&(ye=Fe(ye.concat(Ue),"identifier",!0)),[ye,Ue]}In(R1,au,{handler:function(le){var ye=Ps[le.type];if(1===ye&&(this.started=!0),this.started){var Ue=Q6.call(this,le,ye);12&ye&&Ue[0].length-Ue[1].length==0&&(this.started=!1),this.callback(this.manager,ye,{pointers:Ue[0],changedPointers:Ue[1],pointerType:Ui,srcEvent:le})}}});var He={touchstart:1,touchmove:2,touchend:4,touchcancel:8},zn="touchstart touchmove touchend touchcancel";function N0(){this.evTarget=zn,this.targetIds={},au.apply(this,arguments)}function jie(te,le){var ye=ae(te.touches),Ue=this.targetIds;if(3&le&&1===ye.length)return Ue[ye[0].identifier]=!0,[ye,ye];var Tt,ln,On=ae(te.changedTouches),wa=[],Na=this.target;if(ln=ye.filter(function(Vl){return q_(Vl.target,Na)}),1===le)for(Tt=0;Tt-1&&Ue.splice(ln,1)},2500)}}function eH(te){for(var le=te.srcEvent.clientX,ye=te.srcEvent.clientY,Ue=0;Ue-1&&this.requireFail.splice(le,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(te){return!!this.simultaneous[te.id]},emit:function(te){var le=this,ye=this.state;function Ue(Tt){le.manager.emit(Tt,te)}ye<8&&Ue(le.options.event+iH(ye)),Ue(le.options.event),te.additionalEvent&&Ue(te.additionalEvent),ye>=8&&Ue(le.options.event+iH(ye))},tryEmit:function(te){if(this.canEmit())return this.emit(te);this.state=32},canEmit:function(){for(var te=0;tele.threshold&&Tt&le.direction},attrTest:function(te){return Ve.prototype.attrTest.call(this,te)&&(2&this.state||!(2&this.state)&&this.directionTest(te))},emit:function(te){this.pX=te.deltaX,this.pY=te.deltaY;var le=ue(te.direction);le&&(te.additionalEvent=this.options.event+le),this._super.emit.call(this,te)}}),In(N1,Ve,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Wm]},attrTest:function(te){return this._super.attrTest.call(this,te)&&(Math.abs(te.scale-1)>this.options.threshold||2&this.state)},emit:function(te){1!==te.scale&&(te.additionalEvent=this.options.event+(te.scale<1?"in":"out")),this._super.emit.call(this,te)}}),In(fE,Nf,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(te){var le=this.options,ye=te.pointers.length===le.pointers,Ue=te.distancele.time;if(this._input=te,!Ue||!ye||12&te.eventType&&!Tt)this.reset();else if(1&te.eventType)this.reset(),this._timer=Lt(function(){this.state=8,this.tryEmit()},le.time,this);else if(4&te.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(te){8===this.state&&(te&&4&te.eventType?this.manager.emit(this.options.event+"up",te):(this._input.timeStamp=Ht(),this.manager.emit(this.options.event,this._input)))}}),In(gE,Ve,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Wm]},attrTest:function(te){return this._super.attrTest.call(this,te)&&(Math.abs(te.rotation)>this.options.threshold||2&this.state)}}),In(B1,Ve,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return kd.prototype.getTouchAction.call(this)},attrTest:function(te){var ye,le=this.options.direction;return 30&le?ye=te.overallVelocity:6&le?ye=te.overallVelocityX:24&le&&(ye=te.overallVelocityY),this._super.attrTest.call(this,te)&&le&te.offsetDirection&&te.distance>this.options.threshold&&te.maxPointers==this.options.pointers&&xt(ye)>this.options.velocity&&4&te.eventType},emit:function(te){var le=ue(te.offsetDirection);le&&this.manager.emit(this.options.event+le,te),this.manager.emit(this.options.event,te)}}),In(Xm,Nf,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[IR]},process:function(te){var le=this.options,ye=te.pointers.length===le.pointers,Ue=te.distance{jt.read=function(Pt,Zt,At,hi,Bi){var ke,Pe,rt=8*Bi-hi-1,ft=(1<>1,xt=-7,Ht=At?Bi-1:0,Lt=At?-1:1,dn=Pt[Zt+Ht];for(Ht+=Lt,ke=dn&(1<<-xt)-1,dn>>=-xt,xt+=rt;xt>0;ke=256*ke+Pt[Zt+Ht],Ht+=Lt,xt-=8);for(Pe=ke&(1<<-xt)-1,ke>>=-xt,xt+=hi;xt>0;Pe=256*Pe+Pt[Zt+Ht],Ht+=Lt,xt-=8);if(0===ke)ke=1-Mt;else{if(ke===ft)return Pe?NaN:1/0*(dn?-1:1);Pe+=Math.pow(2,hi),ke-=Mt}return(dn?-1:1)*Pe*Math.pow(2,ke-hi)},jt.write=function(Pt,Zt,At,hi,Bi,ke){var Pe,rt,ft,Mt=8*ke-Bi-1,xt=(1<>1,Lt=23===Bi?Math.pow(2,-24)-Math.pow(2,-77):0,dn=hi?0:ke-1,pi=hi?1:-1,Je=Zt<0||0===Zt&&1/Zt<0?1:0;for(Zt=Math.abs(Zt),isNaN(Zt)||Zt===1/0?(rt=isNaN(Zt)?1:0,Pe=xt):(Pe=Math.floor(Math.log(Zt)/Math.LN2),Zt*(ft=Math.pow(2,-Pe))<1&&(Pe--,ft*=2),(Zt+=Pe+Ht>=1?Lt/ft:Lt*Math.pow(2,1-Ht))*ft>=2&&(Pe++,ft/=2),Pe+Ht>=xt?(rt=0,Pe=xt):Pe+Ht>=1?(rt=(Zt*ft-1)*Math.pow(2,Bi),Pe+=Ht):(rt=Zt*Math.pow(2,Ht-1)*Math.pow(2,Bi),Pe=0));Bi>=8;Pt[At+dn]=255&rt,dn+=pi,rt/=256,Bi-=8);for(Pe=Pe<0;Pt[At+dn]=255&Pe,dn+=pi,Pe/=256,Mt-=8);Pt[At+dn-pi]|=128*Je}},697:(ni,jt,Pt)=>{"use strict";ni.exports=At;var Zt=Pt(658);function At(ae){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(ae)?ae:new Uint8Array(ae||0),this.pos=0,this.type=0,this.length=this.buf.length}At.Varint=0,At.Fixed64=1,At.Bytes=2,At.Fixed32=5;var hi=4294967296,Bi=1/hi,Pe="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function ft(ae){return ae.type===At.Bytes?ae.readVarint()+ae.pos:ae.pos+1}function dn(ae,Fe,ee){var De=Fe<=16383?1:Fe<=2097151?2:Fe<=268435455?3:Math.floor(Math.log(Fe)/(7*Math.LN2));ee.realloc(De);for(var Z=ee.pos-1;Z>=ae;Z--)ee.buf[Z+De]=ee.buf[Z]}function pi(ae,Fe){for(var ee=0;ee>>8,ae[ee+2]=Fe>>>16,ae[ee+3]=Fe>>>24}function q_(ae,Fe){return(ae[Fe]|ae[Fe+1]<<8|ae[Fe+2]<<16)+(ae[Fe+3]<<24)}At.prototype={destroy:function(){this.buf=null},readFields:function(ae,Fe,ee){for(ee=ee||this.length;this.pos>3,Ye=this.pos;this.type=7&De,ae(Z,Fe,this),this.pos===Ye&&this.skip(De)}return Fe},readMessage:function(ae,Fe){return this.readFields(ae,Fe,this.readVarint()+this.pos)},readFixed32:function(){var ae=Ll(this.buf,this.pos);return this.pos+=4,ae},readSFixed32:function(){var ae=q_(this.buf,this.pos);return this.pos+=4,ae},readFixed64:function(){var ae=Ll(this.buf,this.pos)+Ll(this.buf,this.pos+4)*hi;return this.pos+=8,ae},readSFixed64:function(){var ae=Ll(this.buf,this.pos)+q_(this.buf,this.pos+4)*hi;return this.pos+=8,ae},readFloat:function(){var ae=Zt.read(this.buf,this.pos,!0,23,4);return this.pos+=4,ae},readDouble:function(){var ae=Zt.read(this.buf,this.pos,!0,52,8);return this.pos+=8,ae},readVarint:function(ae){var ee,De,Fe=this.buf;return ee=127&(De=Fe[this.pos++]),De<128||(ee|=(127&(De=Fe[this.pos++]))<<7,De<128)||(ee|=(127&(De=Fe[this.pos++]))<<14,De<128)||(ee|=(127&(De=Fe[this.pos++]))<<21,De<128)?ee:function(ae,Fe,ee){var Z,Ye,De=ee.buf;if(Z=(112&(Ye=De[ee.pos++]))>>4,Ye<128||(Z|=(127&(Ye=De[ee.pos++]))<<3,Ye<128)||(Z|=(127&(Ye=De[ee.pos++]))<<10,Ye<128)||(Z|=(127&(Ye=De[ee.pos++]))<<17,Ye<128)||(Z|=(127&(Ye=De[ee.pos++]))<<24,Ye<128)||(Z|=(1&(Ye=De[ee.pos++]))<<31,Ye<128))return function(ae,Fe,ee){return ee?4294967296*Fe+(ae>>>0):4294967296*(Fe>>>0)+(ae>>>0)}(ae,Z,Fe);throw new Error("Expected varint not more than 10 bytes")}(ee|=(15&(De=Fe[this.pos]))<<28,ae,this)},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var ae=this.readVarint();return ae%2==1?(ae+1)/-2:ae/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var ae=this.readVarint()+this.pos,Fe=this.pos;return this.pos=ae,ae-Fe>=12&&Pe?function(ae,Fe,ee){return Pe.decode(ae.subarray(Fe,ee))}(this.buf,Fe,ae):function(ae,Fe,ee){for(var De="",Z=Fe;Z239?4:Ye>223?3:Ye>191?2:1;if(Z+xe>ee)break;1===xe?Ye<128&&(qe=Ye):2===xe?128==(192&(ut=ae[Z+1]))&&(qe=(31&Ye)<<6|63&ut)<=127&&(qe=null):3===xe?(xn=ae[Z+2],128==(192&(ut=ae[Z+1]))&&128==(192&xn)&&((qe=(15&Ye)<<12|(63&ut)<<6|63&xn)<=2047||qe>=55296&&qe<=57343)&&(qe=null)):4===xe&&(xn=ae[Z+2],Ui=ae[Z+3],128==(192&(ut=ae[Z+1]))&&128==(192&xn)&&128==(192&Ui)&&((qe=(15&Ye)<<18|(63&ut)<<12|(63&xn)<<6|63&Ui)<=65535||qe>=1114112)&&(qe=null)),null===qe?(qe=65533,xe=1):qe>65535&&(qe-=65536,De+=String.fromCharCode(qe>>>10&1023|55296),qe=56320|1023&qe),De+=String.fromCharCode(qe),Z+=xe}return De}(this.buf,Fe,ae)},readBytes:function(){var ae=this.readVarint()+this.pos,Fe=this.buf.subarray(this.pos,ae);return this.pos=ae,Fe},readPackedVarint:function(ae,Fe){if(this.type!==At.Bytes)return ae.push(this.readVarint(Fe));var ee=ft(this);for(ae=ae||[];this.pos127;);else if(Fe===At.Bytes)this.pos=this.readVarint()+this.pos;else if(Fe===At.Fixed32)this.pos+=4;else{if(Fe!==At.Fixed64)throw new Error("Unimplemented type: "+Fe);this.pos+=8}},writeTag:function(ae,Fe){this.writeVarint(ae<<3|Fe)},realloc:function(ae){for(var Fe=this.length||16;Fe268435455||ae<0?function(ae,Fe){var ee,De;if(ae>=0?(ee=ae%4294967296|0,De=ae/4294967296|0):(De=~(-ae/4294967296),4294967295^(ee=~(-ae%4294967296))?ee=ee+1|0:(ee=0,De=De+1|0)),ae>=0x10000000000000000||ae<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");Fe.realloc(10),function(ae,Fe,ee){ee.buf[ee.pos++]=127&ae|128,ae>>>=7,ee.buf[ee.pos++]=127&ae|128,ae>>>=7,ee.buf[ee.pos++]=127&ae|128,ae>>>=7,ee.buf[ee.pos++]=127&ae|128,ee.buf[ee.pos]=127&(ae>>>=7)}(ee,0,Fe),function(ae,Fe){var ee=(7&ae)<<4;Fe.buf[Fe.pos++]|=ee|((ae>>>=3)?128:0),ae&&(Fe.buf[Fe.pos++]=127&ae|((ae>>>=7)?128:0),ae&&(Fe.buf[Fe.pos++]=127&ae|((ae>>>=7)?128:0),ae&&(Fe.buf[Fe.pos++]=127&ae|((ae>>>=7)?128:0),ae&&(Fe.buf[Fe.pos++]=127&ae|((ae>>>=7)?128:0),ae&&(Fe.buf[Fe.pos++]=127&ae)))))}(De,Fe)}(ae,this):(this.realloc(4),this.buf[this.pos++]=127&ae|(ae>127?128:0),!(ae<=127)&&(this.buf[this.pos++]=127&(ae>>>=7)|(ae>127?128:0),!(ae<=127)&&(this.buf[this.pos++]=127&(ae>>>=7)|(ae>127?128:0),!(ae<=127)&&(this.buf[this.pos++]=ae>>>7&127))))},writeSVarint:function(ae){this.writeVarint(ae<0?2*-ae-1:2*ae)},writeBoolean:function(ae){this.writeVarint(Boolean(ae))},writeString:function(ae){ae=String(ae),this.realloc(4*ae.length),this.pos++;var Fe=this.pos;this.pos=function(ae,Fe,ee){for(var Z,Ye,De=0;De55295&&Z<57344){if(!Ye){Z>56319||De+1===Fe.length?(ae[ee++]=239,ae[ee++]=191,ae[ee++]=189):Ye=Z;continue}if(Z<56320){ae[ee++]=239,ae[ee++]=191,ae[ee++]=189,Ye=Z;continue}Z=Ye-55296<<10|Z-56320|65536,Ye=null}else Ye&&(ae[ee++]=239,ae[ee++]=191,ae[ee++]=189,Ye=null);Z<128?ae[ee++]=Z:(Z<2048?ae[ee++]=Z>>6|192:(Z<65536?ae[ee++]=Z>>12|224:(ae[ee++]=Z>>18|240,ae[ee++]=Z>>12&63|128),ae[ee++]=Z>>6&63|128),ae[ee++]=63&Z|128)}return ee}(this.buf,ae,this.pos);var ee=this.pos-Fe;ee>=128&&dn(Fe,ee,this),this.pos=Fe-1,this.writeVarint(ee),this.pos+=ee},writeFloat:function(ae){this.realloc(4),Zt.write(this.buf,ae,this.pos,!0,23,4),this.pos+=4},writeDouble:function(ae){this.realloc(8),Zt.write(this.buf,ae,this.pos,!0,52,8),this.pos+=8},writeBytes:function(ae){var Fe=ae.length;this.writeVarint(Fe),this.realloc(Fe);for(var ee=0;ee=128&&dn(ee,De,this),this.pos=ee-1,this.writeVarint(De),this.pos+=De},writeMessage:function(ae,Fe,ee){this.writeTag(ae,At.Bytes),this.writeRawMessage(Fe,ee)},writePackedVarint:function(ae,Fe){Fe.length&&this.writeMessage(ae,pi,Fe)},writePackedSVarint:function(ae,Fe){Fe.length&&this.writeMessage(ae,Je,Fe)},writePackedBoolean:function(ae,Fe){Fe.length&&this.writeMessage(ae,Ts,Fe)},writePackedFloat:function(ae,Fe){Fe.length&&this.writeMessage(ae,rs,Fe)},writePackedDouble:function(ae,Fe){Fe.length&&this.writeMessage(ae,ll,Fe)},writePackedFixed32:function(ae,Fe){Fe.length&&this.writeMessage(ae,In,Fe)},writePackedSFixed32:function(ae,Fe){Fe.length&&this.writeMessage(ae,up,Fe)},writePackedFixed64:function(ae,Fe){Fe.length&&this.writeMessage(ae,ou,Fe)},writePackedSFixed64:function(ae,Fe){Fe.length&&this.writeMessage(ae,hp,Fe)},writeBytesField:function(ae,Fe){this.writeTag(ae,At.Bytes),this.writeBytes(Fe)},writeFixed32Field:function(ae,Fe){this.writeTag(ae,At.Fixed32),this.writeFixed32(Fe)},writeSFixed32Field:function(ae,Fe){this.writeTag(ae,At.Fixed32),this.writeSFixed32(Fe)},writeFixed64Field:function(ae,Fe){this.writeTag(ae,At.Fixed64),this.writeFixed64(Fe)},writeSFixed64Field:function(ae,Fe){this.writeTag(ae,At.Fixed64),this.writeSFixed64(Fe)},writeVarintField:function(ae,Fe){this.writeTag(ae,At.Varint),this.writeVarint(Fe)},writeSVarintField:function(ae,Fe){this.writeTag(ae,At.Varint),this.writeSVarint(Fe)},writeStringField:function(ae,Fe){this.writeTag(ae,At.Bytes),this.writeString(Fe)},writeFloatField:function(ae,Fe){this.writeTag(ae,At.Fixed32),this.writeFloat(Fe)},writeDoubleField:function(ae,Fe){this.writeTag(ae,At.Fixed64),this.writeDouble(Fe)},writeBooleanField:function(ae,Fe){this.writeVarintField(ae,Boolean(Fe))}}},310:(ni,jt,Pt)=>{"use strict";var Zt=Pt(948);Object.defineProperty(jt,"__esModule",{value:!0}),jt.isMobile=function(){return void 0!==At.window.orientation},jt.default=function(rt){if(!rt&&!(0,hi.default)())return"Node";if((0,Bi.default)(rt))return"Electron";var ft="undefined"!=typeof navigator?navigator:{},Mt=rt||ft.userAgent||"";if(Mt.indexOf("Edge")>-1)return"Edge";var xt=-1!==Mt.indexOf("MSIE "),Ht=-1!==Mt.indexOf("Trident/");return xt||Ht?"IE":At.window.chrome?"Chrome":At.window.safari?"Safari":At.window.mozInnerScreenX?"Firefox":"Unknown"};var At=Pt(151),hi=Zt(Pt(602)),Bi=Zt(Pt(344))},151:(ni,jt,Pt)=>{"use strict";var Zt=Pt(948);Object.defineProperty(jt,"__esModule",{value:!0}),jt.console=jt.process=jt.document=jt.global=jt.window=jt.self=void 0;var At=Zt(Pt(321)),hi={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global,document:"undefined"!=typeof document&&document,process:"object"===("undefined"==typeof process?"undefined":(0,At.default)(process))&&process};jt.self=hi.self||hi.window||hi.global,jt.window=hi.window||hi.self||hi.global,jt.global=hi.global||hi.self||hi.window,jt.document=hi.document||{},jt.process=hi.process||{};var Mt=console;jt.console=Mt},761:(ni,jt,Pt)=>{"use strict";var At=Pt(948),hi=Pt(321);Object.defineProperty(jt,"CO",{enumerable:!0,get:function(){return Bi.global}}),Object.defineProperty(jt,"jU",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(jt,"qs",{enumerable:!0,get:function(){return Pe.default}});var Bi=Pt(151),ke=Mt(Pt(602)),Pe=Mt(Pt(310));At(Pt(344));function ft(xt){if("function"!=typeof WeakMap)return null;var Ht=new WeakMap,Lt=new WeakMap;return(ft=function(pi){return pi?Lt:Ht})(xt)}function Mt(xt,Ht){if(!Ht&&xt&&xt.__esModule)return xt;if(null===xt||"object"!==hi(xt)&&"function"!=typeof xt)return{default:xt};var Lt=ft(Ht);if(Lt&&Lt.has(xt))return Lt.get(xt);var dn={},pi=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Je in xt)if("default"!==Je&&Object.prototype.hasOwnProperty.call(xt,Je)){var rs=pi?Object.getOwnPropertyDescriptor(xt,Je):null;rs&&(rs.get||rs.set)?Object.defineProperty(dn,Je,rs):dn[Je]=xt[Je]}return dn.default=xt,Lt&&Lt.set(xt,dn),dn}},602:(ni,jt,Pt)=>{"use strict";var Zt=Pt(948);Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=Bi,jt.isBrowserMainThread=function(){return Bi()&&"undefined"!=typeof document};var At=Zt(Pt(321)),hi=Zt(Pt(344));function Bi(){return!("object"===("undefined"==typeof process?"undefined":(0,At.default)(process))&&"[object process]"===String(process)&&!process.browser)||(0,hi.default)()}},344:(ni,jt,Pt)=>{"use strict";var Zt=Pt(948);Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=function(Bi){if("undefined"!=typeof window&&"object"===(0,At.default)(window.process)&&"renderer"===window.process.type||"undefined"!=typeof process&&"object"===(0,At.default)(process.versions)&&Boolean(process.versions.electron))return!0;var ke="object"===("undefined"==typeof navigator?"undefined":(0,At.default)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,Pe=Bi||ke;return!!(Pe&&Pe.indexOf("Electron")>=0)};var At=Zt(Pt(321))},530:function(ni,jt,Pt){var Zt;void 0!==(Zt=function(){return Wkt=function(ke){return ke instanceof Wkt?ke:this instanceof Wkt?void(this._wrapped=ke):new Wkt(ke)},At=function(ke,Pe){return ke.substring(0,Pe.length)===Pe},hi=function(ke,Pe){return ke.substring(ke.length-Pe.length)===Pe},Wkt.delimiter=" ",Wkt.isArray=function(ke){return!(!ke||ke.constructor!==Array)},Wkt.trim=function(ke,Pe){for(Pe=Pe||" ";At(ke,Pe);)ke=ke.substring(1);for(;hi(ke,Pe);)ke=ke.substring(0,ke.length-1);return ke},Wkt.Wkt=function(ke){this.delimiter=Wkt.delimiter||" ",this.wrapVertices=!0,this.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+|\+/,numeric:/-*\d+(\.*\d+)?/,comma:/\s*,\s*/,parenComma:/\)\s*,\s*\(/,coord:/-*\d+\.*\d+ -*\d+\.*\d+/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,ogcTypes:/^(multi)?(point|line|polygon|box)?(string)?$/i,crudeJson:/^{.*"(type|coordinates|geometries|features)":.*}$/},this._stripWhitespaceAndParens=function(Pe){return Pe.trim().replace(/^\(?(.*?)\)?$/,"$1")},this.components=void 0,ke&&"string"==typeof ke?this.read(ke):ke&&void 0!==typeof ke&&this.fromObject(ke)},Wkt.Wkt.prototype.isCollection=function(){switch(this.type.slice(0,5)){case"multi":case"polyg":return!0;default:return!1}},Wkt.Wkt.prototype.sameCoords=function(ke,Pe){return ke.x===Pe.x&&ke.y===Pe.y},Wkt.Wkt.prototype.fromObject=function(ke){var Pe;return Pe=ke.hasOwnProperty("type")&&ke.hasOwnProperty("coordinates")?this.fromJson(ke):this.deconstruct.call(this,ke),this.components=Pe.components,this.isRectangle=Pe.isRectangle||!1,this.type=Pe.type,this},Wkt.Wkt.prototype.toObject=function(ke){var Pe=this.construct[this.type].call(this,ke);return"object"==typeof Pe&&!Wkt.isArray(Pe)&&(Pe.properties=this.properties),Pe},Wkt.Wkt.prototype.toString=function(ke){return this.write()},Wkt.Wkt.prototype.fromJson=function(ke){var Pe,rt,ft,Mt,xt,Ht;if(this.type=ke.type.toLowerCase(),this.components=[],ke.hasOwnProperty("geometry"))return this.fromJson(ke.geometry),this.properties=ke.properties,this;if(Mt=ke.coordinates,Wkt.isArray(Mt[0])){for(Pe in Mt)if(Mt.hasOwnProperty(Pe))if(Wkt.isArray(Mt[Pe][0])){for(rt in Ht=[],Mt[Pe])if(Mt[Pe].hasOwnProperty(rt))if(Wkt.isArray(Mt[Pe][rt][0])){for(ft in xt=[],Mt[Pe][rt])Mt[Pe][rt].hasOwnProperty(ft)&&xt.push({x:Mt[Pe][rt][ft][0],y:Mt[Pe][rt][ft][1]});Ht.push(xt)}else Ht.push({x:Mt[Pe][rt][0],y:Mt[Pe][rt][1]});this.components.push(Ht)}else this.components.push("multipoint"===this.type?[{x:Mt[Pe][0],y:Mt[Pe][1]}]:{x:Mt[Pe][0],y:Mt[Pe][1]})}else this.components.push({x:Mt[0],y:Mt[1]});return this},Wkt.Wkt.prototype.toJson=function(){var ke,Pe,rt,ft,Mt,xt,Ht;if(ke=this.components,Pe={coordinates:[],type:function(){var Lt,dn,pi;for(Lt in pi=[],dn=this.regExes.ogcTypes.exec(this.type).slice(1))dn.hasOwnProperty(Lt)&&void 0!==dn[Lt]&&pi.push(dn[Lt].toLowerCase().slice(0,1).toUpperCase()+dn[Lt].toLowerCase().slice(1));return pi}.call(this).join("")},"box"===this.type.toLowerCase()){for(rt in Pe.type="Polygon",Pe.bbox=[],ke)ke.hasOwnProperty(rt)&&(Pe.bbox=Pe.bbox.concat([ke[rt].x,ke[rt].y]));return Pe.coordinates=[[[ke[0].x,ke[0].y],[ke[0].x,ke[1].y],[ke[1].x,ke[1].y],[ke[1].x,ke[0].y],[ke[0].x,ke[0].y]]],Pe}for(rt in ke)if(ke.hasOwnProperty(rt))if(Wkt.isArray(ke[rt])){for(ft in Ht=[],ke[rt])if(ke[rt].hasOwnProperty(ft))if(Wkt.isArray(ke[rt][ft])){for(Mt in xt=[],ke[rt][ft])ke[rt][ft].hasOwnProperty(Mt)&&xt.push([ke[rt][ft][Mt].x,ke[rt][ft][Mt].y]);Ht.push(xt)}else ke[rt].length>1?Ht.push([ke[rt][ft].x,ke[rt][ft].y]):Ht=Ht.concat([ke[rt][ft].x,ke[rt][ft].y]);Pe.coordinates.push(Ht)}else ke.length>1?Pe.coordinates.push([ke[rt].x,ke[rt].y]):Pe.coordinates=Pe.coordinates.concat([ke[rt].x,ke[rt].y]);return Pe},Wkt.Wkt.prototype.merge=function(ke){var Pe=this.type.slice(0,5);if(this.type!==ke.type&&this.type.slice(5,this.type.length)!==ke.type)throw TypeError("The input geometry types must agree or the calling this.Wkt.Wkt instance must be a multigeometry of the other");switch(Pe){case"point":this.components=[this.components.concat(ke.components)];break;case"multi":this.components=this.components.concat("multi"===ke.type.slice(0,5)?ke.components:[ke.components]);break;default:this.components=[this.components,ke.components]}return"multi"!==Pe&&(this.type="multi"+this.type),this},Wkt.Wkt.prototype.read=function(ke){var Pe;if(Pe=this.regExes.typeStr.exec(ke))this.type=Pe[1].toLowerCase(),this.base=Pe[2],this.ingest[this.type]&&(this.components=this.ingest[this.type].apply(this,[this.base]));else{if(!this.regExes.crudeJson.test(ke))throw console.log("Invalid WKT string provided to read()"),{name:"WKTError",message:"Invalid WKT string provided to read()"};if("object"!=typeof JSON||"function"!=typeof JSON.parse)throw console.log("JSON.parse() is not available; cannot parse GeoJSON strings"),{name:"JSONError",message:"JSON.parse() is not available; cannot parse GeoJSON strings"};this.fromJson(JSON.parse(ke))}return this},Wkt.Wkt.prototype.write=function(ke){var Pe,rt,ft;for(ke=ke||this.components,(rt=[]).push(this.type.toUpperCase()+"("),Pe=0;Pe0&&rt.push(","),!this.extract[this.type])return null;ft=this.extract[this.type].apply(this,[ke[Pe]]),this.isCollection()&&"multipoint"!==this.type?rt.push("("+ft+")"):(rt.push(ft),Pe!==ke.length-1&&"multipoint"!==this.type&&rt.push(","))}return rt.push(")"),rt.join("")},Wkt.Wkt.prototype.extract={point:function(ke){return String(ke.x)+this.delimiter+String(ke.y)},multipoint:function(ke){var Pe,ft,rt=[];for(Pe=0;Pe2&&(Lt=Lt.filter(function(Je){return""!=Je})),2===Lt.length){var pi=Lt[1];Mt.push({x:parseFloat(Lt[0]),y:parseFloat(pi)})}}ft.push(Mt)}return ft},box:function(ke){var Pe,rt,ft;for(rt=this.ingest.multipoint.apply(this,[ke]),ft=[],Pe=0;Pe{"use strict";var Zt={};Pt.r(Zt),Pt.d(Zt,{DEG_TO_RAD:()=>fZ,LRUCache:()=>HMe,MAX_NUM:()=>zD,MIN_NUM:()=>HD,TextMetrics:()=>UMe,append:()=>pF,arabicToRoman:()=>B4,bindEvents:()=>rte,createPromise:()=>Qx,defined:()=>ti,definitionId:()=>z4,deg:()=>mb,elementOffset:()=>pOe,elementPadding:()=>gOe,elementScale:()=>yOe,elementSize:()=>DO,elementStyles:()=>k8,encodeBase64:()=>sQ,eventCoordinates:()=>dOe,eventElement:()=>uOe,hashKey:()=>jMe,isTransparent:()=>Jx,last:()=>Bu,limitValue:()=>U4,measureText:()=>N4,mergeSort:()=>V4,normalizeText:()=>XZ,now:()=>kO,objectKey:()=>GMe,promiseAll:()=>hOe,rad:()=>Wg,round:()=>Do,unbindEvents:()=>ate,valueOrDefault:()=>QZ});var At={};Pt.r(At),Pt.d(At,{easeOutElastic:()=>Lqt,linear:()=>Pqt,swing:()=>Rqt});var hi={};Pt.r(hi),Pt.d(hi,{ArcNode:()=>gPe,CircleNode:()=>mPe,ClipNode:()=>dPe,DefinitionNode:()=>uPe,GradientStopNode:()=>rPe,GroupNode:()=>yPe,ImageNode:()=>_Pe,LinearGradientNode:()=>lPe,MultiPathNode:()=>vPe,Node:()=>Kb,PathNode:()=>Zb,RadialGradientNode:()=>cPe,RectNode:()=>bPe,RootNode:()=>vne,Surface:()=>xPe,TextNode:()=>CPe,exportGroup:()=>FLe});var Bi={};Pt.r(Bi),Pt.d(Bi,{ArcNode:()=>DPe,CircleNode:()=>MPe,GroupNode:()=>Tne,ImageNode:()=>EPe,MultiPathNode:()=>IPe,Node:()=>Sne,PathNode:()=>Qb,RectNode:()=>APe,RootNode:()=>wPe,Surface:()=>Dne,TextNode:()=>FPe});var ke={};function Pe(n){return"function"==typeof n}Pt.r(ke),Pt.d(ke,{Animation:()=>Uu,AnimationFactory:()=>bf,Arc:()=>EQt,BaseNode:()=>eR,Circle:()=>Tb,Element:()=>Jg,Gradient:()=>tM,GradientStop:()=>iQ,Group:()=>bs,HasObservers:()=>Ru,Image:()=>nQ,Layout:()=>BPe,LinearGradient:()=>yF,MultiPath:()=>Jy,OptionsStore:()=>ZZ,Path:()=>Sn,PathParser:()=>zQt,QuadNode:()=>TPe,RadialGradient:()=>TF,Rect:()=>AQt,ShapesQuadTree:()=>kne,Surface:()=>RPe,SurfaceFactory:()=>Ane,Text:()=>JZ,align:()=>FQt,canvas:()=>Bi,exportImage:()=>OLe,exportSVG:()=>RLe,fit:()=>VQt,parsePath:()=>tQ,stack:()=>RQt,svg:()=>hi,util:()=>Zt,vAlign:()=>OQt,vStack:()=>PQt,vWrap:()=>BQt,wrap:()=>NQt});let rt=!1;const ft={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else rt&&console.log("RxJS: Back to a better error behavior. Thank you. <3");rt=n},get useDeprecatedSynchronousErrorHandling(){return rt}};function Mt(n){setTimeout(()=>{throw n},0)}const xt={closed:!0,next(n){},error(n){if(ft.useDeprecatedSynchronousErrorHandling)throw n;Mt(n)},complete(){}},Ht=Array.isArray||(n=>n&&"number"==typeof n.length);function Lt(n){return null!==n&&"object"==typeof n}const pi=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class Je{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Je)e.remove(this);else if(null!==e)for(let r=0;rt.concat(e instanceof pi?e.errors:e),[])}Je.EMPTY=((n=new Je).closed=!0,n);const ll="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class In extends Je{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=xt;break;case 1:if(!t){this.destination=xt;break}if("object"==typeof t){t instanceof In?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new up(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new up(this,t,e,i)}}[ll](){return this}static create(t,e,i){const s=new In(t,e,i);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class up extends In{constructor(t,e,i,s){super(),this._parentSubscriber=t;let o,r=this;Pe(e)?o=e:e&&(o=e.next,i=e.error,s=e.complete,e!==xt&&(r=Object.create(e),Pe(r.unsubscribe)&&this.add(r.unsubscribe.bind(r)),r.unsubscribe=this.unsubscribe.bind(this))),this._context=r,this._next=o,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;ft.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=ft;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Mt(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Mt(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);ft.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),ft.useDeprecatedSynchronousErrorHandling)throw i;Mt(i)}}__tryOrSetError(t,e,i){if(!ft.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return ft.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(Mt(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}function ou(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof In?e:null}return!0}const Ll="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gr(n){return n}let an=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:o}=this,r=function(n,t,e){if(n){if(n instanceof In)return n;if(n[ll])return n[ll]()}return n||t||e?new In(n,t,e):new In(xt)}(e,i,s);if(r.add(o?o.call(r,this.source):this.source||ft.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),ft.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){ft.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),ou(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Nl(i))((s,o)=>{let r;r=this.subscribe(a=>{try{e(a)}catch(l){o(l),r&&r.unsubscribe()}},o,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ll](){return this}pipe(...e){return 0===e.length?this:function(n){return 0===n.length?Gr:1===n.length?n[0]:function(e){return n.reduce((i,s)=>s(i),e)}}(e)(this)}toPromise(e){return new(e=Nl(e))((i,s)=>{let o;this.subscribe(r=>o=r,r=>s(r),()=>i(o))})}}return n.create=t=>new n(t),n})();function Nl(n){if(n||(n=ft.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Fe=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class ee extends Je{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class De extends In{constructor(t){super(t),this.destination=t}}let Z=(()=>{class n extends an{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ll](){return new De(this)}lift(e){const i=new Ye(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Fe;if(!this.isStopped){const{observers:i}=this,s=i.length,o=i.slice();for(let r=0;rnew Ye(t,e),n})();class Ye extends Z{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):Je.EMPTY}}function qe(n){return n&&"function"==typeof n.schedule}function xe(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ut(n,t))}}class ut{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new xn(t,this.project,this.thisArg))}}class xn extends In{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Ui=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function Bl(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const X_=n=>{if(n&&"function"==typeof n[Ll])return(n=>t=>{const e=n[Ll]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(Cr(n))return Ui(n);if(Bl(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Mt),t))(n);if(n&&"function"==typeof n[Eo])return(n=>t=>{const e=n[Eo]();for(;;){let i;try{i=e.next()}catch(s){return t.error(s),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Lt(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function jm(n,t){return new an(e=>{const i=new Je;let s=0;return i.add(t.schedule(function(){s!==n.length?(e.next(n[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Ys(n,t){return t?function(n,t){if(null!=n){if(function(n){return n&&"function"==typeof n[Ll]}(n))return function(n,t){return new an(e=>{const i=new Je;return i.add(t.schedule(()=>{const s=n[Ll]();i.add(s.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(Bl(n))return function(n,t){return new an(e=>{const i=new Je;return i.add(t.schedule(()=>n.then(s=>{i.add(t.schedule(()=>{e.next(s),i.add(t.schedule(()=>e.complete()))}))},s=>{i.add(t.schedule(()=>e.error(s)))}))),i})}(n,t);if(Cr(n))return jm(n,t);if(function(n){return n&&"function"==typeof n[Eo]}(n)||"string"==typeof n)return function(n,t){if(!n)throw new Error("Iterable cannot be null");return new an(e=>{const i=new Je;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(t.schedule(()=>{s=n[Eo](),i.add(t.schedule(function(){if(e.closed)return;let o,r;try{const a=s.next();o=a.value,r=a.done}catch(a){return void e.error(a)}r?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof an?n:new an(X_(n))}class ru extends In{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Pf extends In{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Lf(n,t){if(t.closed)return;if(n instanceof an)return n.subscribe(t);let e;try{e=X_(n)(t)}catch(i){t.error(i)}return e}function jr(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(jr((s,o)=>Ys(n(s,o)).pipe(xe((r,a)=>t(s,r,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new W6(n,e)))}class W6{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new SR(t,this.project,this.concurrent))}}class SR extends Pf{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const TR=jr;function Y_(n=Number.POSITIVE_INFINITY){return jr(Gr,n)}function P0(n,t){return t?jm(n,t):new an(Ui(n))}function ii(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return qe(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof an?n[0]:Y_(t)(P0(n,e))}function L0(){return function(t){return t.lift(new q6(t))}}class q6{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const s=new X6(t,i),o=e.subscribe(s);return s.closed||(s.connection=i.connect()),o}}class X6 extends In{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=t._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class kR extends an{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new Je,t.add(this.source.subscribe(new K6(this.getSubject(),this))),t.closed&&(this._connection=null,t=Je.EMPTY)),t}refCount(){return L0()(this)}}const Y6=(()=>{const n=kR.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class K6 extends De{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function DR(n,t){return function(i){let s;if(s="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new MR(s,t));const o=Object.create(i,Y6);return o.source=i,o.subjectFactory=s,o}}class MR{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,s=this.subjectFactory(),o=i(s).subscribe(t);return o.add(e.subscribe(s)),o}}function ER(){return new Z}function O1(){return n=>L0()(DR(ER)(n))}function Ps(n){for(let t in n)if(n[t]===Ps)return t;throw Error("Could not find renamed property on target object.")}function uE(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Vi(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Vi).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function R1(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Q6=Ps({__forward_ref__:Ps});function He(n){return n.__forward_ref__=He,n.toString=function(){return Vi(this())},n}function zn(n){return N0(n)?n():n}function N0(n){return"function"==typeof n&&n.hasOwnProperty(Q6)&&n.__forward_ref__===He}class Um extends Error{constructor(t,e){super(function(n,t){return`${n?`NG0${n}: `:""}${t}`}(t,e)),this.code=t}}function Ci(n){return"string"==typeof n?n:null==n?"":String(n)}function dl(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Ci(n)}function V0(n,t){const e=t?` in ${t}`:"";throw new Um("201",`No provider for ${dl(n)} found${e}`)}function xr(n,t){null==n&&function(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function ue(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ve(n){return{providers:n.providers||[],imports:n.imports||[]}}function kd(n){return N1(n,Xm)||N1(n,FR)}function N1(n,t){return n.hasOwnProperty(t)?n[t]:null}function B1(n){return n&&(n.hasOwnProperty(fp)||n.hasOwnProperty(OR))?n[fp]:null}const Xm=Ps({\u0275prov:Ps}),fp=Ps({\u0275inj:Ps}),FR=Ps({ngInjectableDef:Ps}),OR=Ps({ngInjectorDef:Ps});var Hn=(()=>((Hn=Hn||{})[Hn.Default=0]="Default",Hn[Hn.Host=1]="Host",Hn[Hn.Self=2]="Self",Hn[Hn.SkipSelf=4]="SkipSelf",Hn[Hn.Optional=8]="Optional",Hn))();let V1;function Bf(n){const t=V1;return V1=n,t}function te(n,t,e){const i=kd(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Hn.Optional?null:void 0!==t?t:void V0(Vi(n),"Injector")}function ye(n){return{toString:n}.toString()}var Ue=(()=>((Ue=Ue||{})[Ue.OnPush=0]="OnPush",Ue[Ue.Default=1]="Default",Ue))(),On=(()=>((On=On||{})[On.Emulated=0]="Emulated",On[On.None=2]="None",On[On.ShadowDom=3]="ShadowDom",On))();const wa="undefined"!=typeof globalThis&&globalThis,Na="undefined"!=typeof window&&window,Vl="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,fh="undefined"!=typeof global&&global,no=wa||fh||Na||Vl,z1={},xo=[],RR=Ps({\u0275cmp:Ps}),oH=Ps({\u0275dir:Ps}),rH=Ps({\u0275pipe:Ps}),Wie=Ps({\u0275mod:Ps}),q3e=Ps({\u0275loc:Ps}),Ym=Ps({\u0275fac:Ps}),mE=Ps({__NG_ELEMENT_ID__:Ps});let X3e=0;function K(n){return ye(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||xo,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||On.Emulated,id:"c",styles:n.styles||xo,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.directives,o=n.features,r=n.pipes;return i.id+=X3e++,i.inputs=Kie(n.inputs,e),i.outputs=Kie(n.outputs),o&&o.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(qie):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Xie):null,i})}function qie(n){return Nc(n)||function(n){return n[oH]||null}(n)}function Xie(n){return function(n){return n[rH]||null}(n)}const Yie={};function We(n){return ye(()=>{const t={type:n.type,bootstrap:n.bootstrap||xo,declarations:n.declarations||xo,imports:n.imports||xo,exports:n.exports||xo,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Yie[n.id]=n.type),t})}function Kie(n,t){if(null==n)return z1;const e={};for(const i in n)if(n.hasOwnProperty(i)){let s=n[i],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),e[s]=i,t&&(t[s]=o)}return e}const R=K;function zl(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function Nc(n){return n[RR]||null}function gh(n,t){const e=n[Wie]||null;if(!e&&!0===t)throw new Error(`Type ${Vi(n)} does not have '\u0275mod' property.`);return e}function Vf(n){return Array.isArray(n)&&"object"==typeof n[1]}function mp(n){return Array.isArray(n)&&!0===n[1]}function cH(n){return 0!=(8&n.flags)}function BR(n){return 2==(2&n.flags)}function VR(n){return 1==(1&n.flags)}function yp(n){return null!==n.template}function tBe(n){return 0!=(512&n[2])}function $0(n,t){return n.hasOwnProperty(Ym)?n[Ym]:null}class uH{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function st(){return Qie}function Qie(n){return n.type.prototype.ngOnChanges&&(n.setInput=oBe),sBe}function sBe(){const n=ese(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===z1)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function oBe(n,t,e,i){const s=ese(n)||function(n,t){return n[Jie]=t}(n,{previous:z1,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[e],l=r[a];o[a]=new uH(l&&l.currentValue,t,r===z1),n[i]=t}st.ngInherit=!0;const Jie="__ngSimpleChanges__";function ese(n){return n[Jie]||null}const tse="http://www.w3.org/2000/svg";let pH;function fH(){return void 0!==pH?pH:"undefined"!=typeof document?document:void 0}function $r(n){return!!n.listen}const ise={createRenderer:(n,t)=>fH()};function Sa(n){for(;Array.isArray(n);)n=n[0];return n}function zR(n,t){return Sa(t[n])}function _h(n,t){return Sa(t[n.index])}function gH(n,t){return n.data[t]}function U1(n,t){return n[t]}function du(n,t){const e=t[n];return Vf(e)?e:e[0]}function sse(n){return 4==(4&n[2])}function mH(n){return 128==(128&n[2])}function Q_(n,t){return null==t?null:n[t]}function ose(n){n[18]=0}function yH(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const xi={lFrame:pse(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function rse(){return xi.bindingsEnabled}function bt(){return xi.lFrame.lView}function ks(){return xi.lFrame.tView}function Le(n){return xi.lFrame.contextLView=n,n[8]}function Ba(){let n=ase();for(;null!==n&&64===n.type;)n=n.parent;return n}function ase(){return xi.lFrame.currentTNode}function zf(n,t){const e=xi.lFrame;e.currentTNode=n,e.isParent=t}function _H(){return xi.lFrame.isParent}function vH(){xi.lFrame.isParent=!1}function HR(){return xi.isInCheckNoChangesMode}function GR(n){xi.isInCheckNoChangesMode=n}function Bc(){const n=xi.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Hf(){return xi.lFrame.bindingIndex}function W1(){return xi.lFrame.bindingIndex++}function Km(n){const t=xi.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function bBe(n,t){const e=xi.lFrame;e.bindingIndex=e.bindingRootIndex=n,bH(t)}function bH(n){xi.lFrame.currentDirectiveIndex=n}function CH(n){const t=xi.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function dse(){return xi.lFrame.currentQueryIndex}function xH(n){xi.lFrame.currentQueryIndex=n}function xBe(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function use(n,t,e){if(e&Hn.SkipSelf){let s=t,o=n;for(;!(s=s.parent,null!==s||e&Hn.Host||(s=xBe(o),null===s||(o=o[15],10&s.type))););if(null===s)return!1;t=s,n=o}const i=xi.lFrame=hse();return i.currentTNode=t,i.lView=n,!0}function jR(n){const t=hse(),e=n[1];xi.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function hse(){const n=xi.lFrame,t=null===n?null:n.child;return null===t?pse(n):t}function pse(n){const 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 null!==n&&(n.child=t),t}function fse(){const n=xi.lFrame;return xi.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const gse=fse;function $R(){const n=fse();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 Vc(){return xi.lFrame.selectedIndex}function J_(n){xi.lFrame.selectedIndex=n}function Ur(){const n=xi.lFrame;return gH(n.tView,n.selectedIndex)}function zc(){xi.lFrame.currentNamespace=tse}function UR(){xi.lFrame.currentNamespace=null}function WR(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class CE{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function YR(n,t,e){const i=$r(n);let s=0;for(;st){r=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let kH=!0;function ZR(n){const t=kH;return kH=n,t}let PBe=0;function wE(n,t){const e=MH(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,DH(i.data,n),DH(t,null),DH(i.blueprint,null));const s=QR(n,t),o=n.injectorIndex;if(vse(s)){const r=q1(s),a=X1(s,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[r+c]|l[r+c]}return t[o+8]=s,o}function DH(n,t){n.push(0,0,0,0,0,0,0,0,t)}function MH(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function QR(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,s=t;for(;null!==s;){const o=s[1],r=o.type;if(i=2===r?o.declTNode:1===r?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function JR(n,t,e){!function(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(mE)&&(i=e[mE]),null==i&&(i=e[mE]=PBe++);const s=255&i;t.data[n+(s>>5)]|=1<=0?255&t:BBe:t}(e);if("function"==typeof o){if(!use(t,n,i))return i&Hn.Host?xse(s,e,i):wse(t,e,i,s);try{const r=o(i);if(null!=r||i&Hn.Optional)return r;V0(e)}finally{gse()}}else if("number"==typeof o){let r=null,a=MH(n,t),l=-1,c=i&Hn.Host?t[16][6]:null;for((-1===a||i&Hn.SkipSelf)&&(l=-1===a?QR(n,t):t[a+8],-1!==l&&Dse(i,!1)?(r=t[1],a=q1(l),t=X1(l,t)):a=-1);-1!==a;){const d=t[1];if(kse(o,a,d.data)){const u=VBe(a,t,e,r,i,c);if(u!==Tse)return u}l=t[a+8],-1!==l&&Dse(i,t[1].data[a+8]===c)&&kse(o,a,t)?(r=d,a=q1(l),t=X1(l,t)):a=-1}}}return wse(t,e,i,s)}const Tse={};function BBe(){return new Y1(Ba(),bt())}function VBe(n,t,e,i,s,o){const r=t[1],a=r.data[n+8],d=eP(a,r,e,null==i?BR(a)&&kH:i!=r&&0!=(3&a.type),s&Hn.Host&&o===a);return null!==d?SE(t,r,d,a):Tse}function eP(n,t,e,i,s){const o=n.providerIndexes,r=t.data,a=1048575&o,l=n.directiveStart,d=o>>20,h=s?a+d:n.directiveEnd;for(let f=i?a:a+d;f=l&&m.type===e)return f}if(s){const f=r[l];if(f&&yp(f)&&f.type===e)return l}return null}function SE(n,t,e,i){let s=n[e];const o=t.data;if(function(n){return n instanceof CE}(s)){const r=s;r.resolving&&function(n,t){throw new Um("200",`Circular dependency in DI detected for ${n}`)}(dl(o[e]));const a=ZR(r.canSeeViewProviders);r.resolving=!0;const l=r.injectImpl?Bf(r.injectImpl):null;use(n,i,Hn.Default);try{s=n[e]=r.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function(n,t,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:o}=t.type.prototype;if(i){const r=Qie(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,r)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,s),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Bf(l),ZR(a),r.resolving=!1,gse()}}return s}function kse(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[Ym]||EH(t),i=Object.prototype;let s=Object.getPrototypeOf(n.prototype).constructor;for(;s&&s!==i;){const o=s[Ym]||EH(s);if(o&&o!==e)return o;s=Object.getPrototypeOf(s)}return o=>new o})}function EH(n){return N0(n)?()=>{const t=EH(zn(n));return t&&t()}:$0(n)}function Hc(n){return function(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let s=0;for(;s{const i=IH(t);function s(...o){if(this instanceof s)return i.apply(this,o),this;const r=new s(...o);return a.annotation=r,a;function a(l,c,d){const u=l.hasOwnProperty(Z1)?l[Z1]:Object.defineProperty(l,Z1,{value:[]})[Z1];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(r),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}function tv(n,t,e,i){return ye(()=>{const s=IH(t);function o(...r){if(this instanceof o)return s.apply(this,r),this;const a=new o(...r);return function(c,d){const u=c.constructor,h=u.hasOwnProperty(Q1)?u[Q1]:Object.defineProperty(u,Q1,{value:{}})[Q1];h[d]=h.hasOwnProperty(d)&&h[d]||[],h[d].unshift(a),i&&i(c,d,...r)}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class ot{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ue({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const jBe=new ot("AnalyzeForEntryComponents");class tP{}const fi=tv("ContentChildren",(n,t={})=>Object.assign({selector:n,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),tP),ct=tv("ContentChild",(n,t={})=>Object.assign({selector:n,first:!0,isViewQuery:!1,descendants:!0},t),tP),lc=tv("ViewChildren",(n,t={})=>Object.assign({selector:n,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),tP),at=tv("ViewChild",(n,t)=>Object.assign({selector:n,first:!0,isViewQuery:!0,descendants:!0},t),tP),J1=Function;function vh(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Gf(e,t):t(e))}function iP(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function W0(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function nv(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function(n,t,e,i){let s=n.length;if(s==t)n.push(e,i);else if(1===s)n.push(i,n[0]),n[0]=e;else{for(s--,n.push(n[s-1],n[s]);s>t;)n[s]=n[s-2],s--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function AH(n,t){const e=eT(n,t);if(e>=0)return n[1|e]}function eT(n,t){return function(n,t,e){let i=0,s=n.length>>e;for(;s!==i;){const o=i+(s-i>>1),r=n[o<t?s=o:i=o+1}return~(s< ");else if("object"==typeof t){let o=[];for(let r in t)if(t.hasOwnProperty(r)){let a=t[r];o.push(r+":"+("string"==typeof a?JSON.stringify(a):Vi(a)))}s=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${n.replace(JBe,"\n ")}`}("\n"+n.message,s,e,i),n.ngTokenPath=s,n[tT]=null,n}const Rn=IE(U0("Inject",n=>({token:n})),-1),gt=IE(U0("Optional"),8),sT=IE(U0("Self"),2),za=IE(U0("SkipSelf"),4),Md=IE(U0("Host"),1);let rP,aP;function rT(n){var t;return(null===(t=function(){if(void 0===rP&&(rP=null,no.trustedTypes))try{rP=no.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return rP}())||void 0===t?void 0:t.createHTML(n))||n}function Bse(n){var t;return(null===(t=function(){if(void 0===aP&&(aP=null,no.trustedTypes))try{aP=no.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return aP}())||void 0===t?void 0:t.createHTML(n))||n}class X0{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class h5e extends X0{getTypeName(){return"HTML"}}class p5e extends X0{getTypeName(){return"Style"}}class f5e extends X0{getTypeName(){return"Script"}}class g5e extends X0{getTypeName(){return"URL"}}class m5e extends X0{getTypeName(){return"ResourceURL"}}function hu(n){return n instanceof X0?n.changingThisBreaksApplicationSecurity:n}function jf(n,t){const e=Hse(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function Hse(n){return n instanceof X0&&n.getTypeName()||null}class x5e{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(rT(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class w5e{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=rT(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=rT(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0FE(t.trim())).join(", ")}function $f(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function OE(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const $se=$f("area,br,col,hr,img,wbr"),Use=$f("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wse=$f("rp,rt"),VH=OE($se,OE(Use,$f("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")),OE(Wse,$f("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")),OE(Wse,Use)),zH=$f("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),HH=$f("srcset"),qse=OE(zH,HH,$f("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$f("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")),D5e=$f("script,style,template");class M5e{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;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!VH.hasOwnProperty(e))return this.sanitizedSomething=!0,!D5e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let s=0;s"),!0}endElement(t){const e=t.nodeName.toLowerCase();VH.hasOwnProperty(e)&&!$se.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Xse(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const E5e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I5e=/([^\#-~ |!])/g;function Xse(n){return n.replace(/&/g,"&").replace(E5e,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(I5e,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let lP;function Yse(n,t){let e=null;try{lP=lP||function(n){const t=new w5e(n);return function(){try{return!!(new window.DOMParser).parseFromString(rT(""),"text/html")}catch(n){return!1}}()?new x5e(t):t}(n);let i=t?String(t):"";e=lP.getInertBodyElement(i);let s=5,o=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=o,o=e.innerHTML,e=lP.getInertBodyElement(i)}while(i!==o);return rT((new M5e).sanitizeChildren(GH(e)||e))}finally{if(e){const i=GH(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function GH(n){return"content"in n&&function(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ys=(()=>((ys=ys||{})[ys.NONE=0]="NONE",ys[ys.HTML=1]="HTML",ys[ys.STYLE=2]="STYLE",ys[ys.SCRIPT=3]="SCRIPT",ys[ys.URL=4]="URL",ys[ys.RESOURCE_URL=5]="RESOURCE_URL",ys))();function cP(n){const t=PE();return t?Bse(t.sanitize(ys.HTML,n)||""):jf(n,"HTML")?Bse(hu(n)):Yse(fH(),Ci(n))}function RE(n){const t=PE();return t?t.sanitize(ys.URL,n)||"":jf(n,"URL")?hu(n):FE(Ci(n))}function PE(){const n=bt();return n&&n[12]}const Qse="__ngContext__";function cc(n,t){n[Qse]=t}function $H(n){const t=function(n){return n[Qse]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function dP(n){return n.ngOriginalError}function q5e(n,...t){n.error(...t)}class bh{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),s=function(n){return n&&n.ngErrorLogger||q5e}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),i&&s(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?function(n){return n.ngDebugContext}(t)||this._findContext(dP(t)):null}_findOriginalError(t){let e=t&&dP(t);for(;e&&dP(e);)e=dP(e);return e||null}}const K5e=/^>|^->||--!>|)/;const aoe=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(no))();function Uf(n){return n instanceof Function?n():n}var pu=(()=>((pu=pu||{})[pu.Important=1]="Important",pu[pu.DashCase=2]="DashCase",pu))();function qH(n,t){return undefined(n,t)}function NE(n){const t=n[3];return mp(t)?t[3]:t}function XH(n){return hoe(n[13])}function YH(n){return hoe(n[4])}function hoe(n){for(;null!==n&&!mp(n);)n=n[4];return n}function lT(n,t,e,i,s){if(null!=i){let o,r=!1;mp(i)?o=i:Vf(i)&&(r=!0,i=i[0]);const a=Sa(i);0===n&&null!==e?null==s?_oe(t,e,a):Y0(t,e,a,s||null,!0):1===n&&null!==e?Y0(t,e,a,s||null,!0):2===n?Toe(t,a,r):3===n&&t.destroyNode(a),null!=o&&function(n,t,e,i,s){const o=e[7];o!==Sa(e)&&lT(t,n,i,o,s);for(let a=10;at.replace(Z5e,"\u200b$1\u200b"))}(t))}function ZH(n,t,e){return $r(n)?n.createElement(t,e):null===e?n.createElement(t):n.createElementNS(e,t)}function foe(n,t){const e=n[9],i=e.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,yH(s,-1)),e.splice(i,1)}function QH(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const s=i[17];null!==s&&s!==n&&foe(s,i),t>0&&(n[e-1][4]=i[4]);const o=W0(n,10+t);!function(n,t){BE(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const r=o[19];null!==r&&r.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function goe(n,t){if(!(256&t[2])){const e=t[11];$r(e)&&e.destroyNode&&BE(n,t,e,3,null,null),function(n){let t=n[13];if(!t)return JH(n[1],n);for(;t;){let e=null;if(Vf(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Vf(t)&&JH(t[1],t),t=t[3];null===t&&(t=n),Vf(t)&&JH(t[1],t),e=t&&t[4]}t=e}}(t)}}function JH(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[s=c]():i[s=-c].unsubscribe(),o+=2}else{const r=i[s=e[o+1]];e[o].call(r)}if(null!==i){for(let o=s+1;oo?"":s[u+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Moe(f,c,0)||2&i&&c!==h){if(_p(i))return!1;r=!0}}}}else{if(!r&&!_p(i)&&!_p(l))return!1;if(r&&_p(l))continue;r=!1,i=l|1&i}}return _p(i)||r}function _p(n){return 0==(1&n)}function xVe(n,t,e,i){if(null===t)return-1;let s=0;if(i||!e){let o=!1;for(;s-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?s+="."+r:4&i&&(s+=" "+r);else""!==s&&!_p(r)&&(t+=Foe(o,s),s=""),i=r,o=o||!_p(i);e++}return""!==s&&(t+=Foe(o,s)),t}const Ti={};function b(n){Ooe(ks(),bt(),Vc()+n,HR())}function Ooe(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&qR(t,o,e)}else{const o=n.preOrderHooks;null!==o&&XR(t,o,0,e)}J_(e)}function gP(n,t){return n<<17|t<<2}function vp(n){return n>>17&32767}function sG(n){return 2|n}function Zm(n){return(131068&n)>>2}function oG(n,t){return-131069&n|t<<2}function rG(n){return 1|n}function joe(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&Ooe(n,t,20,HR()),e(i,s)}finally{J_(o)}}function Uoe(n,t,e){if(cH(t)){const s=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,r)}}function Joe(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function ere(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function JVe(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&_G(e)}}function _G(n){for(let i=XH(n);null!==i;i=YH(i))for(let s=10;s0&&_G(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&_G(s)}}function r4e(n,t){const e=du(t,n),i=e[1];(function(n,t){for(let e=t.length;ePromise.resolve(null))();function ore(n){return n[7]||(n[7]=[])}function rre(n){return n.cleanup||(n.cleanup=[])}function are(n,t,e){return(null===n||yp(n))&&(e=function(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function lre(n,t){const e=n[9],i=e?e.get(bh,null):null;i&&i.handleError(t)}function cre(n,t,e,i,s){for(let o=0;othis.processProvider(a,t,e)),Gf([t],a=>this.processInjectorType(a,[],o)),this.records.set(hT,pT(void 0,this));const r=this.records.get(HE);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:Vi(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ME,i=Hn.Default){this.assertNotDestroyed();const s=nT(this),o=Bf(void 0);try{if(!(i&Hn.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function(n){return"function"==typeof n||"object"==typeof n&&n instanceof ot}(t)&&kd(t);a=l&&this.injectableDefInScope(l)?pT(SG(t),GE):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Hn.Self?ure():this.parent).get(t,e=i&Hn.Optional&&e===ME?null:e)}catch(r){if("NullInjectorError"===r.name){if((r[tT]=r[tT]||[]).unshift(Vi(t)),s)throw r;return Ose(r,t,"R3InjectorError",this.source)}throw r}finally{Bf(o),nT(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,s)=>t.push(Vi(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=zn(t)))return!1;let s=B1(t);const o=null==s&&t.ngModule||void 0,r=void 0===o?t:o,a=-1!==i.indexOf(r);if(void 0!==o&&(s=B1(o)),null==s)return!1;if(null!=s.imports&&!a){let d;i.push(r);try{Gf(s.imports,u=>{this.processInjectorType(u,e,i)&&(void 0===d&&(d=[]),d.push(u))})}finally{}if(void 0!==d)for(let u=0;uthis.processProvider(m,h,f||xo))}}this.injectorDefTypes.add(r);const l=$0(r)||(()=>new r);this.records.set(r,pT(l,GE));const c=s.providers;if(null!=c&&!a){const d=t;Gf(c,u=>this.processProvider(u,d,c))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,i){let s=fT(t=zn(t))?t:zn(t&&t.provide);const o=function(n,t,e){return fre(n)?pT(void 0,n.useValue):pT(pre(n),GE)}(t);if(fT(t)||!0!==t.multi)this.records.get(s);else{let r=this.records.get(s);r||(r=pT(void 0,GE,!0),r.factory=()=>q0(r.multi),this.records.set(s,r)),s=t,r.multi.push(t)}this.records.set(s,o)}hydrate(t,e){return e.value===GE&&(e.value=f4e,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=zn(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function SG(n){const t=kd(n),e=null!==t?t.factory:$0(n);if(null!==e)return e;if(n instanceof ot)throw new Error(`Token ${Vi(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function(n){const t=n.length;if(t>0){const i=nv(t,"?");throw new Error(`Can't resolve all parameters for ${Vi(n)}: (${i.join(", ")}).`)}const e=function(n){const t=n&&(n[Xm]||n[FR]);if(t){const e=function(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Error("unreachable")}function pre(n,t,e){let i;if(fT(n)){const s=zn(n);return $0(s)||SG(s)}if(fre(n))i=()=>zn(n.useValue);else if(function(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...q0(n.deps||[]));else if(function(n){return!(!n||!n.useExisting)}(n))i=()=>V(zn(n.useExisting));else{const s=zn(n&&(n.useClass||n.provide));if(!function(n){return!!n.deps}(n))return $0(s)||SG(s);i=()=>new s(...q0(n.deps))}return i}function pT(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function fre(n){return null!==n&&"object"==typeof n&&PH in n}function fT(n){return"function"==typeof n}const gre=function(n,t,e){return function(n,t=null,e=null,i){const s=hre(n,t,e,i);return s._resolveInjectorDefTypes(),s}({name:e},t,n,e)};class Jt{static create(t,e){return Array.isArray(t)?gre(t,e,""):gre(t.providers,t.parent,t.name||"")}}function N4e(n,t){WR($H(n)[1],Ba())}function N(n){let t=function(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let s;if(yp(n))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(e){i.push(s);const r=n;r.inputs=IG(n.inputs),r.declaredInputs=IG(n.declaredInputs),r.outputs=IG(n.outputs);const a=s.hostBindings;a&&H4e(n,a);const l=s.viewQuery,c=s.contentQueries;if(l&&V4e(n,l),c&&z4e(n,c),uE(n.inputs,s.inputs),uE(n.declaredInputs,s.declaredInputs),uE(n.outputs,s.outputs),yp(s)&&s.data.animation){const d=n.data;d.animation=(d.animation||[]).concat(s.data.animation)}}const o=s.features;if(o)for(let r=0;r=0;i--){const s=n[i];s.hostVars=t+=s.hostVars,s.hostAttrs=KR(s.hostAttrs,e=KR(e,s.hostAttrs))}}(i)}function IG(n){return n===z1?{}:n===xo?[]:n}function V4e(n,t){const e=n.viewQuery;n.viewQuery=e?(i,s)=>{t(i,s),e(i,s)}:t}function z4e(n,t){const e=n.contentQueries;n.contentQueries=e?(i,s,o)=>{t(i,s,o),e(i,s,o)}:t}function H4e(n,t){const e=n.hostBindings;n.hostBindings=e?(i,s)=>{t(i,s),e(i,s)}:t}Jt.THROW_IF_NOT_FOUND=ME,Jt.NULL=new dre,Jt.\u0275prov=ue({token:Jt,providedIn:"any",factory:()=>V(hT)}),Jt.__NG_ELEMENT_ID__=-1;let CP=null;function gT(){if(!CP){const n=no.Symbol;if(n&&n.iterator)CP=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Sa(z[i.index])):i.index;if($r(e)){let z=null;if(!a&&l&&(z=function(n,t,e,i){const s=n.cleanup;if(null!=s)for(let o=0;ol?a[l]:null}"string"==typeof r&&(o+=2)}return null}(n,t,s,i.index)),null!==z)(z.__ngLastListenerFn__||z).__ngNextListenerFn__=o,z.__ngLastListenerFn__=o,f=!1;else{o=NG(i,t,u,o,!1);const q=e.listen(D,s,o);h.push(o,q),d&&d.push(s,O,E,E+1)}}else o=NG(i,t,u,o,!0),D.addEventListener(s,o,r),h.push(o),d&&d.push(s,O,E,r)}else o=NG(i,t,u,o,!1);const m=i.outputs;let C;if(f&&null!==m&&(C=m[s])){const k=C.length;if(k)for(let D=0;D0;)t=t[15],n--;return t}(n,xi.lFrame.contextLView))[8]}(n)}function bze(n,t){let e=null;const i=function(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let s=0;s=0}const Ha={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function uae(n){return n.substring(Ha.key,Ha.keyEnd)}function hae(n,t){const e=Ha.textEnd;return e===t?-1:(t=Ha.keyEnd=function(n,t,e){for(;t32;)t++;return t}(n,Ha.key=t,e),kT(n,t,e))}function kT(n,t,e){for(;t=0;e=hae(t,e))uu(n,uae(t),!0)}function xp(n,t,e,i){const s=bt(),o=ks(),r=Km(2);o.firstUpdatePass&&_ae(o,n,r,i),t!==Ti&&dc(s,r,t)&&bae(o,o.data[Vc()],s,s[11],n,s[r+1]=function(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Vi(hu(n)))),n}(t,e),i,r)}function wp(n,t,e,i){const s=ks(),o=Km(2);s.firstUpdatePass&&_ae(s,null,o,i);const r=bt();if(e!==Ti&&dc(r,o,e)){const a=s.data[Vc()];if(xae(a,i)&&!yae(s,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=R1(l,e||"")),LG(s,a,r,e,i)}else!function(n,t,e,i,s,o,r,a){s===Ti&&(s=xo);let l=0,c=0,d=0=n.expandoStartIndex}function _ae(n,t,e,i){const s=n.data;if(null===s[e+1]){const o=s[Vc()],r=yae(n,e);xae(o,i)&&null===t&&!r&&(t=!1),t=function(n,t,e,i){const s=CH(n);let o=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(e=qE(e=VG(null,n,t,e,i),t.attrs,i),o=null);else{const r=t.directiveStylingLast;if(-1===r||n[r]!==s)if(e=VG(s,n,t,e,i),null===o){let l=function(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Zm(i))return n[vp(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=VG(null,n,t,l[1],i),l=qE(l,t.attrs,i),function(n,t,e,i){n[vp(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function(n,t,e){let i;const s=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else d=e;if(s)if(0!==l){const h=vp(n[a+1]);n[i+1]=gP(h,a),0!==h&&(n[h+1]=oG(n[h+1],i)),n[a+1]=function(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=gP(a,0),0!==a&&(n[a+1]=oG(n[a+1],i)),a=i;else n[i+1]=gP(l,0),0===a?a=i:n[l+1]=oG(n[l+1],i),l=i;c&&(n[i+1]=sG(n[i+1])),dae(n,d,i,!0),dae(n,d,i,!1),function(n,t,e,i,s){const o=s?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&eT(o,t)>=0&&(e[i+1]=rG(e[i+1]))}(t,d,n,i,o),r=gP(a,l),o?t.classBindings=r:t.styleBindings=r}(s,o,t,e,r,i)}}function VG(n,t,e,i,s){let o=null;const r=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[s],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=e[s+1];h===Ti&&(h=u?xo:void 0);let f=u?AH(h,i):d===i?h:void 0;if(c&&!DP(f)&&(f=AH(l,i)),DP(f)&&(a=f,r))return a;const m=n[s+1];s=r?vp(m):Zm(m)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=AH(l,i))}return a}function DP(n){return void 0!==n}function xae(n,t){return 0!=(n.flags&(t?16:32))}function H(n,t=""){const e=bt(),i=ks(),s=n+20,o=i.firstCreatePass?cT(i,s,1,t,null):i.data[s],r=e[s]=KH(e[11],t);pP(i,e,r,o),zf(o,!1)}function un(n){return _t("",n,""),un}function _t(n,t,e){const i=bt(),s=yT(i,n,t,e);return s!==Ti&&Jm(i,Vc(),s),_t}function ty(n,t,e,i,s){const o=bt(),r=function(n,t,e,i,s,o){const a=K0(n,Hf(),e,s);return Km(2),a?t+Ci(e)+i+Ci(s)+o:Ti}(o,n,t,e,i,s);return r!==Ti&&Jm(o,Vc(),r),ty}function zG(n,t,e,i,s,o,r,a,l,c,d){const u=bt(),h=function(n,t,e,i,s,o,r,a,l,c,d,u){const h=Hf();let f=xh(n,h,e,s,r,l);return f=dc(n,h+4,d)||f,Km(5),f?t+Ci(e)+i+Ci(s)+o+Ci(r)+a+Ci(l)+c+Ci(d)+u:Ti}(u,n,t,e,i,s,o,r,a,l,c,d);return h!==Ti&&Jm(u,Vc(),h),zG}function DT(n,t,e){wp(uu,Yf,yT(bt(),n,t,e),!0)}function Kf(n,t,e){const i=bt();return dc(i,W1(),t)&&fu(ks(),Ur(),i,n,t,i[11],e,!0),Kf}function XE(n,t,e){const i=bt();if(dc(i,W1(),t)){const o=ks(),r=Ur();fu(o,r,i,n,t,are(CH(o.data),r,i),e,!0)}return XE}const Z0=void 0;var n8e=["en",[["a","p"],["AM","PM"],Z0],[["AM","PM"],Z0,Z0],[["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"]],Z0,[["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"]],Z0,[["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}",Z0,"{1} 'at' {0}",Z0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(n){const t=Math.floor(Math.abs(n)),e=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}];let MT={};function Bae(n){return function(n){const t=function(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=Vae(t);if(e)return e;const i=t.split("-")[0];if(e=Vae(i),e)return e;if("en"===i)return n8e;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[tn.PluralCase]}function Vae(n){return n in MT||(MT[n]=no.ng&&no.ng.common&&no.ng.common.locales&&no.ng.common.locales[n]),MT[n]}var tn=(()=>((tn=tn||{})[tn.LocaleId=0]="LocaleId",tn[tn.DayPeriodsFormat=1]="DayPeriodsFormat",tn[tn.DayPeriodsStandalone=2]="DayPeriodsStandalone",tn[tn.DaysFormat=3]="DaysFormat",tn[tn.DaysStandalone=4]="DaysStandalone",tn[tn.MonthsFormat=5]="MonthsFormat",tn[tn.MonthsStandalone=6]="MonthsStandalone",tn[tn.Eras=7]="Eras",tn[tn.FirstDayOfWeek=8]="FirstDayOfWeek",tn[tn.WeekendRange=9]="WeekendRange",tn[tn.DateFormat=10]="DateFormat",tn[tn.TimeFormat=11]="TimeFormat",tn[tn.DateTimeFormat=12]="DateTimeFormat",tn[tn.NumberSymbols=13]="NumberSymbols",tn[tn.NumberFormats=14]="NumberFormats",tn[tn.CurrencyCode=15]="CurrencyCode",tn[tn.CurrencySymbol=16]="CurrencySymbol",tn[tn.CurrencyName=17]="CurrencyName",tn[tn.Currencies=18]="Currencies",tn[tn.Directionality=19]="Directionality",tn[tn.PluralCase=20]="PluralCase",tn[tn.ExtraData=21]="ExtraData",tn))();const s8e=["zero","one","two","few","many"],MP="en-US",EP={marker:"element"},IP={marker:"ICU"};let zae=MP;function HG(n){xr(n,"Expected localeId to be defined"),"string"==typeof n&&(zae=n.toLowerCase().replace(/_/g,"-"))}function YE(n,t){const e=n.data[t];return null===e||"string"==typeof e?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function AP(n,t){const e=t[n.currentCaseLViewIndex];return null===e?e:e<0?~e:e}function Uae(n){return n>>>17}function Wae(n){return(131070&n)>>>1}let KE=0,ZE=0;function Xae(n,t,e,i){const s=e[11];let r,o=null;for(let a=0;a>>1,e),null,null,f,m,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case IP:const c=t[++a],d=t[++a];null===e[d]&&cc(e[d]=oVe(s,c),e);break;case EP:const u=t[++a],h=t[++a];null===e[h]&&cc(e[h]=ZH(s,u,null),e)}}}function Yae(n,t,e,i,s){for(let o=0;o>>2;switch(3&d){case 1:const h=e[++c],f=e[++c],m=n.data[u];"string"==typeof m?yG(t[11],t[u],null,m,h,l,f):fu(n,m,t,h,l,t[11],f,!1);break;case 0:const C=t[u];null!==C&&poe(t[11],C,l);break;case 2:_8e(n,YE(n,u),t,l);break;case 3:Kae(n,YE(n,u),i,t)}}}}else{const l=e[o+1];if(l>0&&3==(3&l)){const d=YE(n,l>>>2);t[d.currentCaseLViewIndex]<0&&Kae(n,d,i,t)}}o+=a}}function Kae(n,t,e,i){let s=i[t.currentCaseLViewIndex];if(null!==s){let o=KE;s<0&&(s=i[t.currentCaseLViewIndex]=~s,o=-1),Yae(n,i,t.update[s],e,o)}}function _8e(n,t,e,i){const s=function(n,t){let e=n.cases.indexOf(t);if(-1===e)switch(n.type){case 1:{const i=function(n,t){const e=Bae(t)(parseInt(n,10)),i=s8e[e];return void 0!==i?i:"other"}(t,zae);e=n.cases.indexOf(i),-1===e&&"other"!==i&&(e=n.cases.indexOf("other"));break}case 0:e=n.cases.indexOf("other")}return-1===e?null:e}(t,i);if(AP(t,e)!==s&&(Zae(n,t,e),e[t.currentCaseLViewIndex]=null===s?null:~s,null!==s)){const r=e[t.anchorIdx];r&&Xae(n,t.create[s],e,r)}}function Zae(n,t,e){let i=AP(t,e);if(null!==i){const s=t.remove[i];for(let o=0;o0){const a=zR(r,e);null!==a&&Toe(e[11],a)}else Zae(n,YE(n,~r),e)}}}const FP=/\ufffd(\d+):?\d*\ufffd/gi,C8e=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function ET(n,t,e,i,s,o){const r=n.length,a=r+1;n.push(null,null);const l=r+2,c=t.split(FP);let d=0;for(let u=0;u>20;if(fT(n)||!n.multi){const f=new CE(l,s,g),m=qG(a,t,s?d:d+h,u);-1===m?(JR(wE(c,r),o,a),WG(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(f),r.push(f)):(e[m]=f,r[m]=f)}else{const f=qG(a,t,d+h,u),m=qG(a,t,d,d+h),C=f>=0&&e[f],k=m>=0&&e[m];if(s&&!k||!s&&!C){JR(wE(c,r),o,a);const D=function(n,t,e,i,s){const o=new CE(n,e,g);return o.multi=[],o.index=t,o.componentProviders=0,ule(o,s,i&&!e),o}(s?Z8e:K8e,e.length,s,i,l);!s&&k&&(e[m].providerFactory=D),WG(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(D),r.push(D)}else WG(o,n,f>-1?f:m,ule(e[s?m:f],l,!s&&i));!s&&i&&k&&e[m].componentProviders++}}}function WG(n,t,e,i){const s=fT(t);if(s||function(n){return!!n.useClass}(t)){const r=(t.useClass||t).prototype.ngOnDestroy;if(r){const a=n.destroyHooks||(n.destroyHooks=[]);if(!s&&t.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,r]):a[l+1].push(i,r)}else a.push(e,r)}}}function ule(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function qG(n,t,e,i){for(let s=e;s{e.providersResolver=(i,s)=>function(n,t,e){const i=ks();if(i.firstCreatePass){const s=yp(n);UG(e,i.data,i.blueprint,s,!0),UG(t,i.data,i.blueprint,s,!1)}}(i,s?s(n):n,t)}}class hle{}const fle="ngComponent";class e6e{resolveComponentFactory(t){throw function(n){const t=Error(`No component factory found for ${Vi(n)}. Did you add it to @NgModule.entryComponents?`);return t[fle]=n,t}(t)}}class qr{}function OP(...n){}function IT(n,t){return new $(_h(n,t))}qr.NULL=new e6e;const i6e=function(){return IT(Ba(),bt())};let $=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=i6e,n})();function gle(n){return n instanceof $?n.nativeElement:n}class Q0{}let Ie=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>o6e(),n})();const o6e=function(){const n=bt(),e=du(Ba().index,n);return function(n){return n[11]}(Vf(e)?e:n)};let KG=(()=>{class n{}return n.\u0275prov=ue({token:n,providedIn:"root",factory:()=>null}),n})();class ny{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const mle=new ny("12.2.1");class yle{constructor(){}supports(t){return $E(t)}create(t){return new c6e(t)}}const l6e=(n,t)=>t;class c6e{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||l6e}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,s=0,o=null;for(;e||i;){const r=!i||e&&e.currentIndex{r=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,r)?(i&&(e=this._verifyReinsertion(e,a,r,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,r,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,s){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,s)):t=this._addAfter(new d6e(e,i),o,s),t}_verifyReinsertion(t,e,i,s){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,o=t._nextRemoved;return null===s?this._removalsHead=o:s._nextRemoved=o,null===o?this._removalsTail=s:o._prevRemoved=s,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._nextAdded=t,t}_insertAfter(t,e,i){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new _le),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _le),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class d6e{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class u6e{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class _le{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new u6e,this.map.set(e,i)),i.add(t)}get(t,e){const s=this.map.get(t);return s?s.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function vle(n,t,e){const i=n.previousIndex;if(null===i)return i;let s=0;return e&&i{if(e&&e.key===s)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(s,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;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){const 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)){const s=this._records.get(t);this._maybeAddToChanges(s,e);const o=s._prev,r=s._next;return o&&(o._next=r),r&&(r._prev=o),s._next=null,s._prev=null,s}const i=new p6e(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;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class p6e{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 Cle(){return new Ed([new yle])}let Ed=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Cle()),deps:[[n,new za,new gt]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'`)}}return n.\u0275prov=ue({token:n,providedIn:"root",factory:Cle}),n})();function xle(){return new Zf([new ble])}let Zf=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const s=i.factories.slice();e=e.concat(s)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||xle()),deps:[[n,new za,new gt]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return n.\u0275prov=ue({token:n,providedIn:"root",factory:xle}),n})();function RP(n,t,e,i,s=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&i.push(Sa(o)),mp(o))for(let a=10;a-1&&(QH(t,i),W0(e,i))}this._attachedToViewContainer=!1}goe(this._lView[1],this._lView)}onDestroy(t){Yoe(this._lView[1],this._lView,null,t)}markForCheck(){vG(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){CG(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(n,t,e){GR(!0);try{CG(n,t,e)}finally{GR(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(n,t){BE(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class g6e extends JE{constructor(t){super(t),this._view=t}detectChanges(){sre(this._view)}checkNoChanges(){!function(n){GR(!0);try{sre(n)}finally{GR(!1)}}(this._view)}get context(){return null}}const y6e=function(n){return function(n,t,e){if(BR(n)&&!e){const i=du(n.index,t);return new JE(i,i)}return 47&n.type?new JE(t[16],t):null}(Ba(),bt(),16==(16&n))};let Be=(()=>{class n{}return n.__NG_ELEMENT_ID__=y6e,n})();const b6e=[new ble],x6e=new Ed([new yle]),w6e=new Zf(b6e),T6e=function(){return PP(Ba(),bt())};let ve=(()=>{class n{}return n.__NG_ELEMENT_ID__=T6e,n})();const k6e=ve,D6e=class extends k6e{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=VE(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(e)),zE(e,i,t),new JE(i)}};function PP(n,t){return 4&n.type?new D6e(t,n,IT(n,t)):null}class Qf{}class wle{}const I6e=function(){return kle(Ba(),bt())};let Gt=(()=>{class n{}return n.__NG_ELEMENT_ID__=I6e,n})();const F6e=Gt,Sle=class extends F6e{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return IT(this._hostTNode,this._hostLView)}get injector(){return new Y1(this._hostTNode,this._hostLView)}get parentInjector(){const t=QR(this._hostTNode,this._hostLView);if(vse(t)){const e=X1(t,this._hostLView),i=q1(t);return new Y1(e[1].data[i+8],e)}return new Y1(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Tle(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const s=t.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(t,e,i,s,o){const r=i||this.parentInjector;if(!o&&null==t.ngModule&&r){const l=r.get(Qf,null);l&&(o=l)}const a=t.create(r,s,void 0,o);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,s=i[1];if(function(n){return mp(n[3])}(i)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const u=i[3],h=new Sle(u,u[6],u[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),r=this._lContainer;!function(n,t,e,i){const s=10+i,o=e.length;i>0&&(e[s-1][4]=t),iaoe});class Xle extends hle{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function(n){return n.map(DVe).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return qle(this.componentDef.inputs)}get outputs(){return qle(this.componentDef.outputs)}create(t,e,i,s){const o=(s=s||this.ngModule)?function(n,t){return{get:(e,i,s)=>{const o=n.get(e,RT,s);return o!==RT||i===RT?o:t.get(e,i,s)}}}(t,s.injector):t,r=o.get(Q0,ise),a=o.get(KG,null),l=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=i?function(n,t,e){if($r(n))return n.selectRootElement(t,e===On.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):ZH(r.createRenderer(null,this.componentDef),c,function(n){const t=n.toLowerCase();return"svg"===t?tse:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h=function(n,t){return{components:[],scheduler:n||aoe,clean:u4e,playerHandler:t||null,flags:0}}(),f=_P(0,null,null,1,0,null,null,null,null,null),m=VE(null,f,h,u,null,null,r,l,a,o);let C,k;jR(m);try{const D=function(n,t,e,i,s,o){const r=e[1];e[20]=n;const l=cT(r,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(bP(l,c,!0),null!==n&&(YR(s,n,c),null!==l.classes&&iG(s,n,l.classes),null!==l.styles&&Doe(s,n,l.styles)));const d=i.createRenderer(n,t),u=VE(e,Woe(t),null,t.onPush?64:16,e[20],l,i,d,o||null,null);return r.firstCreatePass&&(JR(wE(l,e),r,t.type),ere(r,l),tre(l,e.length,1)),vP(e,u),e[20]=u}(d,this.componentDef,m,r,l);if(d)if(i)YR(l,d,["ng-version",mle.full]);else{const{attrs:E,classes:O}=function(n){const t=[],e=[];let i=1,s=2;for(;i0&&iG(l,d,O.join(" "))}if(k=gH(f,20),void 0!==e){const E=k.projection=[];for(let O=0;Ol(r,t)),t.contentQueries){const l=Ba();t.contentQueries(1,r,l.directiveStart)}const a=Ba();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(J_(a.index),Qoe(e[1],a,0,a.directiveStart,a.directiveEnd,t),Joe(t,r)),r}(D,this.componentDef,m,h,[N4e]),zE(f,m,null)}finally{$R()}return new AHe(this.componentType,C,IT(k,m),m,k)}}class AHe extends class{}{constructor(t,e,i,s,o){super(),this.location=i,this._rootLView=s,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new g6e(s),this.componentType=t}get injector(){return new Y1(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const PT=new Map;class RHe extends Qf{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wle(this);const i=gh(t),s=function(n){return n[q3e]||null}(t);s&&HG(s),this._bootstrapComponents=Uf(i.bootstrap),this._r3Injector=hre(t,e,[{provide:Qf,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],Vi(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Jt.THROW_IF_NOT_FOUND,i=Hn.Default){return t===Jt||t===Qf||t===hT?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dj extends wle{constructor(t){super(),this.moduleType=t,null!==gh(t)&&function(n){const t=new Set;!function e(i){const s=gh(i,!0),o=s.id;null!==o&&(function(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${Vi(t)} vs ${Vi(t.name)}`)}(o,PT.get(o),i),PT.set(o,i));const r=Uf(s.imports);for(const a of r)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new RHe(this.moduleType,t)}}function si(n,t,e){const i=Bc()+n,s=bt();return s[i]===Ti?qf(s,i,e?t.call(e):t()):UE(s,i)}function Yt(n,t,e,i){return Jle(bt(),Bc(),n,t,e,i)}function di(n,t,e,i,s){return function(n,t,e,i,s,o,r){const a=t+e;return K0(n,a,s,o)?qf(n,a+2,r?i.call(r,s,o):i(s,o)):lI(n,a+2)}(bt(),Bc(),n,t,e,i,s)}function pc(n,t,e,i,s,o){return tce(bt(),Bc(),n,t,e,i,s,o)}function kp(n,t,e,i,s,o,r){return function(n,t,e,i,s,o,r,a,l){const c=t+e;return xh(n,c,s,o,r,a)?qf(n,c+4,l?i.call(l,s,o,r,a):i(s,o,r,a)):lI(n,c+4)}(bt(),Bc(),n,t,e,i,s,o,r)}function aI(n,t,e,i,s,o,r,a,l){const c=Bc()+n,d=bt(),u=xh(d,c,e,i,s,o);return K0(d,c+4,r,a)||u?qf(d,c+6,l?t.call(l,e,i,s,o,r,a):t(e,i,s,o,r,a)):UE(d,c+6)}function uj(n,t,e,i,s,o,r,a,l,c){const d=Bc()+n,u=bt();let h=xh(u,d,e,i,s,o);return xP(u,d+4,r,a,l)||h?qf(u,d+7,c?t.call(c,e,i,s,o,r,a,l):t(e,i,s,o,r,a,l)):UE(u,d+7)}function lI(n,t){const e=n[t];return e===Ti?void 0:e}function Jle(n,t,e,i,s,o){const r=t+e;return dc(n,r,s)?qf(n,r+1,o?i.call(o,s):i(s)):lI(n,r+1)}function tce(n,t,e,i,s,o,r,a){const l=t+e;return xP(n,l,s,o,r)?qf(n,l+3,a?i.call(a,s,o,r):i(s,o,r)):lI(n,l+3)}function gi(n,t){const e=ks();let i;const s=n+20;e.firstCreatePass?(i=function(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}throw new Um("302",`The pipe '${n}' could not be found!`)}(t,e.pipeRegistry),e.data[s]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,i.onDestroy)):i=e.data[s];const o=i.factory||(i.factory=$0(i.type)),r=Bf(g);try{const a=ZR(!1),l=o();return ZR(a),function(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,bt(),s,l),l}finally{Bf(r)}}function Mi(n,t,e){const i=n+20,s=bt(),o=U1(s,i);return dI(s,cI(s,i)?Jle(s,Bc(),t,o.transform,e,o):o.transform(e))}function zP(n,t,e,i,s){const o=n+20,r=bt(),a=U1(r,o);return dI(r,cI(r,o)?tce(r,Bc(),t,a.transform,e,i,s,a):a.transform(e,i,s))}function cI(n,t){return n[1].data[t].pure}function dI(n,t){return Cp.isWrapped(t)&&(t=Cp.unwrap(t),n[Hf()]=Ti),t}function hj(n){return t=>{setTimeout(n,void 0,t)}}const S=class extends Z{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var s,o,r;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const u=t;a=null===(s=u.next)||void 0===s?void 0:s.bind(u),l=null===(o=u.error)||void 0===o?void 0:o.bind(u),c=null===(r=u.complete)||void 0===r?void 0:r.bind(u)}this.__isAsync&&(l=hj(l),a&&(a=hj(a)),c&&(c=hj(c)));const d=super.subscribe({next:a,error:l,complete:c});return t instanceof Je&&t.add(d),d}};function HHe(){return this._results[gT()]()}class wt{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=gT(),i=wt.prototype;i[e]||(i[e]=HHe)}get changes(){return this._changes||(this._changes=new S)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const s=vh(t);(this._changesDetected=!function(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i0)i.push(r[a/2]);else{const c=o[a+1],d=t[-l];for(let u=10;u({bindingPropertyName:n})),Q=tv("Output",n=>({bindingPropertyName:n})),G=tv("HostBinding",n=>({hostPropertyName:n})),Zn=tv("HostListener",(n,t)=>({eventName:n,args:t})),hI=new ot("Application Initializer");let NT=(()=>{class n{constructor(e){this.appInits=e,this.resolve=OP,this.reject=OP,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{o.subscribe({complete:a,error:l})});e.push(r)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(V(hI,8))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const pI=new ot("AppId"),xGe={provide:pI,useFactory:function(){return`${wj()}${wj()}${wj()}`},deps:[]};function wj(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kce=new ot("Platform Initializer"),Xr=new ot("Platform ID"),jP=new ot("appBootstrapListener");let $P=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const ra=new ot("LocaleId"),Dce=new ot("DefaultCurrencyCode");class SGe{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Sj=function(n){return new dj(n)},TGe=Sj,kGe=function(n){return Promise.resolve(Sj(n))},Mce=function(n){const t=Sj(n),i=Uf(gh(n).declarations).reduce((s,o)=>{const r=Nc(o);return r&&s.push(new Xle(r)),s},[]);return new SGe(t,i)},DGe=Mce,MGe=function(n){return Promise.resolve(Mce(n))};let tC=(()=>{class n{constructor(){this.compileModuleSync=TGe,this.compileModuleAsync=kGe,this.compileModuleAndAllComponentsSync=DGe,this.compileModuleAndAllComponentsAsync=MGe}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const Ece=new ot("compilerOptions"),IGe=(()=>Promise.resolve(0))();function Tj(n){"undefined"==typeof Zone?IGe.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ce{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new S(!1),this.onMicrotaskEmpty=new S(!1),this.onStable=new S(!1),this.onError=new S(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let n=no.requestAnimationFrame,t=no.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(n){const t=()=>{!function(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(no,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Dj(n),n.isCheckStableRunning=!0,kj(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Dj(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,o,r,a)=>{try{return Ice(n),e.invokeTask(s,o,r,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Ace(n)}},onInvoke:(e,i,s,o,r,a,l)=>{try{return Ice(n),e.invoke(s,o,r,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Ace(n)}},onHasTask:(e,i,s,o)=>{e.hasTask(s,o),i===s&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Dj(n),kj(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,s,o)=>(e.handleError(s,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ce.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ce.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,s){const o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+s,t,FGe,OP,OP);try{return o.runTask(r,e,i)}finally{o.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const FGe={};function kj(n){if(0==n._nesting&&!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 Dj(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Ice(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Ace(n){n._nesting--,kj(n)}class PGe{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new S,this.onMicrotaskEmpty=new S,this.onStable=new S,this.onError=new S}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,s){return t.apply(e,i)}}let Mj=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ce.assertNotInAngularZone(),Tj(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Tj(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:s})}whenStable(e,i,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(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return n.\u0275fac=function(e){return new(e||n)(V(ce))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),Fce=(()=>{class n{constructor(){this._applications=new Map,Ej.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Ej.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class LGe{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Ej=new LGe,Oce=!0,Rce=!1;function En(){return Rce=!0,Oce}let Dp;const Pce=new ot("AllowMultipleToken");class Ij{constructor(t,e){this.name=t,this.token=e}}function Lce(n,t,e=[]){const i=`Platform: ${t}`,s=new ot(i);return(o=[])=>{let r=Aj();if(!r||r.injector.get(Pce,!1))if(n)n(e.concat(o).concat({provide:s,useValue:!0}));else{const a=e.concat(o).concat({provide:s,useValue:!0},{provide:HE,useValue:"platform"});!function(n){if(Dp&&!Dp.destroyed&&!Dp.injector.get(Pce,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Dp=n.get(Nce);const t=n.get(kce,null);t&&t.forEach(e=>e())}(Jt.create({providers:a,name:i}))}return function(n){const t=Aj();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Aj(){return Dp&&!Dp.destroyed?Dp:null}let Nce=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function(n,t){let e;return e="noop"===n?new PGe:("zone.js"===n?void 0:n)||new ce({enableLongStackTrace:En(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:ce,useValue:a}];return a.run(()=>{const c=Jt.create({providers:l,parent:this.injector,name:e.moduleType.name}),d=e.create(c),u=d.injector.get(bh,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{u.handleError(f)}});d.onDestroy(()=>{Fj(this._modules,d),h.unsubscribe()})}),function(n,t,e){try{const i=e();return WE(i)?i.catch(s=>{throw t.runOutsideAngular(()=>n.handleError(s)),s}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(u,a,()=>{const h=d.injector.get(NT);return h.runInitializers(),h.donePromise.then(()=>(HG(d.injector.get(ra,MP)||MP),this._moduleDoBootstrap(d),d))})})}bootstrapModule(e,i=[]){const s=Bce({},i);return function(n,t,e){const i=new dj(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(e){const i=e.injector.get(Jf);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${Vi(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(V(Jt))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();function Bce(n,t){return Array.isArray(t)?t.reduce(Bce,n):Object.assign(Object.assign({},n),t)}let Jf=(()=>{class n{constructor(e,i,s,o,r){this._zone=e,this._injector=i,this._exceptionHandler=s,this._componentFactoryResolver=o,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new an(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new an(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{ce.assertNotInAngularZone(),Tj(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ce.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),u.unsubscribe()}});this.isStable=ii(a,l.pipe(O1()))}bootstrap(e,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let s;s=e instanceof hle?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(s.componentType);const o=function(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Qf),a=s.create(Jt.NULL,[],i||s.selector,o),l=a.location.nativeElement,c=a.injector.get(Mj,null),d=c&&a.injector.get(Fce);return c&&d&&d.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Fj(this.components,a),d&&d.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Fj(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(jP,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(V(ce),V(Jt),V(bh),V(qr),V(NT))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();function Fj(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}class WP{}class ZGe{}const QGe={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let JGe=(()=>{class n{constructor(e,i){this._compiler=e,this._config=i||QGe}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[i,s]=e.split("#");return void 0===s&&(s="default"),Pt(255)(i).then(o=>o[s]).then(o=>Gce(o,i,s)).then(o=>this._compiler.compileModuleAsync(o))}loadFactory(e){let[i,s]=e.split("#"),o="NgFactory";return void 0===s&&(s="default",o=""),Pt(255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(r=>r[s+o]).then(r=>Gce(r,i,s))}}return n.\u0275fac=function(e){return new(e||n)(V(tC),V(ZGe,8))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();function Gce(n,t,e){if(!n)throw new Error(`Cannot find '${e}' in '${t}'`);return n}const cje=Lce(null,"core",[{provide:Xr,useValue:"unknown"},{provide:Nce,deps:[Jt]},{provide:Fce,deps:[]},{provide:$P,deps:[]}]),fje=[{provide:Jf,useClass:Jf,deps:[ce,Jt,bh,qr,NT]},{provide:MHe,deps:[ce],useFactory:function(n){let t=[];return n.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:NT,useClass:NT,deps:[[new gt,hI]]},{provide:tC,useClass:tC,deps:[]},xGe,{provide:Ed,useFactory:function(){return x6e},deps:[]},{provide:Zf,useFactory:function(){return w6e},deps:[]},{provide:ra,useFactory:function(n){return HG(n=n||"undefined"!=typeof $localize&&$localize.locale||MP),n},deps:[[new Rn(ra),new gt,new za]]},{provide:Dce,useValue:"USD"}];let mje=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(V(Jf))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:fje}),n})(),nL=null;function eg(){return nL}const $t=new ot("DocumentToken");let sC=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({factory:g7e,token:n,providedIn:"platform"}),n})();function g7e(){return V(hde)}const m7e=new ot("Location Initialized");let hde=(()=>{class n extends sC{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return eg().getBaseHref(this._doc)}onPopState(e){const i=eg().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=eg().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,s){pde()?this._history.pushState(e,i,s):this.location.hash=s}replaceState(e,i,s){pde()?this._history.replaceState(e,i,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({factory:y7e,token:n,providedIn:"platform"}),n})();function pde(){return!!window.history.pushState}function y7e(){return new hde(V($t))}function qj(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function fde(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function sy(n){return n&&"?"!==n[0]?"?"+n:n}let zT=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({factory:_7e,token:n,providedIn:"root"}),n})();function _7e(n){const t=V($t).location;return new gde(V(sC),t&&t.origin||"")}const Xj=new ot("appBaseHref");let gde=(()=>{class n extends zT{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return qj(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+sy(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${i}${s}`:i}pushState(e,i,s,o){const r=this.prepareExternalUrl(s+sy(o));this._platformLocation.pushState(e,i,r)}replaceState(e,i,s,o){const r=this.prepareExternalUrl(s+sy(o));this._platformLocation.replaceState(e,i,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(V(sC),V(Xj,8))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),v7e=(()=>{class n extends zT{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=qj(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,s,o){let r=this.prepareExternalUrl(s+sy(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,i,r)}replaceState(e,i,s,o){let r=this.prepareExternalUrl(s+sy(o));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(V(sC),V(Xj,8))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),HT=(()=>{class n{constructor(e,i){this._subject=new S,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=fde(mde(s)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+sy(i))}normalize(e){return n.stripTrailingSlash(function(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,mde(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",s=null){this._platformStrategy.pushState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+sy(i)),s)}replaceState(e,i="",s=null){this._platformStrategy.replaceState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+sy(i)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformStrategy).historyGo)||void 0===s||s.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(s=>s(e,i))}subscribe(e,i,s){return this._subject.subscribe({next:e,error:i,complete:s})}}return n.\u0275fac=function(e){return new(e||n)(V(zT),V(sC))},n.normalizeQueryParams=sy,n.joinWithSlash=qj,n.stripTrailingSlash=fde,n.\u0275prov=ue({factory:b7e,token:n,providedIn:"root"}),n})();function b7e(){return new HT(V(zT),V(sC))}function mde(n){return n.replace(/\/index.html$/,"")}var Ta=(()=>((Ta=Ta||{})[Ta.Zero=0]="Zero",Ta[Ta.One=1]="One",Ta[Ta.Two=2]="Two",Ta[Ta.Few=3]="Few",Ta[Ta.Many=4]="Many",Ta[Ta.Other=5]="Other",Ta))();const M7e=Bae;class hL{}let i$e=(()=>{class n extends hL{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(M7e(i||this.locale)(e)){case Ta.Zero:return"zero";case Ta.One:return"one";case Ta.Two:return"two";case Ta.Few:return"few";case Ta.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(V(ra))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();function Tde(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[s,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===t)return decodeURIComponent(o)}return null}let Un=(()=>{class n{constructor(e,i,s,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=s,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(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&&($E(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Vi(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{i?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return n.\u0275fac=function(e){return new(e||n)(g(Ed),g(Zf),g($),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class o$e{constructor(t,e,i,s){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Wn=(()=>{class n{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((s,o,r)=>{if(null==s.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new o$e(null,this._ngForOf,-1,-1),null===r?void 0:r),l=new kde(s,a);i.push(l)}else if(null==r)this._viewContainer.remove(null===o?void 0:o);else if(null!==o){const a=this._viewContainer.get(o);this._viewContainer.move(a,r);const l=new kde(s,a);i.push(l)}});for(let s=0;s{this._viewContainer.get(s.currentIndex).context.$implicit=s.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Gt),g(ve),g(Ed))},n.\u0275dir=R({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();class kde{constructor(t,e){this.record=t,this.view=e}}let pt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new a$e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Dde("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Dde("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Gt),g(ve))},n.\u0275dir=R({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class a$e{constructor(){this.$implicit=null,this.ngIf=null}}function Dde(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Vi(t)}'.`)}class i7{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Dh=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,s){this.ngSwitch=s,s._addCase(),this._view=new i7(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(g(Gt),g(ve),g(Dh,9))},n.\u0275dir=R({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),pL=(()=>{class n{constructor(e,i,s){s._addDefault(new i7(e,i))}}return n.\u0275fac=function(e){return new(e||n)(g(Gt),g(ve),g(Dh,9))},n.\u0275dir=R({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),zo=(()=>{class n{constructor(e,i,s){this._ngEl=e,this._differs=i,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[s,o]=e.split(".");null!=(i=null!=i&&o?`${i}${o}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,s,i):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Zf),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),zs=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(g(Gt))},n.\u0275dir=R({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[st]}),n})();class c$e{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class d$e{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const u$e=new d$e,h$e=new c$e;let Hl=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(WE(e))return u$e;if(Jre(e))return h$e;throw function(n,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Vi(n)}'`)}(n,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(Be,16))},n.\u0275pipe=zl({name:"async",type:n,pure:!1}),n})(),Ut=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[{provide:hL,useClass:i$e}]}),n})();function oC(n){return"browser"===n}function ng(n){return"server"===n}let Ade=(()=>{class n{}return n.\u0275prov=ue({token:n,providedIn:"root",factory:()=>new A$e(V($t),window)}),n})();class A$e{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let s=i.currentNode;for(;s;){const o=s.shadowRoot;if(o){const r=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(r)return r}s=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],s-o[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Fde(this.window.history)||Fde(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Fde(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class Ode{}class r7 extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(n){nL||(nL=n)}(new r7)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(bI=bI||document.querySelector("base"),bI?bI.getAttribute("href"):null);return null==e?null:function(n){fL=fL||document.createElement("a"),fL.setAttribute("href",n);const t=fL.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){bI=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Tde(document.cookie,t)}}let fL,bI=null;const Rde=new ot("TRANSITION_ID"),N$e=[{provide:hI,useFactory:function(n,t,e){return()=>{e.get(NT).donePromise.then(()=>{const i=eg();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(o=>o.getAttribute("ng-transition")===n).forEach(o=>i.remove(o))})}},deps:[Rde,$t,Jt],multi:!0}];class a7{static init(){!function(n){Ej=n}(new a7)}addToWindow(t){no.getAngularTestability=(i,s=!0)=>{const o=t.findTestabilityInTree(i,s);if(null==o)throw new Error("Could not find testability for element.");return o},no.getAllAngularTestabilities=()=>t.getAllTestabilities(),no.getAllAngularRootElements=()=>t.getAllRootElements(),no.frameworkStabilizers||(no.frameworkStabilizers=[]),no.frameworkStabilizers.push(i=>{const s=no.getAllAngularTestabilities();let o=s.length,r=!1;const a=function(l){r=r||l,o--,0==o&&i(r)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?eg().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let B$e=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const CI=new ot("EventManagerPlugins");let mL=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),xI=(()=>{class n extends Lde{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(o=>{const r=this._doc.createElement("style");r.textContent=o,s.push(i.appendChild(r))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Nde),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Nde))}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();function Nde(n){eg().remove(n)}const c7={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/"},d7=/%COMP%/g;function yL(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let _L=(()=>{class n{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new u7(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case On.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new J$e(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case On.ShadowDom:return new eUe(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=yL(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(V(mL),V(xI),V(pI))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class u7{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(c7[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,s){if(s){e=s+":"+e;const o=c7[s];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const s=c7[i];s?t.removeAttributeNS(s,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,s){s&(pu.DashCase|pu.Important)?t.style.setProperty(e,i,s&pu.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&pu.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,zde(i)):this.eventManager.addEventListener(t,e,zde(i))}}class J$e extends u7{constructor(t,e,i,s){super(t),this.component=i;const o=yL(s+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function(n){return"_ngcontent-%COMP%".replace(d7,n)}(s+"-"+i.id),this.hostAttr=function(n){return"_nghost-%COMP%".replace(d7,n)}(s+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class eUe extends u7{constructor(t,e,i,s){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=yL(s.id,s.styles,[]);for(let r=0;r{class n extends l7{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const jde=["alt","control","meta","shift"],lUe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$de={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},cUe={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let dUe=(()=>{class n extends l7{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,s){const o=n.parseEventName(i),r=n.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>eg().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const o=n._normalizeKey(i.pop());let r="";if(jde.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),r+=l+".")}),r+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=s,a.fullKey=r,a}static getEventFullKey(e){let i="",s=function(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&$de.hasOwnProperty(t)&&(t=$de[t]))}return lUe[t]||t}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),jde.forEach(o=>{o!=s&&cUe[o](e)&&(i+=o+".")}),i+=s,i}static eventCallback(e,i,s){return o=>{n.getEventFullKey(o)===e&&s.runGuarded(()=>i(o))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),ig=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({factory:function(){return V(p7)},token:n,providedIn:"root"}),n})(),p7=(()=>{class n extends ig{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ys.NONE:return i;case ys.HTML:return jf(i,"HTML")?hu(i):Yse(this._doc,String(i)).toString();case ys.STYLE:return jf(i,"Style")?hu(i):i;case ys.SCRIPT:if(jf(i,"Script"))return hu(i);throw new Error("unsafe value used in a script context");case ys.URL:return Hse(i),jf(i,"URL")?hu(i):FE(String(i));case ys.RESOURCE_URL:if(jf(i,"ResourceURL"))return hu(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function(n){return new h5e(n)}(e)}bypassSecurityTrustStyle(e){return function(n){return new p5e(n)}(e)}bypassSecurityTrustScript(e){return function(n){return new f5e(n)}(e)}bypassSecurityTrustUrl(e){return function(n){return new g5e(n)}(e)}bypassSecurityTrustResourceUrl(e){return function(n){return new m5e(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({factory:function(){return function(n){return new p7(n.get($t))}(V(hT))},token:n,providedIn:"root"}),n})();const _Ue=Lce(cje,"browser",[{provide:Xr,useValue:"browser"},{provide:kce,useValue:function(){r7.makeCurrent(),a7.init()},multi:!0},{provide:$t,useFactory:function(){return function(n){pH=n}(document),document},deps:[]}]),vUe=[[],{provide:HE,useValue:"root"},{provide:bh,useFactory:function(){return new bh},deps:[]},{provide:CI,useClass:tUe,multi:!0,deps:[$t,ce,Xr]},{provide:CI,useClass:dUe,multi:!0,deps:[$t]},[],{provide:_L,useClass:_L,deps:[mL,xI,pI]},{provide:Q0,useExisting:_L},{provide:Lde,useExisting:xI},{provide:xI,useClass:xI,deps:[$t]},{provide:Mj,useClass:Mj,deps:[ce]},{provide:mL,useClass:mL,deps:[CI,ce]},{provide:Ode,useClass:B$e,deps:[]},[]];let f7=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:pI,useValue:e.appId},{provide:Rde,useExisting:pI},N$e]}}}return n.\u0275fac=function(e){return new(e||n)(V(n,12))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:vUe,imports:[Ut,mje]}),n})();function nt(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}"undefined"!=typeof window&&window;class EUe extends Je{constructor(t,e){super()}schedule(t,e=0){return this}}class bL extends EUe{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let s,i=!1;try{this.work(t)}catch(o){i=!0,s=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Yde=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return n.now=()=>Date.now(),n})();class Fp extends Yde{constructor(t,e=Yde.now){super(t,()=>Fp.delegate&&Fp.delegate!==this?Fp.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Fp.delegate&&Fp.delegate!==this?Fp.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const FUe=new class extends Fp{}(class extends bL{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),Op=new an(n=>n.complete());function CL(n){return n?function(n){return new an(t=>n.schedule(()=>t.complete()))}(n):Op}function Vt(...n){let t=n[n.length-1];return qe(t)?(n.pop(),jm(n,t)):P0(n)}function rC(n,t){return new an(t?e=>t.schedule(RUe,0,{error:n,subscriber:e}):e=>e.error(n))}function RUe({error:n,subscriber:t}){t.error(n)}class Ad{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Vt(this.value);case"E":return rC(this.error);case"C":return CL()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Ad("N",t):Ad.undefinedValueNotification}static createError(t){return new Ad("E",void 0,t)}static createComplete(){return Ad.completeNotification}}Ad.completeNotification=new Ad("C"),Ad.undefinedValueNotification=new Ad("N",void 0);class xL extends In{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(xL.dispatch,this.delay,new LUe(t,this.destination)))}_next(t){this.scheduleMessage(Ad.createNext(t))}_error(t){this.scheduleMessage(Ad.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Ad.createComplete()),this.unsubscribe()}}class LUe{constructor(t,e){this.notification=t,this.destination=e}}class GT extends Z{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new NUe(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,o=i.length;let r;if(this.closed)throw new Fe;if(this.isStopped||this.hasError?r=Je.EMPTY:(this.observers.push(t),r=new ee(this,t)),s&&t.add(t=new xL(t,s)),e)for(let a=0;ae&&(r=Math.max(r,o-e)),r>0&&s.splice(0,r),s}}class NUe{constructor(t,e){this.time=t,this.value=e}}function BUe(n,t){return n===t}function VUe(n,t,e){if(null===t||null===e||t.length!==e.length)return!1;const i=t.length;for(let s=0;s(i&&i.providers||[]).some(o=>o&&o.provide&&"MockNgModuleResolver"===o.provide.name||!1))});let y7=(()=>{class n{constructor(){this.bootstrap$=new GT(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const _7=new ot("INITIAL_STATE_TOKEN");let GUe=(()=>{class n{static set(e){this.value=e}static pop(){const e=this.value;return this.value={},e}}return n.value={},n})();const jUe=new ot("Internals.StateContextFactory"),$Ue=new ot("Internals.StateFactory");class Hs extends Z{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fe;return this._value}next(t){super.next(this._value=t)}}function wL(...n){if(1===n.length){const t=n[0];if(Ht(t))return SL(t,null);if(Lt(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return SL(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return SL(n=1===n.length&&Ht(n[0])?n[0]:n,null).pipe(xe(e=>t(...e)))}return SL(n,null)}function SL(n,t){return new an(e=>{const i=n.length;if(0===i)return void e.complete();const s=new Array(i);let o=0,r=0;for(let a=0;a{c||(c=!0,r++),s[a]=d},error:d=>e.error(d),complete:()=>{o++,(o===i||!c)&&(r===i&&e.next(t?t.reduce((d,u,h)=>(d[u]=s[h],d),{}):s),e.complete())}}))}})}function dt(n,t){return function(i){return i.lift(new UUe(n,t))}}class UUe{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new WUe(t,this.predicate,this.thisArg))}}class WUe extends In{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function jT(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},s=>s.lift(function({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let s,r,o=0,a=!1,l=!1;return function(d){let u;o++,!s||a?(a=!1,s=new GT(n,t,i),u=s.subscribe(this),r=d.subscribe({next(h){s.next(h)},error(h){a=!0,s.error(h)},complete(){l=!0,r=void 0,s.complete()}}),l&&(r=void 0)):u=s.subscribe(this),this.add(()=>{o--,u.unsubscribe(),u=void 0,r&&!l&&e&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(i))}const Zde=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function jn(n){return t=>0===n?CL():t.lift(new XUe(n))}class XUe{constructor(t){if(this.total=t,this.total<0)throw new Zde}call(t,e){return e.subscribe(new YUe(t,this.total))}}class YUe extends In{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function Qde(n,t){return t?e=>e.pipe(Qde((i,s)=>Ys(n(i,s)).pipe(xe((o,r)=>t(i,o,s,r))))):e=>e.lift(new KUe(n))}class KUe{constructor(t){this.project=t}call(t,e){return e.subscribe(new ZUe(t,this.project))}}class ZUe extends Pf{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(s){return void this.destination.error(s)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new ru(this),i=this.destination;i.add(e);const s=Lf(t,e);s!==e&&i.add(s)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function TL(n=null){return t=>t.lift(new QUe(n))}class QUe{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new JUe(t,this.defaultValue))}}class JUe extends In{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function fl(n){return function(e){const i=new e9e(n),s=e.lift(i);return i.caught=s}}class e9e{constructor(t){this.selector=t}call(t,e){return e.subscribe(new t9e(t,this.selector,this.caught))}}class t9e extends Pf{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ru(this);this.add(i);const s=Lf(e,i);s!==i&&this.add(s)}}}function et(n){return t=>t.lift(new n9e(n))}class n9e{constructor(t){this.notifier=t}call(t,e){const i=new i9e(t),s=Lf(this.notifier,new ru(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class i9e extends Pf{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function cv(){}function lt(n,t,e){return function(s){return s.lift(new s9e(n,t,e))}}class s9e{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new o9e(t,this.nextOrObserver,this.error,this.complete))}}class o9e extends In{constructor(t,e,i,s){super(t),this._tapNext=cv,this._tapError=cv,this._tapComplete=cv,this._tapError=i||cv,this._tapComplete=s||cv,Pe(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||cv,this._tapError=e.error||cv,this._tapComplete=e.complete||cv)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function ry(n,t){return e=>e.lift(new r9e(n,t))}class r9e{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new a9e(t,this.compare,this.keySelector))}}class a9e extends In{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:s}=this;e=s?s(t):t}catch(s){return this.destination.error(s)}let i=!1;if(this.hasKey)try{const{compare:s}=this;i=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}const gu={STATE_NAME:n=>`${n} is not a valid state name. It needs to be a valid object property name.`,STATE_NAME_PROPERTY:()=>"States must register a 'name' property",STATE_UNIQUE:(n,t,e)=>`State name '${n}' from ${t} already exists in ${e}`,STATE_DECORATOR:()=>"States must be decorated with @State() decorator",INCORRECT_PRODUCTION:()=>"Angular is running in production mode but NGXS is still running in the development mode!\nPlease set developmentMode to false on the NgxsModule options when in production mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",INCORRECT_DEVELOPMENT:()=>"RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\nNgxsModule.forRoot(states, { developmentMode: !environment.production })",SELECT_FACTORY_NOT_CONNECTED:()=>"You have forgotten to import the NGXS module!",ACTION_DECORATOR:()=>"@Action() decorator cannot be used with static methods",SELECTOR_DECORATOR:()=>"Selectors only work on methods",ZONE_WARNING:()=>"Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\nPlease set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\nNgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })",PATCHING_ARRAY:()=>"Patching arrays is not supported.",PATCHING_PRIMITIVE:()=>"Patching primitives is not supported.",UNDECORATED_STATE_IN_IVY:n=>`'${n}' class should be decorated with @Injectable() right after the @State() decorator`};let Jde=(()=>{class n{constructor(e,i){this._ngZone=e,this._platformId=i,this.verifyZoneIsNotNooped(this._ngZone)}enter(e){return ng(this._platformId)?this.runInsideAngular(e):this.runOutsideAngular(e)}leave(e){return this.runInsideAngular(e)}runInsideAngular(e){return ce.isInAngularZone()?e():this._ngZone.run(e)}runOutsideAngular(e){return ce.isInAngularZone()?this._ngZone.runOutsideAngular(e):e()}verifyZoneIsNotNooped(e){e instanceof ce||console.warn(gu.ZONE_WARNING())}}return n.\u0275fac=function(e){return new(e||n)(V(ce),V(Xr))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const eue=new ot("ROOT_STATE_TOKEN"),tue=new ot("FEATURE_STATE_TOKEN"),v7=new ot("NGXS_PLUGINS"),nue=new ot("NG_TEST_MODE"),iue=new ot("NG_DEV_MODE"),ay="NGXS_META",sue="NGXS_OPTIONS_META",b7="NGXS_SELECTOR_META";let aC=(()=>{class n{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=Jde}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class l9e{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}}const oue=new ot("NGXS_EXECUTION_STRATEGY");function lC(n){return n.constructor&&n.constructor.type?n.constructor.type:n.type}const C7=(n,t,e)=>{n=Object.assign({},n);const i=t.split("."),s=i.length-1;return i.reduce((o,r,a)=>(o[r]=a===s?e:Array.isArray(o[r])?o[r].slice():Object.assign({},o[r]),o&&o[r]),n),n},$T=(n,t)=>t.split(".").reduce((e,i)=>e&&e[i],n),x7=n=>n&&"object"==typeof n&&!Array.isArray(n),w7=(n,...t)=>{if(!t.length)return n;const e=t.shift();if(x7(n)&&x7(e))for(const i in e)x7(e[i])?(n[i]||Object.assign(n,{[i]:{}}),w7(n[i],e[i])):Object.assign(n,{[i]:e[i]});return w7(n,...t)};function S7(n){if(!n.hasOwnProperty(ay)){const t={name:null,actions:{},defaults:{},path:null,makeRootSelector:e=>e.getStateGetter(t.name),children:[]};Object.defineProperty(n,ay,{value:t})}return wI(n)}function wI(n){return n[ay]}function k7(n){return n[b7]}function rue(n,t){return t&&t.compatibility&&t.compatibility.strictContentSecurityPolicy?function(n){const t=n.slice();return e=>t.reduce((i,s)=>i&&i[s],e)}(n):function(n){const t=n;let e="store."+t[0],i=0;const s=t.length;let o=e;for(;++i(t[lC(e)]=!0,t),{})}(n),s=t&&function(n){return n.reduce((t,e)=>(t[e]=!0,t),{})}(t);return function(o){return o.pipe(function(n,t){return dt(e=>{const i=lC(e.action);return n[i]&&(!t||t[e.status])})}(i,s),e())}}function v9e(){return xe(n=>n.action)}function kL(n){return t=>new an(e=>t.subscribe({next(i){n.leave(()=>e.next(i))},error(i){n.leave(()=>e.error(i))},complete(){n.leave(()=>e.complete())}}))}let DL=(()=>{class n{constructor(e){this._executionStrategy=e}enter(e){return this._executionStrategy.enter(e)}leave(e){return this._executionStrategy.leave(e)}}return n.\u0275fac=function(e){return new(e||n)(V(oue))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class x9e extends Z{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const e=this._itemQueue.pop();super.next(e)}this._busyPushingNext=!1}}}let ML=(()=>{class n extends x9e{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),sg=(()=>{class n extends an{constructor(e,i){super(s=>{const o=e.pipe(kL(i)).subscribe({next:r=>s.next(r),error:r=>s.error(r),complete:()=>s.complete()});s.add(o)})}}return n.\u0275fac=function(e){return new(e||n)(V(ML),V(DL))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const lue=n=>(...t)=>n.shift()(...t,(...i)=>lue(n)(...i));let EL=(()=>{class n extends Hs{constructor(){super({})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),D7=(()=>{class n{constructor(e,i){this._parentManager=e,this._pluginHandlers=i,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const e=this.getPluginHandlers();this.rootPlugins.push(...e)}getPluginHandlers(){return(this._pluginHandlers||[]).map(i=>i.handle?i.handle.bind(i):i)}}return n.\u0275fac=function(e){return new(e||n)(V(n,12),V(v7,8))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),M7=(()=>{class n extends Z{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),cue=(()=>{class n{constructor(e,i,s,o,r,a){this._injector=e,this._actions=i,this._actionResults=s,this._pluginManager=o,this._stateStream=r,this._ngxsExecutionStrategy=a}dispatch(e){const i=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(e));return i.subscribe({error:s=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler=this._errorHandler||this._injector.get(bh),this._errorHandler.handleError(s)}catch(o){}})}),i.pipe(kL(this._ngxsExecutionStrategy))}dispatchByEvents(e){return Array.isArray(e)?0===e.length?Vt(this._stateStream.getValue()):wL(e.map(i=>this.dispatchSingle(i))):this.dispatchSingle(e)}dispatchSingle(e){if(!lC(e))return rC(new Error(`This action doesn't have a type property: ${e.constructor.name}`));const s=this._stateStream.getValue();return lue([...this._pluginManager.plugins,(r,a)=>{r!==s&&this._stateStream.next(r);const l=this.getActionResultStream(a);return l.subscribe(c=>this._actions.next(c)),this._actions.next({action:a,status:"DISPATCHED"}),this.createDispatchObservable(l)}])(s,e).pipe(jT())}getActionResultStream(e){return this._actionResults.pipe(dt(i=>i.action===e&&"DISPATCHED"!==i.status),jn(1),jT())}createDispatchObservable(e){return e.pipe(Qde(i=>{switch(i.status){case"SUCCESSFUL":return Vt(this._stateStream.getValue());case"ERRORED":return rC(i.error);default:return Op}})).pipe(jT())}}return n.\u0275fac=function(e){return new(e||n)(V(Jt),V(ML),V(M7),V(D7),V(EL),V(DL))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const due=n=>{Object.freeze(n);const t="function"==typeof n,e=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(n).forEach(function(i){e.call(n,i)&&(!t||"caller"!==i&&"callee"!==i&&"arguments"!==i)&&null!==n[i]&&("object"==typeof n[i]||"function"==typeof n[i])&&!Object.isFrozen(n[i])&&due(n[i])}),n};let uue=(()=>{class n{constructor(e,i){this.isDevMode=e,this.isTestMode=i}}return n.\u0275fac=function(e){return new(e||n)(V(iue),V(nue))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),hue=(()=>{class n{constructor(e,i){this._host=e,this._config=i}get isIncorrectProduction(){return!this._host.isDevMode()&&this._config.developmentMode}get isIncorrectDevelopment(){return this._host.isDevMode()&&!this._config.developmentMode}verifyDevMode(){this._host.isTestMode()||(this.isIncorrectProduction?console.warn(gu.INCORRECT_PRODUCTION()):this.isIncorrectDevelopment&&console.warn(gu.INCORRECT_DEVELOPMENT()))}}return n.\u0275fac=function(e){return new(e||n)(V(uue),V(aC))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),WT=(()=>{class n{constructor(e,i,s,o){this._stateStream=e,this._dispatcher=i,this._config=s,o.verifyDevMode()}getRootStateOperations(){const e={getState:()=>this._stateStream.getValue(),setState:i=>this._stateStream.next(i),dispatch:i=>this._dispatcher.dispatch(i)};return this._config.developmentMode?this.ensureStateAndActionsAreImmutable(e):e}ensureStateAndActionsAreImmutable(e){return{getState:()=>e.getState(),setState:i=>{const s=due(i);return e.setState(s)},dispatch:i=>e.dispatch(i)}}setStateToTheCurrentWithNew(e){const i=this.getRootStateOperations(),s=i.getState();i.setState(Object.assign({},s,e.defaults))}}return n.\u0275fac=function(e){return new(e||n)(V(EL),V(cue),V(aC),V(hue))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),IL=(()=>{class n{constructor(e){this._internalStateOperations=e}createStateContext(e){const i=this._internalStateOperations.getRootStateOperations();function s(l){return $T(l,e.path)}function o(l,c){const d=C7(l,e.path,c),u=e.instance;if(u.ngxsOnChanges){const h=aue(e,{currentAppState:l,newAppState:d});u.ngxsOnChanges(h)}return i.setState(d),d}function r(l,c){return o(l,c(s(l)))}return{getState:()=>s(i.getState()),patchState:l=>r(i.getState(),function(n){return t=>{if(Array.isArray(n))throw new Error(gu.PATCHING_ARRAY());if("object"!=typeof n)throw new Error(gu.PATCHING_PRIMITIVE());const e=Object.assign({},t);for(const i in n)e[i]=n[i];return e}}(l)),setState(l){const c=i.getState();return function(l){return"function"==typeof l}(l)?r(c,l):o(c,l)},dispatch:l=>i.dispatch(l)}}}return n.\u0275fac=function(e){return new(e||n)(V(WT))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class AL{static stateNameErrorMessage(t){return gu.STATE_NAME(t)}static checkCorrectStateName(t){if(!t)throw new Error(gu.STATE_NAME_PROPERTY());if(!this.stateNameRegex.test(t))throw new Error(this.stateNameErrorMessage(t))}static checkStateNameIsUnique(t,e){const s=this.getValidStateMeta(t).name,o=e[s];if(o&&o!==t)throw new Error(gu.STATE_UNIQUE(s,t.name,o.name));return s}static getValidStateMeta(t){const e=wI(t);if(!e)throw new Error(gu.STATE_DECORATOR());return e}}AL.stateNameRegex=new RegExp("^[a-zA-Z0-9_]+$");let qT=(()=>{class n{constructor(e,i,s,o,r,a,l){this._injector=e,this._config=i,this._parentFactory=s,this._actions=o,this._actionResults=r,this._stateContextFactory=a,this._initialState=l,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=Kde(()=>{const c=this;function d(h){const f=c.statePaths[h];return f?rue(f.split("."),c._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(h){let f=d(h);return f||((...m)=>(f||(f=d(h)),f?f(...m):void 0))},getSelectorOptions:h=>Object.assign({},c._config.selectorOptions,h||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(e){let i={};return i=Array.isArray(e)?e.slice():function(n){return"object"==typeof n&&null!==n||"function"==typeof n}(e)?Object.assign({},e):void 0===e?{}:e,i}static checkStatesAreValid(e){e.forEach(AL.getValidStateMeta)}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(e){n.checkStatesAreValid(e);const{newStates:i}=this.addToStatesMap(e);if(!i.length)return[];const s=function(n){const t=e=>{const i=n.find(s=>s===e);if(!i)throw new Error(`Child state not found: ${e}. \r\nYou may have forgotten to add states to module`);return i[ay].name};return n.reduce((e,i)=>{const{name:s,children:o}=i[ay];return e[s]=(o||[]).map(t),e},{})}(i),o=function(n){const t=[],e={},i=(s,o=[])=>{Array.isArray(o)||(o=[]),o.push(s),e[s]=!0,n[s].forEach(r=>{if(o.indexOf(r)>=0)throw new Error(`Circular dependency '${r}' is required by '${s}': ${o.join(" -> ")}`);e[r]||i(r,o.slice(0))}),t.indexOf(s)<0&&t.push(s)};return Object.keys(n).forEach(s=>i(s)),t.reverse()}(s),r=function(n,t={}){const e=(i,s)=>{for(const o in i)if(i.hasOwnProperty(o)&&i[o].indexOf(s)>=0){const r=e(i,o);return null!==r?`${r}.${o}`:o}return null};for(const i in n)if(n.hasOwnProperty(i)){const s=e(n,i);t[i]=s?`${s}.${i}`:i}return t}(s),a=function(n){return n.reduce((t,e)=>(t[e[ay].name]=e,t),{})}(i),l=[];for(const c of o){const d=a[c],u=r[c],h=d[ay];this.addRuntimeInfoToMeta(h,u);const f={name:c,path:u,isInitialised:!1,actions:h.actions,instance:this._injector.get(d),defaults:n.cloneDefaults(h.defaults)};this.hasBeenMountedAndBootstrapped(c,u)||l.push(f),this.states.push(f)}return l}addAndReturnDefaults(e){const s=this.add(e||[]);return{defaults:s.reduce((r,a)=>C7(r,a.path,a.defaults),{}),states:s}}connectActionHandlers(){null===this._actionsSubscription&&(this._actionsSubscription=this._actions.pipe(dt(e=>"DISPATCHED"===e.status),jr(({action:e})=>this.invokeActions(this._actions,e).pipe(xe(()=>({action:e,status:"SUCCESSFUL"})),TL({action:e,status:"CANCELED"}),fl(i=>Vt({action:e,status:"ERRORED",error:i}))))).subscribe(e=>this._actionResults.next(e)))}invokeActions(e,i){const s=lC(i),o=[];for(const r of this.states){const a=r.actions[s];if(a)for(const l of a){const c=this._stateContextFactory.createStateContext(r);try{let d=r.instance[l.fn](c,i);d instanceof Promise&&(d=Ys(d)),d instanceof an?(d=d.pipe(TL({})),l.options.cancelUncompleted&&(d=d.pipe(et(e.pipe(Fd(i)))))):d=Vt({}).pipe(jT()),o.push(d)}catch(d){o.push(rC(d))}}}return o.length||o.push(Vt({})),wL(o)}addToStatesMap(e){const i=[],s=this.statesByName;for(const o of e){const r=AL.checkStateNameIsUnique(o,s);!s[r]&&(i.push(o),s[r]=o)}return{newStates:i}}addRuntimeInfoToMeta(e,i){this.statePaths[e.name]=i,e.path=i}hasBeenMountedAndBootstrapped(e,i){const s=void 0!==$T(this._initialState,i);return this.statesByName[e]&&s}}return n.\u0275fac=function(e){return new(e||n)(V(Jt),V(aC),V(n,12),V(ML),V(M7),V(IL),V(_7,8))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),E7=(()=>{class n{constructor(e,i,s){this.internalStateOperations=e,this.stateContextFactory=i,this.bootstrapper=s}ngxsBootstrap(e,i){this.internalStateOperations.getRootStateOperations().dispatch(e).pipe(dt(()=>!!i),lt(()=>this.invokeInit(i.states)),jr(()=>this.bootstrapper.appBootstrapped$),dt(s=>!!s)).subscribe(()=>this.invokeBootstrap(i.states))}invokeInit(e){for(const i of e){const s=i.instance;if(s.ngxsOnChanges){const a=aue(i,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});s.ngxsOnChanges(a)}s.ngxsOnInit&&s.ngxsOnInit(this.getStateContext(i)),i.isInitialised=!0}}invokeBootstrap(e){for(const i of e){const s=i.instance;s.ngxsAfterBootstrap&&s.ngxsAfterBootstrap(this.getStateContext(i))}}getStateContext(e){return this.stateContextFactory.createStateContext(e)}}return n.\u0275fac=function(e){return new(e||n)(V(WT),V(IL),V(y7))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();let zi=(()=>{class n{constructor(e,i,s,o,r,a){this._stateStream=e,this._internalStateOperations=i,this._config=s,this._internalExecutionStrategy=o,this._stateFactory=r,this.initStateStream(a)}dispatch(e){return this._internalStateOperations.getRootStateOperations().dispatch(e)}select(e){const i=this.getStoreBoundSelectorFn(e);return this._stateStream.pipe(xe(i),fl(s=>{const{suppressErrors:o}=this._config.selectorOptions;return s instanceof TypeError&&o?Vt(void 0):rC(s)}),ry(),kL(this._internalExecutionStrategy))}selectOnce(e){return this.select(e).pipe(jn(1))}selectSnapshot(e){return this.getStoreBoundSelectorFn(e)(this._stateStream.getValue())}subscribe(e){return this._stateStream.pipe(kL(this._internalExecutionStrategy)).subscribe(e)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(e){return this._internalStateOperations.getRootStateOperations().setState(e)}getStoreBoundSelectorFn(e){return function(n){const t=k7(n)||wI(n);return t&&t.makeRootSelector||(()=>n)}(e)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(e){const i=this._stateStream.value;if(!i||0===Object.keys(i).length){const r=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,e):e;this._stateStream.next(r)}}}return n.\u0275fac=function(e){return new(e||n)(V(EL),V(WT),V(aC),V(DL),V(qT),V(_7,8))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),SI=(()=>{class n{constructor(e,i){n.store=e,n.config=i}ngOnDestroy(){n.store=null,n.config=null}}return n.\u0275fac=function(e){return new(e||n)(V(zi),V(aC))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n.store=null,n.config=null,n})();class gue{static get type(){return"@@INIT"}}class mue{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}const OL=new GT(1);let I9e=(()=>{class n{constructor(e,i,s,o,r=[],a){!function(){try{const n=window.ng,e=!(n.probe&&n.coreTokens)&&En();OL.next(e)}catch(n){OL.next(!1)}finally{OL.complete()}}();const l=e.addAndReturnDefaults(r);i.setStateToTheCurrentWithNew(l),e.connectActionHandlers(),a.ngxsBootstrap(new gue,l)}}return n.\u0275fac=function(e){return new(e||n)(V(qT),V(WT),V(zi),V(SI),V(eue,8),V(E7))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),A9e=(()=>{class n{constructor(e,i,s,o=[],r){const a=n.flattenStates(o),l=s.addAndReturnDefaults(a);l.states.length&&(i.setStateToTheCurrentWithNew(l),r.ngxsBootstrap(new mue(l.defaults),l))}static flattenStates(e=[]){return e.reduce((i,s)=>i.concat(s),[])}}return n.\u0275fac=function(e){return new(e||n)(V(zi),V(WT),V(qT),V(tue,8),V(E7))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();class Od{static forRoot(t=[],e={}){return{ngModule:I9e,providers:[qT,IL,sg,ML,y7,hue,uue,E7,cue,M7,WT,DL,zi,EL,SI,D7,...t,...Od.ngxsTokenProviders(t,e)]}}static forFeature(t=[]){return{ngModule:A9e,providers:[qT,D7,...t,{provide:tue,multi:!0,useValue:t}]}}static ngxsTokenProviders(t,e){return[{provide:nue,useValue:HUe},{provide:iue,useValue:En},{provide:oue,useClass:e.executionStrategy||Jde},{provide:eue,useValue:t},{provide:Od.ROOT_OPTIONS,useValue:e},{provide:aC,useFactory:Od.ngxsConfigFactory,deps:[Od.ROOT_OPTIONS]},{provide:jP,useFactory:Od.appBootstrapListenerFactory,multi:!0,deps:[y7]},{provide:_7,useFactory:Od.getInitialState},{provide:jUe,useExisting:IL},{provide:$Ue,useExisting:qT}]}static ngxsConfigFactory(t){return w7(new aC,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return GUe.pop()}}function Pn(n,t){return(e,i)=>{if(e.hasOwnProperty("prototype"))throw new Error(gu.ACTION_DECORATOR());const o=S7(e.constructor);Array.isArray(n)||(n=[n]);for(const r of n){const a=r.type;o.actions[a]||(o.actions[a]=[]),o.actions[a].push({fn:i,options:t||{},type:a})}}}function cC(n){return i=>{!function(n){OL.subscribe(t=>{t&&(n.\u0275prov||console.warn(gu.UNDECORATED_STATE_IN_IVY(n.name)))})}(i);const s=i,o=S7(s),r=Object.getPrototypeOf(s),a=function(i){return Object.assign({},i[sue]||{},n)}(r);(function(i){const{meta:s,inheritedStateClass:o,optionsWithInheritance:r}=i,{children:a,defaults:l,name:c}=r,d="string"==typeof c?c:c&&c.getName()||null;AL.checkCorrectStateName(d),o.hasOwnProperty(ay)&&(s.actions=Object.assign({},s.actions,(o[ay]||{}).actions)),s.children=a,s.defaults=l,s.name=d})({meta:o,inheritedStateClass:r,optionsWithInheritance:a}),s[sue]=a}}function rn(n,...t){return function(e,i){const s=i.toString(),o=`__${s}__selector`,r=function(n,t,e=[]){return"string"==typeof(t=t||function(n){const t=n.length-1;return 36===n.charCodeAt(t)?n.slice(0,t):n}(n))?rue(e.length?[t,...e]:t.split("."),SI.config):t}(s,n,t);Object.defineProperties(e,{[o]:{writable:!0,enumerable:!1,configurable:!0},[s]:{enumerable:!0,configurable:!0,get(){return this[o]||(this[o]=function(n){if(!SI.store)throw new Error(gu.SELECT_FACTORY_NOT_CONNECTED());return SI.store.select(n)}(r))}}})}}var Mh;Od.\u0275fac=function(t){return new(t||Od)},Od.\u0275mod=We({type:Od}),Od.\u0275inj=Ve({}),Od.ROOT_OPTIONS=new ot("ROOT_OPTIONS"),function(n){n.SetDefaultState=(()=>{class o{constructor(){}}return o.type="[airpublic] Set Default State",o})(),n.SetBusyState=(()=>{class o{constructor(a){this.payload=a}}return o.type="[airpublic] Set Busy State",o})(),n.SetStatisticInfo=(()=>{class o{constructor(a){this.payload=a}}return o.type="[airpublic] Set Statistic Info",o})(),n.SetLocationFilter=(()=>{class o{constructor(a){this.payload=a}}return o.type="[airpublic] Set Location Filter",o})()}(Mh||(Mh={}));const yue={sa2Statistic:null,stateStatistic:null,locationFilter:null,isProcessing:!1};let Eh=class{SetBusyState({patchState:t},{payload:e}){t({isProcessing:e})}SetDefaultState({setState:t},{}){t(yue)}SetAnalysisResult({patchState:t},{payload:e}){t({sa2Statistic:e.sa2statistic,stateStatistic:e.stateStatistic})}SetFilter({patchState:t},{payload:e}){t({locationFilter:e})}};function ly(n,t){return jr(n,t,1)}Eh.\u0275fac=function(t){return new(t||Eh)},Eh.\u0275prov=ue({token:Eh,factory:Eh.\u0275fac}),nt([Pn(Mh.SetBusyState)],Eh.prototype,"SetBusyState",null),nt([Pn(Mh.SetDefaultState)],Eh.prototype,"SetDefaultState",null),nt([Pn(Mh.SetStatisticInfo)],Eh.prototype,"SetAnalysisResult",null),nt([Pn(Mh.SetLocationFilter)],Eh.prototype,"SetFilter",null),Eh=nt([cC({name:"airpublic",defaults:yue})],Eh);class _ue{}class vue{}class cy{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const s=e.slice(0,i),o=s.toLowerCase(),r=e.slice(i+1).trim();this.maybeSetNormalizedName(s,o),this.headers.has(o)?this.headers.get(o).push(r):this.headers.set(o,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const s=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(s,i),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof cy?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new cy;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof cy?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...i),this.headers.set(e,s);break;case"d":const o=t.value;if(o){let r=this.headers.get(e);if(!r)return;r=r.filter(a=>-1===o.indexOf(a)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class B9e{encodeKey(t){return bue(t)}encodeValue(t){return bue(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function bue(n){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Cue(n){return`${n}`}class uv{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new B9e,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(s=>{const o=s.indexOf("="),[r,a]=-1==o?[t.decodeKey(s),""]:[t.decodeKey(s.slice(0,o)),t.decodeValue(s.slice(o+1))],l=e.get(r)||[];l.push(a),e.set(r,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const s=t[i];Array.isArray(s)?s.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:s,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=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new uv({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Cue(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const s=i.indexOf(Cue(t.value));-1!==s&&i.splice(s,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class z9e{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}keys(){return this.map.keys()}}function xue(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function wue(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Sue(n){return"undefined"!=typeof FormData&&n instanceof FormData}class TI{constructor(t,e,i,s){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==i?i:null,o=s):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new cy),this.context||(this.context=new z9e),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(d=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),d)),new TI(i,s,r,{params:d,headers:c,context:u,reportProgress:l,responseType:o,withCredentials:a})}}var Da=(()=>((Da=Da||{})[Da.Sent=0]="Sent",Da[Da.UploadProgress=1]="UploadProgress",Da[Da.ResponseHeader=2]="ResponseHeader",Da[Da.DownloadProgress=3]="DownloadProgress",Da[Da.Response=4]="Response",Da[Da.User=5]="User",Da))();class I7{constructor(t,e=200,i="OK"){this.headers=t.headers||new cy,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class A7 extends I7{constructor(t={}){super(t),this.type=Da.ResponseHeader}clone(t={}){return new A7({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class RL extends I7{constructor(t={}){super(t),this.type=Da.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new RL({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Tue extends I7{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function F7(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}}let XT=(()=>{class n{constructor(e){this.handler=e}request(e,i,s={}){let o;if(e instanceof TI)o=e;else{let l,c;l=s.headers instanceof cy?s.headers:new cy(s.headers),s.params&&(c=s.params instanceof uv?s.params:new uv({fromObject:s.params})),o=new TI(e,i,void 0!==s.body?s.body:null,{headers:l,context:s.context,params:c,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const r=Vt(o).pipe(ly(l=>this.handler.handle(l)));if(e instanceof TI||"events"===s.observe)return r;const a=r.pipe(dt(l=>l instanceof RL));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(xe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(xe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(xe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(xe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new uv).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,s={}){return this.request("PATCH",e,F7(s,i))}post(e,i,s={}){return this.request("POST",e,F7(s,i))}put(e,i,s={}){return this.request("PUT",e,F7(s,i))}}return n.\u0275fac=function(e){return new(e||n)(V(_ue))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class kue{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Due=new ot("HTTP_INTERCEPTORS");let j9e=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const $9e=/^\)\]\}',?\n/;let Mue=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new an(i=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((f,m)=>s.setRequestHeader(f,m.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&s.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();s.responseType="json"!==f?f:"text"}const o=e.serializeBody();let r=null;const a=()=>{if(null!==r)return r;const f=1223===s.status?204:s.status,m=s.statusText||"OK",C=new cy(s.getAllResponseHeaders()),k=function(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(s)||e.url;return r=new A7({headers:C,status:f,statusText:m,url:k}),r},l=()=>{let{headers:f,status:m,statusText:C,url:k}=a(),D=null;204!==m&&(D=void 0===s.response?s.responseText:s.response),0===m&&(m=D?200:0);let E=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof D){const O=D;D=D.replace($9e,"");try{D=""!==D?JSON.parse(D):null}catch(z){D=O,E&&(E=!1,D={error:z,text:D})}}E?(i.next(new RL({body:D,headers:f,status:m,statusText:C,url:k||void 0})),i.complete()):i.error(new Tue({error:D,headers:f,status:m,statusText:C,url:k||void 0}))},c=f=>{const{url:m}=a(),C=new Tue({error:f,status:s.status||0,statusText:s.statusText||"Unknown Error",url:m||void 0});i.error(C)};let d=!1;const u=f=>{d||(i.next(a()),d=!0);let m={type:Da.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&!!s.responseText&&(m.partialText=s.responseText),i.next(m)},h=f=>{let m={type:Da.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),i.next(m)};return s.addEventListener("load",l),s.addEventListener("error",c),s.addEventListener("timeout",c),s.addEventListener("abort",c),e.reportProgress&&(s.addEventListener("progress",u),null!==o&&s.upload&&s.upload.addEventListener("progress",h)),s.send(o),i.next({type:Da.Sent}),()=>{s.removeEventListener("error",c),s.removeEventListener("abort",c),s.removeEventListener("load",l),s.removeEventListener("timeout",c),e.reportProgress&&(s.removeEventListener("progress",u),null!==o&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(V(Ode))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const O7=new ot("XSRF_COOKIE_NAME"),R7=new ot("XSRF_HEADER_NAME");class Eue{}let W9e=(()=>{class n{constructor(e,i,s){this.doc=e,this.platform=i,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Tde(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(V($t),V(Xr),V(O7))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),P7=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(V(Eue),V(R7))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),q9e=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Due,[]);this.chain=i.reduceRight((s,o)=>new kue(s,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(V(vue),V(Jt))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),X9e=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:P7,useClass:j9e}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:O7,useValue:e.cookieName}:[],e.headerName?{provide:R7,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[P7,{provide:Due,useExisting:P7,multi:!0},{provide:Eue,useClass:W9e},{provide:O7,useValue:"XSRF-TOKEN"},{provide:R7,useValue:"X-XSRF-TOKEN"}]}),n})(),Y9e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[XT,{provide:_ue,useClass:q9e},Mue,{provide:vue,useExisting:Mue}],imports:[[X9e.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();class og{}const Rp="*";function fc(n,t){return{type:7,name:n,definitions:t,options:{}}}function Xi(n,t=null){return{type:4,styles:t,timings:n}}function PL(n,t=null){return{type:2,steps:n,options:t}}function zt(n){return{type:6,styles:n,offset:null}}function Tr(n,t,e){return{type:0,name:n,styles:t,options:e}}function Q9e(n){return{type:5,steps:n}}function Go(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function L7(n=null){return{type:9,options:n}}function dy(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function Aue(n){Promise.resolve(null).then(n)}class YT{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Aue(()=>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}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Fue{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,s=0;const o=this.players.length;0==o?Aue(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==o&&this._onFinish()}),r.onDestroy(()=>{++i==o&&this._onDestroy()}),r.onStart(()=>{++s==o&&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){const e=t*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function Oue(){return"undefined"!=typeof window&&void 0!==window.document}function B7(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function hv(n){switch(n.length){case 0:return new YT;case 1:return n[0];default:return new Fue(n)}}function Rue(n,t,e,i,s={},o={}){const r=[],a=[];let l=-1,c=null;if(i.forEach(d=>{const u=d.offset,h=u==l,f=h&&c||{};Object.keys(d).forEach(m=>{let C=m,k=d[m];if("offset"!==m)switch(C=t.normalizePropertyName(C,r),k){case"!":k=s[m];break;case Rp:k=o[m];break;default:k=t.normalizeStyleValue(m,C,k,r)}f[C]=k}),h||a.push(f),c=f,l=u}),r.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${r.join(d)}`)}return a}function V7(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&z7(e,"start",n)));break;case"done":n.onDone(()=>i(e&&z7(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&z7(e,"destroy",n)))}}function z7(n,t,e){const i=e.totalTime,o=H7(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),r=n._data;return null!=r&&(o._data=r),o}function H7(n,t,e,i,s="",o=0,r){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:s,totalTime:o,disabled:!!r}}function mu(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function Pue(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let G7=(n,t)=>!1,j7=(n,t)=>!1,Lue=(n,t,e)=>[];const Nue=B7();(Nue||"undefined"!=typeof Element)&&(G7=Oue()?(n,t)=>{for(;t&&t!==document.documentElement;){if(t===n)return!0;t=t.parentNode||t.host}return!1}:(n,t)=>n.contains(t),j7=(()=>{if(Nue||Element.prototype.matches)return(n,t)=>n.matches(t);{const n=Element.prototype,t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return t?(e,i)=>t.apply(e,[i]):j7}})(),Lue=(n,t,e)=>{let i=[];if(e){const s=n.querySelectorAll(t);for(let o=0;o{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=n[e]}),t}let zue=(()=>{class n{validateStyleProperty(e){return $7(e)}matchesElement(e,i){return U7(e,i)}containsElement(e,i){return W7(e,i)}query(e,i,s){return q7(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,o,r,a=[],l){return new YT(s,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class LL{}LL.NOOP=new zue;const X7="ng-enter",NL="ng-leave",BL="ng-trigger",VL=".ng-trigger",Gue="ng-animating",Y7=".ng-animating";function uC(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:K7(parseFloat(t[1]),t[2])}function K7(n,t){switch(t){case"s":return 1e3*n;default:return n}}function zL(n,t,e){return n.hasOwnProperty("duration")?n:function(n,t,e){let s,o=0,r="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};s=K7(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=K7(parseFloat(l),a[4]));const c=a[5];c&&(r=c)}else s=n;if(!e){let a=!1,l=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:s,delay:o,easing:r}}(n,t,e)}function KT(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function pv(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else KT(n,e);return e}function $ue(n,t,e){return e?t+":"+e+";":""}function Uue(n){let t="";for(let e=0;e{const s=Q7(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[s]),n.style[s]=t[i]}),B7()&&Uue(n))}function hC(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=Q7(e);n.style[i]=""}),B7()&&Uue(n))}function kI(n){return Array.isArray(n)?1==n.length?n[0]:PL(n):n}const Z7=new RegExp("{{\\s*(.+?)\\s*}}","g");function Wue(n){let t=[];if("string"==typeof n){let e;for(;e=Z7.exec(n);)t.push(e[1]);Z7.lastIndex=0}return t}function HL(n,t,e){const i=n.toString(),s=i.replace(Z7,(o,r)=>{let a=t[r];return t.hasOwnProperty(r)||(e.push(`Please provide a value for the animation param ${r}`),a=""),a.toString()});return s==i?n:s}function GL(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const oWe=/-+([a-z0-9])/g;function Q7(n){return n.replace(oWe,(...t)=>t[1].toUpperCase())}function rWe(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function que(n,t){return 0===n||0===t}function Xue(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let o=t[0],r=[];if(i.forEach(a=>{o.hasOwnProperty(a)||r.push(a),o[a]=e[a]}),r.length)for(var s=1;sfunction(n,t,e){if(":"==n[0]){const l=function(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) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${n}" is not supported`),t;const s=i[1],o=i[2],r=i[3];t.push(Yue(s,r));"<"==o[0]&&!("*"==s&&"*"==r)&&t.push(Yue(r,s))}(i,e,t)):e.push(n),e}const $L=new Set(["true","1"]),UL=new Set(["false","0"]);function Yue(n,t){const e=$L.has(n)||UL.has(n),i=$L.has(t)||UL.has(t);return(s,o)=>{let r="*"==n||n==s,a="*"==t||t==o;return!r&&e&&"boolean"==typeof s&&(r=s?$L.has(n):UL.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?$L.has(t):UL.has(t)),r&&a}}const dWe=new RegExp("s*:selfs*,?","g");function e$(n,t,e){return new uWe(n).build(t,e)}class uWe{constructor(t){this._driver=t}build(t,e){const i=new fWe(e);return this._resetContextStyleTimingState(i),yu(this,kI(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,s=e.depCount=0;const o=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,r.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:r,queryCount:i,depCount:s,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,r=s||{};if(i.styles.forEach(a=>{if(WL(a)){const l=a;Object.keys(l).forEach(c=>{Wue(l[c]).forEach(d=>{r.hasOwnProperty(d)||o.add(d)})})}}),o.size){const a=GL(o.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:i,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=yu(this,kI(t.animation),e);return{type:1,matchers:aWe(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:pC(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>yu(this,i,e)),options:pC(t.options)}}visitGroup(t,e){const i=e.currentTime;let s=0;const o=t.steps.map(r=>{e.currentTime=i;const a=yu(this,r,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:o,options:pC(t.options)}}visitAnimate(t,e){const i=function(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return t$(zL(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=t$(0,0,"");return o.dynamic=!0,o.strValue=i,o}return e=e||zL(i,t),t$(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let s,o=t.styles?t.styles:zt({});if(5==o.type)s=this.visitKeyframes(o,e);else{let r=t.styles,a=!1;if(!r){a=!0;const c={};i.easing&&(c.easing=i.easing),r=zt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(r,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(r=>{"string"==typeof r?r==Rp?i.push(r):e.errors.push(`The provided style string value ${r} is not allowed.`):i.push(r)}):i.push(t.styles);let s=!1,o=null;return i.forEach(r=>{if(WL(r)){const a=r,l=a.easing;if(l&&(o=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let s=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(r=>{"string"!=typeof r&&Object.keys(r).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let d=!0;c&&(o!=s&&o>=c.startTime&&s<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${o}ms" and "${s}ms"`),d=!1),o=c.startTime),d&&(l[a]={startTime:o,endTime:s}),e.options&&function(n,t,e){const i=t.params||{},s=Wue(n);s.length&&s.forEach(o=>{i.hasOwnProperty(o)||e.push(`Unable to resolve the local animation param ${o} in the given list of values`)})}(r[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let o=0;const r=[];let a=!1,l=!1,c=0;const d=t.steps.map(D=>{const E=this._makeStyleAst(D,e);let O=null!=E.offset?E.offset:function(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(WL(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(WL(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(E.styles),z=0;return null!=O&&(o++,z=E.offset=O),l=l||z<0||z>1,a=a||z0&&o{const O=h>0?E==f?1:h*E:r[E],z=O*k;e.currentTime=m+C.delay+z,C.duration=z,this._validateStyleAst(D,e),D.offset=O,i.styles.push(D)}),i}visitReference(t,e){return{type:8,animation:yu(this,kI(t.animation),e),options:pC(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:pC(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:pC(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[o,r]=function(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(dWe,"")),[n=n.replace(/@\*/g,VL).replace(/@\w+/g,e=>VL+"-"+e.substr(1)).replace(/:animating/g,Y7),t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,mu(e.collectedStyles,e.currentQuerySelector,{});const a=yu(this,kI(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:a,originalSelector:t.selector,options:pC(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:zL(t.timings,e.errors,!0);return{type:12,animation:yu(this,kI(t.animation),e),timings:i,options:null}}}class fWe{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function WL(n){return!Array.isArray(n)&&"object"==typeof n}function pC(n){return n?(n=KT(n)).params&&(n.params=function(n){return n?KT(n):null}(n.params)):n={},n}function t$(n,t,e){return{duration:n,delay:t,easing:e}}function n$(n,t,e,i,s,o,r=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class qL{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let 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()}}const vWe=new RegExp(":enter","g"),CWe=new RegExp(":leave","g");function i$(n,t,e,i,s,o={},r={},a,l,c=[]){return(new xWe).buildKeyframes(n,t,e,i,s,o,r,a,l,c)}class xWe{buildKeyframes(t,e,i,s,o,r,a,l,c,d=[]){c=c||new qL;const u=new s$(t,e,c,s,o,d,[]);u.options=l,u.currentTimeline.setStyles([r],null,u.errors,l),yu(this,i,u);const h=u.timelines.filter(f=>f.containsAnimation());if(h.length&&Object.keys(a).length){const f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,u.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[n$(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const s=e.createSubContext(t.options),o=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,s,s.options);o!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const r=null!=i.duration?uC(i.duration):null,a=null!=i.delay?uC(i.delay):null;return 0!==r&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,r,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),yu(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let s=e;const o=t.options;if(o&&(o.params||o.delay)&&(s=e.createSubContext(o),s.transformIntoNewTimeline(),null!=o.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=XL);const r=uC(o.delay);s.delayNextStep(r)}t.steps.length&&(t.steps.forEach(r=>yu(this,r,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let s=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?uC(t.options.delay):0;t.steps.forEach(r=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),yu(this,r,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return zL(e.params?HL(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const o=s&&s.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,s=t.options||{},o=s.delay?uC(s.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=XL);let r=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(t.options,c);o&&u.delayNextStep(o),c===e.element&&(l=u.currentTimeline),yu(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,s=e.currentTimeline,o=t.timings,r=Math.abs(o.duration),a=r*(e.currentQueryTotal-1);let l=r*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;yu(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=s.currentTime-u+(s.startTime-i.currentTimeline.startTime)}}const XL={};class s${constructor(t,e,i,s,o,r,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=o,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=XL,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new YL(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let s=this.options;null!=i.duration&&(s.duration=uC(i.duration)),null!=i.delay&&(s.delay=uC(i.delay));const o=i.params;if(o){let r=s.params;r||(r=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=HL(o[a],r,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return t}createSubContext(t=null,e,i){const s=e||this.element,o=new s$(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||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}transformIntoNewTimeline(t){return this.previousNode=XL,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new wWe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(o),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,s,o,r){let a=[];if(s&&a.push(this.element),t.length>0){t=(t=t.replace(vWe,"."+this._enterClassName)).replace(CWe,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class YL{constructor(t,e,i,s){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new YL(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Rp,this._currentKeyframe[e]=Rp}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,s){e&&(this._previousKeyframe.easing=e);const o=s&&s.params||{},r=function(n,t){const e={};let i;return n.forEach(s=>{"*"===s?(i=i||Object.keys(t),i.forEach(o=>{e[o]=Rp})):pv(s,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(r).forEach(a=>{const l=HL(r[a],o,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Rp),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=t._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=pv(a,!0);Object.keys(c).forEach(d=>{const u=c[d];"!"==u?t.add(d):u==Rp&&e.add(d)}),i||(c.offset=l/this.duration),s.push(c)});const o=t.size?GL(t.values()):[],r=e.size?GL(e.values()):[];if(i){const a=s[0],l=KT(a);a.offset=0,l.offset=1,s=[a,l]}return n$(this.element,s,o,r,this.duration,this.startTime,this.easing,!1)}}class wWe extends YL{constructor(t,e,i,s,o,r,a=!1){super(t,e,r.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=o,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:s}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],r=i+e,a=e/r,l=pv(t[0],!1);l.offset=0,o.push(l);const c=pv(t[0],!1);c.offset=Que(a),o.push(c);const d=t.length-1;for(let u=1;u<=d;u++){let h=pv(t[u],!1);h.offset=Que((e+h.offset*i)/r),o.push(h)}i=r,e=0,s="",t=o}return n$(this.element,t,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function Que(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class o${}class TWe extends o${normalizePropertyName(t,e){return Q7(t)}normalizeStyleValue(t,e,i,s){let o="";const r=i.toString().trim();if(kWe[e]&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+o}}const kWe=(()=>function(n){const t={};return n.forEach(e=>t[e]=!0),t}("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 Jue(n,t,e,i,s,o,r,a,l,c,d,u,h){return{type:0,element:n,triggerName:t,isRemovalTransition:s,fromState:e,fromStyles:o,toState:i,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const r$={};class ehe{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,s){return function(n,t,e,i,s){return n.some(o=>o(t,e,i,s))}(this.ast.matchers,t,e,i,s)}buildStyles(t,e,i){const s=this._stateStyles["*"],o=this._stateStyles[t],r=s?s.buildStyles(e,i):{};return o?o.buildStyles(e,i):r}build(t,e,i,s,o,r,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||r$,m=this.buildStyles(i,a&&a.params||r$,u),C=l&&l.params||r$,k=this.buildStyles(s,C,u),D=new Set,E=new Map,O=new Map,z="void"===s,q={params:Object.assign(Object.assign({},h),C)},re=d?[]:i$(t,e,this.ast.animation,o,r,m,k,q,c,u);let ie=0;if(re.forEach(Te=>{ie=Math.max(Te.duration+Te.delay,ie)}),u.length)return Jue(e,this._triggerName,i,s,z,m,k,[],[],E,O,ie,u);re.forEach(Te=>{const Ee=Te.element,be=mu(E,Ee,{});Te.preStyleProps.forEach(Re=>be[Re]=!0);const Ke=mu(O,Ee,{});Te.postStyleProps.forEach(Re=>Ke[Re]=!0),Ee!==e&&D.add(Ee)});const Se=GL(D.values());return Jue(e,this._triggerName,i,s,z,m,k,re,Se,E,O,ie)}}class EWe{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},s=KT(this.defaultParams);return Object.keys(t).forEach(o=>{const r=t[o];null!=r&&(s[o]=r)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const r=o;Object.keys(r).forEach(a=>{let l=r[a];l.length>1&&(l=HL(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class AWe{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new EWe(s.style,s.options&&s.options.params||{},i)}),the(this.states,"true","1"),the(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new ehe(t,s,this.states))}),this.fallbackTransition=function(n,t,e){return new ehe(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,s){return this.transitionFactories.find(r=>r.match(t,e,i,s))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function the(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const OWe=new qL;class RWe{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=e$(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=s}_buildPlayer(t,e,i){const s=t.element,o=Rue(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(s,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const s=[],o=this._animations[t];let r;const a=new Map;if(o?(r=i$(this._driver,e,o,X7,NL,{},{},i,OWe,s),r.forEach(d=>{const u=mu(a,d.element,{});d.postStyleProps.forEach(h=>u[h]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);a.forEach((d,u)=>{Object.keys(d).forEach(h=>{d[h]=this._driver.computeStyle(u,h,Rp)})});const c=hv(r.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,s){const o=H7(e,"","","");return V7(this._getPlayer(t),i,o,s),()=>{}}command(t,e,i,s){if("register"==i)return void this.register(t,s[0]);if("create"==i)return void this.create(t,e,s[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const nhe="ng-animate-queued",ihe="ng-animate-disabled",she=".ng-animate-disabled",BWe=[],ohe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VWe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ih="__ng_removed";class a${constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function(n){return null!=n?n:null}(i?t.value:t),i){const o=KT(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const DI="void",l$=new a$(DI);class zWe{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ah(e,this._hostClassName)}listen(t,e,i,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(n){return"start"==n||"done"==n}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const o=mu(this._elementListeners,t,[]),r={name:e,phase:i,callback:s};o.push(r);const a=mu(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ah(t,BL),Ah(t,BL+"-"+e),a[e]=l$),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(r);l>=0&&o.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,s=!0){const o=this._getTrigger(e),r=new c$(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Ah(t,BL),Ah(t,BL+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new a$(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=l$),c.value!==DI&&l.value===c.value){if(!function(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let s=0;s{hC(t,k),rg(t,D)})}return}const h=mu(this._engine.playersByElement,t,[]);h.forEach(C=>{C.namespaceId==this.id&&C.triggerName==e&&C.queued&&C.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),m=!1;if(!f){if(!s)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:r,isFallbackTransition:m}),m||(Ah(t,nhe),r.onStart(()=>{ZT(t,nhe)})),r.onDone(()=>{let C=this.players.indexOf(r);C>=0&&this.players.splice(C,1);const k=this._engine.playersByElement.get(t);if(k){let D=k.indexOf(r);D>=0&&k.splice(D,1)}}),this.players.push(r),h.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,VL,!0);i.forEach(s=>{if(s[Ih])return;const o=this._engine.fetchNamespacesByElement(s);o.size?o.forEach(r=>r.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(t,e,i,s){const o=this._engine.statesByElement.get(t);if(o){const r=[];if(Object.keys(o).forEach(a=>{if(this._triggers[a]){const l=this.trigger(t,a,DI,s);l&&r.push(l)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&hv(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const s=new Set;e.forEach(o=>{const r=o.name;if(s.has(r))return;s.add(r);const l=this._triggers[r].fallbackTransition,c=i[r]||l$,d=new a$(DI),u=new c$(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){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)s=!0;else{let r=t;for(;r=r.parentNode;)if(i.statesByElement.get(r)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Ih];(!o||o===ohe)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Ah(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const o=i.element,r=this._elementListeners.get(o);r&&r.forEach(a=>{if(a.name==i.triggerName){const l=H7(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,V7(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const o=i.transition.ast.depCount,r=s.transition.ast.depCount;return 0==o||0==r?o-r:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class HWe{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new zWe(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){const i=this._namespaceList.length-1;if(i>=0){let s=!1;for(let o=i;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.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 s=this._namespaceLookup[t];s&&s.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const s=Object.keys(i);for(let o=0;o=0&&this.collectedLeaveElements.splice(r,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ah(t,ihe)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ZT(t,ihe))}removeNode(t,e,i,s){if(KL(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),i){const r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,i,s){this.collectedLeaveElements.push(e),e[Ih]={namespaceId:t,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,s,o){return KL(e)?this._fetchNamespace(t).listen(e,i,s,o):()=>{}}_buildInstruction(t,e,i,s,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,s,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,VL,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Y7,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return hv(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Ih];if(e&&e.setForRemoval){if(t[Ih]=ohe,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,she)&&this.markElementAsDisabled(t,!1),this.driver.query(t,she,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?hv(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new qL,s=[],o=new Map,r=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const tt=this.driver.query(Ge,".ng-animate-queued",!0);for(let Dt=0;Dt{const Dt=X7+C++;m.set(tt,Dt),Ge.forEach(Et=>Ah(Et,Dt))});const k=[],D=new Set,E=new Set;for(let Ge=0;GeD.add(Et)):E.add(tt))}const O=new Map,z=lhe(h,Array.from(D));z.forEach((Ge,tt)=>{const Dt=NL+C++;O.set(tt,Dt),Ge.forEach(Et=>Ah(Et,Dt))}),t.push(()=>{f.forEach((Ge,tt)=>{const Dt=m.get(tt);Ge.forEach(Et=>ZT(Et,Dt))}),z.forEach((Ge,tt)=>{const Dt=O.get(tt);Ge.forEach(Et=>ZT(Et,Dt))}),k.forEach(Ge=>{this.processLeaveNode(Ge)})});const q=[],re=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(Dt=>{const Et=Dt.player,Bt=Dt.element;if(q.push(Et),this.collectedEnterElements.length){const Ss=Bt[Ih];if(Ss&&Ss.setForMove)return void Et.destroy()}const _i=!u||!this.driver.containsElement(u,Bt),Mn=O.get(Bt),qs=m.get(Bt),Ni=this._buildInstruction(Dt,i,qs,Mn,_i);if(Ni.errors&&Ni.errors.length)re.push(Ni);else{if(_i)return Et.onStart(()=>hC(Bt,Ni.fromStyles)),Et.onDestroy(()=>rg(Bt,Ni.toStyles)),void s.push(Et);if(Dt.isFallbackTransition)return Et.onStart(()=>hC(Bt,Ni.fromStyles)),Et.onDestroy(()=>rg(Bt,Ni.toStyles)),void s.push(Et);Ni.timelines.forEach(Ss=>Ss.stretchStartingKeyframe=!0),i.append(Bt,Ni.timelines),r.push({instruction:Ni,player:Et,element:Bt}),Ni.queriedElements.forEach(Ss=>mu(a,Ss,[]).push(Et)),Ni.preStyleProps.forEach((Ss,Vs)=>{const hh=Object.keys(Ss);if(hh.length){let oc=l.get(Vs);oc||l.set(Vs,oc=new Set),hh.forEach(br=>oc.add(br))}}),Ni.postStyleProps.forEach((Ss,Vs)=>{const hh=Object.keys(Ss);let oc=c.get(Vs);oc||c.set(Vs,oc=new Set),hh.forEach(br=>oc.add(br))})}});if(re.length){const Ge=[];re.forEach(tt=>{Ge.push(`@${tt.triggerName} has failed due to:\n`),tt.errors.forEach(Dt=>Ge.push(`- ${Dt}\n`))}),q.forEach(tt=>tt.destroy()),this.reportError(Ge)}const ie=new Map,Se=new Map;r.forEach(Ge=>{const tt=Ge.element;i.has(tt)&&(Se.set(tt,tt),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,ie))}),s.forEach(Ge=>{const tt=Ge.element;this._getPreviousPlayers(tt,!1,Ge.namespaceId,Ge.triggerName,null).forEach(Et=>{mu(ie,tt,[]).push(Et),Et.destroy()})});const Te=k.filter(Ge=>dhe(Ge,l,c)),Ee=new Map;ahe(Ee,this.driver,E,c,Rp).forEach(Ge=>{dhe(Ge,l,c)&&Te.push(Ge)});const Ke=new Map;f.forEach((Ge,tt)=>{ahe(Ke,this.driver,new Set(Ge),l,"!")}),Te.forEach(Ge=>{const tt=Ee.get(Ge),Dt=Ke.get(Ge);Ee.set(Ge,Object.assign(Object.assign({},tt),Dt))});const Re=[],Qe=[],Ze={};r.forEach(Ge=>{const{element:tt,player:Dt,instruction:Et}=Ge;if(i.has(tt)){if(d.has(tt))return Dt.onDestroy(()=>rg(tt,Et.toStyles)),Dt.disabled=!0,Dt.overrideTotalTime(Et.totalTime),void s.push(Dt);let Bt=Ze;if(Se.size>1){let Mn=tt;const qs=[];for(;Mn=Mn.parentNode;){const Ni=Se.get(Mn);if(Ni){Bt=Ni;break}qs.push(Mn)}qs.forEach(Ni=>Se.set(Ni,Bt))}const _i=this._buildAnimation(Dt.namespaceId,Et,ie,o,Ke,Ee);if(Dt.setRealPlayer(_i),Bt===Ze)Re.push(Dt);else{const Mn=this.playersByElement.get(Bt);Mn&&Mn.length&&(Dt.parentPlayer=hv(Mn)),s.push(Dt)}}else hC(tt,Et.fromStyles),Dt.onDestroy(()=>rg(tt,Et.toStyles)),Qe.push(Dt),d.has(tt)&&s.push(Dt)}),Qe.forEach(Ge=>{const tt=o.get(Ge.element);if(tt&&tt.length){const Dt=hv(tt);Ge.setRealPlayer(Dt)}}),s.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!_i.destroyed);Bt.length?UWe(this,tt,Bt):this.processLeaveNode(tt)}return k.length=0,Re.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const tt=this.players.indexOf(Ge);this.players.splice(tt,1)}),Ge.play()}),Re}elementContainsData(t,e){let i=!1;const s=e[Ih];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,s,o){let r=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(r=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==DI;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||r.push(c)})}}return(i||s)&&(r=r.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),r}_beforeAnimationBuild(t,e,i){const o=e.element,r=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==o,u=mu(i,c,[]);this._getPreviousPlayers(c,d,r,a,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}hC(o,e.fromStyles)}_buildAnimation(t,e,i,s,o,r){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(m=>{const C=m.element;d.add(C);const k=C[Ih];if(k&&k.removedBeforeQueried)return new YT(m.duration,m.delay);const D=C!==l,E=function(n){const t=[];return che(n,t),t}((i.get(C)||BWe).map(ie=>ie.getRealPlayer())).filter(ie=>!!ie.element&&ie.element===C),O=o.get(C),z=r.get(C),q=Rue(0,this._normalizer,0,m.keyframes,O,z),re=this._buildPlayer(m,q,E);if(m.subTimeline&&s&&u.add(C),D){const ie=new c$(t,a,C);ie.setRealPlayer(re),c.push(ie)}return re});c.forEach(m=>{mu(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Ah(m,Gue));const f=hv(h);return f.onDestroy(()=>{d.forEach(m=>ZT(m,Gue)),rg(l,e.toStyles)}),u.forEach(m=>{mu(s,m,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new YT(t.duration,t.delay)}}class c${constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new YT,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>V7(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){mu(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function KL(n){return n&&1===n.nodeType}function rhe(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function ahe(n,t,e,i,s){const o=[];e.forEach(l=>o.push(rhe(l)));const r=[];i.forEach((l,c)=>{const d={};l.forEach(u=>{const h=d[u]=t.computeStyle(c,u,s);(!h||0==h.length)&&(c[Ih]=VWe,r.push(c))}),n.set(c,d)});let a=0;return e.forEach(l=>rhe(l,o[a++])),r}function lhe(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const s=new Set(t),o=new Map;function r(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:r(c),o.set(a,l),l}return t.forEach(a=>{const l=r(a);1!==l&&e.get(l).push(a)}),e}const ZL="$$classes";function Ah(n,t){if(n.classList)n.classList.add(t);else{let e=n[ZL];e||(e=n[ZL]={}),e[t]=!0}}function ZT(n,t){if(n.classList)n.classList.remove(t);else{let e=n[ZL];e&&delete e[t]}}function UWe(n,t,e){hv(e).onDone(()=>n.processLeaveNode(t))}function che(n,t){for(let e=0;es.add(o)):t.set(n,i),e.delete(n),!0}class QL{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,o)=>{},this._transitionEngine=new HWe(t,e,i),this._timelineEngine=new RWe(t,e,i),this._transitionEngine.onRemovalComplete=(s,o)=>this.onRemovalComplete(s,o)}registerTrigger(t,e,i,s,o){const r=t+"-"+s;let a=this._triggerCache[r];if(!a){const l=[],c=e$(this._driver,o,l);if(l.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(n,t,e){return new AWe(n,t,e)}(s,c,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,s,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,s){this._transitionEngine.insertNode(t,e,i,s)}onRemove(t,e,i,s){this._transitionEngine.removeNode(t,e,s||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,s){if("@"==i.charAt(0)){const[o,r]=Pue(i);this._timelineEngine.command(o,e,r,s)}else this._transitionEngine.trigger(t,e,i,s)}listen(t,e,i,s,o){if("@"==i.charAt(0)){const[r,a]=Pue(i);return this._timelineEngine.listen(r,e,a,o)}return this._transitionEngine.listen(t,e,i,s,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function uhe(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=d$(t[0]),t.length>1&&(i=d$(t[t.length-1]))):t&&(e=d$(t)),e||i?new QT(n,e,i):null}class QT{constructor(t,e,i){this._element=t,this._startStyles=e,this._endStyles=i,this._state=0;let s=QT.initialStylesByElement.get(t);s||QT.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&rg(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rg(this._element,this._initialStyles),this._endStyles&&(rg(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(QT.initialStylesByElement.delete(this._element),this._startStyles&&(hC(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hC(this._element,this._endStyles),this._endStyles=null),rg(this._element,this._initialStyles),this._state=3)}}function d$(n){let t=null;const e=Object.keys(n);for(let i=0;ithis._handleCallback(l)}apply(){(function(n,t){const e=h$(n,"").trim();let i=0;e.length&&(function(n,t){let e=0;for(let i=0;i=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),mhe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(n,t){const i=h$(n,"").split(","),s=u$(i,t);s>=0&&(i.splice(s,1),JL(n,"",i.join(",")))}(this._element,this._name))}}function fhe(n,t,e){JL(n,"PlayState",e,ghe(n,t))}function ghe(n,t){const e=h$(n,"");return e.indexOf(",")>0?u$(e.split(","),t):u$([e],t)}function u$(n,t){for(let e=0;e=0)return e;return-1}function mhe(n,t,e){e?n.removeEventListener(phe,t):n.addEventListener(phe,t)}function JL(n,t,e,i){const s="animation"+t;if(null!=i){const o=n.style[s];if(o.length){const r=o.split(",");r[i]=e,e=r.join(",")}}n.style[s]=e}function h$(n,t){return n.style["animation"+t]||""}class yhe{constructor(t,e,i,s,o,r,a,l){this.element=t,this.keyframes=e,this.animationName=i,this._duration=s,this._delay=o,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+o,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ZWe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:J7(this.element,i))})}this.currentSnapshot=t}}class iqe extends YT{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Vue(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class vhe{constructor(){this._count=0}validateStyleProperty(t){return $7(t)}matchesElement(t,e){return U7(t,e)}containsElement(t,e){return W7(t,e)}query(t,e,i){return q7(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(a=>Vue(a));let s=`@keyframes ${e} {\n`,o="";i.forEach(a=>{o=" ";const l=parseFloat(a.offset);s+=`${o}${100*l}% {\n`,o+=" ",Object.keys(a).forEach(c=>{const d=a[c];switch(c){case"offset":return;case"easing":return void(d&&(s+=`${o}animation-timing-function: ${d};\n`));default:return void(s+=`${o}${c}: ${d};\n`)}}),s+=`${o}}\n`}),s+="}\n";const r=document.createElement("style");return r.textContent=s,r}animate(t,e,i,s,o,r=[],a){const l=r.filter(k=>k instanceof yhe),c={};que(i,s)&&l.forEach(k=>{let D=k.currentSnapshot;Object.keys(D).forEach(E=>c[E]=D[E])});const d=function(n){let t={};return n&&(Array.isArray(n)?n:[n]).forEach(i=>{Object.keys(i).forEach(s=>{"offset"==s||"easing"==s||(t[s]=i[s])})}),t}(e=Xue(t,e,c));if(0==i)return new iqe(t,d);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(n){var t;const e=null===(t=n.getRootNode)||void 0===t?void 0:t.call(n);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const m=uhe(t,e),C=new yhe(t,e,u,i,s,o,d,m);return C.onDestroy(()=>function(n){n.parentNode.removeChild(n)}(h)),C}}class Che{constructor(t,e,i,s){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=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;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:J7(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class lqe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(xhe().toString()),this._cssKeyframesDriver=new vhe}validateStyleProperty(t){return $7(t)}matchesElement(t,e){return U7(t,e)}containsElement(t,e){return W7(t,e)}query(t,e,i){return q7(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,s,o,r=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,s,o,r);const d={duration:i,delay:s,fill:0==s?"both":"forwards"};o&&(d.easing=o);const u={},h=r.filter(m=>m instanceof Che);que(i,s)&&h.forEach(m=>{let C=m.currentSnapshot;Object.keys(C).forEach(k=>u[k]=C[k])});const f=uhe(t,e=Xue(t,e=e.map(m=>pv(m,!1)),u));return new Che(t,e,d,f)}}function xhe(){return Oue()&&Element.prototype.animate||{}}let dqe=(()=>{class n extends og{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:On.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?PL(e):e;return whe(this._renderer,null,i,"register",[s]),new uqe(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(V(Q0),V($t))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class uqe extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new hqe(this._id,t,e||{},this._renderer)}}class hqe{constructor(t,e,i,s){this.id=t,this.element=e,this._renderer=s,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){return whe(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(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function whe(n,t,e,i,s){return n.setProperty(t,`@@${e}:${i}`,s)}const She="@.disabled";let pqe=(()=>{class n{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,r)=>{r&&r.parentNode(o)&&r.removeChild(o.parentNode,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(o);return d||(d=new The("",o,this.engine),this._rendererCache.set(o,d)),d}const r=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(r,a,e,d.name,d)};return i.data.animation.forEach(l),new fqe(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&ei(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[r,a]=o;r(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(V(Q0),V(QL),V(ce))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class The{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,s=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,s)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,s){this.delegate.setAttribute(t,e,i,s)}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,s){this.delegate.setStyle(t,e,i,s)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==She?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)}}class fqe extends The{constructor(t,e,i,s){super(e,i,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==She?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const s=function(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.substr(1),r="";return"@"!=o.charAt(0)&&([o,r]=function(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(o)),this.engine.listen(this.namespaceId,s,o,r,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let yqe=(()=>{class n extends QL{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(V($t),V(LL),V(o$))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const jo=new ot("AnimationModuleType"),khe=[{provide:og,useClass:dqe},{provide:o$,useFactory:function(){return new TWe}},{provide:QL,useClass:yqe},{provide:Q0,useFactory:function(n,t,e){return new pqe(n,t,e)},deps:[_L,QL,ce]}],Dhe=[{provide:LL,useFactory:function(){return"function"==typeof xhe()?new lqe:new vhe}},{provide:jo,useValue:"BrowserAnimations"},...khe],Mhe=[{provide:LL,useClass:zue},{provide:jo,useValue:"NoopAnimations"},...khe];let Cqe=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Mhe:Dhe}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:Dhe,imports:[f7]}),n})();const p$=new ot("NGXS_STORAGE_PLUGIN_OPTION"),Ehe=new ot("STORAGE_ENGINE"),f$="@@STATE",Ihe="NGXS_OPTIONS_META";function xqe(n){return Array.isArray(n)||(n=[n]),n.map(t=>(t.hasOwnProperty(Ihe)&&(t=t[Ihe].name),t instanceof class{constructor(t){this.name=t,(function(n){return n.hasOwnProperty(b7)||Object.defineProperty(n,b7,{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),k7(n)}(this)).makeRootSelector=i=>i.getStateGetter(this.name)}getName(){return this.name}toString(){return`StateToken[${this.name}]`}}?t.getName():t))}function wqe(n){return void 0!==n&&n.key&&(n.key=xqe(n.key)),Object.assign({key:[f$],storage:0,serialize:JSON.stringify,deserialize:JSON.parse,beforeSerialize:t=>t,afterDeserialize:t=>t},n)}function Sqe(n,t){return ng(t)?null:0===n.storage?localStorage:1===n.storage?sessionStorage:null}let Tqe=(()=>{class n{constructor(e,i,s){this._options=e,this._engine=i,this._platformId=s}handle(e,i,s){if(ng(this._platformId)&&null===this._engine)return s(e,i);const o=this._options.key,r=function(n){const t=lC(n);return function(e){return t===lC(e)}}(i),a=r(gue)||r(mue);let l=!1;if(a)for(const c of o){const d=c===f$;let u=this._engine.getItem(c);if("undefined"!==u&&null!=u){try{const h=this._options.deserialize(u);u=this._options.afterDeserialize(h,c)}catch(h){console.error("Error ocurred while deserializing the store value, falling back to empty object."),u={}}this._options.migrations&&this._options.migrations.forEach(h=>{h.version===$T(u,h.versionKey||"version")&&(!h.key&&d||h.key===c)&&(u=h.migrate(u),l=!0)}),e=d?Object.assign({},e,u):C7(e,c,u)}}return s(e,i).pipe(lt(c=>{if(!a||a&&l)for(const d of o){let u=c;d!==f$&&(u=$T(c,d));try{const h=this._options.beforeSerialize(u,d);this._engine.setItem(d,this._options.serialize(h))}catch(h){console.error("Error ocurred while serializing the store value, value not updated.")}}}))}}return n.\u0275fac=function(e){return new(e||n)(V(p$),V(Ehe),V(Xr))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const Ahe=new ot("USER_OPTIONS");let kqe=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:v7,useClass:Tqe,multi:!0},{provide:Ahe,useValue:e},{provide:p$,useFactory:wqe,deps:[Ahe]},{provide:Ehe,useFactory:Sqe,deps:[p$,Xr]}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();const tN=(n,t)=>((n,t)=>new Array(t+1).join("0"))(0,t-n.toString().length)+n;class Eqe{constructor(t,e,i){this.action=t,this.store=e,this.logWriter=i}dispatched(t){const e=lC(this.action),i=function(n){return tN(n.getHours(),2)+":"+tN(n.getMinutes(),2)+":"+tN(n.getSeconds(),2)+"."+tN(n.getMilliseconds(),3)}(new Date);this.logWriter.startGroup(`action ${e} @ ${i}`),this._hasPayload(this.action)&&this.logWriter.logGrey("payload",Object.assign({},this.action)),this.logWriter.logGrey("prev state",t)}completed(t){this.logWriter.logGreen("next state",t),this.logWriter.endGroup()}errored(t){this.logWriter.logRedish("next state after error",this.store.snapshot()),this.logWriter.logRedish("error",t),this.logWriter.endGroup()}_hasPayload(t){return this._getNonEmptyProperties(t).length>0}_getNonEmptyProperties(t){return Object.keys(t).map(s=>t[s]).filter(s=>void 0!==s)}}class Iqe{constructor(t){this.options=t,this.options=this.options||{},this.logger=t.logger||console}startGroup(t){const e=this.options.collapsed?this.logger.groupCollapsed:this.logger.group;try{e.call(this.logger,t)}catch(i){console.log(t)}}endGroup(){try{this.logger.groupEnd()}catch(t){this.logger.log("\u2014\u2014 log end \u2014\u2014")}}logGrey(t,e){this.log(t,"color: #9E9E9E; font-weight: bold",e)}logGreen(t,e){this.log(t,"color: #4CAF50; font-weight: bold",e)}logRedish(t,e){this.log(t,"color: #FD8182; font-weight: bold",e)}log(t,e,i){this.isIE()?this.logger.log(t,i):this.logger.log("%c "+t,e,i)}isIE(){const t="undefined"!=typeof window&&window.navigator.userAgent?window.navigator.userAgent:"";let e=!1;const i=t.indexOf("MSIE "),s=t.indexOf("Trident/");return(i>-1||s>-1)&&(e=!0),e}}const Fhe=new ot("NGXS_LOGGER_PLUGIN_OPTIONS");let Aqe=(()=>{class n{constructor(e,i){this._options=e,this._injector=i}handle(e,i,s){if(this._options.disabled||!this._options.filter(i,e))return s(e,i);this._logWriter=this._logWriter||new Iqe(this._options),this._store=this._store||this._injector.get(zi);const o=new Eqe(i,this._store,this._logWriter);return o.dispatched(e),s(e,i).pipe(lt(r=>{o.completed(r)}),fl(r=>{throw o.errored(r),r}))}}return n.\u0275fac=function(e){return new(e||n)(V(Fhe),V(Jt))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const Ohe=new ot("LOGGER_USER_OPTIONS");function Fqe(n){return Object.assign({},{logger:console,collapsed:!1,disabled:!1,filter:()=>!0},n)}let Oqe=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:v7,useClass:Aqe,multi:!0},{provide:Ohe,useValue:e},{provide:Fhe,useFactory:Fqe,deps:[Ohe]}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();const Rqe=fc("routeAnimations",[Go("* <=> *",[zt({position:"relative"}),dy(":enter, :leave",[zt({position:"absolute",right:0,width:"100%"})],{optional:!0}),dy(":enter",[zt({right:"-100%",opacity:0})],{optional:!0}),dy(":enter",L7(),{optional:!0}),function(n,t=null){return{type:3,steps:n,options:t}}([dy(":leave",[Xi("300ms ease-out",zt({right:"100%",opacity:0}))],{optional:!0}),dy(":enter",[Xi("300ms ease-out",zt({right:"0%",opacity:1}))],{optional:!0})]),dy(":leave",L7(),{optional:!0})])]);var fv;!function(n){n.LogIn=(()=>{class s{constructor(r){this.payload=r}}return s.type="[Auth] Log In",s})(),n.LogOut=(()=>{class s{}return s.type="[Auth] Log Out",s})(),n.UpdateSignedInUser=(()=>{class s{constructor(r){this.payload=r}}return s.type="[Auth] Update Signed In User",s})()}(fv||(fv={}));class Pqe extends In{notifyNext(t,e,i,s,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Lqe extends In{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Nqe(n,t,e,i,s=new Lqe(n,e,i)){if(!s.closed)return t instanceof an?t.subscribe(s):X_(t)(s)}const Rhe={};function nN(...n){let t,e;return qe(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Ht(n[0])&&(n=n[0]),P0(n,e).lift(new Bqe(t))}class Bqe{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Vqe(t,this.resultSelector))}}class Vqe extends Pqe{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Rhe),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function sN(...n){return Y_(1)(Vt(...n))}function oN(n){return new an(t=>{let e;try{e=n()}catch(s){return void t.error(s)}return(e?Ys(e):CL()).subscribe(t)})}function ls(n,t){return"function"==typeof t?e=>e.pipe(ls((i,s)=>Ys(n(i,s)).pipe(xe((o,r)=>t(i,o,s,r))))):e=>e.lift(new Hqe(n))}class Hqe{constructor(t){this.project=t}call(t,e){return e.subscribe(new Gqe(t,this.project))}}class Gqe extends Pf{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ru(this),s=this.destination;s.add(i),this.innerSubscription=Lf(t,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}function $o(...n){const t=n[n.length-1];return qe(t)?(n.pop(),e=>sN(n,e,t)):e=>sN(n,e)}function g$(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new jqe(n,t,e))}}class jqe{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new $qe(t,this.accumulator,this.seed,this.hasSeed))}}class $qe extends In{constructor(t,e,i,s){super(t),this.accumulator=e,this._seed=i,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(s){this.destination.error(s)}this.seed=i,this.destination.next(i)}}function m$(n){return function(e){return 0===n?CL():e.lift(new Uqe(n))}}class Uqe{constructor(t){if(this.total=t,this.total<0)throw new Zde}call(t,e){return e.subscribe(new Wqe(t,this.total))}}class Wqe extends In{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,s=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,s=this.ring;for(let o=0;ot.lift(new qqe(n))}class qqe{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Xqe(t,this.errorFactory))}}class Xqe extends In{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function Yqe(){return new iN}function fC(n,t){const e=arguments.length>=2;return i=>i.pipe(n?dt((s,o)=>n(s,o,i)):Gr,jn(1),e?TL(t):Phe(()=>new iN))}function y$(n){return t=>t.lift(new Zqe(n))}class Zqe{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Qqe(t,this.callback))}}class Qqe extends In{constructor(t,e){super(t),this.add(new Je(e))}}class uy{constructor(t,e){this.id=t,this.url=e}}class _$ extends uy{constructor(t,e,i="imperative",s=null){super(t,e),this.navigationTrigger=i,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class MI extends uy{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Lhe extends uy{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jqe extends uy{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class eXe extends uy{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tXe extends uy{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nXe extends uy{constructor(t,e,i,s,o){super(t,e),this.urlAfterRedirects=i,this.state=s,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class iXe extends uy{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sXe extends uy{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nhe{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bhe{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oXe{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rXe{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aXe{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lXe{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vhe{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const is="primary";class cXe{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function JT(n){return new cXe(n)}const zhe="ngNavigationCancelingError";function v$(n){const t=Error("NavigationCancelingError: "+n);return t[zhe]=!0,t}function uXe(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===s)}return n===t}function Ghe(n){return Array.prototype.concat.apply([],n)}function jhe(n){return n.length>0?n[n.length-1]:null}function Gl(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function lg(n){return SP(n)?n:WE(n)?Ys(Promise.resolve(n)):Vt(n)}const fXe={exact:function Whe(n,t,e){if(!mC(n.segments,t.segments)||!rN(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!Whe(n.children[i],t.children[i],e))return!1;return!0},subset:qhe},$he={exact:function(n,t){return ag(n,t)},subset:function(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>Hhe(n[e],t[e]))},ignored:()=>!0};function Uhe(n,t,e){return fXe[e.paths](n.root,t.root,e.matrixParams)&&$he[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function qhe(n,t,e){return Xhe(n,t,t.segments,e)}function Xhe(n,t,e,i){if(n.segments.length>e.length){const s=n.segments.slice(0,e.length);return!(!mC(s,e)||t.hasChildren()||!rN(s,e,i))}if(n.segments.length===e.length){if(!mC(n.segments,e)||!rN(n.segments,e,i))return!1;for(const s in t.children)if(!n.children[s]||!qhe(n.children[s],t.children[s],i))return!1;return!0}{const s=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(mC(n.segments,s)&&rN(n.segments,s,i)&&n.children[is])&&Xhe(n.children[is],t,o,i)}}function rN(n,t,e){return t.every((i,s)=>$he[e](n[s].parameters,i.parameters))}class gC{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=JT(this.queryParams)),this._queryParamMap}toString(){return vXe.serialize(this)}}class us{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Gl(e,(i,s)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return aN(this)}}class EI{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=JT(this.parameters)),this._parameterMap}toString(){return Qhe(this)}}function mC(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class b${}class Yhe{parse(t){const e=new MXe(t);return new gC(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${`/${II(t.root,!0)}`}${function(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(s=>`${lN(e)}=${lN(s)}`).join("&"):`${lN(e)}=${lN(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${function(n){return encodeURI(n)}(t.fragment)}`:""}`}}const vXe=new Yhe;function aN(n){return n.segments.map(t=>Qhe(t)).join("/")}function II(n,t){if(!n.hasChildren())return aN(n);if(t){const e=n.children[is]?II(n.children[is],!1):"",i=[];return Gl(n.children,(s,o)=>{o!==is&&i.push(`${o}:${II(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(n,t){let e=[];return Gl(n.children,(i,s)=>{s===is&&(e=e.concat(t(i,s)))}),Gl(n.children,(i,s)=>{s!==is&&(e=e.concat(t(i,s)))}),e}(n,(i,s)=>s===is?[II(n.children[is],!1)]:[`${s}:${II(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[is]?`${aN(n)}/${e[0]}`:`${aN(n)}/(${e.join("//")})`}}function Khe(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lN(n){return Khe(n).replace(/%3B/gi,";")}function C$(n){return Khe(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cN(n){return decodeURIComponent(n)}function Zhe(n){return cN(n.replace(/\+/g,"%20"))}function Qhe(n){return`${C$(n.path)}${function(n){return Object.keys(n).map(t=>`;${C$(t)}=${C$(n[t])}`).join("")}(n.parameters)}`}const wXe=/^[^\/()?;=#]+/;function dN(n){const t=n.match(wXe);return t?t[0]:""}const SXe=/^[^=?&#]+/,kXe=/^[^?&#]+/;class MXe{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new us([],{}):new us([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[is]=new us(t,e)),i}parseSegment(){const t=dN(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new EI(cN(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=dN(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=dN(this.remaining);s&&(i=s,this.capture(i))}t[cN(e)]=cN(i)}parseQueryParam(t){const e=function(n){const t=n.match(SXe);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=function(n){const t=n.match(kXe);return t?t[0]:""}(this.remaining);r&&(i=r,this.capture(i))}const s=Zhe(e),o=Zhe(i);if(t.hasOwnProperty(s)){let r=t[s];Array.isArray(r)||(r=[r],t[s]=r),r.push(o)}else t[s]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=dN(this.remaining),s=this.remaining[i.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let o;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=is);const r=this.parseChildren();e[o]=1===Object.keys(r).length?r[is]:new us([],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)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Jhe{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=x$(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=x$(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=w$(t,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==t)}pathFromRoot(t){return w$(t,this._root).map(e=>e.value)}}function x$(n,t){if(n===t.value)return t;for(const e of t.children){const i=x$(n,e);if(i)return i}return null}function w$(n,t){if(n===t.value)return[t];for(const e of t.children){const i=w$(n,e);if(i.length)return i.unshift(t),i}return[]}class hy{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function AI(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class epe extends Jhe{constructor(t,e){super(t),this.snapshot=e,S$(this,t)}toString(){return this.snapshot.toString()}}function tpe(n,t){const e=function(n,t){const r=new uN([],{},{},"",{},is,t,null,n.root,-1,{});return new ipe("",new hy(r,[]))}(n,t),i=new Hs([new EI("",{})]),s=new Hs({}),o=new Hs({}),r=new Hs({}),a=new Hs(""),l=new yC(i,s,r,a,o,is,t,e.root);return l.snapshot=e.root,new epe(new hy(l,[]),e)}class yC{constructor(t,e,i,s,o,r,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=s,this.data=o,this.outlet=r,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(xe(t=>JT(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(xe(t=>JT(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function npe(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const s=e[i],o=e[i-1];if(s.routeConfig&&""===s.routeConfig.path)i--;else{if(o.component)break;i--}}return function(n){return n.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class uN{constructor(t,e,i,s,o,r,a,l,c,d,u){this.url=t,this.params=e,this.queryParams=i,this.fragment=s,this.data=o,this.outlet=r,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=JT(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=JT(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ipe extends Jhe{constructor(t,e){super(e),this.url=t,S$(this,e)}toString(){return spe(this._root)}}function S$(n,t){t.value._routerState=n,t.children.forEach(e=>S$(n,e))}function spe(n){const t=n.children.length>0?` { ${n.children.map(spe).join(", ")} } `:"";return`${n.value}${t}`}function T$(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,ag(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),ag(t.params,e.params)||n.params.next(e.params),function(n,t){if(n.length!==t.length)return!1;for(let e=0;eag(e.parameters,t[i].parameters))}(n.url,t.url)&&!(!n.parent!=!t.parent)&&(!n.parent||k$(n.parent,t.parent))}function hN(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const s=function(n,t,e){return t.children.map(i=>{for(const s of e.children)if(n.shouldReuseRoute(i.value,s.value.snapshot))return hN(n,i,s);return hN(n,i)})}(n,t,e);return new hy(i,s)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const r=o.route;return ope(t,r),r}}const i=function(n){return new yC(new Hs(n.url),new Hs(n.params),new Hs(n.queryParams),new Hs(n.fragment),new Hs(n.data),n.outlet,n.component,n)}(t.value),s=t.children.map(o=>hN(n,o));return new hy(i,s)}}function ope(n,t){if(n.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=n.value;for(let e=0;e{o[a]=Array.isArray(r)?r.map(l=>`${l}`):`${r}`}),new gC(e.root===n?t:rpe(e.root,n,t),o,s)}function rpe(n,t,e){const i={};return Gl(n.children,(s,o)=>{i[o]=s===t?e:rpe(s,t,e)}),new us(n.segments,i)}class ape{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&pN(i[0]))throw new Error("Root segment cannot have matrix parameters");const s=i.find(FI);if(s&&s!==jhe(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class M${constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function lpe(n,t,e){if(n||(n=new us([],{})),0===n.segments.length&&n.hasChildren())return fN(n,t,e);const i=function(n,t,e){let i=0,s=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return o;const r=n.segments[s],a=e[i];if(FI(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!dpe(l,c,r))return o;i+=2}else{if(!dpe(l,{},r))return o;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(n,t,e),s=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(s[r]=lpe(n.children[r],t,o))}),Gl(n.children,(o,r)=>{void 0===i[r]&&(s[r]=o)}),new us(n.segments,s)}}function E$(n,t,e){const i=n.segments.slice(0,t);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=E$(new us([],{}),0,e))}),t}function cpe(n){const t={};return Gl(n,(e,i)=>t[i]=`${e}`),t}function dpe(n,t,e){return n==e.path&&ag(t,e.parameters)}class GXe{constructor(t,e,i,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=s}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),T$(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const s=AI(e);t.children.forEach(o=>{const r=o.value.outlet;this.deactivateRoutes(o,s[r],i),delete s[r]}),Gl(s,(o,r)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const s=t.value,o=e?e.value:null;if(s===o)if(s.component){const r=i.getContext(s.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const s=i.outlet.detach(),o=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:o})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),s=i&&t.value.component?i.children:e,o=AI(t);for(const r of Object.keys(o))this.deactivateRouteAndItsChildren(o[r],s);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const s=AI(e);t.children.forEach(o=>{this.activateRoutes(o,s[o.value.outlet],i),this.forwardEvent(new lXe(o.value.snapshot))}),t.children.length&&this.forwardEvent(new rXe(t.value.snapshot))}activateRoutes(t,e,i){const s=t.value,o=e?e.value:null;if(T$(s),s===o)if(s.component){const r=i.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(s.component){const r=i.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const a=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.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),upe(a.route)}else{const a=function(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),l=a?a.module.componentFactoryResolver:null;r.attachRef=null,r.route=s,r.resolver=l,r.outlet&&r.outlet.activateWith(s,l),this.activateChildRoutes(t,null,r.children)}}else this.activateChildRoutes(t,null,i)}}function upe(n){T$(n.value),n.children.forEach(upe)}class I${constructor(t,e){this.routes=t,this.module=e}}function gv(n){return"function"==typeof n}function _C(n){return n instanceof gC}const OI=Symbol("INITIAL_VALUE");function RI(){return ls(n=>nN(n.map(t=>t.pipe(jn(1),$o(OI)))).pipe(g$((t,e)=>{let i=!1;return e.reduce((s,o,r)=>s!==OI?s:(o===OI&&(i=!0),i||!1!==o&&r!==e.length-1&&!_C(o)?s:o),t)},OI),dt(t=>t!==OI),xe(t=>_C(t)?t:!0===t),jn(1)))}let hpe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&P(0,"router-outlet")},directives:function(){return[P$]},encapsulation:2}),n})();function ppe(n,t=""){for(let e=0;eFh(i)===t);return e.push(...n.filter(i=>Fh(i)!==t)),e}const gpe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function gN(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},gpe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const o=(t.matcher||uXe)(e,n,t);if(!o)return Object.assign({},gpe);const r={};Gl(o.posParams,(l,c)=>{r[c]=l.path});const a=o.consumed.length>0?Object.assign(Object.assign({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function mN(n,t,e,i,s="corrected"){if(e.length>0&&function(n,t,e){return e.some(i=>yN(n,t,i)&&Fh(i)!==is)}(n,e,i)){const r=new us(t,function(n,t,e,i){const s={};s[is]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&Fh(o)!==is){const r=new us([],{});r._sourceSegment=n,r._segmentIndexShift=t.length,s[Fh(o)]=r}return s}(n,t,i,new us(e,n.children)));return r._sourceSegment=n,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===e.length&&function(n,t,e){return e.some(i=>yN(n,t,i))}(n,e,i)){const r=new us(n.segments,function(n,t,e,i,s,o){const r={};for(const a of i)if(yN(n,e,a)&&!s[Fh(a)]){const l=new us([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,r[Fh(a)]=l}return Object.assign(Object.assign({},s),r)}(n,t,e,i,n.children,s));return r._sourceSegment=n,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:e}}const o=new us(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function yN(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function mpe(n,t,e,i){return!!(Fh(n)===i||i!==is&&yN(t,e,n))&&("**"===n.path||gN(t,n,e).matched)}function ype(n,t,e){return 0===t.length&&!n.children[e]}class PI{constructor(t){this.segmentGroup=t||null}}class _pe{constructor(t){this.urlTree=t}}function _N(n){return new an(t=>t.error(new PI(n)))}function vpe(n){return new an(t=>t.error(new _pe(n)))}function tYe(n){return new an(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class sYe{constructor(t,e,i,s,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=s,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Qf)}apply(){const t=mN(this.urlTree.root,[],[],this.config).segmentGroup,e=new us(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,is).pipe(xe(o=>this.createUrlTree(F$(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(fl(o=>{if(o instanceof _pe)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof PI?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,is).pipe(xe(s=>this.createUrlTree(F$(s),t.queryParams,t.fragment))).pipe(fl(s=>{throw s instanceof PI?this.noMatchError(s):s}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const s=t.segments.length>0?new us([],{[is]:t}):t;return new gC(s,e,i)}expandSegmentGroup(t,e,i,s){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(xe(o=>new us([],o))):this.expandSegment(t,i,e,i.segments,s,!0)}expandChildren(t,e,i){const s=[];for(const o of Object.keys(i.children))"primary"===o?s.unshift(o):s.push(o);return Ys(s).pipe(ly(o=>{const r=i.children[o],a=fpe(e,o);return this.expandSegmentGroup(t,a,r,o).pipe(xe(l=>({segment:l,outlet:o})))}),g$((o,r)=>(o[r.outlet]=r.segment,o),{}),function(n,t){const e=arguments.length>=2;return i=>i.pipe(n?dt((s,o)=>n(s,o,i)):Gr,m$(1),e?TL(t):Phe(()=>new iN))}())}expandSegment(t,e,i,s,o,r){return Ys(i).pipe(ly(a=>this.expandSegmentAgainstRoute(t,e,i,a,s,o,r).pipe(fl(c=>{if(c instanceof PI)return Vt(null);throw c}))),fC(a=>!!a),fl((a,l)=>{if(a instanceof iN||"EmptyError"===a.name){if(ype(e,s,o))return Vt(new us([],{}));throw new PI(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,s,o,r,a){return mpe(s,e,o,r)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,o,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,s,o,r):_N(e):_N(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,s,o,r){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,s,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,s,o,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,s){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?vpe(o):this.lineralizeSegments(i,o).pipe(jr(r=>{const a=new us(r,{});return this.expandSegment(t,a,e,r,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,s,o,r){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:d}=gN(e,s,o);if(!a)return _N(e);const u=this.applyRedirectCommands(l,s.redirectTo,d);return s.redirectTo.startsWith("/")?vpe(u):this.lineralizeSegments(s,u).pipe(jr(h=>this.expandSegment(t,e,i,h.concat(o.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,i,s,o){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Vt(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(xe(h=>(i._loadedConfig=h,new us(s,{})))):Vt(new us(s,{}));const{matched:r,consumedSegments:a,lastChild:l}=gN(e,i,s);if(!r)return _N(e);const c=s.slice(l);return this.getChildConfig(t,i,s).pipe(jr(u=>{const h=u.module,f=u.routes,{segmentGroup:m,slicedSegments:C}=mN(e,a,c,f),k=new us(m.segments,m.children);if(0===C.length&&k.hasChildren())return this.expandChildren(h,f,k).pipe(xe(z=>new us(a,z)));if(0===f.length&&0===C.length)return Vt(new us(a,{}));const D=Fh(i)===o;return this.expandSegment(h,k,f,C,D?is:o,!0).pipe(xe(O=>new us(a.concat(O.segments),O.children)))}))}getChildConfig(t,e,i){return e.children?Vt(new I$(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Vt(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(jr(s=>s?this.configLoader.load(t.injector,e).pipe(xe(o=>(e._loadedConfig=o,o))):function(n){return new an(t=>t.error(v$(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):Vt(new I$([],t))}runCanLoadGuards(t,e,i){const s=e.canLoad;return s&&0!==s.length?Vt(s.map(r=>{const a=t.get(r);let l;if(function(n){return n&&gv(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!gv(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return lg(l)})).pipe(RI(),lt(r=>{if(!_C(r))return;const a=v$(`Redirecting to "${this.urlSerializer.serialize(r)}"`);throw a.url=r,a}),xe(r=>!0===r)):Vt(!0)}lineralizeSegments(t,e){let i=[],s=e.root;for(;;){if(i=i.concat(s.segments),0===s.numberOfChildren)return Vt(i);if(s.numberOfChildren>1||!s.children[is])return tYe(t.redirectTo);s=s.children[is]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,s){const o=this.createSegmentGroup(t,e.root,i,s);return new gC(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Gl(t,(s,o)=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);i[o]=e[a]}else i[o]=s}),i}createSegmentGroup(t,e,i,s){const o=this.createSegments(t,e.segments,i,s);let r={};return Gl(e.children,(a,l)=>{r[l]=this.createSegmentGroup(t,a,i,s)}),new us(o,r)}createSegments(t,e,i,s){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,s):this.findOrReturn(o,i))}findPosParam(t,e,i){const s=i[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return s}findOrReturn(t,e){let i=0;for(const s of e){if(s.path===t.path)return e.splice(i),s;i++}return t}}function F$(n){const t={};for(const i of Object.keys(n.children)){const o=F$(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function(n){if(1===n.numberOfChildren&&n.children[is]){const t=n.children[is];return new us(n.segments.concat(t.segments),t.children)}return n}(new us(n.segments,t))}class bpe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class vN{constructor(t,e){this.component=t,this.route=e}}function aYe(n,t,e){const i=n._root;return LI(i,t?t._root:null,e,[i.value])}function bN(n,t,e){const i=function(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function LI(n,t,e,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=AI(t);return n.children.forEach(r=>{(function(n,t,e,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,r=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const l=function(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!mC(n.url,t.url);case"pathParamsOrQueryParamsChange":return!mC(n.url,t.url)||!ag(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!k$(n,t)||!ag(n.queryParams,t.queryParams);case"paramsChange":default:return!k$(n,t)}}(r,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new bpe(i)):(o.data=r.data,o._resolvedData=r._resolvedData),LI(n,t,o.component?a?a.children:null:e,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new vN(a.outlet.component,r))}else r&&NI(t,a,s),s.canActivateChecks.push(new bpe(i)),LI(n,null,o.component?a?a.children:null:e,i,s)})(r,o[r.value.outlet],e,i.concat([r.value]),s),delete o[r.value.outlet]}),Gl(o,(r,a)=>NI(r,e.getContext(a),s)),s}function NI(n,t,e){const i=AI(n),s=n.value;Gl(i,(o,r)=>{NI(o,s.component?t?t.children.getContext(r):null:t,e)}),e.canDeactivateChecks.push(new vN(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}class bYe{}function Cpe(n){return new an(t=>t.error(n))}class xYe{constructor(t,e,i,s,o,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=s,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=r}recognize(){const t=mN(this.urlTree.root,[],[],this.config.filter(r=>void 0===r.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,is);if(null===e)return null;const i=new uN([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},is,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new hy(i,e),o=new ipe(this.url,s);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const e=t.value,i=npe(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const o of Object.keys(e.children)){const r=e.children[o],a=fpe(t,o),l=this.processSegmentGroup(a,r,o);if(null===l)return null;i.push(...l)}const s=xpe(i);return function(n){n.sort((t,e)=>t.value.outlet===is?-1:e.value.outlet===is?1:t.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(t,e,i,s){for(const o of t){const r=this.processSegmentAgainstRoute(o,e,i,s);if(null!==r)return r}return ype(e,i,s)?[]:null}processSegmentAgainstRoute(t,e,i,s){if(t.redirectTo||!mpe(t,e,i,s))return null;let o,r=[],a=[];if("**"===t.path){const f=i.length>0?jhe(i).parameters:{};o=new uN(i,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tpe(t),Fh(t),t.component,t,wpe(e),Spe(e)+i.length,kpe(t))}else{const f=gN(e,t,i);if(!f.matched)return null;r=f.consumedSegments,a=i.slice(f.lastChild),o=new uN(r,f.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tpe(t),Fh(t),t.component,t,wpe(e),Spe(e)+r.length,kpe(t))}const l=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:d}=mN(e,r,a,l.filter(f=>void 0===f.redirectTo),this.relativeLinkResolution);if(0===d.length&&c.hasChildren()){const f=this.processChildren(l,c);return null===f?null:[new hy(o,f)]}if(0===l.length&&0===d.length)return[new hy(o,[])];const u=Fh(t)===s,h=this.processSegment(l,c,d,u?is:s);return null===h?null:[new hy(o,h)]}}function TYe(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function xpe(n){const t=[],e=new Set;for(const i of n){if(!TYe(i)){t.push(i);continue}const s=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==s?(s.children.push(...i.children),e.add(s)):t.push(i)}for(const i of e){const s=xpe(i.children);t.push(new hy(i.value,s))}return t.filter(i=>!e.has(i))}function wpe(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Spe(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function Tpe(n){return n.data||{}}function kpe(n){return n.resolve||{}}function O$(n){return ls(t=>{const e=n(t);return e?Ys(e).pipe(xe(()=>t)):Vt(t)})}class OYe extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const R$=new ot("ROUTES");class Dpe{constructor(t,e,i,s){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=s}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe(xe(o=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=o.create(t);return new I$(Ghe(r.injector.get(R$,void 0,Hn.Self|Hn.Optional)).map(A$),r)}),fl(o=>{throw e._loader$=void 0,o}));return e._loader$=new kR(s,()=>new Z).pipe(L0()),e._loader$}loadModuleFactory(t){return"string"==typeof t?Ys(this.loader.load(t)):lg(t()).pipe(jr(e=>e instanceof wle?Vt(e):Ys(this.compiler.compileModuleAsync(e))))}}class RYe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ek,this.attachRef=null}}class ek{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new RYe,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class LYe{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function NYe(n){throw n}function BYe(n,t,e){return t.parse("/")}function Mpe(n,t){return Vt(null)}const VYe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zYe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let pr=(()=>{class n{constructor(e,i,s,o,r,a,l,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=s,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z,this.errorHandler=NYe,this.malformedUriErrorHandler=BYe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mpe,afterPreactivation:Mpe},this.urlHandlingStrategy=new LYe,this.routeReuseStrategy=new OYe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(Qf),this.console=r.get($P);const h=r.get(ce);this.isNgZoneEnabled=h instanceof ce&&ce.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new gC(new us([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Dpe(a,l,f=>this.triggerEvent(new Nhe(f)),f=>this.triggerEvent(new Bhe(f))),this.routerState=tpe(this.currentUrlTree,this.rootComponentType),this.transitions=new Hs({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()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(dt(s=>0!==s.id),xe(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ls(s=>{let o=!1,r=!1;return Vt(s).pipe(lt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ls(a=>{const l=!this.navigated||a.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Vt(a).pipe(ls(d=>{const u=this.transitions.getValue();return i.next(new _$(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions.getValue()?Op:Promise.resolve(d)}),function(n,t,e,i){return ls(s=>function(n,t,e,i,s){return new sYe(n,t,e,i,s).apply()}(n,t,e,s.extractedUrl,i).pipe(xe(o=>Object.assign(Object.assign({},s),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),lt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(n,t,e,i,s){return jr(o=>function(n,t,e,i,s="emptyOnly",o="legacy"){try{const r=new xYe(n,t,e,i,s,o).recognize();return null===r?Cpe(new bYe):Vt(r)}catch(r){return Cpe(r)}}(n,t,o.urlAfterRedirects,e(o.urlAfterRedirects),i,s).pipe(xe(r=>Object.assign(Object.assign({},o),{targetSnapshot:r}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),lt(d=>{"eager"===this.urlUpdateStrategy&&(d.extras.skipLocationChange||this.setBrowserUrl(d.urlAfterRedirects,d),this.browserUrlTree=d.urlAfterRedirects);const u=new eXe(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(u)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:u,extractedUrl:h,source:f,restoredState:m,extras:C}=a,k=new _$(u,this.serializeUrl(h),f,m);i.next(k);const D=tpe(h,this.rootComponentType).snapshot;return Vt(Object.assign(Object.assign({},a),{targetSnapshot:D,urlAfterRedirects:h,extras:Object.assign(Object.assign({},C),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Op}),O$(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!f})}),lt(a=>{const l=new tXe(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),xe(a=>Object.assign(Object.assign({},a),{guards:aYe(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(n,t){return jr(e=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=e;return 0===r.length&&0===o.length?Vt(Object.assign(Object.assign({},e),{guardsResult:!0})):function(n,t,e,i){return Ys(n).pipe(jr(s=>function(n,t,e,i,s){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Vt(o.map(a=>{const l=bN(a,t,s);let c;if(function(n){return n&&gv(n.canDeactivate)}(l))c=lg(l.canDeactivate(n,t,e,i));else{if(!gv(l))throw new Error("Invalid CanDeactivate guard");c=lg(l(n,t,e,i))}return c.pipe(fC())})).pipe(RI()):Vt(!0)}(s.component,s.route,e,t,i)),fC(s=>!0!==s,!0))}(r,i,s,n).pipe(jr(a=>a&&function(n){return"boolean"==typeof n}(a)?function(n,t,e,i){return Ys(t).pipe(ly(s=>sN(function(n,t){return null!==n&&t&&t(new oXe(n)),Vt(!0)}(s.route.parent,i),function(n,t){return null!==n&&t&&t(new aXe(n)),Vt(!0)}(s.route,i),function(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(r=>function(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(r)).filter(r=>null!==r).map(r=>oN(()=>Vt(r.guards.map(l=>{const c=bN(l,r.node,e);let d;if(function(n){return n&&gv(n.canActivateChild)}(c))d=lg(c.canActivateChild(i,n));else{if(!gv(c))throw new Error("Invalid CanActivateChild guard");d=lg(c(i,n))}return d.pipe(fC())})).pipe(RI())));return Vt(o).pipe(RI())}(n,s.path,e),function(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Vt(i.map(o=>oN(()=>{const r=bN(o,t,e);let a;if(function(n){return n&&gv(n.canActivate)}(r))a=lg(r.canActivate(t,n));else{if(!gv(r))throw new Error("Invalid CanActivate guard");a=lg(r(t,n))}return a.pipe(fC())}))).pipe(RI()):Vt(!0)}(n,s.route,e))),fC(s=>!0!==s,!0))}(i,o,n,t):Vt(a)),xe(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),lt(a=>{if(_C(a.guardsResult)){const c=v$(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new nXe(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),dt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),O$(a=>{if(a.guards.canActivateChecks.length)return Vt(a).pipe(lt(l=>{const c=new iXe(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),ls(l=>{let c=!1;return Vt(l).pipe(function(n,t){return jr(e=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=e;if(!s.length)return Vt(e);let o=0;return Ys(s).pipe(ly(r=>function(n,t,e,i){return function(n,t,e,i){const s=Object.keys(n);if(0===s.length)return Vt({});const o={};return Ys(s).pipe(jr(r=>function(n,t,e,i){const s=bN(n,t,i);return lg(s.resolve?s.resolve(t,e):s(t,e))}(n[r],t,e,i).pipe(lt(a=>{o[r]=a}))),m$(1),jr(()=>Object.keys(o).length===s.length?Vt(o):Op))}(n._resolve,n,t,i).pipe(xe(o=>(n._resolvedData=o,n.data=Object.assign(Object.assign({},n.data),npe(n,e).resolve),null)))}(r.route,i,n,t)),lt(()=>o++),m$(1),jr(r=>o===s.length?Vt(e):Op))})}(this.paramsInheritanceStrategy,this.ngModule.injector),lt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),lt(l=>{const c=new sXe(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),O$(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!f})}),xe(a=>{const l=function(n,t,e){const i=hN(n,t._root,e?e._root:void 0);return new epe(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),lt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>xe(i=>(new GXe(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),lt({next(){o=!0},complete(){o=!0}}),y$(()=>{if(!o&&!r){const a=`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(s),this.cancelNavigationTransition(s,a)):this.cancelNavigationTransition(s,a)}this.currentNavigation=null}),fl(a=>{if(r=!0,function(n){return n&&n[zhe]}(a)){const l=_C(a.url);l||(this.navigated=!0,this.restoreHistory(s,!0));const c=new Lhe(s.id,this.serializeUrl(s.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree);this.scheduleNavigation(d,"imperative",null,{skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const l=new Jqe(s.id,this.serializeUrl(s.extractedUrl),a);i.next(l);try{s.resolve(this.errorHandler(a))}catch(c){s.reject(c)}}return Op}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,i)&&setTimeout(()=>{const{source:s,state:o,urlTree:r}=i,a={replaceUrl:!0};if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(r,s,o,a)},0),this.lastLocationChangeInfo=i}))}extractLocationChangeInfoFromEvent(e){var i;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,i){if(!e)return!0;const s=i.urlTree.toString()===e.urlTree.toString();return i.transitionId!==e.transitionId||!s||!("hashchange"===i.source&&"popstate"===e.source||"popstate"===i.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){ppe(e),this.config=e.map(A$),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:s,queryParams:o,fragment:r,queryParamsHandling:a,preserveFragment:l}=i,c=s||this.routerState.root,d=l?this.currentUrlTree.fragment:r;let u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}return null!==u&&(u=this.removeEmptyProps(u)),function(n,t,e,i,s){if(0===e.length)return D$(t.root,t.root,t,i,s);const o=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ape(!0,0,n);let t=0,e=!1;const i=n.reduce((s,o,r)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Gl(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...s,{outlets:a}]}if(o.segmentPath)return[...s,o.segmentPath]}return"string"!=typeof o?[...s,o]:0===r?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&s.push(a))}),s):[...s,o]},[]);return new ape(e,t,i)}(e);if(o.toRoot())return D$(t.root,new us([],{}),t,i,s);const r=function(n,t,e){if(n.isAbsolute)return new M$(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const o=e.snapshot._urlSegment;return new M$(o,o===t.root,0)}const i=pN(n.commands[0])?0:1;return function(n,t,e){let i=n,s=t,o=e;for(;o>s;){if(o-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new M$(i,!1,s-o)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(o,t,n),a=r.processChildren?fN(r.segmentGroup,r.index,o.commands):lpe(r.segmentGroup,r.index,o.commands);return D$(r.segmentGroup,a,t,i,s)}(c,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,i={skipLocationChange:!1}){const s=_C(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function(n){for(let t=0;t{const o=e[s];return null!=o&&(i[s]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new MI(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,i,s,o,r){var a,l;if(this.disposed)return Promise.resolve(!1);const c=this.getTransition(),d="imperative"!==i&&"imperative"===(null==c?void 0:c.source),f=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(d&&f)return Promise.resolve(!0);let m,C,k;r?(m=r.resolve,C=r.reject,k=r.promise):k=new Promise((O,z)=>{m=O,C=z});const D=++this.navigationId;let E;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),E=s&&s.\u0275routerPageId?s.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):E=0,this.setTransition({id:D,targetPageId:E,source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:m,reject:C,promise:k,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),k.catch(O=>Promise.reject(O))}setBrowserUrl(e,i){const s=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl?this.location.replaceState(s,"",o):this.location.go(s,"",o)}restoreHistory(e,i=!1){var s,o;if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===r?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const s=new Lhe(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)(V(J1),V(b$),V(ek),V(HT),V(Jt),V(WP),V(tC),V(void 0))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),BI=(()=>{class n{constructor(e,i,s,o,r){this.router=e,this.route=i,this.commands=[],this.onChanges=new Z,null==s&&o.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:tk(this.skipLocationChange),replaceUrl:tk(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:tk(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(g(pr),g(yC),Hc("tabindex"),g(Ie),g($))},n.\u0275dir=R({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&se("click",function(){return i.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[st]}),n})(),CN=(()=>{class n{constructor(e,i,s){this.router=e,this.route=i,this.locationStrategy=s,this.commands=[],this.onChanges=new Z,this.subscription=e.events.subscribe(o=>{o instanceof MI&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,s,o,r){if(0!==e||i||s||o||r||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:tk(this.skipLocationChange),replaceUrl:tk(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:tk(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(g(pr),g(yC),g(zT))},n.\u0275dir=R({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&se("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&(Kf("href",i.href,RE),fe("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[st]}),n})();function tk(n){return""===n||!!n}let P$=(()=>{class n{constructor(e,i,s,o,r){this.parentContexts=e,this.location=i,this.resolver=s,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new S,this.deactivateEvents=new S,this.name=o||is,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const r=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new $Ye(e,a,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(g(ek),g(Gt),g(qr),Hc("name"),g(Be))},n.\u0275dir=R({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n})();class $Ye{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===yC?this.route:t===ek?this.childContexts:this.parent.get(t,e)}}class Epe{}class Ipe{preload(t,e){return Vt(null)}}let Ape=(()=>{class n{constructor(e,i,s,o,r){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=new Dpe(i,s,c=>e.triggerEvent(new Nhe(c)),c=>e.triggerEvent(new Bhe(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(dt(e=>e instanceof MI),ly(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Qf);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const s=[];for(const o of i)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const r=o._loadedConfig;s.push(this.processRoutes(r.module,r.routes))}else o.loadChildren&&!o.canLoad?s.push(this.preloadConfig(e,o)):o.children&&s.push(this.processRoutes(e,o.children));return Ys(s).pipe(Y_(),xe(o=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?Vt(i._loadedConfig):this.loader.load(e.injector,i)).pipe(jr(o=>(i._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(V(pr),V(WP),V(tC),V(Jt),V(Epe))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),L$=(()=>{class n{constructor(e,i,s={}){this.router=e,this.viewportScroller=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof _$?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof MI&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Vhe&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new Vhe(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(V(pr),V(Ade),V(void 0))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const vC=new ot("ROUTER_CONFIGURATION"),Fpe=new ot("ROUTER_FORROOT_GUARD"),WYe=[HT,{provide:b$,useClass:Yhe},{provide:pr,useFactory:function(n,t,e,i,s,o,r,a={},l,c){const d=new pr(null,n,t,e,i,s,o,Ghe(r));return l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),function(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy)}(a,d),a.enableTracing&&d.events.subscribe(u=>{var h,f;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(f=console.groupEnd)||void 0===f||f.call(console)}),d},deps:[b$,ek,HT,Jt,WP,tC,R$,vC,[class{},new gt],[class{},new gt]]},ek,{provide:yC,useFactory:function(n){return n.routerState.root},deps:[pr]},{provide:WP,useClass:JGe},Ape,Ipe,class{preload(t,e){return e().pipe(fl(()=>Vt(null)))}},{provide:vC,useValue:{enableTracing:!1}}];function qYe(){return new Ij("Router",pr)}let xN=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[WYe,Ope(e),{provide:Fpe,useFactory:KYe,deps:[[pr,new gt,new za]]},{provide:vC,useValue:i||{}},{provide:zT,useFactory:YYe,deps:[sC,[new Rn(Xj),new gt],vC]},{provide:L$,useFactory:XYe,deps:[pr,Ade,vC]},{provide:Epe,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Ipe},{provide:Ij,multi:!0,useFactory:qYe},[N$,{provide:hI,multi:!0,useFactory:eKe,deps:[N$]},{provide:Rpe,useFactory:tKe,deps:[N$]},{provide:jP,multi:!0,useExisting:Rpe}]]}}static forChild(e){return{ngModule:n,providers:[Ope(e)]}}}return n.\u0275fac=function(e){return new(e||n)(V(Fpe,8),V(pr,8))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();function XYe(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new L$(n,t,e)}function YYe(n,t,e={}){return e.useHash?new v7e(n,t):new gde(n,t)}function KYe(n){return"guarded"}function Ope(n){return[{provide:jBe,multi:!0,useValue:n},{provide:R$,multi:!0,useValue:n}]}let N$=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z}appInitializer(){return this.injector.get(m7e,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const s=new Promise(a=>i=a),o=this.injector.get(pr),r=this.injector.get(vC);return"disabled"===r.initialNavigation?(o.setUpLocationChangeListener(),i(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?Vt(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),o.initialNavigation()):i(!0),s})}bootstrapListener(e){const i=this.injector.get(vC),s=this.injector.get(Ape),o=this.injector.get(L$),r=this.injector.get(pr),a=this.injector.get(Jf);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&r.initialNavigation(),s.setUpPreloading(),o.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(V(Jt))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();function eKe(n){return n.appInitializer.bind(n)}function tKe(n){return n.bootstrapListener.bind(n)}const Rpe=new ot("Router Initializer"),sKe={provide:jP,useFactory:function(n,t){return()=>{if(oC(t)){const e=Array.from(n.querySelectorAll(`[class*=${Ppe}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(s=>{s.classList.contains(`${Ppe}ssr`)&&s.parentNode?s.parentNode.removeChild(s):s.className.replace(i,"")})}}},deps:[$t,Xr],multi:!0},Ppe="flex-layout-";let B$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[sKe]}),n})();class bC{constructor(t=!1,e="all",i="",s="",o=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=s,this.priority=o,this.property=""}clone(){return new bC(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Lpe=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,s){const o=this.stylesheet.get(e);o?o.set(i,s):this.stylesheet.set(e,new Map([[i,s]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const s=this.stylesheet.get(e);let o="";if(s){const r=s.get(i);("number"==typeof r||"string"==typeof r)&&(o=r+"")}return o}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({factory:function(){return new n},token:n,providedIn:"root"}),n})();const V$={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Pp=new ot("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>V$}),CC=new ot("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),z$=new ot("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Npe(n,t){return n=n?n.clone():new bC,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}const H$="inline",Bpe=["row","column","row-reverse","column-reverse"];function aKe(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}let kr=(()=>{class n{constructor(e,i,s,o){this.elementRef=e,this.styleBuilder=i,this.styler=s,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Z,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const s=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,s)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const s=this.styleBuilder,o=s.shouldCache;let r=this.styleCache.get(e);(!r||!o)&&(r=s.buildStyles(e,i),o&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),s.sideEffect(e,r,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[s,o]=this.styler.getFlowDirection(e);if(!o&&i){const r=function(n){let[t,e,i]=function(n){n=n?n.toLowerCase():"";let[t,e,i]=n.split(" ");return Bpe.find(s=>s===t)||(t=Bpe[0]),e===H$&&(e=i!==H$?i:"",i=H$),[t,aKe(e),!!i]}(n);return function(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}(s);this.styler.applyStyleToElements(r,[e])}return s.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,s=this.nativeElement){this.styler.applyStyleToElement(s,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,features:[st]}),n})();const cKe=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Vpe="(orientation: portrait) and (max-width: 599.98px)",zpe="(orientation: landscape) and (max-width: 959.98px)",Hpe="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Gpe="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",jpe="(orientation: portrait) and (min-width: 840px)",$pe="(orientation: landscape) and (min-width: 1280px)",py={HANDSET:`${Vpe}, ${zpe}`,TABLET:`${Hpe} , ${Gpe}`,WEB:`${jpe}, ${$pe} `,HANDSET_PORTRAIT:`${Vpe}`,TABLET_PORTRAIT:`${Hpe} `,WEB_PORTRAIT:`${jpe}`,HANDSET_LANDSCAPE:`${zpe}`,TABLET_LANDSCAPE:`${Gpe}`,WEB_LANDSCAPE:`${$pe}`},dKe=[{alias:"handset",priority:2e3,mediaQuery:py.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:py.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:py.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:py.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:py.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:py.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:py.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:py.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:py.WEB_PORTRAIT,overlapping:!0}],hKe=/(\.|-|_)/g;function pKe(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}function mKe(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?function(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i])}(e[i.alias],i):e[i.alias]=i}),function(n){return n.forEach(t=>{t.suffix||(t.suffix=function(n){return n.replace(hKe,"|").split("|").map(pKe).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}const Upe=new ot("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=iT(z$),t=iT(Pp),e=[].concat.apply([],(n||[]).map(s=>Array.isArray(s)?s:[s]));return mKe((t.disableDefaultBps?[]:cKe).concat(t.addOrientationBps?dKe:[]),e)}});function VI(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function yKe(n,t){return(n.priority||0)-(t.priority||0)}let zI=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(yKe)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias==e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery==e)}get overlappings(){return this.items.filter(e=>1==e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e.suffix?e.suffix:"")}findWithPredicate(e,i){let s=this.findByMap.get(e);return s||(s=this.items.find(i)||null,this.findByMap.set(e,s)),s||null}}return n.\u0275fac=function(e){return new(e||n)(V(Upe))},n.\u0275prov=ue({factory:function(){return new n(V(Upe))},token:n,providedIn:"root"}),n})(),wN=(()=>{class n{constructor(e,i,s){this._zone=e,this._platformId=i,this._document=s,this.source=new Hs(new bC(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,s)=>{i.matches&&e.push(s)}),e}isActive(e){const i=this.registry.get(e);return i?i.matches:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const s=this._observable$.pipe(dt(r=>!i||e.indexOf(r.mediaQuery)>-1));return ii(new an(r=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{r.next(c)}),this.source.next(l)}r.complete()}),s)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],s=[];return function(n,t){const e=n.filter(i=>!Wpe[i]);if(e.length>0){const i=e.join(", ");try{const s=t.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(t.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),t.head.appendChild(s),e.forEach(o=>Wpe[o]=s)}catch(s){console.error(s)}}}(i,this._document),i.forEach(o=>{const r=l=>{this._zone.run(()=>this.source.next(new bC(l.matches,o)))};let a=this.registry.get(o);a||(a=this.buildMQL(o),a.addListener(r),this.pendingRemoveListenerFns.push(()=>a.removeListener(r)),this.registry.set(o,a)),a.matches&&s.push(new bC(!0,o))}),s}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,oC(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(V(ce),V(Xr),V($t))},n.\u0275prov=ue({factory:function(){return new n(V(ce),V(Xr),V($t))},token:n,providedIn:"root"}),n})();const Wpe={},nk="print",xKe={alias:nk,mediaQuery:nk,priority:1e3};let qpe=(()=>{class n{constructor(e,i,s){this.breakpoints=e,this.layoutConfig=i,this._document=s,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new wKe,this.deactivations=[]}withPrintQuery(e){return[...e,nk]}isPrintEvent(e){return e.mediaQuery.startsWith(nk)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(VI)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?i.mediaQuery:""),Npe(e,i)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new bC(!0,nk))),e.updateStyles())},s=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",s),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(s)}interceptEvents(e){return this.registerBeforeAfterPrintHooks(e),i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const i=this.breakpoints.findByQuery(e.mediaQuery);i&&(this.deactivations.push(i),this.deactivations.sort(VI))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(V(zI),V(Pp),V($t))},n.\u0275prov=ue({factory:function(){return new n(V(zI),V(Pp),V($t))},token:n,providedIn:"root"}),n})();class wKe{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(xKe),t.sort(VI),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(n){return!!n&&n.mediaQuery.startsWith(nk)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function Xpe(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}let tr=(()=>{class n{constructor(e,i,s,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=s,this.layoutConfig=o}applyStyleToElement(e,i,s=null){let o={};"string"==typeof i&&(o[i]=s,i=o),o=this.layoutConfig.disableVendorPrefixes?i:Xpe(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){const s=this.layoutConfig.disableVendorPrefixes?e:Xpe(e);i.forEach(o=>{this._applyMultiValueStyleToElement(s,o)})}getFlowDirection(e){const i="flex-direction";let s=this.lookupStyle(e,i);return[s||"row",this.lookupInlineStyle(e,i)||ng(this._platformId)&&this._serverModuleLoaded?s:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){return e.getAttribute(i)||""}lookupInlineStyle(e,i){return oC(this._platformId)?e.style.getPropertyValue(i):this._getServerStyle(e,i)}lookupStyle(e,i,s=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||(oC(this._platformId)?s||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(s=>{const o=e[s],r=Array.isArray(o)?o:[o];r.sort();for(let a of r)a=a?a+"":"",oC(this._platformId)||!this._serverModuleLoaded?oC(this._platformId)?i.style.setProperty(s,a):this._setServerStyle(i,s,a):this._serverStylesheet.addStyleToElement(i,s,a)})}_setServerStyle(e,i,s){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const o=this._readStyleAttribute(e);o[i]=s||"",this._writeStyleAttribute(e,o)}_getServerStyle(e,i){return this._readStyleAttribute(e)[i]||""}_readStyleAttribute(e){const i={},s=e.getAttribute("style");if(s){const o=s.split(/;+/g);for(let r=0;r0){const l=a.indexOf(":");if(-1===l)throw new Error(`Invalid CSS style: ${a}`);i[a.substr(0,l).trim()]=a.substr(l+1).trim()}}}return i}_writeStyleAttribute(e,i){let s="";for(const o in i)i[o]&&(s+=o+":"+i[o]+";");e.setAttribute("style",s)}}return n.\u0275fac=function(e){return new(e||n)(V(Lpe),V(CC),V(Xr),V(Pp))},n.\u0275prov=ue({factory:function(){return new n(V(Lpe),V(CC),V(Xr),V(Pp))},token:n,providedIn:"root"}),n})();class la{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function Ype(n,t="1",e="1"){let i=[t,e,n],s=n.indexOf("calc");if(s>0){i[2]=Kpe(n.substring(s).trim());let o=n.substr(0,s).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==s)i[2]=Kpe(n.trim());else{let o=n.split(" ");i=3===o.length?o:[t,e,n]}return i}function Kpe(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let Dr=(()=>{class n{constructor(e,i,s){this.matchMedia=e,this.breakpoints=i,this.hook=s,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Z,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);i&&((e=Npe(e,i)).matches&&-1===this.activatedBreakpoints.indexOf(i)?(this.activatedBreakpoints.push(i),this.activatedBreakpoints.sort(VI),this.updateStyles()):!e.matches&&-1!==this.activatedBreakpoints.indexOf(i)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(i),1),this.activatedBreakpoints.sort(VI),this.updateStyles()))}init(e,i,s,o,r=[]){Zpe(this.updateMap,e,i,s),Zpe(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,r)}getValue(e,i,s){const o=this.elementMap.get(e);if(o){const r=void 0!==s?o.get(s):this.getActivatedValues(o,i);if(r)return r.get(i)}}hasValue(e,i){const s=this.elementMap.get(e);if(s){const o=this.getActivatedValues(s,i);if(o)return void 0!==o.get(i)||!1}return!1}setValue(e,i,s,o){let r=this.elementMap.get(e);if(r){const l=(r.get(o)||new Map).set(i,s);r.set(o,l),this.elementMap.set(e,r)}else r=(new Map).set(o,(new Map).set(i,s)),this.elementMap.set(e,r);const a=this.getValue(e,i);void 0!==a&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(dt(s=>s.element===e&&s.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const s=new Set(this.elementKeyMap.get(i));let o=this.getActivatedValues(e);o&&o.forEach((r,a)=>{this.updateElement(i,a,r),s.delete(a)}),s.forEach(r=>{if(o=this.getActivatedValues(e,r),o){const a=o.get(r);this.updateElement(i,r,a)}else this.clearElement(i,r)})})}clearElement(e,i){const s=this.clearMap.get(e);if(s){const o=s.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,s){const o=this.updateMap.get(e);if(o){const r=o.get(i);r&&(r(s),this.subject.next({element:e,key:i,value:s}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));const s=this.elementMap.get(e);s&&(s.forEach((o,r)=>s.delete(r)),this.elementMap.delete(e))}triggerUpdate(e,i){const s=this.elementMap.get(e);if(s){const o=this.getActivatedValues(s,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((r,a)=>this.updateElement(e,a,r)))}}buildElementKeyMap(e,i){let s=this.elementKeyMap.get(e);s||(s=new Set,this.elementKeyMap.set(e,s)),s.add(i)}watchExtraTriggers(e,i,s){if(s&&s.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){const a=ii(...s).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});o.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;os.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(i)).pipe(lt(this.hook.interceptEvents(this)),dt(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(V(wN),V(zI),V(qpe))},n.\u0275prov=ue({factory:function(){return new n(V(wN),V(zI),V(qpe))},token:n,providedIn:"root"}),n})();function Zpe(n,t,e,i){if(void 0!==i){let s=n.get(t);s||(s=new Map,n.set(t,s)),s.set(e,i)}}const Qpe=new ot("cdk-dir-doc",{providedIn:"root",factory:function(){return iT($t)}});let nr=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new S,e){const s=e.documentElement?e.documentElement.dir:null,o=(e.body?e.body.dir:null)||s;this.value="ltr"===o||"rtl"===o?o:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(V(Qpe,8))},n.\u0275prov=ue({factory:function(){return new n(V(Qpe,8))},token:n,providedIn:"root"}),n})(),ik=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();const G$="inline",SN=["row","column","row-reverse","column-reverse"];function Jpe(n){n=n?n.toLowerCase():"";let[t,e,i]=n.split(" ");return SN.find(s=>s===t)||(t=SN[0]),e===G$&&(e=i!==G$?i:"",i=G$),[t,DKe(e),!!i]}function HI(n){let[t]=Jpe(n);return t.indexOf("row")>-1}function DKe(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}let EKe=(()=>{class n extends la{buildStyles(e){return function(n){let[t,e,i]=Jpe(n);return function(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275prov=ue({factory:function(){return new n},token:n,providedIn:"root"}),n})();const IKe=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let AKe=(()=>{class n extends kr{constructor(e,i,s,o){super(e,s,i,o),this.DIRECTIVE_KEY="layout",this.styleCache=FKe,this.init()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(tr),g(EKe),g(Dr))},n.\u0275dir=R({type:n,features:[N]}),n})(),po=(()=>{class n extends AKe{constructor(){super(...arguments),this.inputs=IKe}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[N]}),n})();const FKe=new Map,efe={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let OKe=(()=>{class n extends la{constructor(e){super(),this._styler=e}buildStyles(e,i){return e.endsWith(TN)?function(n,t){const[e,i]=n.split(" "),o=c=>`-${c}`;let r="0px",a=o(i||e),l="0px";return"rtl"===t?l=o(e):r=o(e),{margin:`0px ${r} ${a} ${l}`}}(e=e.slice(0,e.indexOf(TN)),i.directionality):{}}sideEffect(e,i,s){const o=s.items;if(e.endsWith(TN)){const r=function(n,t){const[e,i]=n.split(" ");let o="0px",a="0px";return"rtl"===t?a=e:o=e,{padding:`0px ${o} ${i||e} ${a}`}}(e=e.slice(0,e.indexOf(TN)),s.directionality);this._styler.applyStyleToElements(r,s.items)}else{const r=o.pop(),a=function(n,t){const e=tfe(t.directionality,t.layout),i=Object.assign({},efe);return i[e]=n,i}(e,s);this._styler.applyStyleToElements(a,o),this._styler.applyStyleToElements(efe,[r])}}}return n.\u0275fac=function(e){return new(e||n)(V(tr))},n.\u0275prov=ue({factory:function(){return new n(V(tr))},token:n,providedIn:"root"}),n})();const RKe=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let PKe=(()=>{class n extends kr{constructor(e,i,s,o,r,a){super(e,r,o,a),this.zone=i,this.directionality=s,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new Z;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(et(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const e=this.nativeElement.children,i=[];for(let s=e.length;s--;)i[s]=e[s];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const s=e.value.split(" ");this.layout=s[0],SN.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const i=this.childrenNodes.filter(s=>1===s.nodeType&&this.willDisplay(s)).sort((s,o)=>{const r=+this.styler.lookupStyle(s,"order"),a=+this.styler.lookupStyle(o,"order");return isNaN(r)||isNaN(a)||r===a?0:r>a?1:-1});if(i.length>0){const s=this.directionality.value,o=this.layout;"row"===o&&"rtl"===s?this.styleCache=LKe:"row"===o&&"rtl"!==s?this.styleCache=BKe:"column"===o&&"rtl"===s?this.styleCache=NKe:"column"===o&&"rtl"!==s&&(this.styleCache=VKe),this.addStyles(e,{directionality:s,items:i,layout:o})}}clearStyles(){const e=Object.keys(this.mru).length>0,i=e?"padding":tfe(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){const i=this.marshal.getValue(e,"show-hide");return!0===i||void 0===i&&"none"!==this.styleUtils.lookupStyle(e,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(e=>{e.some(s=>s.addedNodes&&s.addedNodes.length>0||s.removedNodes&&s.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(nr),g(tr),g(OKe),g(Dr))},n.\u0275dir=R({type:n,features:[N]}),n})(),_u=(()=>{class n extends PKe{constructor(){super(...arguments),this.inputs=RKe}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[N]}),n})();const LKe=new Map,NKe=new Map,BKe=new Map,VKe=new Map,TN=" grid";function tfe(n,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===n?"margin-left":"margin-right";case"row-reverse":return"rtl"===n?"margin-right":"margin-left";default:return"rtl"===n?"margin-left":"margin-right"}}function mv(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}let jKe=(()=>{class n extends la{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[s,o,...r]=e.split(" "),a=r.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=HI(l)?"max-width":"max-height",d=HI(l)?"min-width":"min-height",u=String(a).indexOf("calc")>-1,h=u||"auto"===a,f=String(a).indexOf("%")>-1&&!u,m=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let C=u||m;s="0"==s?0:s,o="0"==o?0:o;const k=!s&&!o;let D={};const E={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const O=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":O?"0.000000001px":"auto";break;case"initial":case"nogrow":s=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":s=0,o=0,a="auto";break;default:!C&&!f&&!isNaN(a)&&(a+="%"),"0%"===a&&(C=!0),"0px"===a&&(a="0%"),D=mv(E,u?{"flex-grow":s,"flex-shrink":o,"flex-basis":C?a:"100%"}:{flex:`${s} ${o} ${C?a:"100%"}`})}return D.flex||D["flex-grow"]||(D=mv(E,u?{"flex-grow":s,"flex-shrink":o,"flex-basis":a}:{flex:`${s} ${o} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(D[d]=k||C&&s?a:null,D[c]=k||!h&&o?a:null),D[d]||D[c]?i.hasWrap&&(D[u?"flex-basis":"flex"]=D[c]?u?D[c]:`${s} ${o} ${D[c]}`:u?D[d]:`${s} ${o} ${D[d]}`):D=mv(E,u?{"flex-grow":s,"flex-shrink":o,"flex-basis":a}:{flex:`${s} ${o} ${a}`}),mv(D,{"box-sizing":"border-box"})}}return n.\u0275fac=function(e){return new(e||n)(V(Pp))},n.\u0275prov=ue({factory:function(){return new n(V(Pp))},token:n,providedIn:"root"}),n})();const $Ke=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let UKe=(()=>{class n extends kr{constructor(e,i,s,o,r){super(e,o,i,r),this.layoutConfig=s,this.marshal=r,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(et(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(et(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const s=e.value.split(" ");this.direction=s[0],this.wrap=void 0!==s[1]&&"wrap"===s[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const s=this.direction,o=s.startsWith("row"),r=this.wrap;o&&r?this.styleCache=XKe:o&&!r?this.styleCache=WKe:!o&&r?this.styleCache=YKe:!o&&!r&&(this.styleCache=qKe);const l=Ype(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:s,hasWrap:r})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=Ype(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return n.\u0275fac=function(e){return new(e||n)(g($),g(tr),g(Pp),g(jKe),g(Dr))},n.\u0275dir=R({type:n,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[N]}),n})(),ja=(()=>{class n extends UKe{constructor(){super(...arguments),this.inputs=$Ke}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[N]}),n})();const WKe=new Map,qKe=new Map,XKe=new Map,YKe=new Map,fZe={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let gZe=(()=>{class n extends la{buildStyles(e){return fZe}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275prov=ue({factory:function(){return new n},token:n,providedIn:"root"}),n})(),wo=(()=>{class n extends kr{constructor(e,i,s,o){super(e,s,i,o),this.styleCache=mZe,this.addStyles("")}}return n.\u0275fac=function(e){return new(e||n)(g($),g(tr),g(gZe),g(Dr))},n.\u0275dir=R({type:n,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[N]}),n})();const mZe=new Map;let yZe=(()=>{class n extends la{buildStyles(e,i){const s={},[o,r]=e.split(" ");switch(o){case"center":s["justify-content"]="center";break;case"space-around":s["justify-content"]="space-around";break;case"space-between":s["justify-content"]="space-between";break;case"space-evenly":s["justify-content"]="space-evenly";break;case"end":case"flex-end":s["justify-content"]="flex-end";break;case"start":case"flex-start":default:s["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":s["align-items"]=s["align-content"]="flex-start";break;case"center":s["align-items"]=s["align-content"]="center";break;case"end":case"flex-end":s["align-items"]=s["align-content"]="flex-end";break;case"space-between":s["align-content"]="space-between",s["align-items"]="stretch";break;case"space-around":s["align-content"]="space-around",s["align-items"]="stretch";break;case"baseline":s["align-content"]="stretch",s["align-items"]="baseline";break;case"stretch":default:s["align-items"]=s["align-content"]="stretch"}return mv(s,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===r?HI(i.layout)?null:"100%":null,"max-height":"stretch"===r&&HI(i.layout)?"100%":null})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275prov=ue({factory:function(){return new n},token:n,providedIn:"root"}),n})();const _Ze=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let vZe=(()=>{class n extends kr{constructor(e,i,s,o){super(e,s,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(et(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",s=this.inline;"row"===i&&s?this.styleCache=SZe:"row"!==i||s?"row-reverse"===i&&s?this.styleCache=kZe:"row-reverse"!==i||s?"column"===i&&s?this.styleCache=TZe:"column"!==i||s?"column-reverse"===i&&s?this.styleCache=DZe:"column-reverse"===i&&!s&&(this.styleCache=wZe):this.styleCache=CZe:this.styleCache=xZe:this.styleCache=bZe,this.addStyles(e,{layout:i,inline:s})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),SN.find(s=>s===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(tr),g(yZe),g(Dr))},n.\u0275dir=R({type:n,features:[N]}),n})(),fo=(()=>{class n extends vZe{constructor(){super(...arguments),this.inputs=_Ze}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[N]}),n})();const bZe=new Map,CZe=new Map,xZe=new Map,wZe=new Map,SZe=new Map,TZe=new Map,kZe=new Map,DZe=new Map;let nfe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[B$,ik]]}),n})();function Rd(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const SC=new Fp(bL);function cg(n,t=SC){return e=>e.lift(new VZe(n,t))}class VZe{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new zZe(t,this.dueTime,this.scheduler))}}class zZe extends In{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(HZe,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function HZe(n){n.debouncedNext()}function UI(n){return t=>t.lift(new GZe(n))}class GZe{constructor(t){this.total=t}call(t,e){return e.subscribe(new jZe(t,this.total))}}class jZe extends In{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function Tn(n){return null!=n&&"false"!=`${n}`}function Uo(n,t=0){return function(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function kN(n){return Array.isArray(n)?n:[n]}function Ma(n){return null==n?"":"string"==typeof n?n:`${n}px`}function fy(n){return n instanceof $?n.nativeElement:n}let $$;try{$$="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){$$=!1}let ak,Qi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?oC(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!$$)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(V(Xr))},n.\u0275prov=ue({factory:function(){return new n(V(Xr))},token:n,providedIn:"root"}),n})(),rk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();const ofe=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rfe(){if(ak)return ak;if("object"!=typeof document||!document)return ak=new Set(ofe),ak;let n=document.createElement("input");return ak=new Set(ofe.filter(t=>(n.setAttribute("type",t),n.type===t))),ak}let WI,DN,TC,U$;function yv(n){return function(){if(null==WI&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>WI=!0}))}finally{WI=WI||!1}return WI}()?n:!!n.capture}function afe(){if(null==TC){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return TC=!1,TC;if("scrollBehavior"in document.documentElement.style)TC=!0;else{const n=Element.prototype.scrollTo;TC=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return TC}function qI(){if("object"!=typeof document||!document)return 0;if(null==DN){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),DN=0,0===n.scrollLeft&&(n.scrollLeft=1,DN=0===n.scrollLeft?1:2),n.parentNode.removeChild(n)}return DN}function lfe(n){if(function(){if(null==U$){const n="undefined"!=typeof document?document.head:null;U$=!(!n||!n.createShadowRoot&&!n.attachShadow)}return U$}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function MN(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function lk(n){return n.composedPath?n.composedPath()[0]:n.target}let W$=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({factory:function(){return new n},token:n,providedIn:"root"}),n})(),cfe=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=fy(e);return new an(s=>{const r=this._observeElement(i).subscribe(s);return()=>{r.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Z,s=this._mutationObserverFactory.create(o=>i.next(o));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:s}=this._observedElements.get(e);i&&i.disconnect(),s.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(V(W$))},n.\u0275prov=ue({factory:function(){return new n(V(W$))},token:n,providedIn:"root"}),n})(),EN=(()=>{class n{constructor(e,i,s){this._contentObserver=e,this._elementRef=i,this._ngZone=s,this.event=new S,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Tn(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Uo(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(cg(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(cfe),g($),g(ce))},n.\u0275dir=R({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),IN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[W$]}),n})();function AN(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const ufe="cdk-describedby-message-container",hfe="cdk-describedby-message",FN="cdk-describedby-host";let YZe=0;const dg=new Map;let jl=null,pfe=(()=>{class n{constructor(e){this._document=e}describe(e,i,s){if(!this._canBeDescribed(e,i))return;const o=q$(i,s);"string"!=typeof i?(ffe(i),dg.set(o,{messageElement:i,referenceCount:0})):dg.has(o)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,s){if(!i||!this._isElementNode(e))return;const o=q$(i,s);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const r=dg.get(o);r&&0===r.referenceCount&&this._deleteMessageElement(o)}jl&&0===jl.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${FN}]`);for(let i=0;i0!=s.indexOf(hfe));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const s=dg.get(i);(function(n,t,e){const i=AN(n,t);i.some(s=>s.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(FN,""),s.referenceCount++}_removeMessageReference(e,i){const s=dg.get(i);s.referenceCount--,function(n,t,e){const s=AN(n,t).filter(o=>o!=e.trim());s.length?n.setAttribute(t,s.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(FN)}_isElementDescribedByMessage(e,i){const s=AN(e,"aria-describedby"),o=dg.get(i),r=o&&o.messageElement.id;return!!r&&-1!=s.indexOf(r)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const s=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!s||o&&o.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({factory:function(){return new n(V($t))},token:n,providedIn:"root"}),n})();function q$(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function ffe(n){n.id||(n.id=`${hfe}-${YZe++}`)}class gfe{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Z,this._typeaheadSubscription=Je.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Z,this.change=new Z,t instanceof wt&&t.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(lt(e=>this._pressedLetters.push(e)),cg(t),dt(()=>this._pressedLetters.length>0),xe(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let s=1;s!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||Rd(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),s=e[i];this._activeItem=null==s?null:s,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const s=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof wt?this._items.toArray():this._items}}class KZe extends gfe{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class ON extends gfe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let mfe=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function(n){try{return n.frameElement}catch(t){return null}}(function(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===_fe(i)||!this.isVisible(i)))return!1;let s=e.nodeName.toLowerCase(),o=_fe(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==o:"video"===s?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function(n){return!function(n){return function(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function(n){return function(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||yfe(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(V(Qi))},n.\u0275prov=ue({factory:function(){return new n(V(Qi))},token:n,providedIn:"root"}),n})();function yfe(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function _fe(n){if(!yfe(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class aQe{constructor(t,e,i,s,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let s=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(s)return s}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(jn(1)).subscribe(t)}}let X$=(()=>{class n{constructor(e,i,s){this._checker=e,this._ngZone=i,this._document=s}create(e,i=!1){return new aQe(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(V(mfe),V(ce),V($t))},n.\u0275prov=ue({factory:function(){return new n(V(mfe),V(ce),V($t))},token:n,providedIn:"root"}),n})();function Y$(n){return 0===n.offsetX&&0===n.offsetY}function K$(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈const vfe=new ot("cdk-input-modality-detector-options"),hQe={ignoreKeys:[18,17,224,91,16]},ck=yv({passive:!0,capture:!0});let Cfe=(()=>{class n{constructor(e,i,s,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Hs(null),this._lastTouchMs=0,this._onKeydown=r=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===r.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=lk(r))},this._onMousedown=r=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Y$(r)?"keyboard":"mouse"),this._mostRecentTarget=lk(r))},this._onTouchstart=r=>{K$(r)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=lk(r))},this._options=Object.assign(Object.assign({},hQe),o),this.modalityDetected=this._modality.pipe(UI(1)),this.modalityChanged=this.modalityDetected.pipe(ry()),e.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,ck),s.addEventListener("mousedown",this._onMousedown,ck),s.addEventListener("touchstart",this._onTouchstart,ck)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,ck),document.removeEventListener("mousedown",this._onMousedown,ck),document.removeEventListener("touchstart",this._onTouchstart,ck))}}return n.\u0275fac=function(e){return new(e||n)(V(Qi),V(ce),V($t),V(vfe,8))},n.\u0275prov=ue({factory:function(){return new n(V(Qi),V(ce),V($t),V(vfe,8))},token:n,providedIn:"root"}),n})();const xfe=new ot("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),wfe=new ot("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Sfe=(()=>{class n{constructor(e,i,s,o){this._ngZone=i,this._defaultOptions=o,this._document=s,this._liveElement=e||this._createLiveElement()}announce(e,...i){const s=this._defaultOptions;let o,r;return 1===i.length&&"number"==typeof i[0]?r=i[0]:[o,r]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),null==r&&s&&(r=s.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),s=this._document.createElement("div");for(let o=0;o{class n{constructor(e,i,s,o,r){this._ngZone=e,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Z,this._rootNodeFocusAndBlurListener=a=>{const l=lk(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let d=l;d;d=d.parentElement)c.call(this,a,d)},this._document=o,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(e,i=!1){const s=fy(e);if(!this._platform.isBrowser||1!==s.nodeType)return Vt(null);const o=lfe(s)||this._getDocument(),r=this._elementInfo.get(s);if(r)return i&&(r.checkChildren=!0),r.subject;const a={checkChildren:i,subject:new Z,rootNode:o};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=fy(e),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(e,i,s){const o=fy(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,s){s?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const s=this._elementInfo.get(i),o=lk(e);!s||!s.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),s)}_onBlur(e,i){const s=this._elementInfo.get(i);!s||s.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(s.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,RN),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,RN)}),this._rootNodeFocusListenerCount.set(i,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(et(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,RN),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,RN),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,s){this._setClasses(e,i),this._emitOrigin(s.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((s,o)=>{(o===e||s.checkChildren&&o.contains(e))&&i.push([o,s])}),i}}return n.\u0275fac=function(e){return new(e||n)(V(ce),V(Qi),V(Cfe),V($t,8),V(Tfe,8))},n.\u0275prov=ue({factory:function(){return new n(V(ce),V(Qi),V(Cfe),V($t,8),V(Tfe,8))},token:n,providedIn:"root"}),n})(),fQe=(()=>{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new S}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Wc))},n.\u0275dir=R({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const kfe="cdk-high-contrast-black-on-white",Dfe="cdk-high-contrast-white-on-black",Z$="cdk-high-contrast-active";let Mfe=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Z$),e.remove(kfe),e.remove(Dfe),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Z$),e.add(kfe)):2===i&&(e.add(Z$),e.add(Dfe))}}}return n.\u0275fac=function(e){return new(e||n)(V(Qi),V($t))},n.\u0275prov=ue({factory:function(){return new n(V(Qi),V($t))},token:n,providedIn:"root"}),n})(),Efe=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(V(Mfe))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[rk,IN]]}),n})();const Ife=new ny("12.2.1");function yQe(n,t){if(1&n&&P(0,"mat-pseudo-checkbox",4),2&n){const e=I();v("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function _Qe(n,t){if(1&n&&(y(0,"span",5),H(1),_()),2&n){const e=I();b(1),_t("(",e.group.label,")")}}const vQe=["*"],Afe=new ny("12.2.1"),CQe=new ot("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let kC,vi=(()=>{class n{constructor(e,i,s){this._hasDoneGlobalChecks=!1,this._document=s,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}_checkIsEnabled(e){return!(!En()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&Afe.full!==Ife.full&&console.warn("The Angular Material version ("+Afe.full+") does not match the Angular CDK version ("+Ife.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(V(Mfe),V(CQe,8),V($t))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[ik],ik]}),n})();function ug(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Tn(t)}}}function gy(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function hg(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Tn(t)}}}function XI(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Uo(e):this.defaultTabIndex}}}function Ffe(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new Z,this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}try{kC="undefined"!=typeof Intl}catch(n){kC=!1}let Q$=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({factory:function(){return new n},token:n,providedIn:"root"}),n})(),LN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi],vi]}),n})();class OQe{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Rfe={enterDuration:225,exitDuration:150},tU=yv({passive:!0}),Pfe=["mousedown","touchstart"],Lfe=["mouseup","mouseleave","touchend","touchcancel"];class Nfe{constructor(t,e,i,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=fy(i))}fadeInRipple(t,e,i={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Rfe),i.animation);i.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const r=i.radius||function(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),s=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+s*s)}(t,e,s),a=t-s.left,l=e-s.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-r+"px",d.style.top=l-r+"px",d.style.height=2*r+"px",d.style.width=2*r+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d),function(n){window.getComputedStyle(n).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new OQe(this,d,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const h=u===this._mostRecentTransientRipple;u.state=1,!i.persistent&&(!h||!this._isPointerDown)&&u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,s=Object.assign(Object.assign({},Rfe),t.config.animation);i.style.transitionDuration=`${s.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=fy(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Pfe))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Lfe),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Y$(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,tU)})})}_removeTriggerEvents(){this._triggerElement&&(Pfe.forEach(t=>{this._triggerElement.removeEventListener(t,this,tU)}),this._pointerUpEventsRegistered&&Lfe.forEach(t=>{this._triggerElement.removeEventListener(t,this,tU)}))}}const nU=new ot("mat-ripple-global-options");let Lp=(()=>{class n{constructor(e,i,s,o,r){this._elementRef=e,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Nfe(this,i,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(Qi),g(nU,8),g(jo,8))},n.\u0275dir=R({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&he("mat-ripple-unbounded",i.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),n})(),dk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi,rk],vi]}),n})(),Bfe=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&he("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),iU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi]]}),n})();const sU=new ot("MAT_OPTION_PARENT_COMPONENT"),NQe=ug(class{});let BQe=0,Vfe=(()=>{class n extends NQe{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+BQe++,this._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i}}return n.\u0275fac=function(e){return new(e||n)(g(sU,8))},n.\u0275dir=R({type:n,inputs:{label:"label"},features:[N]}),n})();const oU=new ot("MatOptgroup");let VQe=0;class zQe{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let HQe=(()=>{class n{constructor(e,i,s,o){this._element=e,this._changeDetectorRef=i,this._parent=s,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+VQe++,this.onSelectionChange=new S,this._stateChanges=new Z}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Tn(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const s=this._getHostElement();"function"==typeof s.focus&&s.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Rd(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new zQe(this,e))}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(void 0),g(Vfe))},n.\u0275dir=R({type:n,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),DC=(()=>{class n extends HQe{constructor(e,i,s,o){super(e,i,s,o)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(sU,8),g(oU,8))},n.\u0275cmp=K({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&se("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Kf("id",i.id),fe("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),he("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[N],ngContentSelectors:vQe,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Xt(),A(0,yQe,1,2,"mat-pseudo-checkbox",0),y(1,"span",1),mt(2),_(),A(3,_Qe,2,1,"span",2),P(4,"div",3)),2&e&&(v("ngIf",i.multiple),b(3),v("ngIf",i.group&&i.group._inert),b(1),v("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[pt,Lp,Bfe],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function zfe(n,t,e){if(e.length){let i=t.toArray(),s=e.toArray(),o=0;for(let r=0;r{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[dk,Ut,vi,iU]]}),n})();const jQe=["*",[["mat-toolbar-row"]]],$Qe=["*","mat-toolbar-row"],UQe=gy(class{constructor(n){this._elementRef=n}});let WQe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Np=(()=>{class n extends UQe{constructor(e,i,s){super(e),this._platform=i,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Qi),g($t))},n.\u0275cmp=K({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,WQe,5),2&e){let o;U(o=W())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&he("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[N],ngContentSelectors:$Qe,decls:2,vars:0,template:function(e,i){1&e&&(Xt(jQe),mt(0),mt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),qQe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi],vi]}),n})(),XQe=1;const YQe=Promise.resolve(),NN={};function Gfe(n){return n in NN&&(delete NN[n],!0)}const jfe={setImmediate(n){const t=XQe++;return NN[t]=!0,YQe.then(()=>Gfe(t)&&n()),t},clearImmediate(n){Gfe(n)}},rU=new class extends Fp{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++s0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=jfe.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(jfe.clearImmediate(e),t.scheduled=void 0)}});function my(n,t=SC){const i=function(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-t.now():Math.abs(n);return s=>s.lift(new JQe(i,t))}class JQe{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new aU(t,this.delay,this.scheduler))}}class aU extends In{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,s=t.scheduler,o=t.destination;for(;i.length>0&&i[0].time-s.now()<=0;)i.shift().notification.observe(o);if(i.length>0){const r=Math.max(0,i[0].time-s.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(aU.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new eJe(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Ad.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Ad.createComplete()),this.unsubscribe()}}class eJe{constructor(t,e){this.time=t,this.notification=e}}class lU{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class BN extends lU{constructor(t,e,i,s){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class _v extends lU{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class tJe extends lU{constructor(t){super(),this.element=t instanceof $?t.nativeElement:t}}class cU{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof BN?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _v?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof tJe?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class $fe extends cU{constructor(t,e,i,s,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=r=>{const a=r.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let s;return t.viewContainerRef?(s=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(t.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=t,s}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let vv=(()=>{class n extends cU{constructor(e,i,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new S,this.attachDomPortal=o=>{const r=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),r.parentNode.insertBefore(a,r),this._getRootNode().appendChild(r),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(r,a)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(g(qr),g(Gt),g($t))},n.\u0275dir=R({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[N]}),n})(),VN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();function Hi(n,t,e,i){return Pe(e)&&(i=e,e=void 0),i?Hi(n,t,e).pipe(xe(s=>Ht(s)?i(...s):i(s))):new an(s=>{Ufe(n,t,function(r){s.next(arguments.length>1?Array.prototype.slice.call(arguments):r)},s,e)})}function Ufe(n,t,e,i,s){let o;if(function(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const r=n;n.addEventListener(t,e,s),o=()=>r.removeEventListener(t,e,s)}else if(function(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const r=n;n.on(t,e),o=()=>r.off(t,e)}else if(function(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const r=n;n.addListener(t,e),o=()=>r.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let r=0,a=n.length;r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});class lJe{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new cJe(t,this.durationSelector))}}class cJe extends Pf{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(t)}catch(s){return this.destination.error(s)}const i=Lf(e,new ru(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function hU(n){return!Ht(n)&&n-parseFloat(n)+1>=0}function pU(n=0,t,e){let i=-1;return hU(t)?i=Number(t)<1?1:Number(t):qe(t)&&(e=t),qe(e)||(e=SC),new an(s=>{const o=hU(n)?n:+n-e.now();return e.schedule(dJe,o,{index:0,period:i,subscriber:s})})}function dJe(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function Bp(n,t=SC){return function(n){return function(e){return e.lift(new lJe(n))}}(()=>pU(n,t))}class gU{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Z,e&&e.length&&(t?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let Xfe=(()=>{class n{constructor(){this._listeners=[]}notify(e,i){for(let s of this._listeners)s(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({factory:function(){return new n},token:n,providedIn:"root"}),n})(),bv=(()=>{class n{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new Z,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new an(i=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Bp(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Vt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(dt(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=fy(i),o=e.getElementRef().nativeElement;do{if(s==o)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Hi(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(V(ce),V(Qi),V($t,8))},n.\u0275prov=ue({factory:function(){return new n(V(ce),V(Qi),V($t,8))},token:n,providedIn:"root"}),n})(),uk=(()=>{class n{constructor(e,i,s,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=s,this.dir=o,this._destroyed=new Z,this._elementScrolled=new an(r=>this.ngZone.runOutsideAngular(()=>Hi(this.elementRef.nativeElement,"scroll").pipe(et(this._destroyed)).subscribe(r)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),s&&0!=qI()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==qI()?e.left=e.right:1==qI()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;afe()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",s="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==e?e=r?s:i:"end"==e&&(e=r?i:s),r&&2==qI()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:r&&1==qI()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(g($),g(bv),g(ce),g(nr,8))},n.\u0275dir=R({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),vu=(()=>{class n{constructor(e,i,s){this._platform=e,this._change=new Z,this._changeListener=o=>{this._change.next(o)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),s=e.documentElement,o=s.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Bp(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(V(Qi),V(ce),V($t,8))},n.\u0275prov=ue({factory:function(){return new n(V(Qi),V(ce),V($t,8))},token:n,providedIn:"root"}),n})(),EC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),mU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[ik,rk,EC],ik,EC]}),n})();function Zfe(n,t=!1){return e=>e.lift(new TJe(n,t))}class TJe{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new kJe(t,this.predicate,this.inclusive))}}class kJe extends In{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(s){return void e.error(s)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const Qfe=afe();class DJe{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Ma(-this._previousScrollPosition.left),t.style.top=Ma(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,s=this._document.body.style,o=i.scrollBehavior||"",r=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Qfe&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Qfe&&(i.scrollBehavior=o,s.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class MJe{constructor(t,e,i,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Jfe{enable(){}disable(){}attach(){}}function yU(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function ege(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class EJe{constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();yU(e,[{width:i,height:s,bottom:s,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let IJe=(()=>{class n{constructor(e,i,s,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new Jfe,this.close=r=>new MJe(this._scrollDispatcher,this._ngZone,this._viewportRuler,r),this.block=()=>new DJe(this._viewportRuler,this._document),this.reposition=r=>new EJe(this._scrollDispatcher,this._viewportRuler,this._ngZone,r),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(V(bv),V(vu),V(ce),V($t))},n.\u0275prov=ue({factory:function(){return new n(V(bv),V(vu),V(ce),V($t))},token:n,providedIn:"root"}),n})();class HN{constructor(t){if(this.scrollStrategy=new Jfe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class AJe{constructor(t,e,i,s,o){this.offsetX=i,this.offsetY=s,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class FJe{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let tge=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({factory:function(){return new n(V($t))},token:n,providedIn:"root"}),n})(),OJe=(()=>{class n extends tge{constructor(e){super(e),this._keydownListener=i=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){s[o]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(V($t))},n.\u0275prov=ue({factory:function(){return new n(V($t))},token:n,providedIn:"root"}),n})(),RJe=(()=>{class n extends tge{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._clickListener=s=>{const o=lk(s),r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){const l=r[a];if(!(l._outsidePointerEvents.observers.length<1)&&l.hasAttached()){if(l.overlayElement.contains(o))break;l._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(V($t),V(Qi))},n.\u0275prov=ue({factory:function(){return new n(V($t),V(Qi))},token:n,providedIn:"root"}),n})();const Cv="undefined"!=typeof window?window:{},nge=void 0!==Cv.__karma__&&!!Cv.__karma__||void 0!==Cv.jasmine&&!!Cv.jasmine||void 0!==Cv.jest&&!!Cv.jest||void 0!==Cv.Mocha&&!!Cv.Mocha;let KI=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||nge){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(d),this._keydownEvents=new Z,this._outsidePointerEvents=new Z,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(jn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Ma(this._config.width),t.height=Ma(this._config.height),t.minWidth=Ma(this._config.minWidth),t.minHeight=Ma(this._config.minHeight),t.maxWidth=Ma(this._config.maxWidth),t.maxHeight=Ma(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const s=t.classList;kN(e).forEach(o=>{o&&(i?s.add(o):s.remove(o))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(et(ii(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const ige="cdk-overlay-connected-position-bounding-box",LJe=/([A-Za-z%]+)$/;class sge{constructor(t,e,i,s,o){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Z,this._resizeSubscription=Je.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(ige),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,s=[];let o;for(let r of this._preferredPositions){let a=this._getOriginPoint(t,r),l=this._getOverlayPoint(a,e,r),c=this._getOverlayFit(l,e,i,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,a);this._canFitWithFlexibleDimensions(c,l,i)?s.push({position:r,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,r)}):(!o||o.overlayFit.visibleAreaa&&(a=c,r=l)}return this._isPushed=!1,void this._applyPosition(r.position,r.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&IC(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ige),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,s;if("center"==e.originX)i=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?o:r}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:s}}_getOverlayPoint(t,e,i){let s,o;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+s,y:t.y+o}}_getOverlayFit(t,e,i,s){const o=rge(e);let{x:r,y:a}=t,l=this._getOffset(s,"x"),c=this._getOffset(s,"y");l&&(r+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,m=this._subtractOverflows(o.width,0-r,r+o.width-i.width),C=this._subtractOverflows(o.height,h,f),k=m*C;return{visibleArea:k,isCompletelyWithinViewport:o.width*o.height===k,fitsInViewportVertically:C===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,o=i.right-e.x,r=oge(this._overlayRef.getConfig().minHeight),a=oge(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=r&&r<=s)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=rge(e),o=this._viewportRect,r=Math.max(t.x+s.width-o.width,0),a=Math.max(t.y+s.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let d=0,u=0;return d=s.width<=o.width?c||-r:t.xm&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-m/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=i.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)u=t.x,d=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),m=this._lastBoundingBoxSize.width;d=2*f,u=t.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:r,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;s.height=Ma(i.height),s.top=Ma(i.top),s.bottom=Ma(i.bottom),s.width=Ma(i.width),s.left=Ma(i.left),s.right=Ma(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(s.maxHeight=Ma(o)),r&&(s.maxWidth=Ma(r))}this._lastBoundingBoxSize=i,IC(this._boundingBox.style,s)}_resetBoundingBoxStyles(){IC(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){IC(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},s=this._hasExactPosition(),o=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const d=this._viewportRuler.getViewportScrollPosition();IC(i,this._getExactOverlayY(e,t,d)),IC(i,this._getExactOverlayX(e,t,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),r.maxHeight&&(s?i.maxHeight=Ma(r.maxHeight):o&&(i.maxHeight="")),r.maxWidth&&(s?i.maxWidth=Ma(r.maxWidth):o&&(i.maxWidth="")),IC(this._pane.style,i)}_getExactOverlayY(t,e,i){let s={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=r,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":s.top=Ma(o.y),s}_getExactOverlayX(t,e,i){let r,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),r=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===r?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=Ma(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ege(t,i),isOriginOutsideView:yU(t,i),isOverlayClipped:ege(e,i),isOverlayOutsideView:yU(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,s)=>i-Math.max(s,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&kN(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof $)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function IC(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function oge(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(LJe);return e&&"px"!==e?null:parseFloat(t)}return n||null}function rge(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}class NJe{constructor(t,e,i,s,o,r,a){this._preferredPositions=[],this._positionStrategy=new sge(i,s,o,r,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,s){const o=new AJe(t,e,i,s);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const age="cdk-global-overlay-wrapper";class BJe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(age),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:o,maxWidth:r,maxHeight:a}=i,l=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(age),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let VJe=(()=>{class n{constructor(e,i,s,o){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=o}global(){return new BJe}connectedTo(e,i,s){return new NJe(i,s,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new sge(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(V(vu),V($t),V(Qi),V(KI))},n.\u0275prov=ue({factory:function(){return new n(V(vu),V($t),V(Qi),V(KI))},token:n,providedIn:"root"}),n})(),zJe=0,Oh=(()=>{class n{constructor(e,i,s,o,r,a,l,c,d,u,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=o,this._keyboardDispatcher=r,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),s=this._createPaneElement(i),o=this._createPortalOutlet(s),r=new HN(e);return r.direction=r.direction||this._directionality.value,new PJe(o,i,s,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+zJe++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Jf)),new $fe(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(V(IJe),V(KI),V(qr),V(VJe),V(OJe),V(Jt),V(ce),V($t),V(nr),V(HT),V(RJe))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const HJe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lge=new ot("cdk-connected-overlay-scroll-strategy");let GJe=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(g($))},n.\u0275dir=R({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),cge=(()=>{class n{constructor(e,i,s,o,r){this._overlay=e,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Je.EMPTY,this._attachSubscription=Je.EMPTY,this._detachSubscription=Je.EMPTY,this._positionSubscription=Je.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new S,this.positionChange=new S,this.attach=new S,this.detach=new S,this.overlayKeydown=new S,this.overlayOutsideClick=new S,this._templatePortal=new _v(i,s),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Tn(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Tn(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Tn(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Tn(e)}get push(){return this._push}set push(e){this._push=Tn(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=HJe);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Rd(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new HN({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Zfe(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(Oh),g(ve),g(Gt),g(lge),g(nr,8))},n.\u0275dir=R({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[st]}),n})();const $Je={provide:lge,deps:[Oh],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};let GN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[Oh,$Je],imports:[[ik,VN,mU],mU]}),n})();const UJe=["mat-menu-item",""];function WJe(n,t){1&n&&(zc(),y(0,"svg",2),P(1,"polygon",3),_())}const dge=["*"];function qJe(n,t){if(1&n){const e=ht();y(0,"div",0),se("keydown",function(s){return Le(e),I()._handleKeydown(s)})("click",function(){return Le(e),I().closed.emit("click")})("@transformMenu.start",function(s){return Le(e),I()._onAnimationStart(s)})("@transformMenu.done",function(s){return Le(e),I()._onAnimationDone(s)}),y(1,"div",1),mt(2),_(),_()}if(2&n){const e=I();v("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),fe("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const jN={transformMenu:fc("transformMenu",[Tr("void",zt({opacity:0,transform:"scale(0.8)"})),Go("void => enter",Xi("120ms cubic-bezier(0, 0, 0.2, 1)",zt({opacity:1,transform:"scale(1)"}))),Go("* => void",Xi("100ms 25ms linear",zt({opacity:0})))]),fadeInItems:fc("fadeInItems",[Tr("showing",zt({opacity:1})),Go("void => *",[zt({opacity:0}),Xi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},uge=new ot("MatMenuContent"),_U=new ot("MAT_MENU_PANEL"),XJe=hg(ug(class{}));let $N=(()=>{class n extends XJe{constructor(e,i,s,o,r){super(),this._elementRef=e,this._focusMonitor=s,this._parentMenu=o,this._changeDetectorRef=r,this.role="menuitem",this._hovered=new Z,this._focused=new Z,this._highlighted=!1,this._triggersSubmenu=!1,o&&o.addItem&&o.addItem(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,i;const s=this._elementRef.nativeElement.cloneNode(!0),o=s.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,i,s){this._elementRef=e,this._ngZone=i,this._defaultOptions=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new wt,this._tabSubscription=Je.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Z,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new S,this.close=this.closed,this.panelId="mat-menu-panel-"+KJe++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Tn(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Tn(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ON(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe($o(this._directDescendantItems),ls(e=>ii(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe($o(this._directDescendantItems),ls(i=>ii(...i.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,s=this._keyManager;switch(i){case 27:Rd(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===i||40===i)&&s.setFocusOrigin("keyboard"),s.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(jn(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const i=this._keyManager;if(i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let s=this._directDescendantItems.first._getHostElement().parentElement;for(;s;){if("menu"===s.getAttribute("role")){s.focus();break}s=s.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(r=>r.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,i=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe($o(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(hge))},n.\u0275dir=R({type:n,contentQueries:function(e,i,s){if(1&e&&(Ce(s,uge,5),Ce(s,$N,5),Ce(s,$N,4)),2&e){let o;U(o=W())&&(i.lazyContent=o.first),U(o=W())&&(i._allItems=o),U(o=W())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Ae(ve,5),2&e){let s;U(s=W())&&(i.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),n})(),ZJe=(()=>{class n extends ZI{constructor(e,i,s){super(e,i,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(hge))},n.\u0275cmp=K({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&fe("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[we([{provide:_U,useExisting:n}]),N],ngContentSelectors:dge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Xt(),A(0,qJe,3,6,"ng-template"))},directives:[Un],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[jN.transformMenu,jN.fadeInItems]},changeDetection:0}),n})();const pge=new ot("mat-menu-scroll-strategy"),fge={provide:pge,deps:[Oh],useFactory:function(n){return()=>n.scrollStrategies.reposition()}},mge=yv({passive:!0});let JJe=(()=>{class n{constructor(e,i,s,o,r,a,l,c){this._overlay=e,this._element=i,this._viewContainerRef=s,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Je.EMPTY,this._hoverSubscription=Je.EMPTY,this._menuCloseSubscription=Je.EMPTY,this._handleTouchStart=d=>{K$(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new S,this.onMenuOpen=this.menuOpened,this.menuClosed=new S,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=r instanceof ZI?r:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,mge),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mge),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ZI&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof ZI?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(dt(s=>"void"===s.toState),jn(1),et(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new HN({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[i,s]="before"===this.menu.xPosition?["end","start"]:["start","end"],[o,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[o,r],[c,d]=[i,s],u=0;this.triggersSubmenu()?(d=i="before"===this.menu.xPosition?"start":"end",s=c="end"===i?"start":"end",u="bottom"===o?8:-8):this.menu.overlapTrigger||(a="top"===o?"bottom":"top",l="top"===r?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:c,overlayY:o,offsetY:u},{originX:s,originY:a,overlayX:d,overlayY:o,offsetY:u},{originX:i,originY:l,overlayX:c,overlayY:r,offsetY:-u},{originX:s,originY:l,overlayX:d,overlayY:r,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return ii(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Vt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(dt(r=>r!==this._menuItemInstance),dt(()=>this._menuOpen)):Vt(),i)}_handleMousedown(e){Y$(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(dt(e=>e===this._menuItemInstance&&!e.disabled),my(0,rU)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ZI&&this.menu._isAnimating?this.menu._animationDone.pipe(jn(1),my(0,rU),et(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new _v(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(g(Oh),g($),g(Gt),g(pge),g(_U,8),g($N,10),g(nr,8),g(Wc))},n.\u0275dir=R({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,i){1&e&&se("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(o){return i._handleClick(o)}),2&e&&fe("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),n})(),yge=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[fge],imports:[vi]}),n})(),eet=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[fge],imports:[[Ut,vi,dk,GN,yge],EC,vi,yge]}),n})();const tet=["*"];function _ge(n){return Error(`Unable to find icon with the name "${n}"`)}function vge(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function bge(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class AC{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let UN=(()=>{class n{constructor(e,i,s,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=s}addSvgIcon(e,i,s){return this.addSvgIconInNamespace("",e,i,s)}addSvgIconLiteral(e,i,s){return this.addSvgIconLiteralInNamespace("",e,i,s)}addSvgIconInNamespace(e,i,s,o){return this._addSvgIconConfig(e,i,new AC(s,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,s,o){const r=this._sanitizer.sanitize(ys.HTML,s);if(!r)throw bge(s);return this._addSvgIconConfig(e,i,new AC("",r,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,s){return this._addSvgIconSetConfig(e,new AC(i,null,s))}addSvgIconSetLiteralInNamespace(e,i,s){const o=this._sanitizer.sanitize(ys.HTML,i);if(!o)throw bge(i);return this._addSvgIconSetConfig(e,new AC("",o,s))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(ys.RESOURCE_URL,e);if(!i)throw vge(e);const s=this._cachedIconsByUrl.get(i);return s?Vt(WN(s)):this._loadSvgIconFromConfig(new AC(e,null)).pipe(lt(o=>this._cachedIconsByUrl.set(i,o)),xe(o=>WN(o)))}getNamedSvgIcon(e,i=""){const s=Cge(i,e);let o=this._svgIconConfigs.get(s);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(s,o),this._getSvgFromConfig(o);const r=this._iconSetConfigs.get(i);return r?this._getSvgFromIconSetConfigs(e,r):rC(_ge(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Vt(WN(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(xe(i=>WN(i)))}_getSvgFromIconSetConfigs(e,i){const s=this._extractIconWithNameFromAnySet(e,i);return s?Vt(s):wL(i.filter(r=>!r.svgText).map(r=>this._loadSvgIconSetFromConfig(r).pipe(fl(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(ys.RESOURCE_URL,r.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Vt(null)})))).pipe(xe(()=>{const r=this._extractIconWithNameFromAnySet(e,i);if(!r)throw _ge(e);return r}))}_extractIconWithNameFromAnySet(e,i){for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.svgText&&o.svgText.indexOf(e)>-1){const r=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(r,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(lt(i=>e.svgText=i),xe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Vt(null):this._fetchIcon(e).pipe(lt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,s){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const r=o.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,s);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),s);const a=this._svgElementFromString("");return a.appendChild(r),this._setSvgAttributes(a,s)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const s=i.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const i=this._svgElementFromString(""),s=e.attributes;for(let o=0;othis._inProgressUrlFetches.delete(a)),O1());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,s){return this._svgIconConfigs.set(Cge(e,i),s),this}_addSvgIconSetConfig(e,i){const s=this._iconSetConfigs.get(e);return s?s.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let s=0;st?t.pathname+t.search:""}}}),xge=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],det=xge.map(n=>`[${n}]`).join(", "),uet=/^url\(['"]?#(.*?)['"]?\)$/;let gl=(()=>{class n extends oet{constructor(e,i,s,o,r){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=r,this._inline=!1,this._currentIconFetch=Je.EMPTY,s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Tn(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let o=0;o{s.forEach(r=>{o.setAttribute(r.name,`url('${e}#${r.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(det),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(r),c=l?l.match(uet):null;if(c){let d=s.get(a);d||(d=[],s.set(a,d)),d.push({name:r,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,s]=this._splitIconName(e);i&&(this._svgNamespace=i),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,i).pipe(jn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${s}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g($),g(UN),Hc("aria-hidden"),g(ret),g(bh))},n.\u0275cmp=K({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(fe("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),he("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[N],ngContentSelectors:tet,decls:1,vars:0,template:function(e,i){1&e&&(Xt(),mt(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),het=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi],vi]}),n})();function pet(n,t){if(1&n){const e=ht();y(0,"a",21),se("click",function(){return Le(e),I().logOut()}),H(1,"Log out"),_()}}function fet(n,t){if(1&n){const e=ht();y(0,"a",21),se("click",function(){return Le(e),I().logIn()}),H(1,"Log In"),_()}}class hk{constructor(t,e){this.store=t,this.router=e}prepareRoute(t){var e;return null===(e=null==t?void 0:t.activatedRouteData)||void 0===e?void 0:e.animation}logOut(){this.store.dispatch(new fv.LogOut),this.router.navigateByUrl("/login")}logIn(){this.router.navigateByUrl("/login")}}hk.\u0275fac=function(t){return new(t||hk)(g(zi),g(pr))},hk.\u0275cmp=K({type:hk,selectors:[["app-root"]],decls:48,vars:8,consts:[["fxFill","",1,"content"],["fxLayout","row","fxLayoutAlign","space-between center"],["src","../assets/images/logo.png"],["fxLayout","row",1,"menubutton"],["routerLink","/home"],["routerLink","/aboutus"],["routerLink","/team"],["routerLink","/collaborators"],[3,"matMenuTriggerFor"],["href","https://ausenhealth.s3-ap-southeast-2.amazonaws.com/public/[AEHP]%20Metadata.pdf","target","_blank"],["routerLink","/faq"],["routerLink","/contactus"],[3,"click",4,"ngIf"],["color","accent"],["menu","matMenu"],["mat-menu-item","","routerLink","/heatriskassessment"],["mat-menu-item","","routerLink","/climatechange"],["mat-menu-item","","routerLink","/multicloud"],["mat-menu-item","","routerLink","/impactanalysis"],["mat-menu-item","","routerLink","/publicawareness"],["outlet","outlet"],[3,"click"]],template:function(t,e){if(1&t&&(y(0,"div",0),y(1,"mat-toolbar",1),P(2,"img",2),y(3,"div",3),y(4,"a",4),H(5,"Home"),_(),y(6,"a",5),H(7,"About"),_(),y(8,"a",6),H(9,"Team"),_(),y(10,"a",7),H(11,"Collaborators"),_(),y(12,"a",8),H(13,"Resources"),_(),y(14,"a",9),H(15,"Metadata"),_(),y(16,"a",10),H(17,"FAQ"),_(),y(18,"a",11),H(19,"Contact us"),_(),A(20,pet,2,0,"a",12),gi(21,"async"),A(22,fet,2,0,"a",12),gi(23,"async"),_(),_(),y(24,"mat-menu",13,14),y(26,"button",15),y(27,"mat-icon",13),H(28,"grass"),_(),H(29,"Heat Risk Assessment "),_(),y(30,"button",16),y(31,"mat-icon",13),H(32,"thermostat_auto"),_(),H(33,"Heat Climate Change Assessment "),_(),y(34,"button",17),y(35,"mat-icon",13),H(36,"thermostat"),_(),H(37,"Heat Health Analytics "),_(),y(38,"button",18),y(39,"mat-icon",13),H(40,"storm"),_(),H(41,"Air Quality Impact Analysis "),_(),y(42,"button",19),y(43,"mat-icon",13),H(44,"supervisor_account"),_(),H(45,"Air Quality Public Awareness "),_(),_(),P(46,"router-outlet",null,20),_()),2&t){const i=ki(25),s=ki(47);let o;v("@routeAnimations",e.prepareRoute(s)),b(12),v("matMenuTriggerFor",i),b(8),v("ngIf",(null==(o=Mi(21,4,e.accessToken$))?null:o.length)>0),b(2),v("ngIf",null==Mi(23,6,e.accessToken$))}},directives:[wo,Np,po,fo,CN,JJe,pt,ZJe,$N,BI,gl,P$],pipes:[Hl],styles:["agm-map[_ngcontent-%COMP%]{height:50%}img[_ngcontent-%COMP%]{height:50px}mat-toolbar[_ngcontent-%COMP%]{height:7%}"],data:{animation:[Rqe]}}),nt([rn(n=>n.auth.accessToken)],hk.prototype,"accessToken$",void 0);let get=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["app-contactus"]],decls:16,vars:0,consts:[["fxLayout","column","fxLayoutAlign","start center","fxFill","",1,"page"],["fxLayout","column","fxLayoutAlign","center center",1,"wrapper","mat-elevation-z20"],[1,"name"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",1),y(2,"h1"),H(3,"Contact Us"),_(),y(4,"div"),y(5,"p"),H(6,"For more information or to book a demo session with our team please contact:"),_(),P(7,"br"),y(8,"p",2),H(9,"Paula Fi\xe9vez"),_(),y(10,"p"),H(11,"AusEnHealth Project Director"),_(),y(12,"p"),H(13,"Head of Partner Engagement & Health Lead, FrontierSI"),_(),y(14,"p"),H(15,"pfievez@frontiersi.com.au"),_(),_(),_(),_())},directives:[po,fo,wo],styles:[".wrapper[_ngcontent-%COMP%]{margin-top:5%;padding:12px 48px 48px;background-color:#fff;max-width:60%;text-align:center;border-radius:25px}.page[_ngcontent-%COMP%]{position:absolute;height:93%;background-color:#c2d6ff;font-family:Roboto}h1[_ngcontent-%COMP%]{color:#deb423;font-size:xx-large;font-weight:550}p[_ngcontent-%COMP%]{line-height:100%;font-size:large;color:#001642}.name[_ngcontent-%COMP%]{font-weight:550}"]}),n})(),met=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["app-collaborators"]],decls:22,vars:0,consts:[["fxLayout","column","fxLayoutAlign","start center","fxFlex.lt-xl","100",1,"content"],["fxLayout","column","fxLayoutAlign","center center",1,"wrapper","mat-elevation-z20"],[1,"title"],["fxLayout","row","fxLayoutAlign","space-between center","fxFlex","100",1,"logos"],["src","../../../assets/images/Collaborators/FSI.png"],["src","../../../assets/images/Collaborators/QUT.jpg"],["src","../../../assets/images/Collaborators/NGIS.png"],["src","../../../assets/images/Collaborators/EPAVic.jpg"],["src","../../../assets/images/Collaborators/WADOH.gif"],["src","../../../assets/images/Collaborators/AURIN.png"],["fxLayout","row","fxLayoutAlign","space-between center","fxFlex","80",1,"logos"],["src","../../../assets/images/Collaborators/TERN.png"],["src","../../../assets/images/Collaborators/AIHW.png"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",1),y(2,"h1",2),H(3,"Collaborators"),_(),y(4,"div"),y(5,"h1"),H(6,"AusEnHealth is a collaborative initiative bringing together government, industry and university partners."),P(7,"br"),H(8," We gratefully acknowledge the support, both cash and in-kind, from the following organisations: "),_(),_(),y(9,"div",3),P(10,"img",4),P(11,"img",5),P(12,"img",6),_(),P(13,"br"),y(14,"div",3),P(15,"img",7),P(16,"img",8),P(17,"img",9),_(),P(18,"br"),y(19,"div",10),P(20,"img",11),P(21,"img",12),_(),_(),_())},directives:[po,fo,ja],styles:["h1[_ngcontent-%COMP%]{text-align:center}.title[_ngcontent-%COMP%]{color:#deb423;font-size:xx-large;font-weight:550}.content[_ngcontent-%COMP%]{height:93%;background-color:#c2d6ff}.wrapper[_ngcontent-%COMP%]{padding:12px 48px 48px;min-width:70%;background-color:#fff;border-radius:25px;margin-top:5%;margin-bottom:30px}"]}),n})(),xv=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.destroyed$=new Z}canActivate(e,i){const s=this.store.selectSnapshot(l=>l.auth.accessToken),o=e.queryParams.token,r=!!(s&&s.length>0)||!!o,a=i.url.split("?")[0];if(r){if(!s||o){const l=this._parseJwt(o);this.store.dispatch(new fv.LogIn({loginResponse:{accessToken:o,user:{email:l.email,firstName:"guest",isActive:!0,id:null,lastName:"guest",roles:[{id:l.roles[0].id,type:l.roles[0].type,tenantCode:l.roles[0].tenantCode}]}}})).toPromise(),this.router.navigateByUrl(a)}}else this.router.navigateByUrl("/login");return r}_parseJwt(e){let s=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(s).split("").map(r=>"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(o)}}return n.\u0275fac=function(e){return new(e||n)(V(zi),V(pr))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yet=["*",[["mat-card-footer"]]],_et=["*","mat-card-footer"];let wge=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),Sge=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),n})(),qN=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,i){2&e&&he("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:_et,decls:2,vars:0,template:function(e,i){1&e&&(Xt(yet),mt(0),mt(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n})(),wet=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi],vi]}),n})(),vU=(()=>{class n{constructor(e,i){this.element=e,this.renderer=i,this.defaultElevation=4,this.raisedElevation=20,this.setElevation(this.defaultElevation)}ngOnChanges(e){this.setElevation(this.defaultElevation)}onMouseEnter(){this.setElevation(this.raisedElevation)}onMouseLeave(){this.setElevation(this.defaultElevation)}setElevation(e){Array.from(this.element.nativeElement.classList).filter(o=>o.startsWith("mat-elevation-z")).forEach(o=>{this.renderer.removeClass(this.element.nativeElement,o)}),this.renderer.addClass(this.element.nativeElement,`mat-elevation-z${e}`)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","appMaterialElevation",""]],hostBindings:function(e,i){1&e&&se("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()})},inputs:{defaultElevation:"defaultElevation",raisedElevation:"raisedElevation"},features:[st]}),n})(),Tet=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["app-team"]],decls:108,vars:0,consts:[[1,"page"],["fxLayout","column","fxLayoutAlign","start center",1,"content"],[1,"description","mat-elevation-z20"],[1,"headerText"],["fxLayout","column","fxLayoutAlign","space-between center","fxFlex","90"],["fxLayout","row","fxLayoutAlign","space-between center","fxFill",""],["appMaterialElevation",""],["mat-card-image","","src","../../../assets/images/Photos/KM.jpg"],[1,"name"],["mat-card-image","","src","../../../assets/images/Photos/PF.jpg"],["mat-card-image","","src","../../../assets/images/Photos/AP.jpg"],["mat-card-image","","src","../../../assets/images/Photos/NE.jpg"],["mat-card-image","","src","../../../assets/images/Photos/DW.jpg"],["mat-card-image","","src","../../../assets/images/Photos/WH.jpg"],["mat-card-image","","src","../../../assets/images/Photos/LM.jpg"],["mat-card-image","","src","../../../assets/images/Photos/MR.jpg"],["mat-card-image","","src","../../../assets/images/Photos/ET.jpg"],["mat-card-image","","src","../../../assets/images/Photos/CD.jpg"],["mat-card-image","","src","../../../assets/images/Photos/TA.png"],["mat-card-image","","src","../../../assets/images/Photos/FB.jpg"],["mat-card-image","","src","../../../assets/images/Photos/RG.jpg"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",1),y(2,"div",2),P(3,"br"),y(4,"h1"),H(5,"Project Delivery Team"),_(),P(6,"br"),y(7,"p",3),H(8,"AusEnHealth is a collaborative initiative bringing together expertise from a multi-disciplinary team across industry, government and academia. "),_(),P(9,"br"),_(),y(10,"div",4),y(11,"div",5),y(12,"mat-card",6),P(13,"img",7),y(14,"mat-card-content"),y(15,"p",8),H(16,"DP Kerrie Mengersen"),_(),y(17,"p"),H(18,"Chief Investigator"),_(),_(),_(),y(19,"mat-card",6),P(20,"img",9),y(21,"mat-card-content"),y(22,"p",8),H(23,"Ms Paula Fi\xe9vez"),_(),y(24,"p"),H(25,"Project Director"),_(),_(),_(),y(26,"mat-card",6),P(27,"img",10),y(28,"mat-card-content"),y(29,"p",8),H(30,"Dr Aiden Price"),_(),y(31,"p"),H(32,"Data Analyst"),_(),_(),_(),y(33,"mat-card",6),P(34,"img",11),y(35,"mat-card-content"),y(36,"p",8),H(37,"Mr Nathan Eaton"),_(),y(38,"p"),H(39,"Technology Lead"),_(),_(),_(),_(),P(40,"br"),y(41,"div",5),y(42,"mat-card",6),P(43,"img",12),y(44,"mat-card-content"),y(45,"p",8),H(46,"Dr Darren Wraith"),_(),y(47,"p"),H(48,"Project Investigator"),_(),_(),_(),y(49,"mat-card",6),P(50,"img",13),y(51,"mat-card-content"),y(52,"p",8),H(53,"Dr Wenbiao Hu"),_(),y(54,"p"),H(55,"Project Investigator"),_(),_(),_(),y(56,"mat-card",6),P(57,"img",14),y(58,"mat-card-content"),y(59,"p",8),H(60,"Dr Lidia Morawska"),_(),y(61,"p"),H(62,"Project Investigator"),_(),_(),_(),_(),P(63,"br"),y(64,"div",5),y(65,"mat-card",6),P(66,"img",15),y(67,"mat-card-content"),y(68,"p",8),H(69,"Dr Michael Rigby"),_(),y(70,"p"),H(71,"Technical Development"),_(),_(),_(),y(72,"mat-card",6),P(73,"img",16),y(74,"mat-card-content"),y(75,"p",8),H(76,"Mr Evan Thomas"),_(),y(77,"p"),H(78,"Technical Development"),_(),_(),_(),y(79,"mat-card",6),P(80,"img",17),y(81,"mat-card-content"),y(82,"p",8),H(83,"Mr Callan Davis"),_(),y(84,"p"),H(85,"Data Technician"),_(),_(),_(),_(),y(86,"div",5),y(87,"mat-card",6),P(88,"img",18),y(89,"mat-card-content"),y(90,"p",8),H(91,"Mr Than Aung"),_(),y(92,"p"),H(93,"Software Developer"),_(),_(),_(),y(94,"mat-card",6),P(95,"img",19),y(96,"mat-card-content"),y(97,"p",8),H(98,"Ms Flavia Barar"),_(),y(99,"p"),H(100,"Data and Visualisation"),_(),_(),_(),y(101,"mat-card",6),P(102,"img",20),y(103,"mat-card-content"),y(104,"p",8),H(105,"Mr Rohit Gupta"),_(),y(106,"p"),H(107,"Data Integration"),_(),_(),_(),_(),_(),_(),_())},directives:[po,fo,ja,wo,qN,vU,Sge,wge],styles:[".page[_ngcontent-%COMP%]{height:93%;background-color:#c2d6ff;font-family:Roboto}p[_ngcontent-%COMP%]{font-size:large;text-align:center}h1[_ngcontent-%COMP%]{color:#deb423;font-size:xx-large;font-weight:550}.description[_ngcontent-%COMP%]{padding:0 48px;background:white;text-align:center;margin-top:10px;margin-bottom:30px;border-radius:25px}.headerText[_ngcontent-%COMP%]{color:#001642}.secondaryToolBar[_ngcontent-%COMP%]{background-color:#c2d6ff;color:#deb423;font-size:xx-large;font-weight:bold}.content[_ngcontent-%COMP%]{background-color:#c2d6ff}mat-card[_ngcontent-%COMP%]{color:#001642;width:200px;height:300px;margin-left:15px;margin-right:15px;margin-bottom:15px;background-color:#fff}.name[_ngcontent-%COMP%]{font-weight:600}"]}),n})();function Tge(n,t,e,i,s,o,r){try{var a=n[o](r),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,s)}function Xe(n){return function(){var t=this,e=arguments;return new Promise(function(i,s){var o=n.apply(t,e);function r(l){Tge(o,i,s,r,a,"next",l)}function a(l){Tge(o,i,s,r,a,"throw",l)}r(void 0)})}}let kge=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(g(Ie),g($))},n.\u0275dir=R({type:n}),n})(),FC=(()=>{class n extends kge{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,features:[N]}),n})();const es=new ot("NgValueAccessor"),ket={provide:es,useExisting:He(()=>bU),multi:!0};let bU=(()=>{class n extends FC{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&se("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[we([ket]),N]}),n})();const Det={provide:es,useExisting:He(()=>pg),multi:!0},Eet=new ot("CompositionEventMode");let pg=(()=>{class n extends kge{constructor(e,i,s){super(e,i),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const n=eg()?eg().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(g(Ie),g($),g(Eet,8))},n.\u0275dir=R({type:n,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(e,i){1&e&&se("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[we([Det]),N]}),n})();function wv(n){return null==n||0===n.length}function Dge(n){return null!=n&&"number"==typeof n.length}const ir=new ot("NgValidators"),Sv=new ot("NgAsyncValidators"),Iet=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Vp{static min(t){return function(n){return t=>{if(wv(t.value)||wv(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(wv(t.value)||wv(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return Ige(t)}static requiredTrue(t){return function(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function(n){return wv(n.value)||Iet.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function(n){return t=>wv(t.value)||!Dge(t.value)?null:t.value.lengthDge(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function(n){if(!n)return Tv;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(wv(i.value))return null;const s=i.value;return t.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(t)}static nullValidator(t){return null}static compose(t){return Hge(t)}static composeAsync(t){return Gge(t)}}function Ige(n){return wv(n.value)?{required:!0}:null}function Tv(n){return null}function Lge(n){return null!=n}function Nge(n){const t=WE(n)?Ys(n):n;return SP(t),t}function Bge(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Vge(n,t){return t.map(e=>e(n))}function zge(n){return n.map(t=>function(n){return!n.validate}(t)?t:e=>t.validate(e))}function Hge(n){if(!n)return null;const t=n.filter(Lge);return 0==t.length?null:function(e){return Bge(Vge(e,t))}}function CU(n){return null!=n?Hge(zge(n)):null}function Gge(n){if(!n)return null;const t=n.filter(Lge);return 0==t.length?null:function(e){return wL(Vge(e,t).map(Nge)).pipe(xe(Bge))}}function xU(n){return null!=n?Gge(zge(n)):null}function jge(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function $ge(n){return n._rawValidators}function Uge(n){return n._rawAsyncValidators}function wU(n){return n?Array.isArray(n)?n:[n]:[]}function XN(n,t){return Array.isArray(n)?n.includes(t):n===t}function Wge(n,t){const e=wU(t);return wU(n).forEach(s=>{XN(e,s)||e.push(s)}),e}function qge(n,t){return wU(t).filter(e=>!XN(n,e))}let Xge=(()=>{class n{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(e){this._rawValidators=e||[],this._composedValidatorFn=CU(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=xU(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,i){return!!this.control&&this.control.hasError(e,i)}getError(e,i){return this.control?this.control.getError(e,i):null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n}),n})(),qc=(()=>{class n extends Xge{get formDirective(){return null}get path(){return null}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,features:[N]}),n})();class Zs extends Xge{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yge{constructor(t){this._cd=t}is(t){var e,i,s;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===s?void 0:s[t])}}let Xc=(()=>{class n extends Yge{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(g(Zs,2))},n.\u0275dir=R({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&he("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[N]}),n})(),pk=(()=>{class n extends Yge{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(g(qc,10))},n.\u0275dir=R({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&he("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[N]}),n})();function QI(n,t){SU(n,t),t.valueAccessor.writeValue(n.value),function(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Kge(n,t)})}(n,t),function(n,t){const e=(i,s)=>{t.valueAccessor.writeValue(i),s&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Kge(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function KN(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),QN(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function ZN(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function SU(n,t){const e=$ge(n);null!==t.validator?n.setValidators(jge(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Uge(n);null!==t.asyncValidator?n.setAsyncValidators(jge(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const s=()=>n.updateValueAndValidity();ZN(t._rawValidators,s),ZN(t._rawAsyncValidators,s)}function QN(n,t){let e=!1;if(null!==n){if(null!==t.validator){const s=$ge(n);if(Array.isArray(s)&&s.length>0){const o=s.filter(r=>r!==t.validator);o.length!==s.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const s=Uge(n);if(Array.isArray(s)&&s.length>0){const o=s.filter(r=>r!==t.asyncValidator);o.length!==s.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return ZN(t._rawValidators,i),ZN(t._rawAsyncValidators,i),e}function Kge(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Zge(n,t){SU(n,t)}function TU(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Qge(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function kU(n,t){if(!t)return null;let e,i,s;return Array.isArray(t),t.forEach(o=>{o.constructor===pg?e=o:function(n){return Object.getPrototypeOf(n.constructor)===FC}(o)?i=o:s=o}),s||i||e||null}function JN(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const JI="VALID",e3="INVALID",fk="PENDING",eA="DISABLED";function DU(n){return(EU(n)?n.validators:n)||null}function Jge(n){return Array.isArray(n)?CU(n):n||null}function MU(n,t){return(EU(t)?t.asyncValidators:n)||null}function eme(n){return Array.isArray(n)?xU(n):n||null}function EU(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class IU{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Jge(this._rawValidators),this._composedAsyncValidatorFn=eme(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===JI}get invalid(){return this.status===e3}get pending(){return this.status==fk}get disabled(){return this.status===eA}get enabled(){return this.status!==eA}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Jge(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=eme(t)}addValidators(t){this.setValidators(Wge(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Wge(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(qge(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(qge(t,this._rawAsyncValidators))}hasValidator(t){return XN(this._rawValidators,t)}hasAsyncValidator(t){return XN(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=fk,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=eA,this.errors=null,this._forEachChild(i=>{i.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(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=JI,this._forEachChild(i=>{i.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(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}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===JI||this.status===fk)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?eA:JI}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fk,this._hasOwnPendingAsyncValidator=!0;const e=Nge(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(!1!==e.emitEvent)}get(t){return function(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(s=>{i=i instanceof yy?i.controls.hasOwnProperty(s)?i.controls[s]:null:i instanceof Het&&i.at(s)||null}),i}(this,t)}getError(t,e){const 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 S,this.statusChanges=new S}_calculateStatus(){return this._allControlsDisabled()?eA:this.errors?e3:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fk)?fk:this._anyControlsHaveStatus(e3)?e3:JI}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){EU(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class gc extends IU{constructor(t=null,e,i){super(DU(e),MU(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){JN(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){JN(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class yy extends IU{constructor(t,e,i){super(DU(e),MU(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={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,s)=>{i.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof gc?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const 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(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((s,o)=>{i=e(i,s,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Het extends IU{constructor(t,e,i){super(DU(e),MU(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[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={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((i,s)=>{this._throwIfControlMissing(s),this.at(s).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,s)=>{this.at(s)&&this.at(s).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,s)=>{i.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof gc?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,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))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Get={provide:qc,useExisting:He(()=>OC)},tA=(()=>Promise.resolve(null))();let OC=(()=>{class n extends qc{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new S,this.form=new yy({},CU(e),xU(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){tA.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),QI(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){tA.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),JN(this._directives,e)})}addFormGroup(e){tA.then(()=>{const i=this._findContainer(e.path),s=new yy({});Zge(s,e),i.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){tA.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){tA.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Qge(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(g(ir,10),g(Sv,10))},n.\u0275dir=R({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&se("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[we([Get]),N]}),n})();const $et={provide:Zs,useExisting:He(()=>zp)},ime=(()=>Promise.resolve(null))();let zp=(()=>{class n extends Zs{constructor(e,i,s,o){super(),this.control=new gc,this._registered=!1,this.update=new S,this._parent=e,this._setValidators(i),this._setAsyncValidators(s),this.valueAccessor=kU(0,o)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),TU(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(n,t){return[...t.path,n]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){QI(this.control,this),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()}_updateValue(e){ime.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,s=""===i||i&&"false"!==i;ime.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable()})}}return n.\u0275fac=function(e){return new(e||n)(g(qc,9),g(ir,10),g(Sv,10),g(es,10))},n.\u0275dir=R({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[we([$et]),N,st]}),n})(),gk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),ome=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();const FU=new ot("NgModelWithFormControlWarning"),Yet={provide:Zs,useExisting:He(()=>RC)};let RC=(()=>{class n extends Zs{constructor(e,i,s,o){super(),this._ngModelWarningConfig=o,this.update=new S,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=kU(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&KN(i,this,!1),QI(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}TU(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&KN(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n.\u0275fac=function(e){return new(e||n)(g(ir,10),g(Sv,10),g(es,10),g(FU,8))},n.\u0275dir=R({type:n,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[we([Yet]),N,st]}),n._ngModelWarningSentOnce=!1,n})();const Ket={provide:qc,useExisting:He(()=>_y)};let _y=(()=>{class n extends qc{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new S,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(QN(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return QI(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){KN(e.control||null,e,!1),JN(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,Qge(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,s=this.form.get(e.path);i!==s&&(KN(i||null,e),s instanceof gc&&(QI(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);Zge(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function(n,t){return QN(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){SU(this.form,this),this._oldForm&&QN(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(g(ir,10),g(Sv,10))},n.\u0275dir=R({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&se("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[we([Ket]),N,st]}),n})();const ltt={provide:ir,useExisting:He(()=>t3),multi:!0};let t3=(()=>{class n{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?Ige(e):null}registerOnValidatorChange(e){this._onChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&fe("required",i.required?"":null)},inputs:{required:"required"},features:[we([ltt])]}),n})(),vme=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[ome]]}),n})(),PC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[vme]}),n})(),nA=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:FU,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[vme]}),n})();var Gn,hn;function $a(n){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i3?t.i-4:t.i:Array.isArray(n)?1:i3(n)?2:s3(n)?3:0}function Dv(n,t){return 2===kv(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function bme(n,t,e){var i=kv(n);2===i?n.set(t,e):3===i?(n.delete(t),n.add(e)):n[t]=e}function i3(n){return btt&&n instanceof Map}function s3(n){return Ctt&&n instanceof Set}function Ua(n){return n.o||n.t}function BU(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=Mme(n);delete t[Gi];for(var e=mk(t),i=0;i1&&(n.set=n.add=n.clear=n.delete=ftt),Object.freeze(n),t&&by(n,function(e,i){return VU(i,!0)},!0)),n}function ftt(){$a(2)}function zU(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function Cy(n){var t=YU[n];return t||$a(18,n),t}function iA(){return oA}function GU(n,t){t&&(Cy("Patches"),n.u=[],n.s=[],n.v=t)}function o3(n){jU(n),n.p.forEach(gtt),n.p=null}function jU(n){n===oA&&(oA=n.l)}function xme(n){return oA={p:[],l:oA,h:n,m:!0,_:0}}function gtt(n){var t=n[Gi];0===t.i||1===t.i?t.j():t.O=!0}function $U(n,t){t._=t.p.length;var e=t.p[0],i=void 0!==n&&n!==e;return t.h.g||Cy("ES5").S(t,n,i),i?(e[Gi].P&&(o3(t),$a(4)),fg(n)&&(n=r3(t,n),t.l||a3(t,n)),t.u&&Cy("Patches").M(e[Gi],n,t.u,t.s)):n=r3(t,e,[]),o3(t),t.u&&t.v(t.u,t.s),n!==XU?n:void 0}function r3(n,t,e){if(zU(t))return t;var i=t[Gi];if(!i)return by(t,function(o,r){return wme(n,i,t,o,r,e)},!0),t;if(i.A!==n)return t;if(!i.P)return a3(n,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=4===i.i||5===i.i?i.o=BU(i.k):i.o;by(3===i.i?new Set(s):s,function(o,r){return wme(n,i,s,o,r,e)}),a3(n,s,!1),e&&n.u&&Cy("Patches").R(i,e,n.u,n.s)}return i.o}function wme(n,t,e,i,s,o){if(vy(s)){var r=r3(n,s,o&&t&&3!==t.i&&!Dv(t.D,i)?o.concat(i):void 0);if(bme(e,i,r),!vy(r))return;n.m=!1}if(fg(s)&&!zU(s)){if(!n.h.F&&n._<1)return;r3(n,s),t&&t.A.l||a3(n,s)}}function a3(n,t,e){void 0===e&&(e=!1),n.h.F&&n.m&&VU(t,e)}function UU(n,t){var e=n[Gi];return(e?Ua(e):n)[t]}function Sme(n,t){if(t in n)for(var e=Object.getPrototypeOf(n);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function Pd(n){n.P||(n.P=!0,n.l&&Pd(n.l))}function WU(n){n.o||(n.o=BU(n.t))}function sA(n,t,e){var i=i3(t)?Cy("MapSet").N(t,e):s3(t)?Cy("MapSet").T(t,e):n.g?function(s,o){var r=Array.isArray(s),a={i:r?1:0,A:o?o.A:iA(),P:!1,I:!1,D:{},l:o,t:s,k:null,o:null,j:null,C:!1},l=a,c=yk;r&&(l=[a],c=c3);var d=Proxy.revocable(l,c),u=d.revoke,h=d.proxy;return a.k=h,a.j=u,h}(t,e):Cy("ES5").J(t,e);return(e?e.A:iA()).p.push(i),i}function Tme(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return BU(n)}!function(n){n.SetDefaultState=(()=>{class D{constructor(){}}return D.type="[HeatRisk] Set Default State",D})(),n.SetFilter=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set Filter",D})(),n.SetBusyState=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set Busy State",D})(),n.SetSa3FilterResult=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set SA3 Filter Result",D})(),n.SetSa2FilterResult=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set SA2 Filter Result",D})(),n.SetSa3AnalysisIndicator=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set SA3 Analysis Indicator",D})(),n.SetSa2AnalysisIndicator=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set SA2 Analysis Indicator",D})(),n.SetSelectedSA3Code16=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set SelectedSA3Code16",D})(),n.SetSelectedSA2Code16=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set SelectedSA2Code16",D})(),n.SetRankingList=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set RankingList",D})(),n.DisplaySA3FilterLayer=(()=>{class D{constructor(){}}return D.type="[HeatRisk] Display SA3 Filter Layer",D})(),n.DisplaySA2FilterLayer=(()=>{class D{constructor(){}}return D.type="[HeatRisk] Display SA2 Filter Layer",D})(),n.SetIndicatorUpdateData=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set Indicator Update Data",D})(),n.SetSa2IndicatorUpdateData=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set SA2 Indicator Update Data",D})(),n.SetFilterUpdateData=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set Filter Update Data",D})(),n.SetSa2FilterUpdateData=(()=>{class D{constructor(O){this.payload=O}}return D.type="[HeatRisk] Set Sa2 Filter Update Data",D})()}(Gn||(Gn={})),function(n){n.MapReady=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Map Ready",ie})(),n.SetSearchLocationOnMap=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Set Search Location",ie})(),n.SetActiveModule=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Set Active Module",ie})(),n.SetLGALayerTileUrl=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Set LGA Layer Tile Url",ie})(),n.SetBOMTmaxLayerTileUrl=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Set BOM TMax Layer Tile Url",ie})(),n.SetSA3LayerTileUrl=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Set SA3 Layer Tile Url",ie})(),n.ShowHeatRiskAssessmentOverlay=(()=>{class ie{constructor(){}}return ie.type="[Map] Show Heat Risk Assessment Overlay",ie})(),n.ShowClimateChangeOverlay=(()=>{class ie{constructor(){}}return ie.type="[Map] Show Climate Change Overlay",ie})(),n.ShowLGALayer=(()=>{class ie{}return ie.type="[Map] Show LGALayer",ie})(),n.HideLGALayer=(()=>{class ie{}return ie.type="[Map] Hide LGALayer",ie})(),n.ShowSA3Layer=(()=>{class ie{}return ie.type="[Map] Show SA3Layer",ie})(),n.HideSA3Layer=(()=>{class ie{}return ie.type="[Map] Hide SA3Layer",ie})(),n.ShowBomTmaxLayer=(()=>{class ie{}return ie.type="[Map] Show BomTmaxLayer",ie})(),n.HideBomTmaxLayer=(()=>{class ie{}return ie.type="[Map] Hide BomTmaxLayer",ie})(),n.HideFilterOverlay=(()=>{class ie{constructor(){}}return ie.type="[Map] Hide Filter Overlay",ie})(),n.HideHightLightOverlay=(()=>{class ie{constructor(){}}return ie.type="[Map] Hide Hightlight Overlay",ie})(),n.UpdateMapBBox=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Update BBox",ie})(),n.HighlightSA3Region=(()=>{class ie{constructor(Te){this.sa3code=Te}}return ie.type="[Map] Highlight SA3 region",ie})(),n.HighlightSA4Region=(()=>{class ie{constructor(Te){this.sa4code=Te}}return ie.type="[Map] Highlight SA4 region",ie})(),n.HighlightSA2Region=(()=>{class ie{constructor(Te){this.sa2code=Te}}return ie.type="[Map] Highlight SA2 region",ie})(),n.DispatchGeojsonData=(()=>{class ie{constructor(Te){this.data=Te}}return ie.type="[Map] Dispatch Geojson Data",ie})(),n.SetGeoJsonFeatures=(()=>{class ie{constructor(Te){this.payload=Te}}return ie.type="[Map] Set Geojson features",ie})()}(hn||(hn={}));var kme,oA,qU="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),btt="undefined"!=typeof Map,Ctt="undefined"!=typeof Set,Dme="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,XU=qU?Symbol.for("immer-nothing"):((kme={})["immer-nothing"]=!0,kme),rA=qU?Symbol.for("immer-draftable"):"__$immer_draftable",Gi=qU?Symbol.for("immer-state"):"__$immer_state",xtt=("undefined"!=typeof Symbol&&Symbol,""+Object.prototype.constructor),mk="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,Mme=Object.getOwnPropertyDescriptors||function(n){var t={};return mk(n).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(n,e)}),t},YU={},yk={get:function(n,t){if(t===Gi)return n;var s,a,l,e=Ua(n);if(!Dv(e,t))return s=n,(l=Sme(e,t))?"value"in l?l.value:null===(a=l.get)||void 0===a?void 0:a.call(s.k):void 0;var i=e[t];return n.I||!fg(i)?i:i===UU(n.t,t)?(WU(n),n.o[t]=sA(n.A.h,i,n)):i},has:function(n,t){return t in Ua(n)},ownKeys:function(n){return Reflect.ownKeys(Ua(n))},set:function(n,t,e){var i=Sme(Ua(n),t);if(null==i?void 0:i.set)return i.set.call(n.k,e),!0;if(!n.P){var s=UU(Ua(n),t),o=null==s?void 0:s[Gi];if(o&&o.t===e)return n.o[t]=e,n.D[t]=!1,!0;if(function(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}(e,s)&&(void 0!==e||Dv(n.t,t)))return!0;WU(n),Pd(n)}return n.o[t]===e&&"number"!=typeof e&&(void 0!==e||t in n.o)||(n.o[t]=e,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==UU(n.t,t)||t in n.t?(n.D[t]=!1,WU(n),Pd(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var e=Ua(n),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:i.enumerable,value:e[t]}},defineProperty:function(){$a(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){$a(12)}},c3={};by(yk,function(n,t){c3[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),c3.deleteProperty=function(n,t){return yk.deleteProperty.call(this,n[0],t)},c3.set=function(n,t,e){return yk.set.call(this,n[0],t,e,n[0])};var bu=new(function(){function n(e){var i=this;this.g=Dme,this.F=!0,this.produce=function(s,o,r){if("function"==typeof s&&"function"!=typeof o){var a=o;o=s;var l=i;return function(f){var m=this;void 0===f&&(f=a);for(var C=arguments.length,k=Array(C>1?C-1:0),D=1;D1?c-1:0),u=1;u=0;s--){var o=i[s];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}var r=Cy("Patches").$;return vy(e)?r(e,i):this.produce(e,function(a){return r(a,i.slice(s+1))})},n}()),Hp=bu.produce;bu.produceWithPatches.bind(bu),bu.setAutoFreeze.bind(bu),bu.setUseProxies.bind(bu),bu.applyPatches.bind(bu),bu.createDraft.bind(bu),bu.finishDraft.bind(bu);const ca=Hp,Stt={dark_map:{id:"dark_map",name:"Dark Map"},satellite:{id:"satellite",name:"Satellite"},hybrid:{id:"hybrid",name:"Hybrid"},roadmap:{id:"roadmap",name:"Map"},terrain:{id:"terrain",name:"Terrain"}},Ttt={HeatRiskAssessment:["sa3Layer"],CimateChangeAssessment:[],MultiCloudHealthDataAnalysis:[],AirQualityCampaingAwareness:[],AirQualityImpactAnalysis:[],AirQualityPublicAwareness:[]},Eme=["January","February","March","April","May","June","July","August","September","October","November","December"];var d3=(()=>(function(n){n[n.HeatRiskAssessment=1]="HeatRiskAssessment",n[n.CimateChangeAssessment=2]="CimateChangeAssessment",n[n.MultiCloudHealthDataAnalysis=3]="MultiCloudHealthDataAnalysis",n[n.AirQualityCampaingAwareness=4]="AirQualityCampaingAwareness",n[n.AirQualityImpactAnalysis=5]="AirQualityImpactAnalysis",n[n.AirQualityPublicAwareness=6]="AirQualityPublicAwareness"}(d3||(d3={})),d3))(),da=(()=>(function(n){n.HeatRisk="heatrisk",n.HeatRiskSA2="heatrisksa2",n.ClimateChange="climatechange",n.MultiCloudHealth="multicloudHealth",n.AirImpact="airimpact",n.AirCampaign="aircampaign",n.AirPublicAwareness="airpublicawareness",n.default="default"}(da||(da={})),da))();const ktt={layers:{lgaLayer:{id:"lga",name:"LGA Layer",isActive:!1,isVisible:!0,url:"",factoryFunc:"createLGALayer"},sa3Layer:{id:"sa3",name:"SA3 Layer",isActive:!1,isVisible:!0,url:"",factoryFunc:"createSA3Layer"},sa2Layer:{id:"sa2",name:"SA2 Layer",isActive:!1,isVisible:!0,url:"",factoryFunc:"createSA2Layer"},sa4Layer:{id:"sa4",name:"SA4 Layer",isActive:!1,isVisible:!0,url:"",factoryFunc:"createSA4Layer"},bomTmaxLayer:{id:"bom_tmax",name:"BOM Layer",isActive:!1,isVisible:!0,url:"",factoryFunc:"createBOMTmaxLayer"}},currentOverlay:null,activeModule:da.default,geojsonFeatures:[]};let Ea=class{SetRankingList({patchState:t},{payload:e}){t({activeModule:e})}ShowHeatRiskAssessmentOverlay({getState:t,setState:e}){e(Hp(t(),s=>{s.currentOverlay={type:d3.HeatRiskAssessment,layers:Ttt.HeatRiskAssessment}}))}SetLGALayerTileUrl({getState:t,setState:e},{payload:i}){e(Hp(t(),o=>{o.layers.lgaLayer.url=i.tileUrl,o.layers.lgaLayer.isActive=!0}))}SetSA3LayerTileUrl({getState:t,setState:e},{payload:i}){e(Hp(t(),o=>{o.layers.sa3Layer.url=i.tileUrl,o.layers.sa3Layer.isActive=!0}))}SetBOMTmaxLayerTileUrl({getState:t,setState:e},{payload:i}){e(Hp(t(),o=>{o.layers.bomTmaxLayer.url=i.tileUrl,o.layers.bomTmaxLayer.isActive=!0}))}ShowLGALayer({getState:t,setState:e}){e(Hp(t(),s=>{s.layers.lgaLayer.isVisible=!0}))}HideLGALayer({getState:t,setState:e}){e(Hp(t(),s=>{s.layers.lgaLayer.isVisible=!1}))}ShowSA3Layer({getState:t,setState:e}){e(Hp(t(),s=>{s.layers.sa3Layer.isVisible=!0}))}HideSA3Layer({getState:t,setState:e}){e(Hp(t(),s=>{s.layers.sa3Layer.isVisible=!1}))}ShowBomTmaxLayer({getState:t,setState:e}){e(Hp(t(),s=>{s.layers.bomTmaxLayer.isVisible=!0}))}HideBomTmaxLayer({getState:t,setState:e}){e(Hp(t(),s=>{s.layers.bomTmaxLayer.isVisible=!1}))}SetGeojsonFeatures({patchState:t},{payload:e}){t({geojsonFeatures:e})}};Ea.\u0275fac=function(t){return new(t||Ea)},Ea.\u0275prov=ue({token:Ea,factory:Ea.\u0275fac}),nt([Pn(hn.SetActiveModule)],Ea.prototype,"SetRankingList",null),nt([Pn(hn.ShowHeatRiskAssessmentOverlay)],Ea.prototype,"ShowHeatRiskAssessmentOverlay",null),nt([Pn(hn.SetLGALayerTileUrl)],Ea.prototype,"SetLGALayerTileUrl",null),nt([Pn(hn.SetSA3LayerTileUrl)],Ea.prototype,"SetSA3LayerTileUrl",null),nt([Pn(hn.SetBOMTmaxLayerTileUrl)],Ea.prototype,"SetBOMTmaxLayerTileUrl",null),nt([Pn(hn.ShowLGALayer)],Ea.prototype,"ShowLGALayer",null),nt([Pn(hn.HideLGALayer)],Ea.prototype,"HideLGALayer",null),nt([Pn(hn.ShowSA3Layer)],Ea.prototype,"ShowSA3Layer",null),nt([Pn(hn.HideSA3Layer)],Ea.prototype,"HideSA3Layer",null),nt([Pn(hn.ShowBomTmaxLayer)],Ea.prototype,"ShowBomTmaxLayer",null),nt([Pn(hn.HideBomTmaxLayer)],Ea.prototype,"HideBomTmaxLayer",null),nt([Pn(hn.SetGeoJsonFeatures)],Ea.prototype,"SetGeojsonFeatures",null),Ea=nt([cC({name:"map",defaults:ktt})],Ea);const Ime=[{hidden:!0,field:"sa3_code16",title:"SA3"},{hidden:!1,field:"name",title:"Region"},{hidden:!1,field:"rspat_rhist_theatavg",title:"Spatial %"},{hidden:!1,field:"rspat_rhist_theat",title:"Historical Daily %"},{hidden:!1,field:"rspat_ehfavg",title:"Heat Factor %"},{hidden:!0,field:"rhist_theatavg",title:"Heat High %"},{hidden:!0,field:"heat_vul_index",title:"Heat Index"},{hidden:!0,field:"e_heat",title:"Exposure Index"},{hidden:!0,field:"s_heat",title:"Sensitivity Index"},{hidden:!0,field:"a_heat",title:"Adaptive Index"}],Ame=[{hidden:!0,field:"sa3_code16",title:"SA3"},{hidden:!1,field:"name",title:"Region"},{hidden:!1,field:"rspat_rhist_tcoldavg",title:"Spatial %"},{hidden:!1,field:"rspat_rhist_tcold",title:"Historical Daily %"},{hidden:!1,field:"rspat_ecfavg",title:"Cold Factor %"},{hidden:!0,field:"rhist_tcoldavg",title:"Cold High %"},{hidden:!0,field:"cold_vul_index",title:"Cold Index"},{hidden:!0,field:"e_cold",title:"Exposure Index"},{hidden:!0,field:"s_cold",title:"Sensitivity Index"},{hidden:!0,field:"a_cold",title:"Adaptive Index"}],aA={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},_k=[{key:"rhist_theatavg",value:"Heat High %"},{key:"rhist_tcoldavg",value:"Cold High %"},{key:"heat_vul_index",value:"Heat Vulnerability Index"},{key:"e_heat",value:"Heat Exposure Index"},{key:"s_heat",value:"Heat Sensitivity Index"},{key:"a_heat",value:"Heat Adaptive Index"},{key:"cold_vul_index",value:"Cold Vulnerability Index"},{key:"e_cold",value:"Cold Exposure Index"},{key:"s_cold",value:"Cold Sensitivity Index"},{key:"a_cold",value:"Cold Adaptive Index"}],u3=[{heatIndicator:"rhist_theatavg",coldIndicator:"rhist_tcoldavg"},{heatIndicator:"heat_vul_index",coldIndicator:"cold_vul_index"},{heatIndicator:"e_heat",coldIndicator:"e_cold"},{heatIndicator:"s_heat",coldIndicator:"s_cold"},{heatIndicator:"a_heat",coldIndicator:"a_cold"}],Dtt=[{hidden:!0,field:"name",title:"State Name"},{hidden:!0,field:"ste_code16",title:"StateCode"},{hidden:!1,field:"abbrev",title:"State"},{hidden:!1,field:"year",title:"Year"},{hidden:!0,field:"month",title:"Month"},{hidden:!1,field:"avgfctemp",title:"Avg Temperature"},{hidden:!1,field:"natrisk_fcheat",title:"At risk heat days"},{hidden:!0,field:"nhighrisk_fcheat",title:"At high risk heat days"}],Mtt=[{hidden:!1,field:"name",title:"Region Name"},{hidden:!0,field:"sa3_code16",title:"Region Code"},{hidden:!1,field:"year",title:"Year"},{hidden:!0,field:"month",title:"Month"},{hidden:!1,field:"avgfctemp",title:"Avg Temperature"},{hidden:!1,field:"natrisk_fcheat",title:"At risk heat days"},{hidden:!0,field:"nhighrisk_fcheat",title:"At high risk heat days"}],lA=[{key:"natrisk_fcheat",value:"Number of day at risk"},{key:"nhighrisk_fcheat",value:"Number of day at high risk"},{key:"avgfctemp",value:"Average Forecast Temperature"}];var Ett=Pt(530);function Itt(n){switch(n.type){case google.maps.drawing.OverlayType.MARKER:let t=n.overlay.getPosition();return new google.maps.Data.Point(t);case google.maps.drawing.OverlayType.RECTANGLE:const i=n.overlay.getBounds(),s=[i.getSouthWest(),{lat:i.getSouthWest().lat(),lng:i.getNorthEast().lng()},i.getNorthEast(),{lng:i.getSouthWest().lng(),lat:i.getNorthEast().lat()}];return new google.maps.Data.Polygon([s]);case google.maps.drawing.OverlayType.POLYGON:return new google.maps.Data.Polygon([n.overlay.getPath().getArray()]);case google.maps.drawing.OverlayType.POLYLINE:return new google.maps.Data.LineString(n.overlay.getPath().getArray());case google.maps.drawing.OverlayType.CIRCLE:return new google.maps.Data.Point(n.overlay.getCenter())}}function cA(n){let t=new Ett.Wkt;t.read(n);const e=t.components;return new google.maps.LatLngBounds({lat:e[0].y,lng:e[0].x},{lat:e[1].y,lng:e[1].x})}let Fme=(()=>{class n{constructor(e,i){this.actions$=e,this.ngZone=i,this.polygonDrawnComplete$=new Z,this.pointDrawnComplete$=new Z,this.destroyed$=new Z,this.isDrawing=!1,this.actions$.pipe(dv(hn.MapReady),lt(s=>{this.setupDrawingManager(s.payload.map)}),et(this.destroyed$)).subscribe()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}setDrawingMode(e,i){this.drawingManager.setDrawingMode(e),this.type=i}closeDrawingMode(){this.isDrawing=!1,this.type="None",this.drawingManager.setDrawingMode(null)}setupDrawingManager(e){this.map=e,this.drawingManager=new google.maps.drawing.DrawingManager({map:this.map,drawingControl:!1}),google.maps.event.addListener(this.drawingManager,"overlaycomplete",i=>{this.ngZone.run(()=>{const s=function(n){return new google.maps.Data.Feature({geometry:Itt(n)})}(i);switch(i.overlay.setMap(null),this.drawingManager.setDrawingMode(null),this.type){case"Polygon":this.polygonDrawnComplete$.next(s);break;case"Point":this.pointDrawnComplete$.next(s)}this.isDrawing=!1})})}}return n.\u0275fac=function(e){return new(e||n)(V(sg),V(ce))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var go=(()=>(function(n){n.State="ste_code16",n.SA3="sa3_code16",n.SA4="sa4_code16",n.LGA="lga_code16"}(go||(go={})),go))();function Ome(n){if("undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||"undefined"!=typeof process&&"object"==typeof process.versions&&Boolean(process.versions.electron))return!0;const t="object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent,e=n||t;return!!(e&&e.indexOf("Electron")>=0)}function KU(){return!("object"==typeof process&&"[object process]"===String(process)&&!process.browser)||Ome()}const Rme="undefined"!=typeof __VERSION__?__VERSION__:"untranspiled source",h3=KU();class Rtt{constructor(t,e,i="sessionStorage"){this.storage=function(n){try{const t=window[n],e="__storage_test__";return t.setItem(e,e),t.removeItem(e),t}catch(t){return null}}(i),this.id=t,this.config={},Object.assign(this.config,e),this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){return this.config={},this.updateConfiguration(t)}updateConfiguration(t){if(Object.assign(this.config,t),this.storage){const e=JSON.stringify(this.config);this.storage.setItem(this.id,e)}return this}_loadConfiguration(){let t={};if(this.storage){const e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}}function ZU(n,t,e,i=600){const s=n.src.replace(/\(/g,"%28").replace(/\)/g,"%29");n.width>i&&(e=Math.min(e,i/n.width));const o=n.width*e,r=n.height*e,a=["font-size:1px;","padding:".concat(Math.floor(r/2),"px ").concat(Math.floor(o/2),"px;"),"line-height:".concat(r,"px;"),"background:url(".concat(s,");"),"background-size:".concat(o,"px ").concat(r,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),a]}const Pme={BLACK:30,RED:31,GREEN:32,YELLOW:33,BLUE:34,MAGENTA:35,CYAN:36,WHITE:37,BRIGHT_BLACK:90,BRIGHT_RED:91,BRIGHT_GREEN:92,BRIGHT_YELLOW:93,BRIGHT_BLUE:94,BRIGHT_MAGENTA:95,BRIGHT_CYAN:96,BRIGHT_WHITE:97};function Lme(n){return"string"==typeof n?Pme[n.toUpperCase()]||Pme.WHITE:n}function p3(n,t){if(!n)throw new Error(t||"Assertion failed")}const Gp={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global,document:"undefined"!=typeof document&&document,process:"object"==typeof process&&process},dA=Gp.window||Gp.self||Gp.global,Nme=Gp.process||{};function vk(){let n;if(h3&&dA.performance)n=dA.performance.now();else if(Nme.hrtime){const t=Nme.hrtime();n=1e3*t[0]+t[1]/1e6}else n=Date.now();return n}console;const bk={debug:h3&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Htt={enabled:!0,level:0};function Ph(){}const Bme={},Vme={once:!0};function Gtt(n){for(const t in n)for(const e in n[t])return e||"untitled";return"empty"}let QU=(()=>{class n{constructor({id:e}={id:""}){this.id=e,this.VERSION=Rme,this._startTs=vk(),this._deltaTs=vk(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new Rtt("__probe-".concat(this.id,"__"),Htt),this.userData={},this.timeStamp("".concat(this.id," started")),function(n,t=["constructor"]){const e=Object.getPrototypeOf(n),i=Object.getOwnPropertyNames(e);for(const s of i)"function"==typeof n[s]&&(t.find(o=>s===o)||(n[s]=n[s].bind(n)))}(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((vk()-this._startTs).toPrecision(10))}getDelta(){return Number((vk()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.updateConfiguration({enabled:e}),this}setLevel(e){return this._storage.updateConfiguration({level:e}),this}assert(e,i){p3(e,i)}warn(e){return this._getLogFunction(0,e,bk.warn,arguments,Vme)}error(e){return this._getLogFunction(0,e,bk.error,arguments)}deprecated(e,i){return this.warn("`".concat(e,"` is deprecated and will be removed in a later version. Use `").concat(i,"` instead"))}removed(e,i){return this.error("`".concat(e,"` has been removed. Use `").concat(i,"` instead"))}probe(e,i){return this._getLogFunction(e,i,bk.log,arguments,{time:!0,once:!0})}log(e,i){return this._getLogFunction(e,i,bk.debug,arguments)}info(e,i){return this._getLogFunction(e,i,console.info,arguments)}once(e,i){return this._getLogFunction(e,i,bk.debug||bk.info,arguments,Vme)}table(e,i,s){return i?this._getLogFunction(e,i,console.table||Ph,s&&[s],{tag:Gtt(i)}):Ph}image({logLevel:e,priority:i,image:s,message:o="",scale:r=1}){return this._shouldLog(e||i)?h3?function({image:n,message:t="",scale:e=1}){if("string"==typeof n){const s=new Image;return s.onload=()=>{const o=ZU(s,t,e);console.log(...o)},s.src=n,Ph}const i=n.nodeName||"";if("img"===i.toLowerCase())return console.log(...ZU(n,t,e)),Ph;if("canvas"===i.toLowerCase()){const s=new Image;return s.onload=()=>console.log(...ZU(s,t,e)),s.src=n.toDataURL(),Ph}return Ph}({image:s,message:o,scale:r}):function({image:n,message:t="",scale:e=1}){let i=null;try{i=Pt(307)}catch(s){}return i?()=>i(n,{fit:"box",width:"".concat(Math.round(80*e),"%")}).then(s=>console.log(s)):Ph}({image:s,message:o,scale:r}):Ph}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}get(e){return this._storage.config[e]}set(e,i){this._storage.updateConfiguration({[e]:i})}time(e,i){return this._getLogFunction(e,i,console.time?console.time:console.info)}timeEnd(e,i){return this._getLogFunction(e,i,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,i){return this._getLogFunction(e,i,console.timeStamp||Ph)}group(e,i,s={collapsed:!1}){s=Hme({logLevel:e,message:i,opts:s});const{collapsed:o}=s;return s.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(s)}groupCollapsed(e,i,s={}){return this.group(e,i,Object.assign({},s,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||Ph)}withGroup(e,i,s){this.group(e,i)();try{s()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=zme(e)}_getLogFunction(e,i,s,o=[],r){if(this._shouldLog(e)){r=Hme({logLevel:e,message:i,args:o,opts:r}),p3(s=s||r.method),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=vk();const a=r.tag||r.message;if(r.once){if(Bme[a])return Ph;Bme[a]=vk()}return i=function(n,t,e){if("string"==typeof t){const i=e.time?function(n,t=8){const e=Math.max(t-n.length,0);return"".concat(" ".repeat(e)).concat(n)}(function(n){let t;return t=n<10?"".concat(n.toFixed(2),"ms"):n<100?"".concat(n.toFixed(1),"ms"):n<1e3?"".concat(n.toFixed(0),"ms"):"".concat((n/1e3).toFixed(2),"s"),t}(e.total)):"";t=function(n,t,e){return!h3&&"string"==typeof n&&(t&&(t=Lme(t),n="\x1b[".concat(t,"m").concat(n,"\x1b[39m")),e&&(t=Lme(e),n="\x1b[".concat(e+10,"m").concat(n,"\x1b[49m"))),n}(t=e.time?"".concat(n,": ").concat(i," ").concat(t):"".concat(n,": ").concat(t),e.color,e.background)}return t}(this.id,r.message,r),s.bind(console,i,...r.args)}return Ph}}return n.VERSION=Rme,n})();function zme(n){if(!n)return 0;let t;switch(typeof n){case"number":t=n;break;case"object":t=n.logLevel||n.priority||0;break;default:return 0}return p3(Number.isFinite(t)&&t>=0),t}function Hme(n){const{logLevel:t,message:e}=n;n.logLevel=zme(t);const i=n.args?Array.from(n.args):[];for(;i.length&&i.shift()!==e;);switch(n.args=i,typeof t){case"string":case"function":void 0!==e&&i.unshift(e),n.message=t;break;case"object":Object.assign(n,t)}"function"==typeof n.message&&(n.message=n.message());const s=typeof n.message;return p3("string"===s||"object"===s),Object.assign(n,n.opts)}const $n=new QU({id:"deck"}),_s={DEFAULT:-1,LNGLAT:1,METER_OFFSETS:2,LNGLAT_OFFSETS:3,CARTESIAN:0};Object.defineProperty(_s,"IDENTITY",{get:()=>$n.deprecated("COORDINATE_SYSTEM.IDENTITY","COORDINATE_SYSTEM.CARTESIAN")()||0});const gg={WEB_MERCATOR:1,GLOBE:2,WEB_MERCATOR_AUTO_OFFSET:4,IDENTITY:0},Gme={click:{handler:"onClick"},panstart:{handler:"onDragStart"},panmove:{handler:"onDrag"},panend:{handler:"onDragEnd"}},Ln=new QU({id:"luma.gl"});function Yc(n,t){if(!n)throw new Error(t||"luma.gl: assertion failed.")}function f3(n){return"undefined"!=typeof WebGLRenderingContext&&n instanceof WebGLRenderingContext||"undefined"!=typeof WebGL2RenderingContext&&n instanceof WebGL2RenderingContext||Boolean(n&&Number.isFinite(n._version))}function hs(n){return"undefined"!=typeof WebGL2RenderingContext&&n instanceof WebGL2RenderingContext||Boolean(n&&2===n._version)}function g3(n){return Yc(f3(n),"Invalid WebGLRenderingContext"),n}function mc(n){return Yc(hs(n),"Requires WebGL2"),n}var sr=Pt(761);const uA={};const hA=function n(t){const e=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(let i=0;i{sr.CO.console&&sr.CO.console.log&&sr.CO.console.log("OESVertexArrayObject emulation library context restored"),e.reset_()},!0),this.reset_()};LC.prototype.VERTEX_ARRAY_BINDING_OES=34229,LC.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(let i=0;ihs(n)?void 0:0,cnt={3074:n=>hs(n)?void 0:36064,35723:n=>hs(n)?void 0:4352,35977:Wo,32937:Wo,36795:(n,t)=>{const e=hs(n)?n.getExtension("EXT_disjoint_timer_query_webgl2"):n.getExtension("EXT_disjoint_timer_query");return e&&e.GPU_DISJOINT_EXT?t(e.GPU_DISJOINT_EXT):0},37445:(n,t)=>{const e=n.getExtension(Ume);return t(e&&e.UNMASKED_VENDOR_WEBGL||7936)},37446:(n,t)=>{const e=n.getExtension(Ume);return t(e&&e.UNMASKED_RENDERER_WEBGL||7937)},34047:(n,t)=>{const e=n.luma.extensions.EXT_texture_filter_anisotropic;return e?t(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1},32883:Wo,35071:Wo,37447:Wo,36063:(n,t)=>{if(!hs(n)){const e=n.getExtension($me);return e?t(e.MAX_COLOR_ATTACHMENTS_WEBGL):0}},35379:Wo,35374:Wo,35377:Wo,34852:n=>{if(!hs(n)){const t=n.getExtension($me);return t?t.MAX_DRAW_BUFFERS_WEBGL:0}},36203:n=>n.getExtension(jme)?2147483647:65535,33001:n=>n.getExtension(jme)?16777216:65535,33e3:n=>16777216,37157:Wo,35373:Wo,35657:Wo,36183:Wo,37137:Wo,34045:Wo,35978:Wo,35979:Wo,35968:Wo,35376:Wo,35375:Wo,35659:Wo,37154:Wo,35371:Wo,35658:Wo,35076:Wo,35077:Wo,35380:Wo},Wme="ANGLE_instanced_arrays",qme={OES_vertex_array_object:{meta:{suffix:"OES"},createVertexArray:()=>{Yc(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:()=>{},bindVertexArray:()=>{},isVertexArray:()=>!1},[Wme]:{meta:{suffix:"ANGLE"},vertexAttribDivisor(n,t){Yc(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:()=>{},drawArraysInstanced:()=>{}},WEBGL_draw_buffers:{meta:{suffix:"WEBGL"},drawBuffers:()=>{Yc(!1)}},EXT_disjoint_timer_query:{meta:{suffix:"EXT"},createQuery:()=>{Yc(!1)},deleteQuery:()=>{Yc(!1)},beginQuery:()=>{Yc(!1)},endQuery:()=>{},getQuery(n,t){return this.getQueryObject(n,t)},getQueryParameter(n,t){return this.getQueryObject(n,t)},getQueryObject:()=>{}}},JU={readBuffer:(n,t,e)=>{hs(n)&&t(e)},getVertexAttrib:(n,t,e,i)=>{const{webgl2:s,ext:o}=function(n,t){return{webgl2:hs(n),ext:n.getExtension("ANGLE_instanced_arrays")}}(n);let r;switch(i){case 35069:r=!!s&&void 0;break;case 35070:r=s||o?void 0:0}return void 0!==r?r:t(e,i)},getProgramParameter:(n,t,e,i)=>{if(!hs(n))switch(i){case 35967:return 35981;case 35971:case 35382:return 0}return t(e,i)},getInternalformatParameter:(n,t,e,i,s)=>{if(!hs(n))switch(s){case 32937:return new Int32Array([0])}return n.getInternalformatParameter(e,i,s)},getTexParameter(n,t,e,i){switch(i){case 34046:const{extensions:s}=n.luma,o=s.EXT_texture_filter_anisotropic;i=o&&o.TEXTURE_MAX_ANISOTROPY_EXT||34046}return t(e,i)},getParameter:function(n,t,e){const i=cnt[e],s="function"==typeof i?i(n,t,e):i;return void 0!==s?s:t(e)},hint:(n,t,e,i)=>t(e,i)};function xnt(n,{extension:t,target:e,target2:i}){const s=qme[t];Yc(s);const{meta:o={}}=s,{suffix:r=""}=o,a=n.getExtension(t);for(const l of Object.keys(s)){const c="".concat(l).concat(r);let d=null;"meta"===l||"function"==typeof n[l]||(a&&"function"==typeof a[c]?d=(...u)=>a[c](...u):"function"==typeof s[l]&&(d=s[l].bind(e))),d&&(e[l]=d,i[l]=d)}}("undefined"!=typeof global?global:window).polyfillContext=function(n){n.luma=n.luma||{};const{luma:t}=n;return t.polyfilled||(function(n){if("function"==typeof n.createVertexArray)return;const t=n.getSupportedExtensions;n.getSupportedExtensions=function(){const s=t.call(this)||[];return s.indexOf("OES_vertex_array_object")<0&&s.push("OES_vertex_array_object"),s};const e=n.getExtension;n.getExtension=function(s){return e.call(this,s)||("OES_vertex_array_object"!==s?null:(n.__OESVertexArrayObject||(this.__OESVertexArrayObject=new LC(this)),this.__OESVertexArrayObject))}}(n),function(n){n.luma.extensions={};const t=n.getSupportedExtensions()||[];for(const e of t)n.luma[e]=n.getExtension(e)}(n),function(n,t){for(const e of Object.getOwnPropertyNames(t))"overrides"!==e&&xnt(n,{extension:e,target:n.luma,target2:n})}(n,qme),function(n,{target:t,target2:e}){Object.keys(JU).forEach(i=>{if("function"==typeof JU[i]){const s=n[i]?n[i].bind(n):()=>{},o=JU[i].bind(null,n,s);t[i]=o,e[i]=o}})}(n,{target:t,target2:n}),t.polyfilled=!0),n};const e9={3042:!1,32773:new Float32Array([0,0,0,0]),32777:32774,34877:32774,32969:1,32968:0,32971:1,32970:0,3106:new Float32Array([0,0,0,0]),3107:[!0,!0,!0,!0],2884:!1,2885:1029,2929:!1,2931:1,2932:513,2928:new Float32Array([0,1]),2930:!0,3024:!0,36006:null,2886:2305,33170:4352,2849:1,32823:!1,32824:0,10752:0,32938:1,32939:!1,3089:!1,3088:new Int32Array([0,0,1024,1024]),2960:!1,2961:0,2968:4294967295,36005:4294967295,2962:519,2967:0,2963:4294967295,34816:519,36003:0,36004:4294967295,2964:7680,2965:7680,2966:7680,34817:7680,34818:7680,34819:7680,2978:[0,0,1024,1024],3333:4,3317:4,37440:!1,37441:!1,37443:37444,35723:4352,36010:null,35977:!1,3330:0,3332:0,3331:0,3314:0,32878:0,3316:0,3315:0,32877:0},Mv=(n,t,e)=>t?n.enable(e):n.disable(e),Xme=(n,t,e)=>n.hint(e,t),Cu=(n,t,e)=>n.pixelStorei(e,t);function pA(n){return Array.isArray(n)||ArrayBuffer.isView(n)}const Tnt={3042:Mv,32773:(n,t)=>n.blendColor(...t),32777:"blendEquation",34877:"blendEquation",32969:"blendFunc",32968:"blendFunc",32971:"blendFunc",32970:"blendFunc",3106:(n,t)=>n.clearColor(...t),3107:(n,t)=>n.colorMask(...t),2884:Mv,2885:(n,t)=>n.cullFace(t),2929:Mv,2931:(n,t)=>n.clearDepth(t),2932:(n,t)=>n.depthFunc(t),2928:(n,t)=>n.depthRange(...t),2930:(n,t)=>n.depthMask(t),3024:Mv,35723:Xme,36006:(n,t)=>{const e=hs(n)?36009:36160;return n.bindFramebuffer(e,t)},2886:(n,t)=>n.frontFace(t),33170:Xme,2849:(n,t)=>n.lineWidth(t),32823:Mv,32824:"polygonOffset",10752:"polygonOffset",35977:Mv,32938:"sampleCoverage",32939:"sampleCoverage",3089:Mv,3088:(n,t)=>n.scissor(...t),2960:Mv,2961:(n,t)=>n.clearStencil(t),2968:(n,t)=>n.stencilMaskSeparate(1028,t),36005:(n,t)=>n.stencilMaskSeparate(1029,t),2962:"stencilFuncFront",2967:"stencilFuncFront",2963:"stencilFuncFront",34816:"stencilFuncBack",36003:"stencilFuncBack",36004:"stencilFuncBack",2964:"stencilOpFront",2965:"stencilOpFront",2966:"stencilOpFront",34817:"stencilOpBack",34818:"stencilOpBack",34819:"stencilOpBack",2978:(n,t)=>n.viewport(...t),3333:Cu,3317:Cu,37440:Cu,37441:Cu,37443:Cu,3330:Cu,3332:Cu,3331:Cu,36010:(n,t)=>n.bindFramebuffer(36008,t),3314:Cu,32878:Cu,3316:Cu,3315:Cu,32877:Cu,framebuffer:(n,t)=>n.bindFramebuffer(36160,t&&"handle"in t?t.handle:t),blend:(n,t)=>t?n.enable(3042):n.disable(3042),blendColor:(n,t)=>n.blendColor(...t),blendEquation:(n,t)=>{t=pA(t)?t:[t,t],n.blendEquationSeparate(...t)},blendFunc:(n,t)=>{t=pA(t)&&2===t.length?[...t,...t]:t,n.blendFuncSeparate(...t)},clearColor:(n,t)=>n.clearColor(...t),clearDepth:(n,t)=>n.clearDepth(t),clearStencil:(n,t)=>n.clearStencil(t),colorMask:(n,t)=>n.colorMask(...t),cull:(n,t)=>t?n.enable(2884):n.disable(2884),cullFace:(n,t)=>n.cullFace(t),depthTest:(n,t)=>t?n.enable(2929):n.disable(2929),depthFunc:(n,t)=>n.depthFunc(t),depthMask:(n,t)=>n.depthMask(t),depthRange:(n,t)=>n.depthRange(...t),dither:(n,t)=>t?n.enable(3024):n.disable(3024),derivativeHint:(n,t)=>{n.hint(35723,t)},frontFace:(n,t)=>n.frontFace(t),mipmapHint:(n,t)=>n.hint(33170,t),lineWidth:(n,t)=>n.lineWidth(t),polygonOffsetFill:(n,t)=>t?n.enable(32823):n.disable(32823),polygonOffset:(n,t)=>n.polygonOffset(...t),sampleCoverage:(n,t)=>n.sampleCoverage(...t),scissorTest:(n,t)=>t?n.enable(3089):n.disable(3089),scissor:(n,t)=>n.scissor(...t),stencilTest:(n,t)=>t?n.enable(2960):n.disable(2960),stencilMask:(n,t)=>{t=pA(t)?t:[t,t];const[e,i]=t;n.stencilMaskSeparate(1028,e),n.stencilMaskSeparate(1029,i)},stencilFunc:(n,t)=>{t=pA(t)&&3===t.length?[...t,...t]:t;const[e,i,s,o,r,a]=t;n.stencilFuncSeparate(1028,e,i,s),n.stencilFuncSeparate(1029,o,r,a)},stencilOp:(n,t)=>{t=pA(t)&&3===t.length?[...t,...t]:t;const[e,i,s,o,r,a]=t;n.stencilOpSeparate(1028,e,i,s),n.stencilOpSeparate(1029,o,r,a)},viewport:(n,t)=>n.viewport(...t)};function Yr(n,t,e){return void 0!==t[n]?t[n]:e[n]}const knt={blendEquation:(n,t,e)=>n.blendEquationSeparate(Yr(32777,t,e),Yr(34877,t,e)),blendFunc:(n,t,e)=>n.blendFuncSeparate(Yr(32969,t,e),Yr(32968,t,e),Yr(32971,t,e),Yr(32970,t,e)),polygonOffset:(n,t,e)=>n.polygonOffset(Yr(32824,t,e),Yr(10752,t,e)),sampleCoverage:(n,t,e)=>n.sampleCoverage(Yr(32938,t,e),Yr(32939,t,e)),stencilFuncFront:(n,t,e)=>n.stencilFuncSeparate(1028,Yr(2962,t,e),Yr(2967,t,e),Yr(2963,t,e)),stencilFuncBack:(n,t,e)=>n.stencilFuncSeparate(1029,Yr(34816,t,e),Yr(36003,t,e),Yr(36004,t,e)),stencilOpFront:(n,t,e)=>n.stencilOpSeparate(1028,Yr(2964,t,e),Yr(2965,t,e),Yr(2966,t,e)),stencilOpBack:(n,t,e)=>n.stencilOpSeparate(1029,Yr(34817,t,e),Yr(34818,t,e),Yr(34819,t,e))},Yme={enable:(n,t)=>n({[t]:!0}),disable:(n,t)=>n({[t]:!1}),pixelStorei:(n,t,e)=>n({[t]:e}),hint:(n,t,e)=>n({[t]:e}),bindFramebuffer:(n,t,e)=>{switch(t){case 36160:return n({36006:e,36010:e});case 36009:return n({36006:e});case 36008:return n({36010:e});default:return null}},blendColor:(n,t,e,i,s)=>n({32773:new Float32Array([t,e,i,s])}),blendEquation:(n,t)=>n({32777:t,34877:t}),blendEquationSeparate:(n,t,e)=>n({32777:t,34877:e}),blendFunc:(n,t,e)=>n({32969:t,32968:e,32971:t,32970:e}),blendFuncSeparate:(n,t,e,i,s)=>n({32969:t,32968:e,32971:i,32970:s}),clearColor:(n,t,e,i,s)=>n({3106:new Float32Array([t,e,i,s])}),clearDepth:(n,t)=>n({2931:t}),clearStencil:(n,t)=>n({2961:t}),colorMask:(n,t,e,i,s)=>n({3107:[t,e,i,s]}),cullFace:(n,t)=>n({2885:t}),depthFunc:(n,t)=>n({2932:t}),depthRange:(n,t,e)=>n({2928:new Float32Array([t,e])}),depthMask:(n,t)=>n({2930:t}),frontFace:(n,t)=>n({2886:t}),lineWidth:(n,t)=>n({2849:t}),polygonOffset:(n,t,e)=>n({32824:t,10752:e}),sampleCoverage:(n,t,e)=>n({32938:t,32939:e}),scissor:(n,t,e,i,s)=>n({3088:new Int32Array([t,e,i,s])}),stencilMask:(n,t)=>n({2968:t,36005:t}),stencilMaskSeparate:(n,t,e)=>n({[1028===t?2968:36005]:e}),stencilFunc:(n,t,e,i)=>n({2962:t,2967:e,2963:i,34816:t,36003:e,36004:i}),stencilFuncSeparate:(n,t,e,i,s)=>n({[1028===t?2962:34816]:e,[1028===t?2967:36003]:i,[1028===t?2963:36004]:s}),stencilOp:(n,t,e,i)=>n({2964:t,2965:e,2966:i,34817:t,34818:e,34819:i}),stencilOpSeparate:(n,t,e,i,s)=>n({[1028===t?2964:34817]:e,[1028===t?2965:34818]:i,[1028===t?2966:34819]:s}),viewport:(n,t,e,i,s)=>n({2978:[t,e,i,s]})},mg=(n,t)=>n.isEnabled(t),Kme={3042:mg,2884:mg,2929:mg,3024:mg,32823:mg,32926:mg,32928:mg,3089:mg,2960:mg,35977:mg};function Zme(n){for(const t in n)return!1;return!0}function Dnt(n,t){if(n===t)return!0;const e=Array.isArray(n)||ArrayBuffer.isView(n),i=Array.isArray(t)||ArrayBuffer.isView(t);if(e&&i&&n.length===t.length){for(let s=0;s{})}={}){this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=e?function(n,t){if("number"==typeof(t=t||e9)){const s=t,o=Kme[s];return o?o(n,s):n.getParameter(s)}const e=Array.isArray(t)?t:Object.keys(t),i={};for(const s of e){const o=Kme[s];i[s]=o?o(n,Number(s)):n.getParameter(Number(s))}return i}(t):Object.assign({},e9),this.log=i,this._updateCache=this._updateCache.bind(this),Object.seal(this)}push(t={}){this.stateStack.push({})}pop(){Yc(this.stateStack.length>0),xy(this.gl,this.stateStack[this.stateStack.length-1]),this.stateStack.pop()}_updateCache(t){let i,e=!1;const s=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(const o in t){Yc(void 0!==o);const r=t[o],a=this.cache[o];Dnt(r,a)||(e=!0,i=a,s&&!(o in s)&&(s[o]=a),this.cache[o]=r)}return{valueChanged:e,oldValue:i}}}function Jme(n,t={}){const{enable:e=!0,copyState:i}=t;if(Yc(void 0!==i),!n.state){const s="undefined"!=typeof global?global:window,{polyfillContext:o}=s;o&&o(n),n.state=new Int(n,{copyState:i}),function(n){const t=n.useProgram.bind(n);n.useProgram=function(i){n.state.program!==i&&(t(i),n.state.program=i)}}(n);for(const r in Yme)Mnt(n,r,Yme[r]);Qme(n,"getParameter"),Qme(n,"isEnabled")}return n.state.enable=e,n}function eye(n){Yc(n.state),n.state.pop()}function xy(n,t){if(Yc(f3(n),"setParameters requires a WebGL context"),Zme(t))return;const e={};for(const s in t){const o=Number(s),r=Tnt[s];r&&("string"==typeof r?e[r]=!0:r(n,t[s],o))}const i=n.state&&n.state.cache;if(i)for(const s in e)knt[s](n,t,i)}function jp(n,t,e){if(Zme(t))return e(n);const{nocatch:i=!0}=t;let s;if(function(n){n.state||Jme(n,{copyState:!1}),n.state.push()}(n),xy(n,t),i)s=e(n),eye(n);else try{s=e(n)}finally{eye(n)}return s}function Ck(n){const{luma:t}=n;if(n.canvas&&t){const{clientWidth:e}=t.canvasSizeInfo;return e?n.drawingBufferWidth/e:1}return 1}function t9(n,t,e=!0){return function(n,t,e,i,s){const o=tye(n[0],t,e);let r=nye(n[1],t,i,s),a=tye(n[0]+1,t,e);const l=a===e-1?a:a-1;let c;return a=nye(n[1]+1,t,i,s),s?(a=0===a?a:a+1,c=r,r=a):c=a===i-1?a:a-1,{x:o,y:r,width:Math.max(l-o+1,1),height:Math.max(c-r+1,1)}}(t,Ck(n),n.drawingBufferWidth,n.drawingBufferHeight,e)}function tye(n,t,e){return Math.min(Math.round(n*t),e-1)}function nye(n,t,e,i){return i?Math.max(0,e-1-Math.round(n*t)):Math.min(Math.round(n*t),e-1)}const n9=(0,sr.jU)(),Lnt=n9&&"undefined"!=typeof document,iye={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function sye(n={}){Yc(n9,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils"),n=Object.assign({},iye,n);const{width:t,height:e}=n;function i(a){if(n.throwOnError)throw new Error(a);return console.error(a),null}let s;n.onError=i;const{canvas:o}=n,r=function({canvas:n,width:t=800,height:e=600,onError:i}){let s;return"string"==typeof n?(Lnt&&"complete"===document.readyState||i("createGLContext called on canvas '".concat(n,"' before page was loaded")),s=document.getElementById(n)):n?s=n:(s=document.createElement("canvas"),s.id="lumagl-canvas",s.style.width=Number.isFinite(t)?"".concat(t,"px"):"100%",s.style.height=Number.isFinite(e)?"".concat(e,"px"):"100%",document.body.insertBefore(s,document.body.firstChild)),s}({canvas:o,width:t,height:e,onError:i});return s=function(n,t){const{onError:e}=t;let i=null;const s=l=>i=l.statusMessage||i;n.addEventListener("webglcontextcreationerror",s,!1);const{webgl1:o=!0,webgl2:r=!0}=t;let a=null;return r&&(a=a||n.getContext("webgl2",t),a=a||n.getContext("experimental-webgl2",t)),o&&(a=a||n.getContext("webgl",t),a=a||n.getContext("experimental-webgl",t)),n.removeEventListener("webglcontextcreationerror",s,!1),a?(t.onContextLost&&n.addEventListener("webglcontextlost",t.onContextLost,!1),t.onContextRestored&&n.addEventListener("webglcontextrestored",t.onContextRestored,!1),a):e("Failed to create ".concat(r&&!o?"WebGL2":"WebGL"," context: ").concat(i||"Unknown error"))}(r,n),s?(s=i9(s,n),function(n){const t=hs(n)?"WebGL2":"WebGL1",e=function(n){const t=n.getParameter(7936),e=n.getParameter(7937),i=n.getExtension("WEBGL_debug_renderer_info");return{vendor:i&&n.getParameter(i.UNMASKED_VENDOR_WEBGL||7936)||t,renderer:i&&n.getParameter(i.UNMASKED_RENDERER_WEBGL||7937)||e,vendorMasked:t,rendererMasked:e,version:n.getParameter(7938),shadingLanguageVersion:n.getParameter(35724)}}(n),i=e?"(".concat(e.vendor,",").concat(e.renderer,")"):"",s=n.debug?" debug":"";Ln.info(1,"".concat(t).concat(s," context ").concat(i))()}(s),s):null}function i9(n,t={}){if(!n||n._instrumented)return n;n._version=n._version||function(n){return"undefined"!=typeof WebGL2RenderingContext&&n instanceof WebGL2RenderingContext?2:1}(n),n.luma=n.luma||{},n.luma.canvasSizeInfo=n.luma.canvasSizeInfo||{},t=Object.assign({},iye,t);const{manageState:e,debug:i}=t;return e&&Jme(n,{copyState:!1,log:(...s)=>Ln.log(1,...s)()}),n9&&i&&(sr.CO.makeDebugContext?(n=sr.CO.makeDebugContext(n,t),Ln.level=Math.max(Ln.level,1)):Ln.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),n._instrumented=!0,n}function oye(){let n;if("undefined"!=typeof window&&window.performance)n=window.performance.now();else if("undefined"!=typeof process&&process.hrtime){const t=process.hrtime();n=1e3*t[0]+t[1]/1e6}else n=Date.now();return n}class rye{constructor(t,e){this.name=t,this.type=e,this.sampleSize=1,this.reset()}setSampleSize(t){return this.sampleSize=t,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(t){return this._count+=t,this._samples++,this._checkSampling(),this}subtractCount(t){return this._count-=t,this._samples++,this._checkSampling(),this}addTime(t){return this._time+=t,this.lastTiming=t,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=oye(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(oye()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}class m3{constructor({id:t,stats:e}){this.id=t,this.stats={},this._initializeStats(e),Object.seal(this)}get(t,e="count"){return this._getOrCreate({name:t,type:e})}get size(){return Object.keys(this.stats).length}reset(){for(const t in this.stats)this.stats[t].reset();return this}forEach(t){for(const e in this.stats)t(this.stats[e])}getTable(){const t={};return this.forEach(e=>{t[e.name]={time:e.time||0,count:e.count||0,average:e.getAverageTime()||0,hz:e.getHz()||0}}),t}_initializeStats(t=[]){t.forEach(e=>this._getOrCreate(e))}_getOrCreate(t){if(!t||!t.name)return null;const{name:e,type:i}=t;return this.stats[e]||(this.stats[e]=t instanceof rye?t:new rye(e,i)),this.stats[e]}}const fA="8.5.4",NC=new class{constructor(){this.stats=new Map}get(t){return this.stats.has(t)||this.stats.set(t,new m3({id:t})),this.stats.get(t)}};if(sr.CO.luma&&sr.CO.luma.VERSION!==fA)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(sr.CO.luma.VERSION," vs ").concat(fA));function nn(n,t){if(!n)throw new Error(t||"luma.gl: assertion failed.")}function s9(n,t){if("string"!=typeof t)return t;const e=Number(t);if(!isNaN(e))return e;const i=n[t=t.replace(/^.*\./,"")];return nn(void 0!==i,"Accessing undefined constant GL.".concat(t)),i}function Ev(n,t){t=Number(t);for(const e in n)if(n[e]===t)return"GL.".concat(e);return String(t)}sr.CO.luma||((0,sr.jU)()&&Ln.log(1,"luma.gl ".concat(fA," - ").concat("set luma.log.level=1 (or higher) to trace rendering"))(),sr.CO.luma=sr.CO.luma||{VERSION:fA,version:fA,log:Ln,stats:NC,globals:{modules:{},nodeIO:{}}});const o9={};function Iv(n="id"){o9[n]=o9[n]||1;const t=o9[n]++;return"".concat(n,"-").concat(t)}function aye(n){return nn("number"==typeof n,"Input must be a number"),n&&0==(n&n-1)}function xk(n){let t=!0;for(const e in n){t=!1;break}return t}function lye(n,t,e,i){const s="See luma.gl ".concat(e," Upgrade Guide at https://luma.gl/docs/upgrade-guide"),o=Object.getPrototypeOf(n);i.forEach(r=>{o.methodName||(o[r]=()=>{throw Ln.removed("Calling removed method ".concat(t,".").concat(r,": "),s)(),new Error(r)})})}const wk="Resource subclass must define virtual methods";class wy{constructor(t,e={}){g3(t);const{id:i,userData:s={}}=e;this.gl=t,this.gl2=t,this.id=i||Iv(this.constructor.name),this.userData=s,this._bound=!1,this._handle=e.handle,void 0===this._handle&&(this._handle=this._createHandle()),this.byteLength=0,this._addStats()}toString(){return"".concat(this.constructor.name,"(").concat(this.id,")")}get handle(){return this._handle}delete({deleteChildren:t=!1}={}){const e=this._handle&&this._deleteHandle(this._handle);return this._handle&&this._removeStats(),this._handle=null,e&&t&&e.filter(Boolean).forEach(i=>i.delete()),this}bind(t=this.handle){if("function"!=typeof t)return this._bindHandle(t),this;let e;return this._bound?e=t():(this._bindHandle(this.handle),this._bound=!0,e=t(),this._bound=!1,this._bindHandle(null)),e}unbind(){this.bind(null)}getParameter(t,e={}){nn(t=s9(this.gl,t));const s=(this.constructor.PARAMETERS||{})[t];if(s){const o=hs(this.gl);if("webgl2"in s&&!o||"extension"in s&&!this.gl.getExtension(s.extension)){const a=s.webgl1,l="webgl2"in s?s.webgl2:s.webgl1;return o?l:a}}return this._getParameter(t,e)}getParameters(t={}){const{parameters:e,keys:i}=t,s=this.constructor.PARAMETERS||{},o=hs(this.gl),r={},a=e||Object.keys(s);for(const l of a){const c=s[l];if(c&&(!("webgl2"in c)||o)&&(!("extension"in c)||this.gl.getExtension(c.extension))){const u=i?Ev(this.gl,l):l;r[u]=this.getParameter(l,t),i&&"GLenum"===c.type&&(r[u]=Ev(this.gl,r[u]))}}return r}setParameter(t,e){nn(t=s9(this.gl,t));const s=(this.constructor.PARAMETERS||{})[t];if(s){const o=hs(this.gl);if("webgl2"in s&&!o||"extension"in s&&!this.gl.getExtension(s.extension))throw new Error("Parameter not available on this platform");"GLenum"===s.type&&(e=s9(e))}return this._setParameter(t,e),this}setParameters(t){for(const e in t)this.setParameter(e,t[e]);return this}stubRemovedMethods(t,e,i){return lye(this,t,e,i)}initialize(t){}_createHandle(){throw new Error(wk)}_deleteHandle(){throw new Error(wk)}_bindHandle(t){throw new Error(wk)}_getOptsFromHandle(){throw new Error(wk)}_getParameter(t,e){throw new Error(wk)}_setParameter(t,e){throw new Error(wk)}_context(){return this.gl.luma=this.gl.luma||{},this.gl.luma}_addStats(){const t=this.constructor.name,e=NC.get("Resource Counts");e.get("Resources Created").incrementCount(),e.get("".concat(t,"s Created")).incrementCount(),e.get("".concat(t,"s Active")).incrementCount()}_removeStats(){const t=this.constructor.name;NC.get("Resource Counts").get("".concat(t,"s Active")).decrementCount()}_trackAllocatedMemory(t,e=this.constructor.name){const i=NC.get("Memory Usage");i.get("GPU Memory").addCount(t),i.get("".concat(e," Memory")).addCount(t),this.byteLength=t}_trackDeallocatedMemory(t=this.constructor.name){const e=NC.get("Memory Usage");e.get("GPU Memory").subtractCount(this.byteLength),e.get("".concat(t," Memory")).subtractCount(this.byteLength),this.byteLength=0}}function r9(n){switch(ArrayBuffer.isView(n)?n.constructor:n){case Float32Array:return 5126;case Uint16Array:return 5123;case Uint32Array:return 5125;case Uint8Array:case Uint8ClampedArray:return 5121;case Int8Array:return 5120;case Int16Array:return 5122;case Int32Array:return 5124;default:throw new Error("Failed to deduce GL constant from typed array")}}function gA(n,{clamped:t=!0}={}){switch(n){case 5126:return Float32Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return t?Uint8ClampedArray:Uint8Array;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}}function Xnt({data:n,width:t,height:e}){const i=Math.round(t/2),s=Math.round(e/2),o=new Uint8Array(i*s*4);for(let r=0;rthis._assign(e)),Object.freeze(this)}toString(){return JSON.stringify(this)}get BYTES_PER_ELEMENT(){return xu.getBytesPerElement(this)}get BYTES_PER_VERTEX(){return xu.getBytesPerVertex(this)}_assign(t={}){return void 0!==(t=a9("Accessor",t,Knt)).type&&(this.type=t.type,(5124===t.type||5125===t.type)&&(this.integer=!0)),void 0!==t.size&&(this.size=t.size),void 0!==t.offset&&(this.offset=t.offset),void 0!==t.stride&&(this.stride=t.stride),void 0!==t.normalized&&(this.normalized=t.normalized),void 0!==t.integer&&(this.integer=t.integer),void 0!==t.divisor&&(this.divisor=t.divisor),void 0!==t.buffer&&(this.buffer=t.buffer),void 0!==t.index&&(this.index="boolean"==typeof t.index?t.index?1:0:t.index),void 0!==t.instanced&&(this.divisor=t.instanced?1:0),void 0!==t.isInstanced&&(this.divisor=t.isInstanced?1:0),this}}const dye={offset:"accessor.offset",stride:"accessor.stride",type:"accessor.type",size:"accessor.size",divisor:"accessor.divisor",normalized:"accessor.normalized",integer:"accessor.integer",instanced:"accessor.divisor",isInstanced:"accessor.divisor"},Znt={removedProps:{},replacedProps:{bytes:"byteLength"},deprecatedProps:dye},Qnt={removedProps:dye};class So extends wy{constructor(t,e={}){super(t,e),this.stubRemovedMethods("Buffer","v6.0",["layout","setLayout","getIndexedParameter"]),this.target=e.target||(this.gl.webgl2?36662:34962),this.initialize(e),Object.seal(this)}getElementCount(t=this.accessor){return Math.round(this.byteLength/xu.getBytesPerElement(t))}getVertexCount(t=this.accessor){return Math.round(this.byteLength/xu.getBytesPerVertex(t))}initialize(t={}){return ArrayBuffer.isView(t)&&(t={data:t}),Number.isFinite(t)&&(t={byteLength:t}),t=a9("Buffer",t,Znt),this.usage=t.usage||35044,this.debugData=null,this.setAccessor(Object.assign({},t,t.accessor)),t.data?this._setData(t.data,t.offset,t.byteLength):this._setByteLength(t.byteLength||0),this}setProps(t){return"accessor"in(t=a9("Buffer",t,Qnt))&&this.setAccessor(t.accessor),this}setAccessor(t){return delete(t=Object.assign({},t)).buffer,this.accessor=new xu(t),this}reallocate(t){return t>this.byteLength?(this._setByteLength(t),!0):(this.bytesUsed=t,!1)}setData(t){return this.initialize(t)}subData(t){ArrayBuffer.isView(t)&&(t={data:t});const{data:e,offset:i=0,srcOffset:s=0}=t,o=t.byteLength||t.length;nn(e);const r=this.gl.webgl2?36663:this.target;return this.gl.bindBuffer(r,this.handle),0!==s||void 0!==o?(mc(this.gl),this.gl.bufferSubData(this.target,i,e,s,o)):this.gl.bufferSubData(r,i,e),this.gl.bindBuffer(r,null),this.debugData=null,this._inferType(e),this}copyData({sourceBuffer:t,readOffset:e=0,writeOffset:i=0,size:s}){const{gl:o}=this;return mc(o),o.bindBuffer(36662,t.handle),o.bindBuffer(36663,this.handle),o.copyBufferSubData(36662,36663,e,i,s),o.bindBuffer(36662,null),o.bindBuffer(36663,null),this.debugData=null,this}getData({dstData:t=null,srcByteOffset:e=0,dstOffset:i=0,length:s=0}={}){mc(this.gl);const o=gA(this.accessor.type||5126,{clamped:!1}),r=this._getAvailableElementCount(e),a=i;let l,c;t?(c=t.length,l=c-a):(l=Math.min(r,s||r),c=a+l);const d=Math.min(r,l);return nn((s=s||d)<=d),t=t||new o(c),this.gl.bindBuffer(36662,this.handle),this.gl.getBufferSubData(36662,e,t,i,s),this.gl.bindBuffer(36662,null),t}bind({target:t=this.target,index:e=this.accessor&&this.accessor.index,offset:i=0,size:s}={}){return 35345===t||35982===t?void 0!==s?this.gl.bindBufferRange(t,e,this.handle,i,s):(nn(0===i),this.gl.bindBufferBase(t,e,this.handle)):this.gl.bindBuffer(t,this.handle),this}unbind({target:t=this.target,index:e=this.accessor&&this.accessor.index}={}){return 35345===t||35982===t?this.gl.bindBufferBase(t,e,null):this.gl.bindBuffer(t,null),this}getDebugData(){return this.debugData?{data:this.debugData,changed:!1}:(this.debugData=this.getData({length:Math.min(10,this.byteLength)}),{data:this.debugData,changed:!0})}invalidateDebugData(){this.debugData=null}_setData(t,e=0,i=t.byteLength+e){nn(ArrayBuffer.isView(t)),this._trackDeallocatedMemory();const s=this._getTarget();this.gl.bindBuffer(s,this.handle),this.gl.bufferData(s,i,this.usage),this.gl.bufferSubData(s,e,t),this.gl.bindBuffer(s,null),this.debugData=t.slice(0,10),this.bytesUsed=i,this._trackAllocatedMemory(i);const o=r9(t);return nn(o),this.setAccessor(new xu(this.accessor,{type:o})),this}_setByteLength(t,e=this.usage){nn(t>=0),this._trackDeallocatedMemory();let i=t;0===t&&(i=new Float32Array(0));const s=this._getTarget();return this.gl.bindBuffer(s,this.handle),this.gl.bufferData(s,i,e),this.gl.bindBuffer(s,null),this.usage=e,this.debugData=null,this.bytesUsed=t,this._trackAllocatedMemory(t),this}_getTarget(){return this.gl.webgl2?36663:this.target}_getAvailableElementCount(t){const i=t/gA(this.accessor.type||5126,{clamped:!1}).BYTES_PER_ELEMENT;return this.getElementCount()-i}_inferType(t){this.accessor.type||this.setAccessor(new xu(this.accessor,{type:r9(t)}))}_createHandle(){return this.gl.createBuffer()}_deleteHandle(){this.gl.deleteBuffer(this.handle),this._trackDeallocatedMemory()}_getParameter(t){this.gl.bindBuffer(this.target,this.handle);const e=this.gl.getBufferParameter(this.target,t);return this.gl.bindBuffer(this.target,null),e}get type(){return Ln.deprecated("Buffer.type","Buffer.accessor.type")(),this.accessor.type}get bytes(){return Ln.deprecated("Buffer.bytes","Buffer.byteLength")(),this.byteLength}setByteLength(t){return Ln.deprecated("setByteLength","reallocate")(),this.reallocate(t)}updateAccessor(t){return Ln.deprecated("updateAccessor(...)","setAccessor(new Accessor(buffer.accessor, ...)")(),this.accessor=new xu(this.accessor,t),this}}const l9={6407:{dataFormat:6407,types:[5121,33635]},6408:{dataFormat:6408,types:[5121,32819,32820]},6406:{dataFormat:6406,types:[5121]},6409:{dataFormat:6409,types:[5121]},6410:{dataFormat:6410,types:[5121]},33326:{dataFormat:6403,types:[5126],gl2:!0},33328:{dataFormat:33319,types:[5126],gl2:!0},34837:{dataFormat:6407,types:[5126],gl2:!0},34836:{dataFormat:6408,types:[5126],gl2:!0}},uye={6403:1,36244:1,33319:2,33320:2,6407:3,36248:3,6408:4,36249:4,6402:1,34041:1,6406:1,6409:1,6410:2},hye={5126:4,5125:4,5124:4,5123:2,5122:2,5131:2,5120:1,5121:1},tit=[9729,9728],pye=sr.CO.WebGLBuffer||function(){};class BC extends wy{static isSupported(t,e={}){const{format:i,linearFiltering:s}=e;let o=!0;return i&&(o=o&&function(n,t){const e=l9[t];if(!e)return!1;if(void 0===e.gl1&&void 0===e.gl2)return!0;const i=hs(n)&&e.gl2||e.gl1;return"string"==typeof i?n.getExtension(i):i}(t,i),o=o&&(!s||function(n,t){const e=l9[t];switch(e&&e.types[0]){case 5126:return n.getExtension("OES_texture_float_linear");case 5131:return n.getExtension("OES_texture_half_float_linear");default:return!0}}(t,i))),o}constructor(t,e){const{id:i=Iv("texture"),handle:s,target:o}=e;super(t,{id:i,handle:s}),this.target=o,this.textureUnit=void 0,this.loaded=!1,this.width=void 0,this.height=void 0,this.depth=void 0,this.format=void 0,this.type=void 0,this.dataFormat=void 0,this.border=void 0,this.textureUnit=void 0,this.mipmaps=void 0}toString(){return"Texture(".concat(this.id,",").concat(this.width,"x").concat(this.height,")")}initialize(t={}){let e=t.data;if(e instanceof Promise)return e.then(E=>this.initialize(Object.assign({},t,{pixels:E,data:E}))),this;const i="undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement;if(i&&e.readyStatethis.initialize(t)),this;const{pixels:s=null,format:o=6408,border:r=0,recreate:a=!1,parameters:l={},pixelStore:c={},textureUnit:d}=t;e||(e=s);let{width:u,height:h,dataFormat:f,type:m,compressed:C=!1,mipmaps:k=!0}=t;const{depth:D=0}=t;return({width:u,height:h,compressed:C,dataFormat:f,type:m}=this._deduceParameters({format:o,type:m,dataFormat:f,compressed:C,data:e,width:u,height:h})),this.width=u,this.height=h,this.depth=D,this.format=o,this.type=m,this.dataFormat=f,this.border=r,this.textureUnit=d,Number.isFinite(this.textureUnit)&&(this.gl.activeTexture(33984+this.textureUnit),this.gl.bindTexture(this.target,this.handle)),k&&this._isNPOT()&&(Ln.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),k=!1,this._updateForNPOT(l)),this.mipmaps=k,this.setImageData({data:e,width:u,height:h,depth:D,format:o,type:m,dataFormat:f,border:r,mipmaps:k,parameters:c,compressed:C}),k&&this.generateMipmap(),this.setParameters(l),a&&(this.data=e),i&&(this._video={video:e,parameters:l,lastTime:e.readyState>=HTMLVideoElement.HAVE_CURRENT_DATA?e.currentTime:-1}),this}update(){if(this._video){const{video:t,parameters:e,lastTime:i}=this._video;if(i===t.currentTime||t.readyState{this.gl.generateMipmap(this.target)}),this.gl.bindTexture(this.target,null),this)}setImageData(t){this._trackDeallocatedMemory("Texture");const{target:e=this.target,pixels:i=null,level:s=0,format:o=this.format,border:r=this.border,offset:a=0,parameters:l={}}=t;let{data:c=null,type:d=this.type,width:u=this.width,height:h=this.height,dataFormat:f=this.dataFormat,compressed:m=!1}=t;c||(c=i),({type:d,dataFormat:f,compressed:m,width:u,height:h}=this._deduceParameters({format:o,type:d,dataFormat:f,compressed:m,data:c,width:u,height:h}));const{gl:C}=this;C.bindTexture(this.target,this.handle);let D,k=null;return({data:c,dataType:k}=this._getDataType({data:c,compressed:m})),jp(this.gl,l,()=>{switch(k){case"null":C.texImage2D(e,s,o,u,h,r,f,d,c);break;case"typed-array":C.texImage2D(e,s,o,u,h,r,f,d,c,a);break;case"buffer":D=mc(C),D.bindBuffer(35052,c.handle||c),D.texImage2D(e,s,o,u,h,r,f,d,a),D.bindBuffer(35052,null);break;case"browser-object":hs(C)?C.texImage2D(e,s,o,u,h,r,f,d,c):C.texImage2D(e,s,o,f,d,c);break;case"compressed":for(const[E,O]of c.entries())C.compressedTexImage2D(e,E,O.format,O.width,O.height,r,O.data);break;default:nn(!1,"Unknown image data type")}}),this._trackAllocatedMemory(c&&c.byteLength?c.byteLength:this.width*this.height*(uye[this.dataFormat]||4)*(hye[this.type]||1),"Texture"),this.loaded=!0,this}setSubImageData({target:t=this.target,pixels:e=null,data:i=null,x:s=0,y:o=0,width:r=this.width,height:a=this.height,level:l=0,format:c=this.format,type:d=this.type,dataFormat:u=this.dataFormat,compressed:h=!1,offset:f=0,border:m=this.border,parameters:C={}}){if(({type:d,dataFormat:u,compressed:h,width:r,height:a}=this._deduceParameters({format:c,type:d,dataFormat:u,compressed:h,data:i,width:r,height:a})),nn(0===this.depth,"texSubImage not supported for 3D textures"),i||(i=e),i&&i.data){const k=i;i=k.data,r=k.shape[0],a=k.shape[1]}i instanceof So&&(i=i.handle),this.gl.bindTexture(this.target,this.handle),jp(this.gl,C,()=>{if(h)this.gl.compressedTexSubImage2D(t,l,s,o,r,a,c,i);else if(null===i)this.gl.texSubImage2D(t,l,s,o,r,a,u,d,null);else if(ArrayBuffer.isView(i))this.gl.texSubImage2D(t,l,s,o,r,a,u,d,i,f);else if(i instanceof pye){const k=mc(this.gl);k.bindBuffer(35052,i),k.texSubImage2D(t,l,s,o,r,a,u,d,f),k.bindBuffer(35052,null)}else hs(this.gl)?mc(this.gl).texSubImage2D(t,l,s,o,r,a,u,d,i):this.gl.texSubImage2D(t,l,s,o,u,d,i)}),this.gl.bindTexture(this.target,null)}copyFramebuffer(t={}){return Ln.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}getActiveUnit(){return this.gl.getParameter(34016)-33984}bind(t=this.textureUnit){const{gl:e}=this;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,this.handle),t}unbind(t=this.textureUnit){const{gl:e}=this;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,null),t}_getDataType({data:t,compressed:e=!1}){return e?{data:t,dataType:"compressed"}:null===t?{data:t,dataType:"null"}:ArrayBuffer.isView(t)?{data:t,dataType:"typed-array"}:t instanceof So?{data:t.handle,dataType:"buffer"}:t instanceof pye?{data:t,dataType:"buffer"}:{data:t,dataType:"browser-object"}}_deduceParameters(t){const{format:e,data:i}=t;let{width:s,height:o,dataFormat:r,type:a,compressed:l}=t;const c=l9[e];return r=r||c&&c.dataFormat,a=a||c&&c.types[0],l=l||c&&c.compressed,({width:s,height:o}=this._deduceImageSize(i,s,o)),{dataFormat:r,type:a,compressed:l,width:s,height:o,format:e,data:i}}_deduceImageSize(t,e,i){let s;return s="undefined"!=typeof ImageData&&t instanceof ImageData?{width:t.width,height:t.height}:"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement?{width:t.naturalWidth,height:t.naturalHeight}:"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?{width:t.width,height:t.height}:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?{width:t.videoWidth,height:t.videoHeight}:t?{width:e,height:i}:{width:e>=0?e:1,height:i>=0?i:1},nn(s,"Could not deduced texture size"),nn(void 0===e||s.width===e,"Deduced texture width does not match supplied width"),nn(void 0===i||s.height===i,"Deduced texture height does not match supplied height"),s}_createHandle(){return this.gl.createTexture()}_deleteHandle(){this.gl.deleteTexture(this.handle),this._trackDeallocatedMemory("Texture")}_getParameter(t){switch(t){case 4096:return this.width;case 4097:return this.height;default:this.gl.bindTexture(this.target,this.handle);const e=this.gl.getTexParameter(this.target,t);return this.gl.bindTexture(this.target,null),e}}_setParameter(t,e){switch(this.gl.bindTexture(this.target,this.handle),e=this._getNPOTParam(t,e),t){case 33082:case 33083:this.gl.texParameterf(this.handle,t,e);break;case 4096:case 4097:nn(!1);break;default:this.gl.texParameteri(this.target,t,e)}return this.gl.bindTexture(this.target,null),this}_isNPOT(){return!(hs(this.gl)||!this.width||!this.height||aye(this.width)&&aye(this.height))}_updateForNPOT(t){void 0===t[this.gl.TEXTURE_MIN_FILTER]&&(t[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===t[this.gl.TEXTURE_WRAP_S]&&(t[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===t[this.gl.TEXTURE_WRAP_T]&&(t[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}_getNPOTParam(t,e){if(this._isNPOT())switch(t){case 10241:-1===tit.indexOf(e)&&(e=9729);break;case 10242:case 10243:33071!==e&&(e=33071)}return e}}function nit(n,t){return nn("string"==typeof n),n=""+n,new Promise((e,i)=>{try{const s=new Image;s.onload=()=>e(s),s.onerror=()=>i(new Error("Could not load image ".concat(n,"."))),s.crossOrigin=t&&t.crossOrigin||"anonymous",s.src=n}catch(s){i(s)}})}class Lh extends BC{static isSupported(t,e){return BC.isSupported(t,e)}constructor(t,e={}){g3(t),(e instanceof Promise||"string"==typeof e)&&(e={data:e}),"string"==typeof e.data&&(e=Object.assign({},e,{data:nit(e.data)})),super(t,Object.assign({},e,{target:3553})),this.initialize(e),Object.seal(this)}}const VC="EXT_color_buffer_float",fye={33189:{bpp:2},33190:{gl2:!0,bpp:3},36012:{gl2:!0,bpp:4},36168:{bpp:1},34041:{bpp:4},35056:{gl2:!0,bpp:4},36013:{gl2:!0,bpp:5},32854:{bpp:2},36194:{bpp:2},32855:{bpp:2},33321:{gl2:!0,bpp:1},33330:{gl2:!0,bpp:1},33329:{gl2:!0,bpp:1},33332:{gl2:!0,bpp:2},33331:{gl2:!0,bpp:2},33334:{gl2:!0,bpp:4},33333:{gl2:!0,bpp:4},33323:{gl2:!0,bpp:2},33336:{gl2:!0,bpp:2},33335:{gl2:!0,bpp:2},33338:{gl2:!0,bpp:4},33337:{gl2:!0,bpp:4},33340:{gl2:!0,bpp:8},33339:{gl2:!0,bpp:8},32849:{gl2:!0,bpp:3},32856:{gl2:!0,bpp:4},32857:{gl2:!0,bpp:4},36220:{gl2:!0,bpp:4},36238:{gl2:!0,bpp:4},36975:{gl2:!0,bpp:4},36214:{gl2:!0,bpp:8},36232:{gl2:!0,bpp:8},36226:{gl2:!0,bpp:16},36208:{gl2:!0,bpp:16},33325:{gl2:VC,bpp:2},33327:{gl2:VC,bpp:4},34842:{gl2:VC,bpp:8},33326:{gl2:VC,bpp:4},33328:{gl2:VC,bpp:8},34836:{gl2:VC,bpp:16},35898:{gl2:VC,bpp:4}};class Sk extends wy{static isSupported(t,{format:e}={format:null}){return!e||function(n,t,e){const i=e[t];if(!i)return!1;const s=hs(n)&&i.gl2||i.gl1;return"string"==typeof s?n.getExtension(s):s}(t,e,fye)}static getSamplesForFormat(t,{format:e}){return t.getInternalformatParameter(36161,e,32937)}constructor(t,e={}){super(t,e),this.initialize(e),Object.seal(this)}initialize({format:t,width:e=1,height:i=1,samples:s=0}){return nn(t,"Needs format"),this._trackDeallocatedMemory(),this.gl.bindRenderbuffer(36161,this.handle),0!==s&&hs(this.gl)?this.gl.renderbufferStorageMultisample(36161,s,t,e,i):this.gl.renderbufferStorage(36161,t,e,i),this.format=t,this.width=e,this.height=i,this.samples=s,this._trackAllocatedMemory(this.width*this.height*(this.samples||1)*fye[this.format].bpp),this}resize({width:t,height:e}){return t!==this.width||e!==this.height?this.initialize({width:t,height:e,format:this.format,samples:this.samples}):this}_createHandle(){return this.gl.createRenderbuffer()}_deleteHandle(){this.gl.deleteRenderbuffer(this.handle),this._trackDeallocatedMemory()}_bindHandle(t){this.gl.bindRenderbuffer(36161,t)}_syncHandle(t){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}_getParameter(t){return this.gl.bindRenderbuffer(36161,this.handle),this.gl.getRenderbufferParameter(36161,t)}}const vye="clear: bad arguments";function d9(n,{framebuffer:t=null,color:e=null,depth:i=null,stencil:s=null}={}){const o={};t&&(o.framebuffer=t);let r=0;e&&(r|=16384,!0!==e&&(o.clearColor=e)),i&&(r|=256,!0!==i&&(o.clearDepth=i)),s&&(r|=1024,!0!==i&&(o.clearStencil=i)),nn(0!==r,vye),jp(n,o,()=>{n.clear(r)})}const u9=[34069,34070,34071,34072,34073,34074];let cit=(()=>{class n extends BC{constructor(e,i={}){g3(e),super(e,Object.assign({},i,{target:34067})),this.initialize(i),Object.seal(this)}initialize(e={}){const{mipmaps:i=!0,parameters:s={}}=e;return this.opts=e,this.setCubeMapImageData(e).then(()=>{this.loaded=!0,i&&this.generateMipmap(e),this.setParameters(s)}),this}subImage({face:e,data:i,x:s=0,y:o=0,mipmapLevel:r=0}){return this._subImage({target:e,data:i,x:s,y:o,mipmapLevel:r})}setCubeMapImageData({width:e,height:i,pixels:s,data:o,border:r=0,format:a=6408,type:l=5121}){var c=this;return Xe(function*(){const{gl:d}=c,u=s||o,h=yield Promise.all(u9.map(f=>{const m=u[f];return Promise.all(Array.isArray(m)?m:[m])}));c.bind(),u9.forEach((f,m)=>{h[m].length>1&&!1!==c.opts.mipmaps&&Ln.warn("".concat(c.id," has mipmap and multiple LODs."))(),h[m].forEach((C,k)=>{e&&i?d.texImage2D(f,k,a,e,i,r,a,l,C):d.texImage2D(f,k,a,a,l,C)})}),c.unbind()})()}setImageDataForFace(e){const{face:i,width:s,height:o,pixels:r,data:a,border:l=0,format:c=6408,type:d=5121}=e,{gl:u}=this,h=r||a;return this.bind(),h instanceof Promise?h.then(f=>this.setImageDataForFace(Object.assign({},e,{face:i,data:f,pixels:f}))):this.width||this.height?u.texImage2D(i,0,c,s,o,l,c,d,h):u.texImage2D(i,0,c,c,d,h),this}}return n.FACES=u9,n})();class dit extends BC{static isSupported(t){return hs(t)}constructor(t,e={}){mc(t),super(t,e=Object.assign({depth:1},e,{target:32879,unpackFlipY:!1})),this.initialize(e),Object.seal(this)}setImageData({level:t=0,dataFormat:e=6408,width:i,height:s,depth:o=1,border:r=0,format:a,type:l=5121,offset:c=0,data:d,parameters:u={}}){return this._trackDeallocatedMemory("Texture"),this.gl.bindTexture(this.target,this.handle),jp(this.gl,u,()=>{ArrayBuffer.isView(d)&&this.gl.texImage3D(this.target,t,e,i,s,o,r,a,l,d),d instanceof So&&(this.gl.bindBuffer(35052,d.handle),this.gl.texImage3D(this.target,t,e,i,s,o,r,a,l,c))}),this._trackAllocatedMemory(d&&d.byteLength?d.byteLength:this.width*this.height*this.depth*(uye[this.dataFormat]||4)*(hye[this.type]||1),"Texture"),this.loaded=!0,this}}function bye(n,t){nn(n instanceof Lh||n instanceof cit||n instanceof dit);const e=n.constructor,{gl:i,width:s,height:o,format:r,type:a,dataFormat:l,border:c,mipmaps:d}=n;return new e(i,Object.assign({width:s,height:o,format:r,type:a,dataFormat:l,border:c,mipmaps:d},t))}function uit(n,t){const{gl:e,width:i,height:s,id:o}=n;return new Wa(e,Object.assign({},t,{id:"framebuffer-for-".concat(o),width:i,height:s,attachments:{36064:n}}))}function y3(n,t={}){const{sourceX:e=0,sourceY:i=0,sourceFormat:s=6408}=t;let{sourceAttachment:o=36064,target:r=null,sourceWidth:a,sourceHeight:l,sourceType:c}=t;const{framebuffer:d,deleteFramebuffer:u}=mA(n);nn(d);const{gl:h,handle:f,attachments:m}=d;a=a||d.width,l=l||d.height,36064===o&&null===f&&(o=1028),nn(m[o]),c=c||m[o].type,r=function(n,t,e,i,s){if(n)return n;return new(gA(t=t||5121,{clamped:!1}))(i*s*function(n){switch(n){case 6406:case 33326:case 6403:return 1;case 33328:case 33319:return 2;case 6407:case 34837:return 3;case 6408:case 34836:return 4;default:return nn(!1),0}}(e))}(r,c,s,a,l),c=c||r9(r);const C=h.bindFramebuffer(36160,f);return h.readPixels(e,i,a,l,s,c,r),h.bindFramebuffer(36160,C||null),u&&d.delete(),r}function h9(n,{sourceAttachment:t=36064,targetMaxHeight:e=Number.MAX_SAFE_INTEGER}={}){let i=y3(n,{sourceAttachment:t}),{width:s,height:o}=n;for(;o>e;)({data:i,width:s,height:o}=Xnt({data:i,width:s,height:o}));!function({data:n,width:t,height:e,bytesPerPixel:i=4,temp:s}){const o=t*i;s=s||new Uint8Array(o);for(let r=0;r=0&&e>=0,"Width and height need to be integers"),this.width=t,this.height=e,i)for(const d in i){const u=i[d];(Array.isArray(u)?u[0]:u).resize({width:t,height:e})}else i=this._createDefaultAttachments(s,o,r,t,e);this.update({clearAttachments:!0,attachments:i,readBuffer:l,drawBuffers:c}),i&&a&&this.checkStatus()}delete(){for(const t of this.ownResources)t.delete();return super.delete(),this}update({attachments:t={},readBuffer:e,drawBuffers:i,clearAttachments:s=!1,resizeAttachments:o=!0}){this.attach(t,{clearAttachments:s,resizeAttachments:o});const{gl:r}=this,a=r.bindFramebuffer(36160,this.handle);return e&&this._setReadBuffer(e),i&&this._setDrawBuffers(i),r.bindFramebuffer(36160,a||null),this}resize(t={}){let{width:e,height:i}=t;if(null===this.handle)return nn(void 0===e&&void 0===i),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;void 0===e&&(e=this.gl.drawingBufferWidth),void 0===i&&(i=this.gl.drawingBufferHeight),e!==this.width&&i!==this.height&&Ln.log(2,"Resizing framebuffer ".concat(this.id," to ").concat(e,"x").concat(i))();for(const s in this.attachments)this.attachments[s].resize({width:e,height:i});return this.width=e,this.height=i,this}attach(t,{clearAttachments:e=!1,resizeAttachments:i=!0}={}){const s={};e&&Object.keys(this.attachments).forEach(r=>{s[r]=null}),Object.assign(s,t);const o=this.gl.bindFramebuffer(36160,this.handle);for(const r in s){nn(void 0!==r,"Misspelled framebuffer binding point?");const a=Number(r),l=s[a];let c=l;if(c)if(c instanceof Sk)this._attachRenderbuffer({attachment:a,renderbuffer:c});else if(Array.isArray(l)){const[d,u=0,h=0]=l;c=d,this._attachTexture({attachment:a,texture:d,layer:u,level:h})}else this._attachTexture({attachment:a,texture:c,layer:0,level:0});else this._unattach(a);i&&c&&c.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,o||null),Object.assign(this.attachments,t),Object.keys(this.attachments).filter(r=>!this.attachments[r]).forEach(r=>{delete this.attachments[r]})}checkStatus(){const e=this.getStatus();if(36053!==e)throw new Error(function(n){return(Wa.STATUS||{})[n]||"Framebuffer error ".concat(n)}(e));return this}getStatus(){const{gl:t}=this,e=t.bindFramebuffer(36160,this.handle),i=t.checkFramebufferStatus(36160);return t.bindFramebuffer(36160,e||null),i}clear(t={}){const{color:e,depth:i,stencil:s,drawBuffers:o=[]}=t,r=this.gl.bindFramebuffer(36160,this.handle);return(e||i||s)&&d9(this.gl,{color:e,depth:i,stencil:s}),o.forEach((a,l)=>{!function(n,{framebuffer:t=null,buffer:e=6144,drawBuffer:i=0,value:s=[0,0,0,0]}={}){mc(n),jp(n,{framebuffer:t},()=>{switch(e){case 6144:switch(s.constructor){case Int32Array:n.clearBufferiv(e,i,s);break;case Uint32Array:n.clearBufferuiv(e,i,s);break;case Float32Array:default:n.clearBufferfv(e,i,s)}break;case 6145:n.clearBufferfv(6145,0,[s]);break;case 6146:n.clearBufferiv(6146,0,[s]);break;case 34041:const[o,r]=s;n.clearBufferfi(34041,0,o,r);break;default:nn(!1,vye)}})}(this.gl,{drawBuffer:l,value:a})}),this.gl.bindFramebuffer(36160,r||null),this}readPixels(t={}){return Ln.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")(),null}readPixelsToBuffer(t={}){return Ln.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")(),null}copyToDataUrl(t={}){return Ln.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")(),null}copyToImage(t={}){return Ln.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")(),null}copyToTexture(t={}){return Ln.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}blit(t={}){return Ln.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")(),null}invalidate({attachments:t=[],x:e=0,y:i=0,width:s,height:o}){const r=mc(this.gl),a=r.bindFramebuffer(36008,this.handle);return 0===e&&0===i&&void 0===s&&void 0===o?r.invalidateFramebuffer(36008,t):r.invalidateFramebuffer(36008,t,e,i,s,o),r.bindFramebuffer(36008,a),this}getAttachmentParameter(t,e,i){let s=this._getAttachmentParameterFallback(e);return null===s&&(this.gl.bindFramebuffer(36160,this.handle),s=this.gl.getFramebufferAttachmentParameter(36160,t,e),this.gl.bindFramebuffer(36160,null)),i&&s>1e3&&(s=Ev(this.gl,s)),s}getAttachmentParameters(t=36064,e,i=this.constructor.ATTACHMENT_PARAMETERS||[]){const s={};for(const o of i)s[e?Ev(this.gl,o):o]=this.getAttachmentParameter(t,o,e);return s}getParameters(t=!0){const e=Object.keys(this.attachments),i={};for(const s of e){const o=Number(s);i[t?Ev(this.gl,o):o]=this.getAttachmentParameters(o,t)}return i}show(){return"undefined"!=typeof window&&window.open(h9(this),"luma-debug-texture"),this}log(t=0,e=""){if(t>Ln.level||"undefined"==typeof window)return this;e=e||"Framebuffer ".concat(this.id);const i=h9(this,{targetMaxHeight:100});return Ln.image({logLevel:t,message:e,image:i},e)(),this}bind({target:t=36160}={}){return this.gl.bindFramebuffer(t,this.handle),this}unbind({target:t=36160}={}){return this.gl.bindFramebuffer(t,null),this}_createDefaultAttachments(t,e,i,s,o){let r=null;return t&&(r=r||{},r[36064]=new Lh(this.gl,{id:"".concat(this.id,"-color0"),pixels:null,format:6408,type:5121,width:s,height:o,mipmaps:!1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.ownResources.push(r[36064])),e&&i?(r=r||{},r[33306]=new Sk(this.gl,{id:"".concat(this.id,"-depth-stencil"),format:35056,width:s,height:111}),this.ownResources.push(r[33306])):e?(r=r||{},r[36096]=new Sk(this.gl,{id:"".concat(this.id,"-depth"),format:33189,width:s,height:o}),this.ownResources.push(r[36096])):i&&nn(!1),r}_unattach(t){const e=this.attachments[t];!e||(e instanceof Sk?this.gl.framebufferRenderbuffer(36160,t,36161,null):this.gl.framebufferTexture2D(36160,t,3553,null,0),delete this.attachments[t])}_attachRenderbuffer({attachment:t=36064,renderbuffer:e}){const{gl:i}=this;i.framebufferRenderbuffer(36160,t,36161,e.handle),this.attachments[t]=e}_attachTexture({attachment:t=36064,texture:e,layer:i,level:s}){const{gl:o}=this;switch(o.bindTexture(e.target,e.handle),e.target){case 35866:case 32879:mc(o).framebufferTextureLayer(36160,t,e.target,s,i);break;case 34067:const a=function(n){return n<34069?n+34069:n}(i);o.framebufferTexture2D(36160,t,a,e.handle,s);break;case 3553:o.framebufferTexture2D(36160,t,3553,e.handle,s);break;default:nn(!1,"Illegal texture type")}o.bindTexture(e.target,null),this.attachments[t]=e}_setReadBuffer(t){const e=function(n){return hs(n)?n:null}(this.gl);e?e.readBuffer(t):nn(36064===t||1029===t,Cye),this.readBuffer=t}_setDrawBuffers(t){const{gl:e}=this,i=mc(e);if(i)i.drawBuffers(t);else{const s=e.getExtension("WEBGL_draw_buffers");s?s.drawBuffersWEBGL(t):nn(1===t.length&&(36064===t[0]||1029===t[0]),Cye)}this.drawBuffers=t}_getAttachmentParameterFallback(t){const e=function(n){n.luma=n.luma||{},n.luma.caps=n.luma.caps||{};for(const t in xye)void 0===n.luma.caps[t]&&(n.luma.caps[t]=wye(n,t));return n.luma.caps}(this.gl);switch(t){case 36052:return e.WEBGL2?null:0;case 33298:case 33299:case 33300:case 33301:case 33302:case 33303:return e.WEBGL2?null:8;case 33297:return e.WEBGL2?null:5125;case 33296:return e.WEBGL2||e.EXT_sRGB?null:9729;default:return null}}_createHandle(){return this.gl.createFramebuffer()}_deleteHandle(){this.gl.deleteFramebuffer(this.handle)}_bindHandle(t){return this.gl.bindFramebuffer(36160,t)}}Wa.ATTACHMENT_PARAMETERS=[36049,36048,33296,33298,33299,33300,33301,33302,33303];const xye={WEBGL2:[!1,!0],VERTEX_ARRAY_OBJECT:["OES_vertex_array_object",!0],TIMER_QUERY:["EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2"],INSTANCED_RENDERING:["ANGLE_instanced_arrays",!0],MULTIPLE_RENDER_TARGETS:["WEBGL_draw_buffers",!0],ELEMENT_INDEX_UINT32:["OES_element_index_uint",!0],BLEND_EQUATION_MINMAX:["EXT_blend_minmax",!0],FLOAT_BLEND:["EXT_float_blend"],COLOR_ENCODING_SRGB:["EXT_sRGB",!0],TEXTURE_DEPTH:["WEBGL_depth_texture",!0],TEXTURE_FLOAT:["OES_texture_float",!0],TEXTURE_HALF_FLOAT:["OES_texture_half_float",!0],TEXTURE_FILTER_LINEAR_FLOAT:["OES_texture_float_linear"],TEXTURE_FILTER_LINEAR_HALF_FLOAT:["OES_texture_half_float_linear"],TEXTURE_FILTER_ANISOTROPIC:["EXT_texture_filter_anisotropic"],COLOR_ATTACHMENT_RGBA32F:[function(n){const t=new Lh(n,{format:6408,type:5126,dataFormat:6408}),e=new Wa(n,{id:"test-framebuffer",check:!1,attachments:{36064:t}}),i=e.getStatus();return t.delete(),e.delete(),36053===i},"EXT_color_buffer_float"],COLOR_ATTACHMENT_FLOAT:[!1,"EXT_color_buffer_float"],COLOR_ATTACHMENT_HALF_FLOAT:["EXT_color_buffer_half_float"],GLSL_FRAG_DATA:["WEBGL_draw_buffers",!0],GLSL_FRAG_DEPTH:["EXT_frag_depth",!0],GLSL_DERIVATIVES:["OES_standard_derivatives",!0],GLSL_TEXTURE_LOD:["EXT_shader_texture_lod",!0]};function p9(n,t){return(t=Array.isArray(t)?t:[t]).every(e=>wye(n,e))}function wye(n,t){return n.luma=n.luma||{},n.luma.caps=n.luma.caps||{},void 0===n.luma.caps[t]&&(n.luma.caps[t]=function(n,t){const e=xye[t];let i;nn(e,t);const s=hs(n)&&e[1]||e[0];if("function"==typeof s)i=s(n);else if(Array.isArray(s)){i=!0;for(const o of s)i=i&&Boolean(n.getExtension(o))}else"string"==typeof s?i=Boolean(n.getExtension(s)):"boolean"==typeof s?i=s:nn(!1);return i}(n,t)),n.luma.caps[t]||Ln.log(2,"Feature: ".concat(t," not supported"))(),n.luma.caps[t]}class f9{constructor(t,e){this.opts=e,this.source=t}get value(){return this.source.value}getValue(){const t=this.source.getBuffer(),e=this.getAccessor();if(t)return[t,e];const{value:i}=this.source,{size:s}=e;let o=i;if(i&&i.length!==s){o=new Float32Array(s);const r=e.elementOffset||0;for(let a=0;as&&(o=s);const r=this._pool,a=t.BYTES_PER_ELEMENT*o,l=r.findIndex(c=>c.byteLength>=a);if(l>=0){const c=new t(r.splice(l,1)[0],0,o);return i&&c.fill(0),c}return new t(o)}_release(t){if(!ArrayBuffer.isView(t))return;const e=this._pool,{buffer:i}=t,{byteLength:s}=i,o=e.findIndex(r=>r.byteLength>=s);o<0?e.push(i):(o>0||e.lengththis.props.poolSize&&e.shift()}},rr=(Math,Math,{});function Dit(n,{precision:t=rr.precision||4}={}){return n=function(n){return Math.round(n/rr.EPSILON)*rr.EPSILON}(n),`${parseFloat(n.toPrecision(t))}`}function Av(n){return Array.isArray(n)||ArrayBuffer.isView(n)&&!(n instanceof DataView)}function _3(n,t,e){return function(n,t,e){if(Av(n)){e=e||function(n){return n.clone?n.clone():new Array(n.length)}(n);for(let i=0;iMath.max(t,Math.min(e,i)))}function Ty(n,t,e){return Av(n)?n.map((i,s)=>Ty(i,t[s],e)):e*t+(1-e)*n}function Fv(n,t,e){const i=rr.EPSILON;e&&(rr.EPSILON=e);try{if(n===t)return!0;if(Av(n)&&Av(t)){if(n.length!==t.length)return!1;for(let s=0;s0?", ":"")+Dit(this[i],t);return`${t.printTypes?this.constructor.name:""}[${e}]`}equals(t){if(!t||this.length!==t.length)return!1;for(let e=0;e=0&&t=0&&t0&&(Pye.length=n.length,i=Pye):i=Rye,(t>0||Number.isFinite(e))&&(i=(Array.isArray(i)?i:Array.from(i)).slice(t,e),s.index=t-1),{iterable:i,objectInfo:s}}function Lye(n){return n&&n[Symbol.asyncIterator]}function Nye(n,{size:t,stride:e,offset:i,startIndices:s,nested:o}){const r=n.BYTES_PER_ELEMENT,a=e?e/r:t,l=i?i/r:0,c=Math.floor((n.length-l)/a);return(d,{index:u,target:h})=>{if(!s){const k=u*a+l;for(let D=0;D!0)){return Array.isArray(n)?Bye(n,t,[]):t(n)?[n]:[]}function Bye(n,t,e){let i=-1;for(;++ia)return void t.set(n.subarray(0,a),e);if(t.set(n,e),!o)return;let l=r;for(;ln},spring:{stiffness:.05,damping:.5}};function Vye(n,t){return n?(Number.isFinite(n)&&(n={duration:n}),n.type=n.type||"interpolation",Ne(Ne(Ne({},lst[n.type]),t),n)):null}function zye(n,t){return t.getBuffer()?[t.getBuffer(),{divisor:0,size:t.size,normalized:t.settings.normalized}]:t.value}function Hye(n){switch(n){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error('No defined attribute type for size "'.concat(n,'"'))}}function Gye(n){n.push(n.shift())}function v9(n,t){const{doublePrecision:e,settings:i,value:s,size:o}=n,r=e&&s instanceof Float64Array?2:1;return(i.noAlloc?s.length:t*o)*r}function jye({buffer:n,numInstances:t,attribute:e,fromLength:i,fromStartIndices:s,getData:o=(r=>r)}){const r=e.doublePrecision&&e.value instanceof Float64Array?2:1,a=e.size*r,l=e.byteOffset,c=e.startIndices,d=s&&c,u=v9(e,t),h=e.state.constant;if(!d&&i>=u)return;const f=h?e.value:e.getBuffer().getData({srcByteOffset:l});if(e.settings.normalized&&!h){const D=o;o=(E,O)=>e._normalizeConstant(D(E,O))}const m=h?(D,E)=>o(f,E):(D,E)=>o(f.subarray(D,D+a),E),C=n.getData({length:i}),k=new Float32Array(u);(function({source:n,target:t,size:e,getData:i,sourceStartIndices:s,targetStartIndices:o}){if(!Array.isArray(o))return _9({source:n,target:t,size:e,getData:i}),t;let r=0,a=0;const l=i&&((d,u)=>i(d+a,u)),c=Math.min(s.length,o.length);for(let d=1;d(e+128)/255*2-1);case 5122:return new Float32Array(t).map(e=>(e+32768)/65535*2-1);case 5121:return new Float32Array(t).map(e=>e/255);case 5123:return new Float32Array(t).map(e=>e/65535);default:return t}}_normalizeValue(t,e,i){const{defaultValue:s,size:o}=this.settings;if(Number.isFinite(t))return e[i]=t,e;if(!t)return e[i]=s[0],e;switch(o){case 4:e[i+3]=Number.isFinite(t[3])?t[3]:s[3];case 3:e[i+2]=Number.isFinite(t[2])?t[2]:s[2];case 2:e[i+1]=Number.isFinite(t[1])?t[1]:s[1];case 1:e[i+0]=Number.isFinite(t[0])?t[0]:s[0];break;default:let r=o;for(;--r>=0;)e[i+r]=Number.isFinite(t[r])?t[r]:s[r]}return e}_areValuesEqual(t,e){if(!t||!e)return!1;const{size:i}=this;for(let s=0;st[o])]:t[e],i)}setNeedsUpdate(t=this.id,e){if(this.state.needsUpdate=this.state.needsUpdate||t,this.setNeedsRedraw(t),e){const{startRow:i=0,endRow:s=1/0}=e;this.state.updateRanges=function(n,t){if(n===w3||(t[0]<0&&(t[0]=0),t[0]>=t[1]))return n;const e=[],i=n.length;let s=0;for(let o=0;ot[1]?e.push(r):t=[Math.min(r[0],t[0]),Math.max(r[1],t[1])]}return e.splice(s,0,t),e}(this.state.updateRanges,[i,s])}else this.state.updateRanges=w3}clearNeedsUpdate(){this.state.needsUpdate=!1,this.state.updateRanges=ost}setNeedsRedraw(t=this.id){this.state.needsRedraw=this.state.needsRedraw||t}update(t){this.setData(t)}allocate(t){const{state:e,settings:i}=this;return!i.noAlloc&&!!i.update&&(super.allocate({numInstances:t,copy:e.updateRanges!==w3}),!0)}updateBuffer({numInstances:t,data:e,props:i,context:s}){if(!this.needsUpdate())return!1;const{state:{updateRanges:o},settings:{update:r,noAlloc:a}}=this;let l=!0;if(r){for(const[c,d]of o)r.call(s,this,{data:e,startRow:c,endRow:d,props:i,numInstances:t});if(this.value)if(this.constant||this.buffer.byteLengthd?c.set(O,C):(t._normalizeValue(O,D.target,0),sst({target:c,source:D.target,start:C,count:z}));C+=z*d}else t._normalizeValue(O,c,C),C+=d}}_validateAttributeUpdaters(){const{settings:t}=this;if(!t.noAlloc&&"function"!=typeof t.update)throw new Error("Attribute ".concat(this.id," missing update or accessor"))}_checkAttributeArray(){const{value:t}=this,e=Math.min(4,this.size);if(t&&t.length>=e){let i=!0;switch(e){case 4:i=i&&Number.isFinite(t[3]);case 3:i=i&&Number.isFinite(t[2]);case 2:i=i&&Number.isFinite(t[1]);case 1:i=i&&Number.isFinite(t[0]);break;default:i=!1}if(!i)throw new Error("Illegal attribute generated for ".concat(this.id))}}}let C9={};function yc(n){$n.level>0&&C9[n]&&C9[n].call(...arguments)}function Su(n,t){if(!n)throw new Error(t||"shadertools: assertion failed.")}const $ye="out vec4 transform_output;\nvoid main() {\n transform_output = vec4(0);\n}",ust="#version 300 es\n".concat($ye);function Uye(n,t){t=Array.isArray(t)?t:[t];const e=n.replace(/^\s+/,"").split(/\s+/),[i,s,o]=e;return t.includes(i)&&s&&o?{qualifier:i,type:s,name:o.split(";")[0]}:null}function Wye(n={}){const{version:t=100,input:e,inputType:i,output:s}=n;if(!e)return 300===t?ust:t>300?"#version ".concat(t,"\n").concat($ye):"void main() {gl_FragColor = vec4(0);}";const o=function(n,t){switch(t){case"float":return"vec4(".concat(n,", 0.0, 0.0, 1.0)");case"vec2":return"vec4(".concat(n,", 0.0, 1.0)");case"vec3":return"vec4(".concat(n,", 1.0)");case"vec4":return n;default:return Su(!1),null}}(e,i);return t>=300?"#version ".concat(t," ").concat(300===t?"es":"","\nin ").concat(i," ").concat(e,";\nout vec4 ").concat(s,";\nvoid main() {\n ").concat(s," = ").concat(o,";\n}"):"varying ".concat(i," ").concat(e,";\nvoid main() {\n gl_FragColor = ").concat(o,";\n}")}class qye extends wy{static isSupported(t){return hs(t)}constructor(t,e={}){mc(t),super(t,e),this.initialize(e),this.stubRemovedMethods("TransformFeedback","v6.0",["pause","resume"]),Object.seal(this)}initialize(t={}){return this.buffers={},this.unused={},this.configuration=null,this.bindOnUse=!0,xk(this.buffers)||this.bind(()=>this._unbindBuffers()),this.setProps(t),this}setProps(t){"program"in t&&(this.configuration=t.program&&t.program.configuration),"configuration"in t&&(this.configuration=t.configuration),"bindOnUse"in t&&(t=t.bindOnUse),"buffers"in t&&this.setBuffers(t.buffers)}setBuffers(t={}){return this.bind(()=>{for(const e in t)this.setBuffer(e,t[e])}),this}setBuffer(t,e){const i=this._getVaryingIndex(t),{buffer:s,byteSize:o,byteOffset:r}=this._getBufferParams(e);return i<0?(this.unused[t]=s,Ln.warn(()=>"".concat(this.id," unused varying buffer ").concat(t))(),this):(this.buffers[i]=e,this.bindOnUse||this._bindBuffer(i,s,r,o),this)}begin(t=0){return this.gl.bindTransformFeedback(36386,this.handle),this._bindBuffers(),this.gl.beginTransformFeedback(t),this}end(){return this.gl.endTransformFeedback(),this._unbindBuffers(),this.gl.bindTransformFeedback(36386,null),this}_getBufferParams(t){let e,i,s;return t instanceof So?s=t:(s=t.buffer,i=t.byteSize,e=t.byteOffset),(void 0!==e||void 0!==i)&&(e=e||0,i=i||s.byteLength-e),{buffer:s,byteOffset:e,byteSize:i}}_getVaryingInfo(t){return this.configuration&&this.configuration.getVaryingInfo(t)}_getVaryingIndex(t){if(this.configuration)return this.configuration.getVaryingInfo(t).location;const e=Number(t);return Number.isFinite(e)?e:-1}_bindBuffers(){if(this.bindOnUse)for(const t in this.buffers){const{buffer:e,byteSize:i,byteOffset:s}=this._getBufferParams(this.buffers[t]);this._bindBuffer(t,e,s,i)}}_unbindBuffers(){if(this.bindOnUse)for(const t in this.buffers)this._bindBuffer(t,null)}_bindBuffer(t,e,i=0,s){const o=e&&e.handle;return o&&void 0!==s?this.gl.bindBufferRange(35982,t,o,i,s):this.gl.bindBufferBase(35982,t,o),this}_createHandle(){return this.gl.createTransformFeedback()}_deleteHandle(){this.gl.deleteTransformFeedback(this.handle)}_bindHandle(t){this.gl.bindTransformFeedback(36386,this.handle)}}class gst{constructor(t,e={}){this.gl=t,this.currentIndex=0,this.feedbackMap={},this.varyings=null,this.bindings=[],this.resources={},this._initialize(e),Object.seal(this)}setupResources(t){for(const e of this.bindings)this._setupTransformFeedback(e,t)}updateModelProps(t={}){const{varyings:e}=this;return e.length>0&&(t=Object.assign({},t,{varyings:e})),t}getDrawOptions(t={}){const e=this.bindings[this.currentIndex],{sourceBuffers:i,transformFeedback:s}=e;return{attributes:Object.assign({},i,t.attributes),transformFeedback:s}}swap(){return!!this.feedbackMap&&(this.currentIndex=this._getNextIndex(),!0)}update(t={}){this._setupBuffers(t)}getBuffer(t){const{feedbackBuffers:e}=this.bindings[this.currentIndex],i=t?e[t]:null;return i?i instanceof So?i:i.buffer:null}getData(t={}){const{varyingName:e}=t,i=this.getBuffer(e);return i?i.getData():null}delete(){for(const t in this.resources)this.resources[t].delete()}_initialize(t={}){this._setupBuffers(t),this.varyings=t.varyings||Object.keys(this.bindings[this.currentIndex].feedbackBuffers),this.varyings.length>0&&nn(hs(this.gl))}_getFeedbackBuffers(t){const{sourceBuffers:e={}}=t,i={};if(this.bindings[this.currentIndex]&&Object.assign(i,this.bindings[this.currentIndex].feedbackBuffers),this.feedbackMap)for(const s in this.feedbackMap){const o=this.feedbackMap[s];s in e&&(i[o]=s)}Object.assign(i,t.feedbackBuffers);for(const s in i){const o=i[s];if("string"==typeof o){const r=e[o],{byteLength:a,usage:l,accessor:c}=r;i[s]=this._createNewBuffer(s,{byteLength:a,usage:l,accessor:c})}}return i}_setupBuffers(t={}){const{sourceBuffers:e=null}=t;Object.assign(this.feedbackMap,t.feedbackMap);const i=this._getFeedbackBuffers(t);this._updateBindings({sourceBuffers:e,feedbackBuffers:i})}_setupTransformFeedback(t,{model:e}){const{program:i}=e;t.transformFeedback=new qye(this.gl,{program:i,buffers:t.feedbackBuffers})}_updateBindings(t){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],t),this.feedbackMap){const{sourceBuffers:e,feedbackBuffers:i}=this._swapBuffers(this.bindings[this.currentIndex]),s=this._getNextIndex();this.bindings[s]=this._updateBinding(this.bindings[s],{sourceBuffers:e,feedbackBuffers:i})}}_updateBinding(t,e){return t?(Object.assign(t.sourceBuffers,e.sourceBuffers),Object.assign(t.feedbackBuffers,e.feedbackBuffers),t.transformFeedback&&t.transformFeedback.setBuffers(t.feedbackBuffers),t):{sourceBuffers:Object.assign({},e.sourceBuffers),feedbackBuffers:Object.assign({},e.feedbackBuffers)}}_swapBuffers(t){if(!this.feedbackMap)return null;const e=Object.assign({},t.sourceBuffers),i=Object.assign({},t.feedbackBuffers);for(const s in this.feedbackMap){const o=this.feedbackMap[s];e[s]=t.feedbackBuffers[o],i[o]=t.sourceBuffers[s],nn(i[o]instanceof So)}return{sourceBuffers:e,feedbackBuffers:i}}_createNewBuffer(t,e){const i=new So(this.gl,e);return this.resources[t]&&this.resources[t].delete(),this.resources[t]=i,i}_getNextIndex(){return(this.currentIndex+1)%2}}function Xye(n){let t=100;const e=n.match(/[^\s]+/g);if(e.length>=2&&"#version"===e[0]){const i=parseInt(e[1],10);Number.isFinite(i)&&(t=i)}return t}const bA="vs",_st={[bA]:"#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n",fs:"#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth();\n#endif\n"},S3="__LUMA_INJECT_DECLARATIONS__",Yye=/void\s+main\s*\([^)]*\)\s*\{\n?/,Kye=/}\n?[^{}]*$/,w9=[];function Zye(n,t,e,i=!1){const s=t===bA;for(const o in e){const r=e[o];r.sort((l,c)=>l.order-c.order),w9.length=r.length;for(let l=0,c=r.length;ll+a));break;case"vs:#main-end":s&&(n=n.replace(Kye,l=>a+l));break;case"fs:#decl":s||(n=n.replace(S3,a));break;case"fs:#main-start":s||(n=n.replace(Yye,l=>l+a));break;case"fs:#main-end":s||(n=n.replace(Kye,l=>a+l));break;default:n=n.replace(o,l=>l+a)}}return n=n.replace(S3,""),i&&(n=n.replace(/\}\s*$/,o=>o+_st[t])),n}function S9(n){const t={};return Su(Array.isArray(n)&&n.length>1),n.forEach(e=>{for(const i in e)t[i]=t[i]?"".concat(t[i],"\n").concat(e[i]):e[i]}),t}const vst={name:"transform",vs:"attribute float transform_elementID;\nvec2 transform_getPixelSizeHalf(vec2 size) {\n return vec2(1.) / (2. * size);\n}\n\nvec2 transform_getPixelIndices(vec2 texSize, vec2 pixelSizeHalf) {\n float yIndex = floor((transform_elementID / texSize[0]) + pixelSizeHalf[1]);\n float xIndex = transform_elementID - (yIndex * texSize[0]);\n return vec2(xIndex, yIndex);\n}\nvec2 transform_getTexCoord(vec2 size) {\n vec2 pixelSizeHalf = transform_getPixelSizeHalf(size);\n vec2 indices = transform_getPixelIndices(size, pixelSizeHalf);\n vec2 coord = indices / size + pixelSizeHalf;\n return coord;\n}\nvec2 transform_getPos(vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec2 pos = (texCoord * (2.0, 2.0)) - (1., 1.);\n return pos;\n}\nvec4 transform_getInput(sampler2D texSampler, vec2 size) {\n vec2 texCoord = transform_getTexCoord(size);\n vec4 textureColor = texture2D(texSampler, texCoord);\n return textureColor;\n}\n",fs:null},T3="transform_uSize_",Qye="transform_position";const Dst={10241:9728,10240:9728,10242:33071,10243:33071};class Est{constructor(t,e={}){this.gl=t,this.id=this.currentIndex=0,this._swapTexture=null,this.targetTextureVarying=null,this.targetTextureType=null,this.samplerTextureMap=null,this.bindings=[],this.resources={},this._initialize(e),Object.seal(this)}updateModelProps(t={}){const e=this._processVertexShader(t);return Object.assign({},t,e)}getDrawOptions(t={}){const{sourceBuffers:e,sourceTextures:i,framebuffer:s,targetTexture:o}=this.bindings[this.currentIndex],r=Object.assign({},e,t.attributes),a=Object.assign({},t.uniforms),l=Object.assign({},t.parameters);let c=t.discard;if(this.hasSourceTextures||this.hasTargetTexture){r.transform_elementID=this.elementIDBuffer;for(const u in this.samplerTextureMap)a[u]=i[this.samplerTextureMap[u]];this._setSourceTextureParameters();const d=function({sourceTextureMap:n,targetTextureVarying:t,targetTexture:e}){const i={};let s,o;t&&(({width:s,height:o}=e),i["".concat(T3).concat(t)]=[s,o]);for(const r in n)({width:s,height:o}=n[r]),i["".concat(T3).concat(r)]=[s,o];return i}({sourceTextureMap:i,targetTextureVarying:this.targetTextureVarying,targetTexture:o});Object.assign(a,d)}return this.hasTargetTexture&&(c=!1,l.viewport=[0,0,s.width,s.height]),{attributes:r,framebuffer:s,uniforms:a,discard:c,parameters:l}}swap(){return!!this._swapTexture&&(this.currentIndex=this._getNextIndex(),!0)}update(t={}){this._setupTextures(t)}getTargetTexture(){const{targetTexture:t}=this.bindings[this.currentIndex];return t}getData({packed:t=!1}={}){const{framebuffer:e}=this.bindings[this.currentIndex],i=y3(e);if(!t)return i;const s=i.constructor,o=function(n){switch(n){case"float":return 1;case"vec2":return 2;case"vec3":return 3;case"vec4":return 4;default:return Su(!1),null}}(this.targetTextureType),r=new s(i.length*o/4);let a=0;for(let l=0;l0,this._updateBindings({sourceBuffers:e,sourceTextures:i,targetTexture:o}),"elementCount"in t&&this._updateElementIDBuffer(t.elementCount)}_updateElementIDBuffer(t){if("number"!=typeof t||this.elementCount>=t)return;const e=new Float32Array(t);e.forEach((i,s,o)=>{o[s]=s}),this.elementIDBuffer?this.elementIDBuffer.setData({data:e}):this.elementIDBuffer=new So(this.gl,{data:e,accessor:{size:1}}),this.elementCount=t}_updateBindings(t){if(this.bindings[this.currentIndex]=this._updateBinding(this.bindings[this.currentIndex],t),this._swapTexture){const{sourceTextures:e,targetTexture:i}=this._swapTextures(this.bindings[this.currentIndex]),s=this._getNextIndex();this.bindings[s]=this._updateBinding(this.bindings[s],{sourceTextures:e,targetTexture:i})}}_updateBinding(t,e){const{sourceBuffers:i,sourceTextures:s,targetTexture:o}=e;if(t||(t={sourceBuffers:{},sourceTextures:{},targetTexture:null}),Object.assign(t.sourceTextures,s),Object.assign(t.sourceBuffers,i),o){t.targetTexture=o;const{width:r,height:a}=o,{framebuffer:l}=t;l?(l.update({attachments:{36064:o},resizeAttachments:!1}),l.resize({width:r,height:a})):t.framebuffer=new Wa(this.gl,{id:"transform-framebuffer",width:r,height:a,attachments:{36064:o}})}return t}_setSourceTextureParameters(){const t=this.currentIndex,{sourceTextures:e}=this.bindings[t];for(const i in e)e[i].setParameters(Dst)}_swapTextures(t){if(!this._swapTexture)return null;const e=Object.assign({},t.sourceTextures);return e[this._swapTexture]=t.targetTexture,{sourceTextures:e,targetTexture:t.sourceTextures[this._swapTexture]}}_createNewTexture(t){const e=bye(t,{parameters:{10241:9728,10240:9728,10242:33071,10243:33071},pixelStore:{37440:!1}});return this.ownTexture&&this.ownTexture.delete(),this.ownTexture=e,e}_getNextIndex(){return(this.currentIndex+1)%2}_processVertexShader(t={}){const{sourceTextures:e,targetTexture:i}=this.bindings[this.currentIndex],{vs:s,uniforms:o,targetTextureType:r,inject:a,samplerTextureMap:l}=function({vs:n,sourceTextureMap:t,targetTextureVarying:e,targetTexture:i}){let o=Object.keys(t).length,r=null;const a={};let l=n,c={};if(o>0||e){const d=l.split("\n"),u=d.slice();if(d.forEach((h,f,m)=>{if(o>0){const C=function(n,t){const e={},i=function(n){return Uye(n,["attribute","in"])}(n);if(!i)return null;const{type:s,name:o}=i;if(o&&t[o]){const r="// ".concat(n," => Replaced by Transform with a sampler"),{samplerName:a,sizeName:l,uniformDeclerations:c}=function(n){const t="".concat("transform_uSampler_").concat(n),e="".concat(T3).concat(n);return{samplerName:t,sizeName:e,uniformDeclerations:" uniform sampler2D ".concat(t,";\n uniform vec2 ").concat(e,";")}}(o),d=function(n){switch(n){case"float":return"x";case"vec2":return"xy";case"vec3":return"xyz";case"vec4":return"xyzw";default:return Su(!1),null}}(s),u=" ".concat(s," ").concat(o," = transform_getInput(").concat(a,", ").concat(l,").").concat(d,";\n");return e[a]=o,{updatedLine:r,inject:{"vs:#decl":c,"vs:#main-start":u},samplerTextureMap:e}}return null}(h,t);if(C){const{updatedLine:k,inject:D}=C;u[f]=k,c=S9([c,D]),Object.assign(a,C.samplerTextureMap),o--}}e&&!r&&(r=function(n,t){const e=Uye(n,["varying","out"]);return e&&e.name===t?e.type:null}(h,e))}),e){nn(i);const h="".concat(T3).concat(e),f="uniform vec2 ".concat(h,";\n"),m=" vec2 ".concat(Qye," = transform_getPos(").concat(h,");\n gl_Position = vec4(").concat(Qye,", 0, 1.);\n");c=S9([c,{"vs:#decl":f,"vs:#main-start":m}])}l=u.join("\n")}return{vs:l,targetTextureType:r,inject:c,samplerTextureMap:a}}({vs:t.vs,sourceTextureMap:e,targetTextureVarying:this.targetTextureVarying,targetTexture:i}),c=S9([t.inject||{},a]);return this.targetTextureType=r,this.samplerTextureMap=l,{vs:s,fs:t._fs||Wye({version:Xye(s),input:this.targetTextureVarying,inputType:r,output:"transform_output"}),modules:this.hasSourceTextures||this.targetTextureVarying?[vst].concat(t.modules||[]):t.modules,uniforms:o,inject:c}}}const T9={number:{validate:(n,t)=>Number.isFinite(n)&&(!("max"in t)||n<=t.max)&&(!("min"in t)||n>=t.min)},array:{validate:(n,t)=>Array.isArray(n)||ArrayBuffer.isView(n)}};function Ast(n){let t=Jye(n);return"object"===t?n?"type"in n?Object.assign({},n,T9[n.type]):"value"in n?(t=Jye(n.value),Object.assign({type:t},n,T9[t])):{type:"object",value:n}:{type:"object",value:null}:Object.assign({type:t,value:n},T9[t])}function Jye(n){return Array.isArray(n)||ArrayBuffer.isView(n)?"array":typeof n}class k9{constructor({name:t,vs:e,fs:i,dependencies:s=[],uniforms:o,getUniforms:r,deprecations:a=[],defines:l={},inject:c={},vertexShader:d,fragmentShader:u}){Su("string"==typeof t),this.name=t,this.vs=e||d,this.fs=i||u,this.getModuleUniforms=r,this.dependencies=s,this.deprecations=this._parseDeprecationDefinitions(a),this.defines=l,this.injections=function(n){const t={vs:{},fs:{}};for(const e in n){let i=n[e];const s=e.slice(0,2);"string"==typeof i&&(i={order:0,injection:i}),t[s][e]=i}return t}(c),o&&(this.uniforms=function(n){const t={};for(const e in n){const s=Ast(n[e]);t[e]=s}return t}(o))}getModuleSource(t){let e;switch(t){case"vs":e=this.vs||"";break;case"fs":e=this.fs||"";break;default:Su(!1)}return"#define MODULE_".concat(this.name.toUpperCase().replace(/[^0-9a-z]/gi,"_"),"\n").concat(e,"// END MODULE_").concat(this.name,"\n\n")}getUniforms(t,e){return this.getModuleUniforms?this.getModuleUniforms(t,e):this.uniforms?this._defaultGetUniforms(t):{}}getDefines(){return this.defines}checkDeprecations(t,e){this.deprecations.forEach(i=>{i.regex.test(t)&&(i.deprecated?e.deprecated(i.old,i.new)():e.removed(i.old,i.new)())})}_parseDeprecationDefinitions(t){return t.forEach(e=>{switch(e.type){case"function":e.regex=new RegExp("\\b".concat(e.old,"\\("));break;default:e.regex=new RegExp("".concat(e.type," ").concat(e.old,";"))}}),t}_defaultGetUniforms(t={}){const e={},i=this.uniforms;for(const s in i){const o=i[s];s in t&&!o.private?(o.validate&&Su(o.validate(t[s],o),"".concat(this.name,": invalid ").concat(s)),e[s]=t[s]):e[s]=o.value}return e}}function Pst(n){return function(n){const t={},e={};return D9({modules:n,level:0,moduleMap:t,moduleDepth:e}),Object.keys(e).sort((i,s)=>e[s]-e[i]).map(i=>t[i])}(t_e(n))}function D9({modules:n,level:t,moduleMap:e,moduleDepth:i}){if(t>=5)throw new Error("Possible loop in shader dependency graph");for(const s of n)e[s.name]=s,(void 0===i[s.name]||i[s.name](e instanceof k9||(Su("string"!=typeof e,"Shader module use by name is deprecated. Import shader module '".concat(e,"' and use it directly.")),Su(e.name,"shader module has no name"),(e=new k9(e)).dependencies=t_e(e.dependencies)),e))}const M9={GLSL_FRAG_DATA:["WEBGL_draw_buffers",!0],GLSL_FRAG_DEPTH:["EXT_frag_depth",!0],GLSL_DERIVATIVES:["OES_standard_derivatives",!0],GLSL_TEXTURE_LOD:["EXT_shader_texture_lod",!0]},zC={};function jst(n,t){return n.match(/NVIDIA/i)||t.match(/NVIDIA/i)?"NVIDIA":n.match(/INTEL/i)||t.match(/INTEL/i)?"INTEL":n.match(/AMD/i)||t.match(/AMD/i)||n.match(/ATI/i)||t.match(/ATI/i)?"AMD":"UNKNOWN GPU"}Object.keys(M9).forEach(n=>{zC[n]=n});const E9={};function n_e(n,t,e={}){const i=M9[t];if(Su(i,t),!function(n={}){const t="undefined"!=typeof window&&window.navigator||{},e=n.userAgent||t.userAgent||"",i=-1!==e.indexOf("MSIE "),s=-1!==e.indexOf("Trident/");return i||s}(e))return!0;if(t in E9)return E9[t];const o=e.behavior||"enable",r="#extension GL_".concat(i[0]," : ").concat(o,"\nvoid main(void) {}"),a=n.createShader(35633);n.shaderSource(a,r),n.compileShader(a);const l=n.getShaderParameter(a,35713);return n.deleteShader(a),E9[t]=l,l}function k3(n,t){return(t=Array.isArray(t)?t:[t]).every(e=>function(n,t){const e=M9[t];Su(e,t);const i=function(n){return"undefined"!=typeof WebGL2RenderingContext&&n instanceof WebGL2RenderingContext||Boolean(n&&2===n._version)}(n)&&e[1]||e[0],s="string"==typeof i?Boolean(n.getExtension(i)):i;return Su(!1===s||!0===s),s}(n,e))}function Mk(n){return new RegExp("\\b".concat(n,"[ \\t]+(\\w+[ \\t]+\\w+(\\[\\w+\\])?;)"),"g")}const i_e=[[/^(#version[ \t]+(100|300[ \t]+es))?[ \t]*\n/,"#version 300 es\n"],[/\btexture(2D|2DProj|Cube)Lod(EXT)?\(/g,"textureLod("],[/\btexture(2D|2DProj|Cube)(EXT)?\(/g,"texture("]],qst=[...i_e,[Mk("attribute"),"in $1"],[Mk("varying"),"out $1"]],Xst=[...i_e,[Mk("varying"),"in $1"]],s_e=[[/^#version[ \t]+300[ \t]+es/,"#version 100"],[/\btexture(2D|2DProj|Cube)Lod\(/g,"texture$1LodEXT("],[/\btexture\(/g,"texture2D("],[/\btextureLod\(/g,"texture2DLodEXT("]],Yst=[...s_e,[Mk("in"),"attribute $1"],[Mk("out"),"varying $1"]],Kst=[...s_e,[Mk("in"),"varying $1"]],I9="gl_FragColor",A9=/\bout[ \t]+vec4[ \t]+(\w+)[ \t]*;\n?/,Zst=/void\s+main\s*\([^)]*\)\s*\{\n?/;function D3(n,t){for(const[e,i]of t)n=n.replace(e,i);return n}const tot="\n\n".concat(S3,"\n\n"),o_e={[bA]:"vertex",fs:"fragment"};function r_e(n,{id:t,source:e,type:i,modules:s,defines:o={},hookFunctions:r=[],inject:a={},transpileToGLSL100:l=!1,prologue:c=!0,log:d}){Su("string"==typeof e,"shader source must be a string");const u=i===bA,h=e.split("\n");let f=100,m="",C=e;0===h[0].indexOf("#version ")?(f=300,m=h[0],C=h.slice(1).join("\n")):m="#version ".concat(f);const k={};s.forEach(re=>{Object.assign(k,re.getDefines())}),Object.assign(k,o);let D=c?"".concat(m,"\n").concat(function({id:n,source:t,type:e}){return n&&"string"==typeof n&&-1===t.indexOf("SHADER_NAME")?"\n#define SHADER_NAME ".concat(n,"_").concat(o_e[e],"\n\n"):""}({id:t,source:e,type:i}),"\n").concat(function({type:n}){return"\n#define SHADER_TYPE_".concat(o_e[n].toUpperCase(),"\n")}({type:i}),"\n").concat(function(n){switch(function(n){const t=n.getExtension("WEBGL_debug_renderer_info"),e=n.getParameter(t&&t.UNMASKED_VENDOR_WEBGL||7936),i=n.getParameter(t&&t.UNMASKED_RENDERER_WEBGL||7937);return{gpuVendor:jst(e,i),vendor:e,renderer:i,version:n.getParameter(7938),shadingLanguageVersion:n.getParameter(35724)}}(n).gpuVendor.toLowerCase()){case"nvidia":return"#define NVIDIA_GPU\n// Nvidia optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n";case"intel":return"#define INTEL_GPU\n// Intel optimizes away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n";case"amd":return"#define AMD_GPU\n";default:return"#define DEFAULT_GPU\n// Prevent driver from optimizing away the calculation necessary for emulated fp64\n#define LUMA_FP64_CODE_ELIMINATION_WORKAROUND 1\n// Intel's built-in 'tan' function doesn't have acceptable precision\n#define LUMA_FP32_TAN_PRECISION_WORKAROUND 1\n// Intel GPU doesn't have full 32 bits precision in same cases, causes overflow\n#define LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND 1\n"}}(n),"\n").concat(function(n,t,e){let i="#if (__VERSION__ > 120)\n\n# define FEATURE_GLSL_DERIVATIVES\n# define FEATURE_GLSL_DRAW_BUFFERS\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FEATURE_GLSL_TEXTURE_LOD\n\n// DEPRECATED FLAGS, remove in v9\n# define FRAG_DEPTH\n# define DERIVATIVES\n# define DRAW_BUFFERS\n# define TEXTURE_LOD\n\n#endif // __VERSION\n";return k3(n,zC.GLSL_FRAG_DEPTH)&&(i+="\n// FRAG_DEPTH => gl_FragDepth is available\n#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n# define FEATURE_GLSL_FRAG_DEPTH\n# define FRAG_DEPTH\n# define gl_FragDepth gl_FragDepthEXT\n#endif\n"),k3(n,zC.GLSL_DERIVATIVES)&&n_e(n,zC.GLSL_DERIVATIVES)&&(i+="\n// DERIVATIVES => dxdF, dxdY and fwidth are available\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n# define FEATURE_GLSL_DERIVATIVES\n# define DERIVATIVES\n#endif\n"),k3(n,zC.GLSL_FRAG_DATA)&&n_e(n,zC.GLSL_FRAG_DATA,{behavior:"require"})&&(i+="\n// DRAW_BUFFERS => gl_FragData[] is available\n#ifdef GL_EXT_draw_buffers\n#extension GL_EXT_draw_buffers : require\n#define FEATURE_GLSL_DRAW_BUFFERS\n#define DRAW_BUFFERS\n#endif\n"),k3(n,zC.GLSL_TEXTURE_LOD)&&(i+="// TEXTURE_LOD => texture2DLod etc are available\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod : enable\n\n# define FEATURE_GLSL_TEXTURE_LOD\n# define TEXTURE_LOD\n\n#endif\n"),i}(n),"\n").concat(function(n={}){let t=0,e="";for(const i in n){0===t&&(e+="\n// APPLICATION DEFINES\n"),t++;const s=n[i];(s||Number.isFinite(s))&&(e+="#define ".concat(i.toUpperCase()," ").concat(n[i],"\n"))}return 0===t&&(e+="\n"),e}(k),"\n").concat(u?"":"precision highp float;\n\n","\n"):"".concat(m,"\n");const E=function(n){const t={vs:{},fs:{}};return n.forEach(e=>{let i;"string"!=typeof e?(i=e,e=i.hook):i={},e=e.trim();const[s,o]=e.split(":"),r=e.replace(/\(.+/,"");t[s][r]=Object.assign(i,{signature:o})}),t}(r),O={},z={},q={};for(const re in a){const ie="string"==typeof a[re]?{injection:a[re],order:0}:a[re],Se=re.match(/^(v|f)s:(#)?([\w-]+)$/);if(Se){const Ee=Se[3];Se[2]?"decl"===Ee?z[re]=[ie]:q[re]=[ie]:O[re]=[ie]}else q[re]=[ie]}for(const re of s){d&&re.checkDeprecations(C,d),D+=re.getModuleSource(i,f);const Se=re.injections[i];for(const Te in Se){const Ee=Te.match(/^(v|f)s:#([\w-]+)$/);if(Ee){const Ke="decl"===Ee[2]?z:q;Ke[Te]=Ke[Te]||[],Ke[Te].push(Se[Te])}else O[Te]=O[Te]||[],O[Te].push(Se[Te])}}return D+=tot,D=Zye(D,i,z),D+=function(n,t){let e="";for(const i in n){const s=n[i];if(e+="void ".concat(s.signature," {\n"),s.header&&(e+=" ".concat(s.header)),t[i]){const o=t[i];o.sort((r,a)=>r.order-a.order);for(const r of o)e+=" ".concat(r.injection,"\n")}s.footer&&(e+=" ".concat(s.footer)),e+="}\n"}return e}(E[i],O),D+=C,D=Zye(D,i,q),D=function(n,t,e){switch(t){case 300:return e?D3(n,qst):function(n){const t=(n=D3(n,Xst)).match(A9);if(t){const e=t[1];n=n.replace(new RegExp("\\b".concat(I9,"\\b"),"g"),e)}else{const e="fragmentColor";n=n.replace(Zst,i=>"out vec4 ".concat(e,";\n").concat(i)).replace(new RegExp("\\b".concat(I9,"\\b"),"g"),e)}return n}(n);case 100:return e?D3(n,Yst):function(n){const t=(n=D3(n,Kst)).match(A9);if(t){const e=t[1];n=n.replace(A9,"").replace(new RegExp("\\b".concat(e,"\\b"),"g"),I9)}return n}(n);default:throw new Error("unknown GLSL version ".concat(t))}}(D,l?100:f,u),D}function sot(n){return function(e){const i={};for(const s of n){const o=s.getUniforms(e,i);Object.assign(i,o)}return i}}const dot={5126:ar.bind(null,"uniform1fv",Tu,1,_c),35664:ar.bind(null,"uniform2fv",Tu,2,_c),35665:ar.bind(null,"uniform3fv",Tu,3,_c),35666:ar.bind(null,"uniform4fv",Tu,4,_c),5124:ar.bind(null,"uniform1iv",Ov,1,_c),35667:ar.bind(null,"uniform2iv",Ov,2,_c),35668:ar.bind(null,"uniform3iv",Ov,3,_c),35669:ar.bind(null,"uniform4iv",Ov,4,_c),35670:ar.bind(null,"uniform1iv",Ov,1,_c),35671:ar.bind(null,"uniform2iv",Ov,2,_c),35672:ar.bind(null,"uniform3iv",Ov,3,_c),35673:ar.bind(null,"uniform4iv",Ov,4,_c),35674:ar.bind(null,"uniformMatrix2fv",Tu,4,ky),35675:ar.bind(null,"uniformMatrix3fv",Tu,9,ky),35676:ar.bind(null,"uniformMatrix4fv",Tu,16,ky),35678:Ul,35680:Ul,5125:ar.bind(null,"uniform1uiv",M3,1,_c),36294:ar.bind(null,"uniform2uiv",M3,2,_c),36295:ar.bind(null,"uniform3uiv",M3,3,_c),36296:ar.bind(null,"uniform4uiv",M3,4,_c),35685:ar.bind(null,"uniformMatrix2x3fv",Tu,6,ky),35686:ar.bind(null,"uniformMatrix2x4fv",Tu,8,ky),35687:ar.bind(null,"uniformMatrix3x2fv",Tu,6,ky),35688:ar.bind(null,"uniformMatrix3x4fv",Tu,12,ky),35689:ar.bind(null,"uniformMatrix4x2fv",Tu,8,ky),35690:ar.bind(null,"uniformMatrix4x3fv",Tu,12,ky),35678:Ul,35680:Ul,35679:Ul,35682:Ul,36289:Ul,36292:Ul,36293:Ul,36298:Ul,36299:Ul,36300:Ul,36303:Ul,36306:Ul,36307:Ul,36308:Ul,36311:Ul},uot={},hot={},pot={},a_e=[0];function F9(n,t,e,i){1===t&&"boolean"==typeof n&&(n=n?1:0),Number.isFinite(n)&&(a_e[0]=n,n=a_e);const s=n.length;if(s%t&&Ln.warn("Uniform size should be multiples of ".concat(t),n)(),n instanceof e)return n;let o=i[s];o||(o=new e(s),i[s]=o);for(let r=0;r{const s=n!==i;return s&&(t.uniform1i(e,i),n=i),s}}function ar(n,t,e,i){let s=null,o=null;return(r,a,l)=>{const c=t(l,e),d=c.length;let u=!1;if(null===s)s=new Float32Array(d),o=d,u=!0;else{nn(o===d,"Uniform length cannot change.");for(let h=0;h{const a=String(r+t);return u_e(a,s-a.length)+e+o})}(t);return{shaderName:l,errors:d_e(o,c),warnings:d_e(r,c)}}(i,this.source,this.shaderType,this.id);throw Ln.error("GLSL compilation errors in ".concat(s,"\n").concat(o))(),Ln.warn("GLSL compilation warnings in ".concat(s,"\n").concat(r))(),new Error("GLSL compilation errors in ".concat(s))}}_deleteHandle(){this.gl.deleteShader(this.handle)}_getOptsFromHandle(){return{type:this.getParameter(35663),source:this.getSource()}}}class O9 extends CA{constructor(t,e){"string"==typeof e&&(e={source:e}),super(t,Object.assign({},e,{shaderType:35633}))}_createHandle(){return this.gl.createShader(35633)}}class R9 extends CA{constructor(t,e){"string"==typeof e&&(e={source:e}),super(t,Object.assign({},e,{shaderType:35632}))}_createHandle(){return this.gl.createShader(35632)}}const qa=5126,xA=5124,wA=5125,P9={[qa]:[qa,1,"float"],35664:[qa,2,"vec2"],35665:[qa,3,"vec3"],35666:[qa,4,"vec4"],[xA]:[xA,1,"int"],35667:[xA,2,"ivec2"],35668:[xA,3,"ivec3"],35669:[xA,4,"ivec4"],[wA]:[wA,1,"uint"],36294:[wA,2,"uvec2"],36295:[wA,3,"uvec3"],36296:[wA,4,"uvec4"],35670:[qa,1,"bool"],35671:[qa,2,"bvec2"],35672:[qa,3,"bvec3"],35673:[qa,4,"bvec4"],35674:[qa,8,"mat2"],35685:[qa,8,"mat2x3"],35686:[qa,8,"mat2x4"],35675:[qa,12,"mat3"],35687:[qa,12,"mat3x2"],35688:[qa,12,"mat3x4"],35676:[qa,16,"mat4"],35689:[qa,16,"mat4x2"],35690:[qa,16,"mat4x3"]};function y_e(n){const t=P9[n];if(!t)return null;const[e,i]=t;return{type:e,components:i}}function __e(n,t){switch(n){case 5120:case 5121:case 5122:case 5123:n=qa}for(const e in P9){const[i,s,o]=P9[e];if(i===n&&s===t)return{glType:e,name:o}}return null}class Zot{constructor(t){this.id=t.id,this.attributeInfos=[],this.attributeInfosByName={},this.attributeInfosByLocation=[],this.varyingInfos=[],this.varyingInfosByName={},Object.seal(this),this._readAttributesFromProgram(t),this._readVaryingsFromProgram(t)}getAttributeInfo(t){const e=Number(t);return Number.isFinite(e)?this.attributeInfosByLocation[e]:this.attributeInfosByName[t]||null}getAttributeLocation(t){const e=this.getAttributeInfo(t);return e?e.location:-1}getAttributeAccessor(t){const e=this.getAttributeInfo(t);return e?e.accessor:null}getVaryingInfo(t){const e=Number(t);return Number.isFinite(e)?this.varyingInfos[e]:this.varyingInfosByName[t]||null}getVaryingIndex(t){const e=this.getVaryingInfo();return e?e.location:-1}getVaryingAccessor(t){const e=this.getVaryingInfo();return e?e.accessor:null}_readAttributesFromProgram(t){const{gl:e}=t,i=e.getProgramParameter(t.handle,35721);for(let s=0;s=0&&this._addAttribute(l,o,r,a)}this.attributeInfos.sort((s,o)=>s.location-o.location)}_readVaryingsFromProgram(t){const{gl:e}=t;if(!hs(e))return;const i=e.getProgramParameter(t.handle,35971);for(let s=0;ss.location-o.location)}_addAttribute(t,e,i,s){const{type:o,components:r}=y_e(i),a={type:o,size:s*r};this._inferProperties(t,e,a);const l={location:t,name:e,accessor:new xu(a)};this.attributeInfos.push(l),this.attributeInfosByLocation[t]=l,this.attributeInfosByName[l.name]=l}_inferProperties(t,e,i){/instance/i.test(e)&&(i.divisor=1)}_addVarying(t,e,i,s){const{type:o,components:r}=y_e(i),l={location:t,name:e,accessor:new xu({type:o,size:s*r})};this.varyingInfos.push(l),this.varyingInfosByName[l.name]=l}}const Qot=35981,Jot=["setVertexArray","setAttributes","setBuffers","unsetBuffers","use","getUniformCount","getUniformInfo","getUniformLocation","getUniformValue","getVarying","getFragDataLocation","getAttachedShaders","getAttributeCount","getAttributeLocation","getAttributeInfo"];class b_e extends wy{constructor(t,e={}){super(t,e),this.stubRemovedMethods("Program","v6.0",Jot),this._isCached=!1,this.initialize(e),Object.seal(this),this._setId(e.id)}initialize(t={}){const{hash:e,vs:i,fs:s,varyings:o,bufferMode:r=Qot}=t;return this.hash=e||"",this.vs="string"==typeof i?new O9(this.gl,{id:"".concat(t.id,"-vs"),source:i}):i,this.fs="string"==typeof s?new R9(this.gl,{id:"".concat(t.id,"-fs"),source:s}):s,nn(this.vs instanceof O9),nn(this.fs instanceof R9),this.uniforms={},this._textureUniforms={},o&&o.length>0&&(mc(this.gl),this.varyings=o,this.gl2.transformFeedbackVaryings(this.handle,o,r)),this._compileAndLink(),this._readUniformLocationsFromLinkedProgram(),this.configuration=new Zot(this),this.setProps(t)}delete(t={}){return this._isCached?this:super.delete(t)}setProps(t){return"uniforms"in t&&this.setUniforms(t.uniforms),this}draw({logPriority:t,drawMode:e=4,vertexCount:i,offset:s=0,start:o,end:r,isIndexed:a=!1,indexType:l=5123,instanceCount:c=0,isInstanced:d=c>0,vertexArray:u=null,transformFeedback:h,framebuffer:f,parameters:m={},uniforms:C,samplers:k}){if((C||k)&&(Ln.deprecated("Program.draw({uniforms})","Program.setUniforms(uniforms)")(),this.setUniforms(C||{})),Ln.priority>=t){const D=f?f.id:"default",E="mode=".concat(Ev(this.gl,e)," verts=").concat(i," ")+"instances=".concat(c," indexType=").concat(Ev(this.gl,l)," ")+"isInstanced=".concat(d," isIndexed=").concat(a," ")+"Framebuffer=".concat(D);Ln.log(t,E)()}return nn(u),this.gl.useProgram(this.handle),!(!this._areTexturesRenderable()||0===i||d&&0===c||(u.bindForDraw(i,c,()=>{if(void 0!==f&&(m=Object.assign({},m,{framebuffer:f})),h){const D=function(n){switch(n){case 0:return 0;case 1:case 3:case 2:return 1;case 4:case 5:case 6:return 4;default:return nn(!1),0}}(e);h.begin(D)}this._bindTextures(),jp(this.gl,m,()=>{a&&d?this.gl2.drawElementsInstanced(e,i,l,s,c):a&&hs(this.gl)&&!isNaN(o)&&!isNaN(r)?this.gl2.drawRangeElements(e,o,r,i,l,s):a?this.gl.drawElements(e,i,l,s):d?this.gl2.drawArraysInstanced(e,s,i,c):this.gl.drawArrays(e,s,i)}),h&&h.end()}),0))}setUniforms(t={}){Ln.priority>=2&&function(n,t,e){for(const i in n){const s=n[i];if((!e||Boolean(e[i]))&&!mot(s))throw t=t?"".concat(t," "):"",console.error("".concat(t," Bad uniform ").concat(i),s),new Error("".concat(t," Bad uniform ").concat(i))}}(t,this.id,this._uniformSetters),this.gl.useProgram(this.handle);for(const e in t){const i=t[e],s=this._uniformSetters[e];if(s){let o=i,r=!1;if(o instanceof Wa&&(o=o.texture),o instanceof BC)if(r=this.uniforms[e]!==i,r){void 0===s.textureIndex&&(s.textureIndex=this._textureIndexCounter++);const a=o,{textureIndex:l}=s;a.bind(l),o=l,this._textureUniforms[e]=a}else o=s.textureIndex;else this._textureUniforms[e]&&delete this._textureUniforms[e];(s(o)||r)&&yot(this.uniforms,e,i)}}return this}_areTexturesRenderable(){let t=!0;for(const e in this._textureUniforms){const i=this._textureUniforms[e];i.update(),t=t&&i.loaded}return t}_bindTextures(){for(const t in this._textureUniforms)this._textureUniforms[t].bind(this._uniformSetters[t].textureIndex)}_createHandle(){return this.gl.createProgram()}_deleteHandle(){this.gl.deleteProgram(this.handle)}_getOptionsFromHandle(t){const e=this.gl.getAttachedShaders(t),i={};for(const s of e)switch(this.gl.getShaderParameter(this.handle,35663)){case 35633:i.vs=new O9({handle:s});break;case 35632:i.fs=new R9({handle:s})}return i}_getParameter(t){return this.gl.getProgramParameter(this.handle,t)}_setId(t){if(!t){const e=this._getName();this.id=Iv(e)}}_getName(){let t=this.vs.getName()||this.fs.getName();return t=t.replace(/shader/i,""),t=t?"".concat(t,"-program"):"program",t}_compileAndLink(){const{gl:t}=this;if(t.attachShader(this.handle,this.vs.handle),t.attachShader(this.handle,this.fs.handle),Ln.time(4,"linkProgram for ".concat(this._getName()))(),t.linkProgram(this.handle),Ln.timeEnd(4,"linkProgram for ".concat(this._getName()))(),t.debug||Ln.level>0){if(!t.getProgramParameter(this.handle,35714))throw new Error("Error linking: ".concat(t.getProgramInfoLog(this.handle)));if(t.validateProgram(this.handle),!t.getProgramParameter(this.handle,35715))throw new Error("Error validating: ".concat(t.getProgramInfoLog(this.handle)))}}_readUniformLocationsFromLinkedProgram(){const{gl:t}=this;this._uniformSetters={},this._uniformCount=this._getParameter(35718);for(let e=0;e1)for(let r=0;re.name===t.name)||this._defaultModules.push(t),this.stateHash++}removeDefaultModule(t){const e="string"==typeof t?t:t.name;this._defaultModules=this._defaultModules.filter(i=>i.name!==e),this.stateHash++}addShaderHook(t,e){e&&(t=Object.assign(e,{hook:t})),this._hookFunctions.push(t),this.stateHash++}get(t={}){const{vs:e="",fs:i="",defines:s={},inject:o={},varyings:r=[],bufferMode:a=35981,transpileToGLSL100:l=!1}=t,c=this._getModuleList(t.modules),d=this._getHash(e),u=this._getHash(i),h=c.map(O=>this._getHash(O.name)).sort(),f=r.map(O=>this._getHash(O)),m=Object.keys(s).sort(),C=Object.keys(o).sort(),k=[],D=[];for(const O of m)k.push(this._getHash(O)),k.push(this._getHash(s[O]));for(const O of C)D.push(this._getHash(O)),D.push(this._getHash(o[O]));const E="".concat(d,"/").concat(u,"D").concat(k.join("/"),"M").concat(h.join("/"),"I").concat(D.join("/"),"V").concat(f.join("/"),"H").concat(this.stateHash,"B").concat(a).concat(l?"T":"");if(!this._programCache[E]){const O=function(n,t){const{vs:e,fs:i}=t,s=Pst(t.modules||[]);return{gl:n,vs:r_e(n,Object.assign({},t,{source:e,type:bA,modules:s})),fs:r_e(n,Object.assign({},t,{source:i,type:"fs",modules:s})),getUniforms:sot(s)}}(this.gl,{vs:e,fs:i,modules:c,inject:o,defines:s,hookFunctions:this._hookFunctions,transpileToGLSL100:l});this._programCache[E]=new b_e(this.gl,{hash:E,vs:O.vs,fs:O.fs,varyings:r,bufferMode:a}),this._getUniforms[E]=O.getUniforms||(z=>{}),this._useCounts[E]=0}return this._useCounts[E]++,this._programCache[E]}getUniforms(t){return this._getUniforms[t.hash]||null}release(t){const e=t.hash;this._useCounts[e]--,0===this._useCounts[e]&&(this._programCache[e].delete(),delete this._programCache[e],delete this._getUniforms[e],delete this._useCounts[e])}_getHash(t){return void 0===this._hashes[t]&&(this._hashes[t]=this._hashCounter++),this._hashes[t]}_getModuleList(t=[]){const e=new Array(this._defaultModules.length+t.length),i={};let s=0;for(let o=0,r=this._defaultModules.length;o-1)return"Edge";const i=-1!==e.indexOf("MSIE "),s=-1!==e.indexOf("Trident/");return i||s?"IE":dA.chrome?"Chrome":dA.safari?"Safari":dA.mozInnerScreenX?"Firefox":"Unknown"}()}static getDefaultArray(t){return t.luma=t.luma||{},t.luma.defaultVertexArray||(t.luma.defaultVertexArray=new ku(t,{handle:null,isDefaultArray:!0})),t.luma.defaultVertexArray}static getMaxAttributes(t){return ku.MAX_ATTRIBUTES=ku.MAX_ATTRIBUTES||t.getParameter(34921),ku.MAX_ATTRIBUTES}static setConstant(t,e,i){switch(i.constructor){case Float32Array:ku._setConstantFloatArray(t,e,i);break;case Int32Array:ku._setConstantIntArray(t,e,i);break;case Uint32Array:ku._setConstantUintArray(t,e,i);break;default:nn(!1)}}constructor(t,e={}){super(t,Object.assign({},e,{id:e.id||e.program&&e.program.id})),this.buffer=null,this.bufferValue=null,this.isDefaultArray=e.isDefaultArray||!1,this.gl2=t,this.initialize(e),Object.seal(this)}delete(){return super.delete(),this.buffer&&this.buffer.delete(),this}get MAX_ATTRIBUTES(){return ku.getMaxAttributes(this.gl)}initialize(t={}){return this.setProps(t)}setProps(t){return this}setElementBuffer(t=null,e={}){return nn(!t||34963===t.target,"elements must be GL.ELEMENT_ARRAY_BUFFER"),this.bind(()=>{this.gl.bindBuffer(34963,t?t.handle:null)}),this}setBuffer(t,e,i){if(34963===e.target)return this.setElementBuffer(e,i);const{size:s,type:o,stride:r,offset:a,normalized:l,integer:c,divisor:d}=i,{gl:u,gl2:h}=this;return t=Number(t),this.bind(()=>{u.bindBuffer(34962,e.handle),c?(nn(hs(u)),h.vertexAttribIPointer(t,s,o,r,a)):u.vertexAttribPointer(t,s,o,l,r,a),u.enableVertexAttribArray(t),h.vertexAttribDivisor(t,d||0)}),this}enable(t,e=!0){return!e&&0===t&&!ku.isSupported(this.gl,{constantAttributeZero:!0})||(t=Number(t),this.bind(()=>e?this.gl.enableVertexAttribArray(t):this.gl.disableVertexAttribArray(t))),this}getConstantBuffer(t,e){const i=this._normalizeConstantArrayValue(e),s=i.byteLength*t,o=i.length*t;let r=!this.buffer;if(this.buffer=this.buffer||new So(this.gl,s),r=r||this.buffer.reallocate(s),r=r||!this._compareConstantArrayValues(i,this.bufferValue),r){const a=function(n,t){return new n(function(n){return(!A3||A3.byteLength{switch(t){case 34373:return this.gl.getVertexAttribOffset(e,t);default:return this.gl.getVertexAttrib(e,t)}})}}const rrt=/^(.+)__LOCATION_([0-9]+)$/,art=["setBuffers","setGeneric","clearBindings","setLocations","setGenericValues","setDivisor","enable","disable"];class lrt{constructor(t,e={}){this.id=e.id||e.program&&e.program.id,this.gl=t,this.configuration=null,this.elements=null,this.elementsAccessor=null,this.values=null,this.accessors=null,this.unused=null,this.drawParams=null,this.buffer=null,this.attributes={},this.vertexArrayObject=new ku(t),lye(this,"VertexArray","v6.0",art),this.initialize(e),Object.seal(this)}delete(){this.buffer&&this.buffer.delete(),this.vertexArrayObject.delete()}initialize(t={}){return this.reset(),this.configuration=null,this.bindOnUse=!1,this.setProps(t)}reset(){this.elements=null,this.elementsAccessor=null;const{MAX_ATTRIBUTES:t}=this.vertexArrayObject;return this.values=new Array(t).fill(null),this.accessors=new Array(t).fill(null),this.unused={},this.drawParams=null,this}setProps(t){return"program"in t&&(this.configuration=t.program&&t.program.configuration),"configuration"in t&&(this.configuration=t.configuration),"attributes"in t&&this.setAttributes(t.attributes),"elements"in t&&this.setElementBuffer(t.elements),"bindOnUse"in t&&(t=t.bindOnUse),this}clearDrawParams(){this.drawParams=null}getDrawParams(){return this.drawParams=this.drawParams||this._updateDrawParams(),this.drawParams}setAttributes(t){return Object.assign(this.attributes,t),this.vertexArrayObject.bind(()=>{for(const e in t)this._setAttribute(e,t[e]);this.gl.bindBuffer(34962,null)}),this}setElementBuffer(t=null,e={}){return this.elements=t,this.elementsAccessor=e,this.clearDrawParams(),this.vertexArrayObject.setElementBuffer(t,e),this}setBuffer(t,e,i={}){if(34963===e.target)return this.setElementBuffer(e,i);const{location:s,accessor:o}=this._resolveLocationAndAccessor(t,e,e.accessor,i);return s>=0&&(this.values[s]=e,this.accessors[s]=o,this.clearDrawParams(),this.vertexArrayObject.setBuffer(s,e,o)),this}setConstant(t,e,i={}){const{location:s,accessor:o}=this._resolveLocationAndAccessor(t,e,Object.assign({size:e.length},i));return s>=0&&(e=this.vertexArrayObject._normalizeConstantArrayValue(e),this.values[s]=e,this.accessors[s]=o,this.clearDrawParams(),this.vertexArrayObject.enable(s,!1)),this}unbindBuffers(){return this.vertexArrayObject.bind(()=>{this.elements&&this.vertexArrayObject.setElementBuffer(null),this.buffer=this.buffer||new So(this.gl,{accessor:{size:4}});for(let t=0;t{this.elements&&this.setElementBuffer(this.elements);for(let t=0;t{this._setConstantAttributes(t,e),s=i()}),s}_resolveLocationAndAccessor(t,e,i,s){const o={location:-1,accessor:null},{location:r,name:a}=this._getAttributeIndex(t);if(!Number.isFinite(r)||r<0)return this.unused[t]=e,Ln.once(3,()=>"unused value ".concat(t," in ").concat(this.id))(),o;const l=this._getAttributeInfo(a||r);if(!l)return o;const d=xu.resolve(l.accessor,this.accessors[r]||{},i,s),{size:u,type:h}=d;return nn(Number.isFinite(u)&&Number.isFinite(h)),{location:r,accessor:d}}_getAttributeInfo(t){return this.configuration&&this.configuration.getAttributeInfo(t)}_getAttributeIndex(t){const e=Number(t);if(Number.isFinite(e))return{location:e};const i=rrt.exec(t),s=i?i[1]:t,o=i?Number(i[2]):0;return this.configuration?{location:this.configuration.getAttributeLocation(s)+o,name:s}:{location:-1}}_setAttribute(t,e){if(e instanceof So)this.setBuffer(t,e);else if(Array.isArray(e)&&e.length&&e[0]instanceof So)this.setBuffer(t,e[0],e[1]);else if(ArrayBuffer.isView(e)||Array.isArray(e))this.setConstant(t,e);else{if(!(e.buffer instanceof So))throw new Error("VertexArray: attributes must be Buffers or constants (i.e. typed array)");this.setBuffer(t,e.buffer,e)}}_setConstantAttributes(t,e){const i=Math.max(0|t,0|e);let s=this.values[0];ArrayBuffer.isView(s)&&this._setConstantAttributeZero(s,i);for(let o=1;o0;if(t.isInstanced=t.isInstanced||r,i instanceof So){const a=i;if(r){const l=a.getVertexCount(s);t.instanceCount=Math.min(t.instanceCount,l)}else{const l=a.getVertexCount(s);t.vertexCount=Math.min(t.vertexCount,l)}}}setElements(t=null,e={}){return Ln.deprecated("setElements","setElementBuffer")(),this.setElementBuffer(t,e)}}function TA(n,t={}){const{isInteger:i=!1}=t;if(Array.isArray(n)||ArrayBuffer.isView(n))return function(n,t){const{maxElts:e=16,size:i=1}=t;let s="[";for(let r=0;r0&&(s+=",".concat(r%i==0?" ":"")),s+=TA(n[r],t);const o=n.length>e?"...":"]";return"".concat(s).concat(o)}(n,t);if(!Number.isFinite(n))return String(n);if(Math.abs(n)<1e-16)return i?"0":"0.";if(i||Math.abs(n)>100&&Math.abs(n)<1e4)return n.toFixed(0);const s=n.toPrecision(2);return s.indexOf(".0")===s.length-2?s.slice(0,-1):s}function C_e(n,t,e,i){const{gl:s}=n;if(!t)return{[i]:"null","Format ":"N/A"};let c,d,u,o="NOT PROVIDED",r=1,a=0,l=0;if(e&&(o=e.type,r=e.size,o=String(o).replace("Array",""),c=-1!==o.indexOf("nt")),t instanceof So){const h=t,{data:f,changed:m}=h.getDebugData();let C;return d=m?"*":"",u=f,l=h.byteLength,a=l/f.BYTES_PER_ELEMENT/r,e?C="".concat(e.divisor>0?"I ":"P "," ").concat(a," (x").concat(r,"=").concat(l," bytes ").concat(Ev(s,o),")"):(c=!0,C="".concat(l," bytes")),{[i]:"".concat(d).concat(TA(u,{size:r,isInteger:c})),"Format ":C}}return u=t,r=t.length,o=String(t.constructor.name).replace("Array",""),c=-1!==o.indexOf("nt"),{[i]:"".concat(TA(u,{size:r,isInteger:c})," (constant)"),"Format ":"".concat(r,"x").concat(o," (constant)")}}function urt(n,t){const{type:e,size:i}=t,s=__e(e,i);return s?"".concat(n," (").concat(s.name,")"):n}function x_e({header:n="Uniforms",program:t,uniforms:e,undefinedOnly:i=!1}){nn(t);const o=".*Matrix",a={},l=Object.keys(t._uniformSetters).sort();let c=0;for(const h of l)!h.match(".*_.*")&&!h.match(o)&&L9({table:a,header:n,uniforms:e,uniformName:h,undefinedOnly:i})&&c++;for(const h of l)h.match(o)&&L9({table:a,header:n,uniforms:e,uniformName:h,undefinedOnly:i})&&c++;for(const h of l)a[h]||L9({table:a,header:n,uniforms:e,uniformName:h,undefinedOnly:i})&&c++;let d=0;const u={};if(!i)for(const h in e){const f=e[h];a[h]||(d++,u[h]={Type:"NOT USED: ".concat(f),[n]:TA(f)})}return{table:a,count:c,unusedTable:u,unusedCount:d}}function L9({table:n,header:t,uniforms:e,uniformName:i,undefinedOnly:s}){const o=e[i],r=function(n){return null!=n}(o);return!(s&&r||(n[i]={[t]:r?TA(o):"N/A","Uniform Type":r?o:"NOT PROVIDED"},0))}function w_e(n){const{type:t,size:e}=n.accessor,i=__e(t,e);return i?"".concat(i.name," ").concat(n.name):n.name}const frt={POSITION:"positions",NORMAL:"normals",COLOR_0:"colors",TEXCOORD_0:"texCoords",TEXCOORD_1:"texCoords1",TEXCOORD_2:"texCoords2"};function mrt(n,t){const{attributeMap:e=frt}=t||{};return e&&e[n]||n}function yrt(n,t){let e;switch(n){case"texCoords":case"texCoord1":case"texCoord2":case"texCoord3":e="uvs";break;case"vertices":case"positions":case"normals":case"pickingColors":e="vectors"}switch(e){case"vectors":t.size=t.size||3;break;case"uvs":t.size=t.size||2}nn(Number.isFinite(t.size),"attribute ".concat(n," needs size"))}const S_e=()=>{},brt={};class Rv{constructor(t,e={}){const{id:i=Iv("model")}=e;nn(f3(t)),this.id=i,this.gl=t,this.id=e.id||Iv("Model"),this.lastLogTime=0,this.animated=!1,this.initialize(e)}initialize(t){this.props={},this.programManager=t.programManager||SA.getDefaultProgramManager(this.gl),this._programManagerState=-1,this._managedProgram=!1;const{program:e=null,vs:i,fs:s,modules:o,defines:r,inject:a,varyings:l,bufferMode:c,transpileToGLSL100:d}=t;this.programProps={program:e,vs:i,fs:s,modules:o,defines:r,inject:a,varyings:l,bufferMode:c,transpileToGLSL100:d},this.program=null,this.vertexArray=null,this._programDirty=!0,this.userData={},this.needsRedraw=!0,this._attributes={},this.attributes={},this.uniforms={},this.pickable=!0,this._checkProgram(),this.setUniforms(Object.assign({},this.getModuleUniforms(t.moduleSettings))),this.drawMode=void 0!==t.drawMode?t.drawMode:4,this.vertexCount=t.vertexCount||0,this.geometryBuffers={},this.isInstanced=t.isInstanced||t.instanced||t.instanceCount>0,this._setModelProps(t),this.geometry={},nn(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount")}setProps(t){this._setModelProps(t)}delete(){for(const t in this._attributes)this._attributes[t]!==this.attributes[t]&&this._attributes[t].delete();this._managedProgram&&(this.programManager.release(this.program),this._managedProgram=!1),this.vertexArray.delete(),this._deleteGeometryBuffers()}getDrawMode(){return this.drawMode}getVertexCount(){return this.vertexCount}getInstanceCount(){return this.instanceCount}getAttributes(){return this.attributes}getProgram(){return this.program}setProgram(t){const{program:e,vs:i,fs:s,modules:o,defines:r,inject:a,varyings:l,bufferMode:c,transpileToGLSL100:d}=t;this.programProps={program:e,vs:i,fs:s,modules:o,defines:r,inject:a,varyings:l,bufferMode:c,transpileToGLSL100:d},this._programDirty=!0}getUniforms(){return this.uniforms}setDrawMode(t){return this.drawMode=t,this}setVertexCount(t){return nn(Number.isFinite(t)),this.vertexCount=t,this}setInstanceCount(t){return nn(Number.isFinite(t)),this.instanceCount=t,this}setGeometry(t){return this.drawMode=t.drawMode,this.vertexCount=t.getVertexCount(),this._deleteGeometryBuffers(),this.geometryBuffers=function(n,t,e){const i={};let s=t.indices;for(const o in t.attributes){const r=t.attributes[o],a=mrt(o,undefined);if("indices"===o)s=r;else if(r.constant)i[a]=r.value;else{const l=r.value,c=Ne({},r);delete c.value,i[a]=[new So(n,l),c],yrt(o,c)}}if(s){const o=s.value||s;nn(o instanceof Uint16Array||o instanceof Uint32Array,'attribute array for "indices" must be of integer type');const r={size:1,isIndexed:void 0===s.isIndexed||s.isIndexed};i.indices=[new So(n,{data:o,target:34963}),r]}return i}(this.gl,t),this.vertexArray.setAttributes(this.geometryBuffers),this}setAttributes(t={}){if(xk(t))return this;const e={};for(const i in t){const s=t[i];e[i]=s.getValue?s.getValue():s}return this.vertexArray.setAttributes(e),this}setUniforms(t={}){return Object.assign(this.uniforms,t),this}getModuleUniforms(t){this._checkProgram();const e=this.programManager.getUniforms(this.program);return e?e(t):{}}updateModuleSettings(t){const e=this.getModuleUniforms(t||{});return this.setUniforms(e)}clear(t){return d9(this.program.gl,t),this}draw(t={}){this._checkProgram();const{moduleSettings:e=null,framebuffer:i,uniforms:s={},attributes:o={},transformFeedback:r=this.transformFeedback,parameters:a={},vertexArray:l=this.vertexArray}=t;let c;this.setAttributes(o),this.updateModuleSettings(e),this.setUniforms(s),Ln.priority>=2&&(c=this._logDrawCallStart(2));const d=this.vertexArray.getDrawParams(),{isIndexed:u=d.isIndexed,indexType:h=d.indexType,indexOffset:f=d.indexOffset,vertexArrayInstanced:m=d.isInstanced}=this.props;m&&!this.isInstanced&&Ln.warn("Found instanced attributes on non-instanced model",this.id)();const{isInstanced:C,instanceCount:k}=this,{onBeforeRender:D=S_e,onAfterRender:E=S_e}=this.props;D(),this.program.setUniforms(this.uniforms);const O=this.program.draw(Object.assign(brt,t,{logPriority:c,uniforms:null,framebuffer:i,parameters:a,drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),vertexArray:l,transformFeedback:r,isIndexed:u,indexType:h,isInstanced:C,instanceCount:k,offset:u?f:0}));return E(),Ln.priority>=2&&this._logDrawCallEnd(c,l,i),O}transform(t={}){const{discard:e=!0,feedbackBuffers:i,unbindModels:s=[]}=t;let{parameters:o}=t;i&&this._setFeedbackBuffers(i),e&&(o=Object.assign({},o,{35977:e})),s.forEach(r=>r.vertexArray.unbindBuffers());try{this.draw(Object.assign({},t,{parameters:o}))}finally{s.forEach(r=>r.vertexArray.bindBuffers())}return this}render(t={}){return Ln.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")(),this.setUniforms(t).draw()}_setModelProps(t){Object.assign(this.props,t),"uniforms"in t&&this.setUniforms(t.uniforms),"pickable"in t&&(this.pickable=t.pickable),"instanceCount"in t&&(this.instanceCount=t.instanceCount),"geometry"in t&&this.setGeometry(t.geometry),"attributes"in t&&this.setAttributes(t.attributes),"_feedbackBuffers"in t&&this._setFeedbackBuffers(t._feedbackBuffers)}_checkProgram(){if(!this._programDirty&&this.programManager.stateHash===this._programManagerState)return;let{program:e}=this.programProps;if(e)this._managedProgram=!1;else{const{vs:i,fs:s,modules:o,inject:r,defines:a,varyings:l,bufferMode:c,transpileToGLSL100:d}=this.programProps;e=this.programManager.get({vs:i,fs:s,modules:o,inject:r,defines:a,varyings:l,bufferMode:c,transpileToGLSL100:d}),this.program&&this._managedProgram&&this.programManager.release(this.program),this._programManagerState=this.programManager.stateHash,this._managedProgram=!0}nn(e instanceof b_e,"Model needs a program"),this._programDirty=!1,e!==this.program&&(this.program=e,this.vertexArray?this.vertexArray.setProps({program:this.program,attributes:this.vertexArray.attributes}):this.vertexArray=new lrt(this.gl,{program:this.program}),this.setUniforms(Object.assign({},this.getModuleUniforms())))}_deleteGeometryBuffers(){for(const t in this.geometryBuffers){const e=this.geometryBuffers[t][0]||this.geometryBuffers[t];e instanceof So&&e.delete()}}_setAnimationProps(t){this.animated&&nn(t,"Model.draw(): animated uniforms but no animationProps")}_setFeedbackBuffers(t={}){if(xk(t))return this;const{gl:e}=this.program;return this.transformFeedback=this.transformFeedback||new qye(e,{program:this.program}),this.transformFeedback.setBuffers(t),this}_logDrawCallStart(t){const e=t>3?0:1e4;if(!(Date.now()-this.lastLogTime>> DRAWING MODEL ".concat(this.id),{collapsed:Ln.level<=2})(),t}_logDrawCallEnd(t,e,i,s){if(void 0===t)return;const o=function({vertexArray:n,header:t="Attributes"}){if(!n.configuration)return{};const e={};n.elements&&(e.ELEMENT_ARRAY_BUFFER=C_e(n,n.elements,null,t));const i=n.values;for(const s in i){const o=n._getAttributeInfo(s);if(o){let r="".concat(s,": ").concat(o.name);const a=n.accessors[o.location];a&&(r="".concat(s,": ").concat(urt(o.name,a))),e[r]=C_e(n,i[s],a,t)}}return e}({vertexArray:e,header:"".concat(this.id," attributes"),attributes:this._attributes}),{table:r,unusedTable:a,unusedCount:l}=x_e({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,i)}),{table:c,count:d}=x_e({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,i),undefinedOnly:!0});d>0&&Ln.log("MISSING UNIFORMS",Object.keys(c))(),l>0&&Ln.log("UNUSED UNIFORMS",Object.keys(a))();const u=function(n){const t={},e="Accessors for ".concat(n.id);for(const i of n.attributeInfos)if(i){const s=w_e(i);t["in ".concat(s)]={[e]:JSON.stringify(i.accessor)}}for(const i of n.varyingInfos)if(i){const s=w_e(i);t["out ".concat(s)]={[e]:JSON.stringify(i.accessor)}}return t}(this.vertexArray.configuration);Ln.table(t,o)(),Ln.table(t,r)(),Ln.table(t+1,u)(),s&&s.log({logLevel:2,message:"Rendered to ".concat(s.id)}),Ln.groupEnd(2,">>> DRAWING MODEL ".concat(this.id))()}}class N9{static isSupported(t){return hs(t)}constructor(t,e={}){this.gl=t,this.model=null,this.elementCount=0,this.bufferTransform=null,this.textureTransform=null,this.elementIDBuffer=null,this._initialize(e),Object.seal(this)}delete(){const{model:t,bufferTransform:e,textureTransform:i}=this;t&&t.delete(),e&&e.delete(),i&&i.delete()}run(t={}){const{clearRenderTarget:e=!0}=t,i=this._updateDrawOptions(t);e&&i.framebuffer&&i.framebuffer.clear({color:!0}),this.model.transform(i)}swap(){let t=!1;const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const i of e)t=t||i.swap();nn(t,"Nothing to swap")}getBuffer(t=null){return this.bufferTransform&&this.bufferTransform.getBuffer(t)}getData(t={}){const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const i of e){const s=i.getData(t);if(s)return s}return null}getFramebuffer(){return this.textureTransform&&this.textureTransform.getFramebuffer()}update(t={}){"elementCount"in t&&this.model.setVertexCount(t.elementCount);const e=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const i of e)i.update(t)}_initialize(t={}){const{gl:e}=this;this._buildResourceTransforms(e,t),t=this._updateModelProps(t),this.model=new Rv(e,Object.assign({},t,{fs:t.fs||Wye({version:Xye(t.vs)}),id:t.id||"transform-model",drawMode:t.drawMode||0,vertexCount:t.elementCount})),this.bufferTransform&&this.bufferTransform.setupResources({model:this.model})}_updateModelProps(t){let e=Object.assign({},t);const i=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const s of i)e=s.updateModelProps(e);return e}_buildResourceTransforms(t,e){(function(n){return!(xk(n.feedbackBuffers)&&xk(n.feedbackMap)&&!(n.varyings&&n.varyings.length>0))})(e)&&(this.bufferTransform=new gst(t,e)),function(n){return!(xk(n._sourceTextures)&&!n._targetTexture&&!n._targetTextureVarying)}(e)&&(this.textureTransform=new Est(t,e)),nn(this.bufferTransform||this.textureTransform,"must provide source/feedback buffers or source/target textures")}_updateDrawOptions(t){let e=Object.assign({},t);const i=[this.bufferTransform,this.textureTransform].filter(Boolean);for(const s of i)e=Object.assign(e,s.getDrawOptions(e));return e}}function F3(){}const wrt={onStart:F3,onUpdate:F3,onInterrupt:F3,onEnd:F3};class kA{constructor(t){this._inProgress=!1,this._handle=null,this.timeline=t,this.settings={}}get inProgress(){return this._inProgress}start(t){this.cancel(),this.settings=Ne(Ne({},wrt),t),this._inProgress=!0,this.settings.onStart(this)}end(){this._inProgress&&(this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1,this.settings.onEnd(this))}cancel(){this._inProgress&&(this.settings.onInterrupt(this),this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1)}update(){if(!this._inProgress)return!1;if(null===this._handle){const{timeline:t,settings:e}=this;this._handle=t.addChannel({delay:t.getTime(),duration:e.duration})}return this.time=this.timeline.getTime(this._handle),this._onUpdate(),this.settings.onUpdate(this),this.timeline.isFinished(this._handle)&&this.end(),!0}_onUpdate(){}}const Art={interpolation:class{constructor({gl:t,attribute:e,timeline:i}){this.gl=t,this.type="interpolation",this.transition=new kA(i),this.attribute=e,this.attributeInTransition=new b9(t,e.settings),this.currentStartIndices=e.startIndices,this.currentLength=0,this.transform=function(n,t){const e=Hye(t.size);return new N9(n,{vs:"\n#define SHADER_NAME interpolation-transition-vertex-shader\n\nuniform float time;\nattribute ATTRIBUTE_TYPE aFrom;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vCurrent;\n\nvoid main(void) {\n vCurrent = mix(aFrom, aTo, time);\n gl_Position = vec4(0.0);\n}\n",defines:{ATTRIBUTE_TYPE:e},varyings:["vCurrent"]})}(t,e);const s={byteLength:0,usage:35050};this.buffers=[new So(t,s),new So(t,s)]}get inProgress(){return this.transition.inProgress}start(t,e){if(t.duration<=0)return void this.transition.cancel();const{buffers:s,attribute:o}=this;Gye(s);const r={numInstances:e,attribute:o,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:t.enter};for(const a of s)jye(Ne({buffer:a},r));this.currentStartIndices=o.startIndices,this.currentLength=v9(o,e),this.attributeInTransition.update({buffer:s[1],value:o.value}),this.transition.start(t),this.transform.update({elementCount:Math.floor(this.currentLength/o.size),sourceBuffers:{aFrom:s[0],aTo:zye(0,o)},feedbackBuffers:{vCurrent:s[1]}})}update(){const t=this.transition.update();if(t){const{time:e,settings:{duration:i,easing:s}}=this.transition,o=s(e/i);this.transform.run({uniforms:{time:o}})}return t}cancel(){for(this.transition.cancel(),this.transform.delete();this.buffers.length;)this.buffers.pop().delete()}},spring:class{constructor({gl:t,attribute:e,timeline:i}){this.gl=t,this.type="spring",this.transition=new kA(i),this.attribute=e,this.attributeInTransition=new b9(t,yn(Ne({},e.settings),{normalized:!1})),this.currentStartIndices=e.startIndices,this.currentLength=0,this.texture=function(n){return new Lh(n,{data:new Uint8Array(4),format:6408,type:5121,border:0,mipmaps:!1,dataFormat:6408,width:1,height:1})}(t),this.framebuffer=function(n,t){return new Wa(n,{id:"spring-transition-is-transitioning-framebuffer",width:1,height:1,attachments:{36064:t}})}(t,this.texture),this.transform=function(n,t,e){const i=Hye(t.size);return new N9(n,{framebuffer:e,vs:"\n#define SHADER_NAME spring-transition-vertex-shader\n\n#define EPSILON 0.00001\n\nuniform float stiffness;\nuniform float damping;\nattribute ATTRIBUTE_TYPE aPrev;\nattribute ATTRIBUTE_TYPE aCur;\nattribute ATTRIBUTE_TYPE aTo;\nvarying ATTRIBUTE_TYPE vNext;\nvarying float vIsTransitioningFlag;\n\nATTRIBUTE_TYPE getNextValue(ATTRIBUTE_TYPE cur, ATTRIBUTE_TYPE prev, ATTRIBUTE_TYPE dest) {\n ATTRIBUTE_TYPE velocity = cur - prev;\n ATTRIBUTE_TYPE delta = dest - cur;\n ATTRIBUTE_TYPE spring = delta * stiffness;\n ATTRIBUTE_TYPE damper = velocity * -1.0 * damping;\n return spring + damper + velocity + cur;\n}\n\nvoid main(void) {\n bool isTransitioning = length(aCur - aPrev) > EPSILON || length(aTo - aCur) > EPSILON;\n vIsTransitioningFlag = isTransitioning ? 1.0 : 0.0;\n\n vNext = getNextValue(aCur, aPrev, aTo);\n gl_Position = vec4(0, 0, 0, 1);\n gl_PointSize = 100.0;\n}\n",fs:"\n#define SHADER_NAME spring-transition-is-transitioning-fragment-shader\n\nvarying float vIsTransitioningFlag;\n\nvoid main(void) {\n if (vIsTransitioningFlag == 0.0) {\n discard;\n }\n gl_FragColor = vec4(1.0);\n}",defines:{ATTRIBUTE_TYPE:i},varyings:["vNext"]})}(t,e,this.framebuffer);const s={byteLength:0,usage:35050};this.buffers=[new So(t,s),new So(t,s),new So(t,s)]}get inProgress(){return this.transition.inProgress}start(t,e){const{buffers:s,attribute:o}=this,r={numInstances:e,attribute:o,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:t.enter};for(const a of s)jye(Ne({buffer:a},r));this.currentStartIndices=o.startIndices,this.currentLength=v9(o,e),this.attributeInTransition.update({buffer:s[1],value:o.value}),this.transition.start(t),this.transform.update({elementCount:Math.floor(this.currentLength/o.size),sourceBuffers:{aTo:zye(0,o)}})}update(){const{buffers:t,transform:e,framebuffer:i,transition:s}=this;return!!s.update()&&(e.update({sourceBuffers:{aPrev:t[0],aCur:t[1]},feedbackBuffers:{vNext:t[2]}}),e.run({framebuffer:i,discard:!1,clearRenderTarget:!0,uniforms:{stiffness:s.settings.stiffness,damping:s.settings.damping},parameters:{depthTest:!1,blend:!0,viewport:[0,0,1,1],blendFunc:[1,1],blendEquation:[32776,32776]}}),Gye(t),this.attributeInTransition.update({buffer:t[1],value:this.attribute.value}),y3(i)[0]>0||s.end(),!0)}cancel(){for(this.transition.cancel(),this.transform.delete();this.buffers.length;)this.buffers.pop().delete();this.texture.delete(),this.texture=null,this.framebuffer.delete(),this.framebuffer=null}}};class Frt{constructor(t,{id:e,timeline:i}){this.id=e,this.gl=t,this.timeline=i,this.transitions={},this.needsRedraw=!1,this.numInstances=1,this.isSupported=N9.isSupported(t)}finalize(){for(const t in this.transitions)this._removeTransition(t)}update({attributes:t,transitions:e,numInstances:i}){this.numInstances=i||1;for(const s in t){const o=t[s],r=o.getTransitionSetting(e);!r||this._updateAttribute(s,o,r)}for(const s in this.transitions){const o=t[s];(!o||!o.getTransitionSetting(e))&&this._removeTransition(s)}}hasAttribute(t){const e=this.transitions[t];return e&&e.inProgress}getAttributes(){const t={};for(const e in this.transitions){const i=this.transitions[e];i.inProgress&&(t[e]=i.attributeInTransition)}return t}run(){if(!this.isSupported||0===this.numInstances)return!1;for(const e in this.transitions)this.transitions[e].update()&&(this.needsRedraw=!0);const t=this.needsRedraw;return this.needsRedraw=!1,t}_removeTransition(t){this.transitions[t].cancel(),delete this.transitions[t]}_updateAttribute(t,e,i){const s=this.transitions[t];let o=!s||s.type!==i.type;if(o){if(!this.isSupported)return void $n.warn("WebGL2 not supported by this browser. Transition for ".concat(t," is disabled."))();s&&this._removeTransition(t);const r=Art[i.type];r?this.transitions[t]=new r({attribute:e,timeline:this.timeline,gl:this.gl}):($n.error("unsupported transition type '".concat(i.type,"'"))(),o=!1)}(o||e.needsRedraw())&&(this.needsRedraw=!0,this.transitions[t].start(i,this.numInstances))}}const T_e="attributeManager.invalidate";class Brt{constructor(t,{id:e="attribute-manager",stats:i,timeline:s}={}){this.id=e,this.gl=t,this.attributes={},this.updateTriggers={},this.accessors={},this.needsRedraw=!0,this.userData={},this.stats=i,this.attributeTransitionManager=new Frt(t,{id:"".concat(e,"-transitions"),timeline:s}),Object.seal(this)}finalize(){for(const t in this.attributes)this.attributes[t].delete();this.attributeTransitionManager.finalize()}getNeedsRedraw(t={clearRedrawFlags:!1}){const e=this.needsRedraw;return this.needsRedraw=this.needsRedraw&&!t.clearRedrawFlags,e&&this.id}setNeedsRedraw(t=!0){return this.needsRedraw=!0,this}add(t,e){this._add(t,e)}addInstanced(t,e){this._add(t,e,{instanced:1})}remove(t){for(let e=0;e{t[s]||(t[s]=[]),t[s].push(e)});this.updateTriggers=t}_invalidateTrigger(t,e){const{attributes:i,updateTriggers:s}=this,o=s[t];return o&&o.forEach(r=>{const a=i[r];a&&a.setNeedsUpdate(a.id,e)}),o}_updateAttribute(t){const{attribute:e,numInstances:i}=t;yc("attribute.updateStart",e),e.allocate(i)&&yc("attribute.allocate",e,i),e.updateBuffer(t)&&(this.needsRedraw=!0,yc("attribute.updateEnd",e,i))}}function D_e(n,t,e,i,s){const o=t-n;return(e-t)*s+-o*i+o+t}function M_e(n,t){if(Array.isArray(n)){let e=0;for(let i=0;i0}add(t,e,i,s){const{transitions:o}=this;if(o.has(t)){const l=o.get(t),{value:c=l.settings.fromValue}=l;e=c,this.remove(t)}if(!(s=Vye(s)))return;const r=Grt[s.type];if(!r)return void $n.error("unsupported transition type '".concat(s.type,"'"))();const a=new r(this.timeline);a.start(yn(Ne({},s),{fromValue:e,toValue:i})),o.set(t,a)}remove(t){const{transitions:e}=this;e.has(t)&&(e.get(t).cancel(),e.delete(t))}update(){const t={};for(const[e,i]of this.transitions)i.update(),t[e]=i.value,i.inProgress||this.remove(e);return t}clear(){for(const t of this.transitions.keys())this.remove(t)}}const O3={COMPONENT:Symbol.for("component"),ASYNC_DEFAULTS:Symbol.for("asyncPropDefaults"),ASYNC_ORIGINAL:Symbol.for("asyncPropOriginal"),ASYNC_RESOLVED:Symbol.for("asyncPropResolved")},{COMPONENT:$rt}=O3;function qrt(n,t){if(!n.transitions)return null;const e={},i=V9(n);for(const s in n.transitions){const o=i[s],r=o&&o.type;("number"===r||"color"===r||"array"===r)&&B9(n[s],t[s],o)&&(e[s]=!0)}return e}function E_e({newProps:n,oldProps:t,ignoreProps:e={},propTypes:i={},triggerName:s="props"}={}){if(t===n)return null;if("object"!=typeof n||null===n||"object"!=typeof t||null===t)return"".concat(s," changed shallowly");for(const o of Object.keys(n))if(!(o in e)){if(!(o in t))return"".concat(s,".").concat(o," added");const r=B9(n[o],t[o],i[o]);if(r)return"".concat(s,".").concat(o," ").concat(r)}for(const o of Object.keys(t))if(!(o in e)){if(!(o in n))return"".concat(s,".").concat(o," dropped");if(!Object.hasOwnProperty.call(n,o)){const r=B9(n[o],t[o],i[o]);if(r)return"".concat(s,".").concat(o," ").concat(r)}}return null}function B9(n,t,e){let i=e&&e.equal;return i&&!i(n,t,e)||!i&&(i=n&&t&&n.equals,i&&!i.call(n,t))?"changed deeply":i||t===n?null:"changed shallowly"}function Krt(n,t){if(null===t)return"oldProps is null, initial diff";const e=t.extensions,{extensions:i}=n;if(i===e)return!1;if(i.length!==e.length)return!0;for(let s=0;s{for(const s in i)if(!nat(i[s],t[s])){e=n(i),t=i;break}return e}}function iat(n,t){if(!t)return n;const e=Ne(Ne({},n),t);if("defines"in t&&(e.defines=Ne(Ne({},n.defines),t.defines)),"modules"in t&&(e.modules=(n.modules||[]).concat(t.modules),t.modules.some(i=>"project64"===i.name))){const i=e.modules.findIndex(s=>"project32"===s.name);i>=0&&e.modules.splice(i,1)}if("inject"in t)if(n.inject){const i=Ne({},n.inject);for(const s in t.inject)i[s]=(i[s]||"")+t.inject[s];e.inject=i}else e.inject=t.inject;return e}function P3(n,t){var e=t[0],i=t[1],s=t[2],o=t[3],r=t[4],a=t[5],l=t[6],c=t[7],d=t[8],u=t[9],h=t[10],f=t[11],m=t[12],C=t[13],k=t[14],D=t[15],E=e*a-i*r,O=e*l-s*r,z=e*c-o*r,q=i*l-s*a,re=i*c-o*a,ie=s*c-o*l,Se=d*C-u*m,Te=d*k-h*m,Ee=d*D-f*m,be=u*k-h*C,Ke=u*D-f*C,Re=h*D-f*k,Qe=E*Re-O*Ke+z*be+q*Ee-re*Te+ie*Se;return Qe?(n[0]=(a*Re-l*Ke+c*be)*(Qe=1/Qe),n[1]=(s*Ke-i*Re-o*be)*Qe,n[2]=(C*ie-k*re+D*q)*Qe,n[3]=(h*re-u*ie-f*q)*Qe,n[4]=(l*Ee-r*Re-c*Te)*Qe,n[5]=(e*Re-s*Ee+o*Te)*Qe,n[6]=(k*z-m*ie-D*O)*Qe,n[7]=(d*ie-h*z+f*O)*Qe,n[8]=(r*Ke-a*Ee+c*Se)*Qe,n[9]=(i*Ee-e*Ke-o*Se)*Qe,n[10]=(m*re-C*z+D*E)*Qe,n[11]=(u*z-d*re-f*E)*Qe,n[12]=(a*Te-r*be-l*Se)*Qe,n[13]=(e*be-i*Te+s*Se)*Qe,n[14]=(C*O-m*q-k*E)*Qe,n[15]=(d*q-u*O+h*E)*Qe,n):null}function yg(n,t,e){var i=t[0],s=t[1],o=t[2],r=t[3],a=t[4],l=t[5],c=t[6],d=t[7],u=t[8],h=t[9],f=t[10],m=t[11],C=t[12],k=t[13],D=t[14],E=t[15],O=e[0],z=e[1],q=e[2],re=e[3];return n[0]=O*i+z*a+q*u+re*C,n[1]=O*s+z*l+q*h+re*k,n[2]=O*o+z*c+q*f+re*D,n[3]=O*r+z*d+q*m+re*E,n[4]=(O=e[4])*i+(z=e[5])*a+(q=e[6])*u+(re=e[7])*C,n[5]=O*s+z*l+q*h+re*k,n[6]=O*o+z*c+q*f+re*D,n[7]=O*r+z*d+q*m+re*E,n[8]=(O=e[8])*i+(z=e[9])*a+(q=e[10])*u+(re=e[11])*C,n[9]=O*s+z*l+q*h+re*k,n[10]=O*o+z*c+q*f+re*D,n[11]=O*r+z*d+q*m+re*E,n[12]=(O=e[12])*i+(z=e[13])*a+(q=e[14])*u+(re=e[15])*C,n[13]=O*s+z*l+q*h+re*k,n[14]=O*o+z*c+q*f+re*D,n[15]=O*r+z*d+q*m+re*E,n}function DA(n,t,e){var r,a,l,c,d,u,h,f,m,C,k,D,i=e[0],s=e[1],o=e[2];return t===n?(n[12]=t[0]*i+t[4]*s+t[8]*o+t[12],n[13]=t[1]*i+t[5]*s+t[9]*o+t[13],n[14]=t[2]*i+t[6]*s+t[10]*o+t[14],n[15]=t[3]*i+t[7]*s+t[11]*o+t[15]):(a=t[1],l=t[2],c=t[3],d=t[4],u=t[5],h=t[6],f=t[7],m=t[8],C=t[9],k=t[10],D=t[11],n[0]=r=t[0],n[1]=a,n[2]=l,n[3]=c,n[4]=d,n[5]=u,n[6]=h,n[7]=f,n[8]=m,n[9]=C,n[10]=k,n[11]=D,n[12]=r*i+d*s+m*o+t[12],n[13]=a*i+u*s+C*o+t[13],n[14]=l*i+h*s+k*o+t[14],n[15]=c*i+f*s+D*o+t[15]),n}function MA(n,t,e){var i=e[0],s=e[1],o=e[2];return n[0]=t[0]*i,n[1]=t[1]*i,n[2]=t[2]*i,n[3]=t[3]*i,n[4]=t[4]*s,n[5]=t[5]*s,n[6]=t[6]*s,n[7]=t[7]*s,n[8]=t[8]*o,n[9]=t[9]*o,n[10]=t[10]*o,n[11]=t[11]*o,n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n}function A_e(n,t,e){var i=Math.sin(e),s=Math.cos(e),o=t[4],r=t[5],a=t[6],l=t[7],c=t[8],d=t[9],u=t[10],h=t[11];return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[4]=o*s+c*i,n[5]=r*s+d*i,n[6]=a*s+u*i,n[7]=l*s+h*i,n[8]=c*s-o*i,n[9]=d*s-r*i,n[10]=u*s-a*i,n[11]=h*s-l*i,n}function F_e(n,t,e){var i=Math.sin(e),s=Math.cos(e),o=t[0],r=t[1],a=t[2],l=t[3],c=t[4],d=t[5],u=t[6],h=t[7];return t!==n&&(n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[0]=o*s+c*i,n[1]=r*s+d*i,n[2]=a*s+u*i,n[3]=l*s+h*i,n[4]=c*s-o*i,n[5]=d*s-r*i,n[6]=u*s-a*i,n[7]=h*s-l*i,n}function R_e(n,t,e,i,s){var r,o=1/Math.tan(t/2);return n[0]=o/e,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=o,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=-1,n[12]=0,n[13]=0,n[15]=0,null!=s&&s!==1/0?(n[10]=(s+i)*(r=1/(i-s)),n[14]=2*s*i*r):(n[10]=-1,n[14]=-2*i),n}function P_e(n,t){var e=n[0],i=n[1],s=n[2],o=n[3],r=n[4],a=n[5],l=n[6],c=n[7],d=n[8],u=n[9],h=n[10],f=n[11],m=n[12],C=n[13],k=n[14],D=n[15],E=t[0],O=t[1],z=t[2],q=t[3],re=t[4],ie=t[5],Se=t[6],Te=t[7],Ee=t[8],be=t[9],Ke=t[10],Re=t[11],Qe=t[12],Ze=t[13],Ge=t[14],tt=t[15];return Math.abs(e-E)<=qo*Math.max(1,Math.abs(e),Math.abs(E))&&Math.abs(i-O)<=qo*Math.max(1,Math.abs(i),Math.abs(O))&&Math.abs(s-z)<=qo*Math.max(1,Math.abs(s),Math.abs(z))&&Math.abs(o-q)<=qo*Math.max(1,Math.abs(o),Math.abs(q))&&Math.abs(r-re)<=qo*Math.max(1,Math.abs(r),Math.abs(re))&&Math.abs(a-ie)<=qo*Math.max(1,Math.abs(a),Math.abs(ie))&&Math.abs(l-Se)<=qo*Math.max(1,Math.abs(l),Math.abs(Se))&&Math.abs(c-Te)<=qo*Math.max(1,Math.abs(c),Math.abs(Te))&&Math.abs(d-Ee)<=qo*Math.max(1,Math.abs(d),Math.abs(Ee))&&Math.abs(u-be)<=qo*Math.max(1,Math.abs(u),Math.abs(be))&&Math.abs(h-Ke)<=qo*Math.max(1,Math.abs(h),Math.abs(Ke))&&Math.abs(f-Re)<=qo*Math.max(1,Math.abs(f),Math.abs(Re))&&Math.abs(m-Qe)<=qo*Math.max(1,Math.abs(m),Math.abs(Qe))&&Math.abs(C-Ze)<=qo*Math.max(1,Math.abs(C),Math.abs(Ze))&&Math.abs(k-Ge)<=qo*Math.max(1,Math.abs(k),Math.abs(Ge))&&Math.abs(D-tt)<=qo*Math.max(1,Math.abs(D),Math.abs(tt))}function L_e(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e,n[3]=t[3]*e,n}function L3(n,t,e){var i=t[0],s=t[1],o=t[2],r=t[3];return n[0]=e[0]*i+e[4]*s+e[8]*o+e[12]*r,n[1]=e[1]*i+e[5]*s+e[9]*o+e[13]*r,n[2]=e[2]*i+e[6]*s+e[10]*o+e[14]*r,n[3]=e[3]*i+e[7]*s+e[11]*o+e[15]*r,n}!function(){var n=new Ld(4);Ld!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[3]=0)}();const Mat=[0,0,0,0],Eat=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],Iat=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],Aat=[0,0,0],Fat=[0,0,0],Oat=R3(function({viewport:n,devicePixelRatio:t,coordinateSystem:e,coordinateOrigin:i}){const{projectionCenter:s,viewProjectionMatrix:o,cameraPosCommon:r,shaderCoordinateOrigin:a,geospatialOrigin:l}=function(n,t,e){const{viewMatrixUncentered:i,projectionMatrix:s}=n;let{viewMatrix:o,viewProjectionMatrix:r}=n,a=Mat,l=n.cameraPosition;const{geospatialOrigin:c,shaderCoordinateOrigin:d,offsetMode:u}=N_e(n,t,e);if(u){const h=n.projectPosition(c||d);l=[l[0]-h[0],l[1]-h[1],l[2]-h[2]],h[3]=1,a=L3([],h,r),o=i||o,r=yg([],s,o),r=yg([],r,Eat)}return{viewMatrix:o,viewProjectionMatrix:r,projectionCenter:a,cameraPosCommon:l,shaderCoordinateOrigin:d,geospatialOrigin:c}}(n,e,i),c=n.getDistanceScales(),d=[n.width*t,n.height*t],u=n.projectionMatrix.transform([0,0,-n.focalDistance,1])[3]||1,h={project_uCoordinateSystem:e,project_uProjectionMode:n.projectionMode,project_uCoordinateOrigin:a,project_uCenter:s,project_uViewportSize:d,project_uDevicePixelRatio:t,project_uFocalDistance:u,project_uCommonUnitsPerMeter:c.unitsPerMeter,project_uCommonUnitsPerWorldUnit:c.unitsPerMeter,project_uCommonUnitsPerWorldUnit2:Aat,project_uScale:n.scale,project_uViewProjectionMatrix:o,project_uCameraPosition:r};if(l){const f=n.getDistanceScales(l);switch(e){case _s.METER_OFFSETS:h.project_uCommonUnitsPerWorldUnit=f.unitsPerMeter,h.project_uCommonUnitsPerWorldUnit2=f.unitsPerMeter2;break;case _s.LNGLAT:case _s.LNGLAT_OFFSETS:h.project_uCommonUnitsPerWorldUnit=f.unitsPerDegree,h.project_uCommonUnitsPerWorldUnit2=f.unitsPerDegree2;break;case _s.CARTESIAN:h.project_uCommonUnitsPerWorldUnit=[1,1,f.unitsPerMeter[2]],h.project_uCommonUnitsPerWorldUnit2=[0,0,f.unitsPerMeter2[2]]}}return h});function N_e(n,t,e=Fat){let s,i=e,o=!0;switch(s=t===_s.LNGLAT_OFFSETS||t===_s.METER_OFFSETS?e:n.isGeospatial?[Math.fround(n.longitude),Math.fround(n.latitude),0]:null,n.projectionMode){case gg.WEB_MERCATOR:(t===_s.LNGLAT||t===_s.CARTESIAN)&&(o=!1);break;case gg.WEB_MERCATOR_AUTO_OFFSET:t===_s.LNGLAT?i=s:t===_s.CARTESIAN&&(i=[Math.fround(n.center[0]),Math.fround(n.center[1]),0],s=n.unprojectPosition(i),i[0]-=e[0],i[1]-=e[1],i[2]-=e[2]);break;case gg.IDENTITY:i=n.position.map(Math.fround);break;case gg.GLOBE:o=!1,s=null;break;default:o=!1}return i[2]=i[2]||0,{geospatialOrigin:s,shaderCoordinateOrigin:i,offsetMode:o}}class B_e extends g9{get ELEMENTS(){return Kc(!1),0}get RANK(){return Kc(!1),0}toString(){let t="[";if(rr.printRowMajor){t+="row-major:";for(let e=0;e2*Math.PI)throw Error("radians");const a=i*Math.tan(t/2),l=a*e;return(new Nd).ortho({left:-l,right:l,bottom:-a,top:a,near:s,far:o})}perspective({fovy:t,fov:e=45*Math.PI/180,aspect:i=1,near:s=.1,far:o=500}={}){if((t=t||e)>2*Math.PI)throw Error("radians");return R_e(this,t,i,s,o),this.check()}determinant(){return function(n){var t=n[0],e=n[1],i=n[2],s=n[3],o=n[4],r=n[5],a=n[6],l=n[7],c=n[8],d=n[9],u=n[10],h=n[11],f=n[12],m=n[13],C=n[14],k=n[15];return(t*r-e*o)*(u*k-h*C)-(t*a-i*o)*(d*k-h*m)+(t*l-s*o)*(d*C-u*m)+(e*a-i*r)*(c*k-h*f)-(e*l-s*r)*(c*C-u*f)+(i*l-s*a)*(c*m-d*f)}(this)}getScale(t=[-0,-0,-0]){return t[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),t[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),t[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),t}getTranslation(t=[-0,-0,-0]){return t[0]=this[12],t[1]=this[13],t[2]=this[14],t}getRotation(t=[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],e=null){const i=this.getScale(e||[-0,-0,-0]),s=1/i[0],o=1/i[1],r=1/i[2];return t[0]=this[0]*s,t[1]=this[1]*o,t[2]=this[2]*r,t[3]=0,t[4]=this[4]*s,t[5]=this[5]*o,t[6]=this[6]*r,t[7]=0,t[8]=this[8]*s,t[9]=this[9]*o,t[10]=this[10]*r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}getRotationMatrix3(t=[-0,-0,-0,-0,-0,-0,-0,-0,-0],e=null){const i=this.getScale(e||[-0,-0,-0]),s=1/i[0],o=1/i[1],r=1/i[2];return t[0]=this[0]*s,t[1]=this[1]*o,t[2]=this[2]*r,t[3]=this[4]*s,t[4]=this[5]*o,t[5]=this[6]*r,t[6]=this[8]*s,t[7]=this[9]*o,t[8]=this[10]*r,t}transpose(){return function(n,t){if(n===t){var e=t[1],i=t[2],s=t[3],o=t[6],r=t[7],a=t[11];n[1]=t[4],n[2]=t[8],n[3]=t[12],n[4]=e,n[6]=t[9],n[7]=t[13],n[8]=i,n[9]=o,n[11]=t[14],n[12]=s,n[13]=r,n[14]=a}else n[0]=t[0],n[1]=t[4],n[2]=t[8],n[3]=t[12],n[4]=t[1],n[5]=t[5],n[6]=t[9],n[7]=t[13],n[8]=t[2],n[9]=t[6],n[10]=t[10],n[11]=t[14],n[12]=t[3],n[13]=t[7],n[14]=t[11],n[15]=t[15]}(this,this),this.check()}invert(){return P3(this,this),this.check()}multiplyLeft(t){return yg(this,t,this),this.check()}multiplyRight(t){return yg(this,this,t),this.check()}rotateX(t){return A_e(this,this,t),this.check()}rotateY(t){return function(n,t,e){var i=Math.sin(e),s=Math.cos(e),o=t[0],r=t[1],a=t[2],l=t[3],c=t[8],d=t[9],u=t[10],h=t[11];t!==n&&(n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15]),n[0]=o*s-c*i,n[1]=r*s-d*i,n[2]=a*s-u*i,n[3]=l*s-h*i,n[8]=o*i+c*s,n[9]=r*i+d*s,n[10]=a*i+u*s,n[11]=l*i+h*s}(this,this,t),this.check()}rotateZ(t){return F_e(this,this,t),this.check()}rotateXYZ([t,e,i]){return this.rotateX(t).rotateY(e).rotateZ(i)}rotateAxis(t,e){return function(n,t,e,i){var l,c,d,u,h,f,m,C,k,D,E,O,z,q,re,ie,Se,Te,Ee,be,Ke,Re,Qe,Ze,s=i[0],o=i[1],r=i[2],a=Math.hypot(s,o,r);a=-90&&t<=90,"invalid latitude"),[512*(n*Up+$p)/(2*$p),512*($p+Math.log(Math.tan(j_e+t*Up*.5)))/(2*$p)]}function Pk([n,t]){const e=n/512*(2*$p)-$p,i=2*(Math.atan(Math.exp(t/512*(2*$p)-$p))-j_e);return[e*H9,i*H9]}function V3({latitude:n,longitude:t,highPrecision:e=!1}){Dy(Number.isFinite(n)&&Number.isFinite(t));const i={},o=Math.cos(n*Up),r=512/360,a=r/o,l=512/G9/o;if(i.unitsPerMeter=[l,l,l],i.metersPerUnit=[1/l,1/l,1/l],i.unitsPerDegree=[r,a,l],i.degreesPerUnit=[1/r,1/a,1/l],e){const c=Up*Math.tan(n*Up)/o,u=512/G9*c,h=u/a*l;i.unitsPerDegree2=[0,r*c/2,u],i.unitsPerMeter2=[h,0,h]}return i}function U_e(n,t){const[e,i,s]=n,[o,r,a]=t,{unitsPerMeter:l,unitsPerMeter2:c}=V3({longitude:e,latitude:i,highPrecision:!0}),d=Pv(n);d[0]+=o*(l[0]+c[0]*r),d[1]+=r*(l[1]+c[1]*r);const u=Pk(d),h=(s||0)+(a||0);return Number.isFinite(s)||Number.isFinite(a)?[u[0],u[1],h]:u}function W_e({height:n,pitch:t,bearing:e,altitude:i,scale:s,center:o=null}){const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return DA(r,r,[0,0,-i]),A_e(r,r,-t*Up),F_e(r,r,e*Up),MA(r,r,[s/=n,s,s]),o&&DA(r,r,function(n,t){return n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n}([],o)),r}function q_e({width:n,height:t,fovy:e=z3(1.5),altitude:i,pitch:s=0,nearZMultiplier:o=1,farZMultiplier:r=1}){void 0!==i&&(e=z3(i));const a=.5*e*Up,l=X_e(e),c=s*Up,d=Math.sin(a)*l/Math.sin(Math.min(Math.max(Math.PI/2-c-a,.01),Math.PI-.01));return{fov:2*a,aspect:n/t,focalDistance:l,near:o,far:(Math.sin(c)*d+l)*r}}function z3(n){return 2*Math.atan(.5/n)*H9}function X_e(n){return.5/Math.tan(.5*n*Up)}function j9(n,t){const[e,i,s=0]=n;return Dy(Number.isFinite(e)&&Number.isFinite(i)&&Number.isFinite(s)),Rk(t,[e,i,s,1])}function IA(n,t,e=0){const[i,s,o]=n;if(Dy(Number.isFinite(i)&&Number.isFinite(s),"invalid pixel coordinate"),Number.isFinite(o))return Rk(t,[i,s,o,1]);const r=Rk(t,[i,s,0,1]),a=Rk(t,[i,s,1,1]),l=r[2],c=a[2];return z_e([],r,a,l===c?0:((e||0)-l)/(c-l))}function Y_e({width:n,height:t,bounds:e,minExtent:i=0,maxZoom:s=24,padding:o=0,offset:r=[0,0]}){const[[a,l],[c,d]]=e;Number.isFinite(o)?o={top:o,bottom:o,left:o,right:o}:Dy(Number.isFinite(o.top)&&Number.isFinite(o.bottom)&&Number.isFinite(o.left)&&Number.isFinite(o.right));const u=new Lk({width:n,height:t,longitude:0,latitude:0,zoom:0}),h=u.project([a,d]),f=u.project([c,l]),m=[Math.max(Math.abs(f[0]-h[0]),i),Math.max(Math.abs(f[1]-h[1]),i)],C=[n-o.left-o.right-2*Math.abs(r[0]),t-o.top-o.bottom-2*Math.abs(r[1])];Dy(C[0]>0&&C[1]>0);const k=C[0]/m[0],D=C[1]/m[1],q=u.unproject([(f[0]+h[0])/2+(o.right-o.left)/2/k,(f[1]+h[1])/2+(o.bottom-o.top)/2/D]),re=Math.min(s,u.zoom+z9(Math.abs(Math.min(k,D))));return Dy(Number.isFinite(re)),{longitude:q[0],latitude:q[1],zoom:re}}const K_e=Math.PI/180;function Z_e(n,t=0){const{width:e,height:i,unproject:s}=n,o={targetZ:t},r=s([0,i],o),a=s([e,i],o);let l,c;return(n.fovy?.5*n.fovy*K_e:Math.atan(.5/n.altitude))>(90-n.pitch)*K_e-.01?(l=Q_e(n,0,t),c=Q_e(n,e,t)):(l=s([0,0],o),c=s([e,0],o)),[r,a,c,l]}function Q_e(n,t,e){const{pixelUnprojectionMatrix:i}=n,s=Rk(i,[t,0,1,1]),o=Rk(i,[t,n.height,1,1]),c=Pk(z_e([],s,o,(e*n.distanceScales.unitsPerMeter[2]-s[2])/(o[2]-s[2])));return c[2]=e,c}class Lk{constructor({width:t,height:e,latitude:i=0,longitude:s=0,zoom:o=0,pitch:r=0,bearing:a=0,altitude:l=null,fovy:c=null,position:d=null,nearZMultiplier:u=.02,farZMultiplier:h=1.01}={width:1,height:1}){t=t||1,e=e||1,null===c&&null===l?c=z3(l=1.5):null===c?c=z3(l):null===l&&(l=X_e(c));const f=function(n){return Math.pow(2,n)}(o);l=Math.max(.75,l);const m=V3({longitude:s,latitude:i}),C=Pv([s,i]);C[2]=0,d&&function(n,t,e){n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2]}(C,C,function(n,t,e){return n[0]=t[0]*e[0],n[1]=t[1]*e[1],n[2]=t[2]*e[2],n}([],d,m.unitsPerMeter)),this.projectionMatrix=function({width:n,height:t,pitch:e,altitude:i,fovy:s,nearZMultiplier:o,farZMultiplier:r}){const{fov:a,aspect:l,near:c,far:d}=q_e({width:n,height:t,altitude:i,fovy:s,pitch:e,nearZMultiplier:o,farZMultiplier:r});return R_e([],a,l,c,d)}({width:t,height:e,pitch:r,fovy:c,nearZMultiplier:u,farZMultiplier:h}),this.viewMatrix=W_e({height:e,scale:f,center:C,pitch:r,bearing:a,altitude:l}),this.width=t,this.height=e,this.scale=f,this.latitude=i,this.longitude=s,this.zoom=o,this.pitch=r,this.bearing=a,this.altitude=l,this.fovy=c,this.center=C,this.meterOffset=d||[0,0,0],this.distanceScales=m,this._initMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),Object.freeze(this)}_initMatrices(){const{width:t,height:e,projectionMatrix:i,viewMatrix:s}=this,o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];yg(o,o,i),yg(o,o,s),this.viewProjectionMatrix=o;const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];MA(r,r,[t/2,-e/2,1]),DA(r,r,[1,-1,0]),yg(r,r,o);const a=P3([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],r);if(!a)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=r,this.pixelUnprojectionMatrix=a}equals(t){return t instanceof Lk&&t.width===this.width&&t.height===this.height&&P_e(t.projectionMatrix,this.projectionMatrix)&&P_e(t.viewMatrix,this.viewMatrix)}project(t,{topLeft:e=!0}={}){const s=j9(this.projectPosition(t),this.pixelProjectionMatrix),[o,r]=s,a=e?r:this.height-r;return 2===t.length?[o,a]:[o,a,s[2]]}unproject(t,{topLeft:e=!0,targetZ:i}={}){const[s,o,r]=t,c=IA([s,e?o:this.height-o,r],this.pixelUnprojectionMatrix,i&&i*this.distanceScales.unitsPerMeter[2]),[d,u,h]=this.unprojectPosition(c);return Number.isFinite(r)?[d,u,h]:Number.isFinite(i)?[d,u,i]:[d,u]}projectPosition(t){const[e,i]=Pv(t);return[e,i,(t[2]||0)*this.distanceScales.unitsPerMeter[2]]}unprojectPosition(t){const[e,i]=Pk(t);return[e,i,(t[2]||0)*this.distanceScales.metersPerUnit[2]]}projectFlat(t){return Pv(t)}unprojectFlat(t){return Pk(t)}getMapCenterByLngLatPosition({lngLat:t,pos:e}){const i=IA(e,this.pixelUnprojectionMatrix),o=N3([],Pv(t),V_e([],i));return Pk(N3([],this.center,o))}getLocationAtPoint({lngLat:t,pos:e}){return this.getMapCenterByLngLatPosition({lngLat:t,pos:e})}fitBounds(t,e={}){const{width:i,height:s}=this,{longitude:o,latitude:r,zoom:a}=Y_e(Object.assign({width:i,height:s,bounds:t},e));return new Lk({width:i,height:s,longitude:o,latitude:r,zoom:a})}getBounds(t){const e=this.getBoundingRegion(t),i=Math.min(...e.map(a=>a[0])),s=Math.max(...e.map(a=>a[0]));return[[i,Math.min(...e.map(a=>a[1]))],[s,Math.max(...e.map(a=>a[1]))]]}getBoundingRegion(t={}){return Z_e(this,t.z||0)}}const Yat=Math.PI/180,Kat=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],$9=[0,0,0],Qat={unitsPerMeter:[1,1,1],metersPerUnit:[1,1,1]};let H3=(()=>{class n{constructor(e={}){const{id:i=null,x:s=0,y:o=0,width:r=1,height:a=1}=e;this.id=i||this.constructor.displayName||"viewport",this.x=s,this.y=o,this.width=r||1,this.height=a||1,this._frustumPlanes={},this._initViewMatrix(e),this._initProjectionMatrix(e),this._initPixelMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}get metersPerPixel(){return this.distanceScales.metersPerUnit[2]/this.scale}get projectionMode(){return this.isGeospatial?this.zoom<12?gg.WEB_MERCATOR:gg.WEB_MERCATOR_AUTO_OFFSET:gg.IDENTITY}equals(e){return e instanceof n&&(this===e||e.width===this.width&&e.height===this.height&&e.scale===this.scale&&Fv(e.projectionMatrix,this.projectionMatrix)&&Fv(e.viewMatrix,this.viewMatrix))}project(e,{topLeft:i=!0}={}){const o=j9(this.projectPosition(e),this.pixelProjectionMatrix),[r,a]=o,l=i?a:this.height-a;return 2===e.length?[r,l]:[r,l,o[2]]}unproject(e,{topLeft:i=!0,targetZ:s}={}){const[o,r,a]=e,d=IA([o,i?r:this.height-r,a],this.pixelUnprojectionMatrix,s&&s*this.distanceScales.unitsPerMeter[2]),[u,h,f]=this.unprojectPosition(d);return Number.isFinite(a)?[u,h,f]:Number.isFinite(s)?[u,h,s]:[u,h]}projectPosition(e){const[i,s]=this.projectFlat(e);return[i,s,(e[2]||0)*this.distanceScales.unitsPerMeter[2]]}unprojectPosition(e){const[i,s]=this.unprojectFlat(e);return[i,s,(e[2]||0)*this.distanceScales.metersPerUnit[2]]}projectFlat(e){return this.isGeospatial?Pv(e):e}unprojectFlat(e){return this.isGeospatial?Pk(e):e}getBounds(e={}){const i={targetZ:e.z||0},s=this.unproject([0,0],i),o=this.unproject([this.width,0],i),r=this.unproject([0,this.height],i),a=this.unproject([this.width,this.height],i);return[Math.min(s[0],o[0],r[0],a[0]),Math.min(s[1],o[1],r[1],a[1]),Math.max(s[0],o[0],r[0],a[0]),Math.max(s[1],o[1],r[1],a[1])]}getDistanceScales(e=null){return e?V3({longitude:e[0],latitude:e[1],highPrecision:!0}):this.distanceScales}containsPixel({x:e,y:i,width:s=1,height:o=1}){return e{class n extends H3{constructor(e={}){const{latitude:i=0,longitude:s=0,zoom:o=11,pitch:r=0,bearing:a=0,nearZMultiplier:l=.1,farZMultiplier:c=1.01,orthographic:d=!1,repeat:u=!1,worldOffset:h=0}=e;let{width:f,height:m,altitude:C=1.5}=e;const k=Math.pow(2,o);f=f||1,m=m||1,C=Math.max(.75,C);const{fov:D,aspect:E,focalDistance:O,near:z,far:q}=q_e({width:f,height:m,pitch:r,altitude:C,nearZMultiplier:l,farZMultiplier:c});let re=W_e({height:m,pitch:r,bearing:a,scale:k,altitude:C});h&&(re=(new Nd).translate([512*h,0,0]).multiplyLeft(re)),super(yn(Ne({},e),{width:f,height:m,viewMatrix:re,longitude:s,latitude:i,zoom:o,orthographic:d,fovyRadians:D,aspect:E,focalDistance:O,near:z,far:q})),this.latitude=i,this.longitude=s,this.zoom=o,this.pitch=r,this.bearing=a,this.altitude=C,this.orthographic=d,this._subViewports=u?[]:null,Object.freeze(this)}get subViewports(){if(this._subViewports&&!this._subViewports.length){const e=this.getBounds(),i=Math.floor((e[0]+180)/360),s=Math.ceil((e[2]-180)/360);for(let o=i;o<=s;o++){const r=o?new n(yn(Ne({},this),{worldOffset:o})):this;this._subViewports.push(r)}}return this._subViewports}addMetersToLngLat(e,i){return U_e(e,i)}panByPosition(e,i){const s=IA(i,this.pixelUnprojectionMatrix),r=N3([],this.projectFlat(e),V_e([],s)),a=N3([],this.center,r),[l,c]=this.unprojectFlat(a);return{longitude:l,latitude:c}}getBounds(e={}){const i=Z_e(this,e.z||0);return[Math.min(i[0][0],i[1][0],i[2][0],i[3][0]),Math.min(i[0][1],i[1][1],i[2][1],i[3][1]),Math.max(i[0][0],i[1][0],i[2][0],i[3][0]),Math.max(i[0][1],i[1][1],i[2][1],i[3][1])]}fitBounds(e,i={}){const{width:s,height:o}=this,{longitude:r,latitude:a,zoom:l}=Y_e(Ne({width:s,height:o,bounds:e},i));return new n({width:s,height:o,longitude:r,latitude:a,zoom:l})}}return n.displayName="WebMercatorViewport",n})();function U9(n,t,e=!1){const i=t.projectPosition(n);if(e&&t instanceof sve){const[s,o,r=0]=n,a=t.getDistanceScales([s,o]);i[2]=r*a.unitsPerMeter[2]}return i}function ove(n,{viewport:t,modelMatrix:e,coordinateSystem:i,coordinateOrigin:s,offsetMode:o}){let[r,a,l=0]=n;switch(e&&([r,a,l]=L3([],[r,a,l,1],e)),i){case _s.LNGLAT:return U9([r,a,l],t,o);case _s.LNGLAT_OFFSETS:return U9([r+s[0],a+s[1],l+(s[2]||0)],t,o);case _s.METER_OFFSETS:return U9(U_e(s,[r,a,l]),t,o);case _s.CARTESIAN:default:return t.isGeospatial?[r+s[0],a+s[1],l+s[2]]:t.projectPosition([r,a,l])}}const tlt={10241:9987,10240:9729,10242:33071,10243:33071},W9={},slt={boolean:{validate:(n,t)=>!0,equal:(n,t,e)=>Boolean(n)===Boolean(t)},number:{validate:(n,t)=>Number.isFinite(n)&&(!("max"in t)||n<=t.max)&&(!("min"in t)||n>=t.min)},color:{validate:(n,t)=>t.optional&&!n||FA(n)&&(3===n.length||4===n.length),equal:(n,t,e)=>q9(n,t)},accessor:{validate(n,t){const e=G3(n);return"function"===e||e===G3(t.value)},equal:(n,t,e)=>"function"==typeof t||q9(n,t)},array:{validate:(n,t)=>t.optional&&!n||FA(n),equal:(n,t,e)=>e.compare?q9(n,t):n===t},function:{validate:(n,t)=>t.optional&&!n||"function"==typeof n,equal:(n,t,e)=>!e.compare||n===t},data:{transform:(n,t,e)=>{const{dataTransform:i}=e?e.props:{};return i&&n?i(n):n}},image:{transform:(n,t,e)=>function(n,t){const e=n.context&&n.context.gl;if(!e||!t)return null;if(t instanceof Lh)return t;t.constructor&&"Object"!==t.constructor.name&&(t={data:t});let i=null;t.compressed&&(i={10241:t.data.length>1?9985:9729});const s=new Lh(e,yn(Ne({},t),{parameters:Ne(Ne(Ne({},tlt),i),n.props.textureParameters)}));return W9[s.id]=!0,s}(e,n),release:n=>{!function(n){!n||!(n instanceof Lh)||W9[n.id]&&(n.delete(),delete W9[n.id])}(n)}}};function q9(n,t){if(n===t)return!0;if(!FA(n)||!FA(t))return!1;const e=n.length;if(e!==t.length)return!1;for(let i=0;i{},this.oldProps=ylt,this.oldAsyncProps=null}finalize(){for(const t in this.asyncProps){const e=this.asyncProps[t];e.type&&e.type.release&&e.type.release(e.resolvedValue,e.type,this.component)}}getOldProps(){return this.oldAsyncProps||this.oldProps}resetOldProps(){this.oldAsyncProps=null,this.oldProps=this.component.props}freezeAsyncOldProps(){if(!this.oldAsyncProps){this.oldProps=this.oldProps||this.component.props,this.oldAsyncProps=Object.create(this.oldProps);for(const t in this.asyncProps)Object.defineProperty(this.oldAsyncProps,t,{enumerable:!0,value:this.oldProps[t]})}}hasAsyncProp(t){return t in this.asyncProps}getAsyncProp(t){const e=this.asyncProps[t];return e&&e.resolvedValue}isAsyncPropLoading(t){if(t){const e=this.asyncProps[t];return Boolean(e&&e.pendingLoadCount>0&&e.pendingLoadCount!==e.resolvedLoadCount)}for(const e in this.asyncProps)if(this.isAsyncPropLoading(e))return!0;return!1}reloadAsyncProp(t,e){this._watchPromise(t,Promise.resolve(e))}setAsyncProps(t){const e=t[glt]||{},i=t[flt]||t,s=t[mlt]||{};for(const o in e){const r=e[o];this._createAsyncPropData(o,s[o]),this._updateAsyncProp(o,r),e[o]=this.getAsyncProp(o)}for(const o in i){const r=i[o];this._createAsyncPropData(o,s[o]),this._updateAsyncProp(o,r)}}_updateAsyncProp(t,e){if(this._didAsyncInputValueChange(t,e)){if("string"==typeof e){var i;const s=null===(i=this.layer)||void 0===i?void 0:i.props.fetch;s&&(e=s(e,{propName:t,layer:this.layer}))}if(e instanceof Promise)return void this._watchPromise(t,e);if(Lye(e))return void this._resolveAsyncIterable(t,e);this._setPropValue(t,e)}}_didAsyncInputValueChange(t,e){const i=this.asyncProps[t];return e!==i.resolvedValue&&e!==i.lastValue&&(i.lastValue=e,!0)}_setPropValue(t,e){const i=this.asyncProps[t];e=this._postProcessValue(i,e),i.resolvedValue=e,i.pendingLoadCount++,i.resolvedLoadCount=i.pendingLoadCount}_setAsyncPropValue(t,e,i){const s=this.asyncProps[t];s&&i>=s.resolvedLoadCount&&void 0!==e&&(this.freezeAsyncOldProps(),s.resolvedValue=e,s.resolvedLoadCount=i,this.onAsyncPropUpdated(t,e))}_watchPromise(t,e){const i=this.asyncProps[t];i.pendingLoadCount++;const s=i.pendingLoadCount;e.then(o=>{var r;o=this._postProcessValue(i,o),this._setAsyncPropValue(t,o,s);const a=null===(r=this.layer)||void 0===r?void 0:r.props.onDataLoad;"data"===t&&a&&a(o,{propName:t,layer:this.layer})}).catch(o=>{var r;null===(r=this.layer)||void 0===r||r.raiseError(o,"loading ".concat(t," of ").concat(this.layer))})}_resolveAsyncIterable(t,e){var i=this;return Xe(function*(){var s;"data"!==t&&i._setPropValue(t,e);const o=i.asyncProps[t];o.pendingLoadCount++;const r=o.pendingLoadCount;let a=[],l=0;var u,c=!0,d=!1;try{for(var f,m,h=Y9(e);c=(f=yield h.next()).done,m=yield f.value,!c;c=!0){const k=m,{dataTransform:D}=i.component?i.component.props:{};a=D?D(k,a):a.concat(k),Object.defineProperty(a,"__diff",{enumerable:!1,value:[{startRow:l,endRow:a.length}]}),l=a.length,i._setAsyncPropValue(t,a,r)}}catch(k){d=!0,u=k}finally{try{!c&&null!=h.return&&(yield h.return())}finally{if(d)throw u}}const C=null===(s=i.layer)||void 0===s?void 0:s.props.onDataLoad;C&&C(a,{propName:t,layer:i.layer})})()}_postProcessValue(t,e){const i=t.type;return i&&(i.release&&i.release(t.resolvedValue,i,this.component),i.transform)?i.transform(e,i,this.component):e}_createAsyncPropData(t,e){if(!this.asyncProps[t]){const s=this.component&&this.component.constructor._propTypes;this.asyncProps[t]={type:s&&s[t],lastValue:null,resolvedValue:e,pendingLoadCount:0,resolvedLoadCount:0}}}}const{ASYNC_ORIGINAL:cve,ASYNC_RESOLVED:dve,ASYNC_DEFAULTS:_lt}=O3,vlt={};let blt=0,Clt=(()=>{class n{constructor(){this.props=alt.apply(this,arguments),this.id=this.props.id,this.count=blt++,this.lifecycle="Awaiting state",this.parent=null,this.context=null,this.state=null,this.internalState=null,Object.seal(this)}clone(e){const{props:i}=this,s={};for(const o in i[_lt])o in i[dve]?s[o]=i[dve][o]:o in i[cve]&&(s[o]=i[cve][o]);return new this.constructor(Ne(Ne(Ne({},i),s),e))}get stats(){return this.internalState.stats}_initState(){this.internalState=new lve({})}}return n.componentName="Component",n.defaultProps=vlt,n})();class xlt extends lve{constructor({attributeManager:t,layer:e}){super(e),this.attributeManager=t,this.model=null,this.needsRedraw=!0,this.subLayers=null,this.usesPickingColorCache=!1}get layer(){return this.component}set layer(t){this.component=t}}const Wp=n=>"function"==typeof n,Lv=n=>null!==n&&"object"==typeof n,hve=n=>Lv(n)&&n.constructor==={}.constructor,wlt=n=>n&&"function"==typeof n[Symbol.iterator],Slt=n=>n&&"function"==typeof n[Symbol.asyncIterator],RA=n=>"undefined"!=typeof Response&&n instanceof Response||n&&n.arrayBuffer&&n.text&&n.json,Nk=n=>"undefined"!=typeof Blob&&n instanceof Blob,pve=n=>(n=>"undefined"!=typeof ReadableStream&&n instanceof ReadableStream||Lv(n)&&Wp(n.tee)&&Wp(n.cancel)&&Wp(n.getReader))(n)||(n=>Lv(n)&&Wp(n.read)&&Wp(n.pipe)&&(n=>"boolean"==typeof n)(n.readable))(n);function fve(n,t){if(!n)throw new Error(t||"loader assertion failed.")}function K9(n){var t;return!!n&&(Array.isArray(n)&&(n=n[0]),Array.isArray(null===(t=n)||void 0===t?void 0:t.extensions))}function Z9(n){var t,e;let i;return fve(n,"null loader"),fve(K9(n),"invalid loader"),Array.isArray(n)&&(i=n[1],n=yn(Ne({},n=n[0]),{options:Ne(Ne({},n.options),i)})),(null!==(t=n)&&void 0!==t&&t.parseTextSync||null!==(e=n)&&void 0!==e&&e.parseText)&&(n.text=!0),n.text||(n.binary=!0),n}const _g={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global,document:"undefined"!=typeof document&&document},Q9=_g.global||_g.self||_g.window||{},Ilt="object"!=typeof process||"[object process]"!==String(process)||process.browser,gve="undefined"!=typeof process&&process.version&&/v([0-9]*)/.exec(process.version);gve&&parseFloat(gve[1]);const eW={};function Alt(n){for(const t in eW)n.startsWith(t)&&(n=n.replace(t,eW[t]));return!n.startsWith("http://")&&!n.startsWith("https://")&&(n=`${n}`),n}const Flt=/^data:([-\w.]+\/[-\w.+]+)(;|,)/,Olt=/^([-\w.]+\/[-\w.+]+)/;function Rlt(n){const t=Olt.exec(n);return t?t[1]:n}function mve(n){const t=Flt.exec(n);return t?t[1]:""}const Plt=/\?.*/;function W3(n){if(RA(n)){const t=tW(n.url||"");return{url:t,type:Rlt(n.headers.get("content-type")||"")||mve(t)}}return Nk(n)?{url:tW(n.name||""),type:n.type||""}:"string"==typeof n?{url:tW(n),type:mve(n)}:{url:"",type:""}}function Llt(n){return RA(n)?n.headers["content-length"]||-1:Nk(n)?n.size:"string"==typeof n?n.length:n instanceof ArrayBuffer||ArrayBuffer.isView(n)?n.byteLength:-1}function tW(n){return n.replace(Plt,"")}function yve(n){return nW.apply(this,arguments)}function nW(){return(nW=Xe(function*(n){if(RA(n))return n;const t={},e=Llt(n);e>=0&&(t["content-length"]=String(e));const{url:i,type:s}=W3(n);s&&(t["content-type"]=s);const o=yield Vlt(n);o&&(t["x-first-bytes"]=o),"string"==typeof n&&(n=(new TextEncoder).encode(n));const r=new Response(n,{headers:t});return Object.defineProperty(r,"url",{value:i}),r})).apply(this,arguments)}function Nlt(n){return iW.apply(this,arguments)}function iW(){return(iW=Xe(function*(n){if(!n.ok){const t=yield Blt(n);throw new Error(t)}})).apply(this,arguments)}function Blt(n){return sW.apply(this,arguments)}function sW(){return(sW=Xe(function*(n){let t=`Failed to fetch resource ${n.url} (${n.status}): `;try{const e=n.headers.get("Content-Type");let i=n.statusText;e.includes("application/json")&&(i+=` ${yield n.text()}`),t+=i,t=t.length>60?`${t.slice(60)}...`:t}catch(e){}return t})).apply(this,arguments)}function Vlt(n){return oW.apply(this,arguments)}function oW(){return(oW=Xe(function*(n){if("string"==typeof n)return`data:,${n.slice(0,5)}`;if(n instanceof Blob){const e=n.slice(0,5);return yield new Promise(i=>{const s=new FileReader;s.onload=o=>{var r;return i(null==o||null===(r=o.target)||void 0===r?void 0:r.result)},s.readAsDataURL(e)})}return n instanceof ArrayBuffer?`data:base64,${zlt(n.slice(0,5))}`:null})).apply(this,arguments)}function zlt(n){let t="";const e=new Uint8Array(n);for(let i=0;i{}}info(){return()=>{}}warn(){return()=>{}}error(){return()=>{}}}const bve={fetch:null,mimeType:void 0,nothrow:!1,log:new class{constructor(){ps(this,"console",void 0),this.console=console}log(...t){return this.console.log.bind(this.console,...t)}info(...t){return this.console.info.bind(this.console,...t)}warn(...t){return this.console.warn.bind(this.console,...t)}error(...t){return this.console.error.bind(this.console,...t)}},CDN:"https://unpkg.com/@loaders.gl",worker:!0,maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:!0,_workerType:"",limit:0,_limitMB:0,batchSize:"auto",batchDebounceMs:0,metadata:!1,transforms:[]},jlt={throws:"nothrow",dataType:"(no longer used)",uri:"baseUri",method:"fetch.method",headers:"fetch.headers",body:"fetch.body",mode:"fetch.mode",credentials:"fetch.credentials",cache:"fetch.cache",redirect:"fetch.redirect",referrer:"fetch.referrer",referrerPolicy:"fetch.referrerPolicy",integrity:"fetch.integrity",keepalive:"fetch.keepalive",signal:"fetch.signal"};function aW(){Q9.loaders=Q9.loaders||{};const{loaders:n}=Q9;return n._state=n._state||{},n._state}const lW=()=>{const n=aW();return n.globalOptions=n.globalOptions||Ne({},bve),n.globalOptions};function $lt(n,t,e,i){return e=e||[],function(n,t){xve(n,null,bve,jlt,t);for(const e of t)xve(n&&n[e.id]||{},e.id,e.options&&e.options[e.id]||{},e.deprecatedOptions&&e.deprecatedOptions[e.id]||{},t)}(n,e=Array.isArray(e)?e:[e]),function(n,t,e){const s=Ne({},n.options||{});return function(n,t){t&&!("baseUri"in n)&&(n.baseUri=t)}(s,e),null===s.log&&(s.log=new Hlt),Sve(s,lW()),Sve(s,t),s}(t,n,i)}function Cve(n,t){const e=lW(),i=n||e;return"function"==typeof i.fetch?i.fetch:Lv(i.fetch)?s=>_ve(s,i):null!=t&&t.fetch?null==t?void 0:t.fetch:_ve}function xve(n,t,e,i,s){const o=t||"Top level",r=t?`${t}.`:"";for(const a in n){const l=!t&&Lv(n[a]),c="baseUri"===a&&!t,d="workerUrl"===a&&t;if(!(a in e)&&!c&&!d)if(a in i)vve.warn(`${o} loader option '${r}${a}' no longer supported, use '${i[a]}'`)();else if(!l){const u=Wlt(a,s);vve.warn(`${o} loader option '${r}${a}' not recognized. ${u}`)()}}}function Wlt(n,t){const e=n.toLowerCase();let i="";for(const s of t)for(const o in s.options){if(n===o)return`Did you mean '${s.id}.${o}'?`;const r=o.toLowerCase();(e.startsWith(r)||r.startsWith(e))&&(i=i||`Did you mean '${s.id}.${o}'?`)}return i}function Sve(n,t){for(const e in t)e in t&&(n[e]=hve(t[e])&&hve(n[e])?Ne(Ne({},n[e]),t[e]):t[e])}function My(n,t){if(!n)throw new Error(t||"loaders.gl assertion failed.")}function Ylt(n,t="3.0.9"){return My(n,"no worker provided"),!(!t||!n.version)}"undefined"!=typeof self&&self,"undefined"!=typeof window&&window,"undefined"!=typeof global&&global,"undefined"!=typeof document&&document,"object"!=typeof process||"[object process]"!==String(process)||process;const Klt="undefined"!=typeof window&&void 0!==window.orientation,Tve="undefined"!=typeof process&&process.version&&/v([0-9]*)/.exec(process.version),cW=(Tve&&parseFloat(Tve[1]),new Map);function kve(n){const t=new Blob([n],{type:"application/javascript"});return URL.createObjectURL(t)}function Dve(n,t=!0,e){const i=e||new Set;if(n)if(Mve(n))i.add(n);else if(Mve(n.buffer))i.add(n.buffer);else if(!ArrayBuffer.isView(n)&&t&&"object"==typeof n)for(const s in n)Dve(n[s],t,i);return void 0===e?Array.from(i):[]}function Mve(n){return!!n&&(n instanceof ArrayBuffer||"undefined"!=typeof MessagePort&&n instanceof MessagePort||"undefined"!=typeof ImageBitmap&&n instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&n instanceof OffscreenCanvas)}const dW=()=>{};class Eve{static isSupported(){return"undefined"!=typeof Worker}constructor(t){ps(this,"name",void 0),ps(this,"source",void 0),ps(this,"url",void 0),ps(this,"terminated",!1),ps(this,"worker",void 0),ps(this,"onMessage",void 0),ps(this,"onError",void 0),ps(this,"_loadableURL","");const{name:e,source:i,url:s}=t;My(i||s),this.name=e,this.source=i,this.url=s,this.onMessage=dW,this.onError=o=>console.log(o),this.worker=this._createBrowserWorker()}destroy(){this.onMessage=dW,this.onError=dW,this.worker.terminate(),this.terminated=!0}get isRunning(){return Boolean(this.onMessage)}postMessage(t,e){e=e||Dve(t),this.worker.postMessage(t,e)}_getErrorFromErrorEvent(t){let e="Failed to load ";return e+=`worker ${this.name}. `,t.message&&(e+=`${t.message} in `),t.lineno&&(e+=`:${t.lineno}:${t.colno}`),new Error(e)}_createBrowserWorker(){this._loadableURL=function(n){My(n.source&&!n.url||!n.source&&n.url);let t=cW.get(n.source||n.url);return t||(n.url&&(t=function(n){return n.startsWith("http")?kve(function(n){return`try {\n importScripts('${n}');\n} catch (error) {\n console.error(error);\n throw error;\n}`}(n)):n}(n.url),cW.set(n.url,t)),n.source&&(t=kve(n.source),cW.set(n.source,t))),My(t),t}({source:this.source,url:this.url});const t=new Worker(this._loadableURL,{name:this.name});return t.onmessage=e=>{e.data?this.onMessage(e.data):this.onError(new Error("No data received"))},t.onerror=e=>{this.onError(this._getErrorFromErrorEvent(e)),this.terminated=!0},t.onmessageerror=e=>console.error(e),t}}class ect{constructor(t,e){ps(this,"name",void 0),ps(this,"workerThread",void 0),ps(this,"isRunning",void 0),ps(this,"result",void 0),ps(this,"_resolve",void 0),ps(this,"_reject",void 0),this.name=t,this.workerThread=e,this.isRunning=!0,this._resolve=()=>{},this._reject=()=>{},this.result=new Promise((i,s)=>{this._resolve=i,this._reject=s})}postMessage(t,e){this.workerThread.postMessage({source:"loaders.gl",type:t,payload:e})}done(t){My(this.isRunning),this.isRunning=!1,this._resolve(t)}error(t){My(this.isRunning),this.isRunning=!1,this._reject(t)}}class tct{constructor(t){ps(this,"name","unnamed"),ps(this,"source",void 0),ps(this,"url",void 0),ps(this,"maxConcurrency",1),ps(this,"maxMobileConcurrency",1),ps(this,"onDebug",()=>{}),ps(this,"reuseWorkers",!0),ps(this,"props",{}),ps(this,"jobQueue",[]),ps(this,"idleQueue",[]),ps(this,"count",0),ps(this,"isDestroyed",!1),this.source=t.source,this.url=t.url,this.setProps(t)}destroy(){this.idleQueue.forEach(t=>t.destroy()),this.isDestroyed=!0}setProps(t){this.props=Ne(Ne({},this.props),t),void 0!==t.name&&(this.name=t.name),void 0!==t.maxConcurrency&&(this.maxConcurrency=t.maxConcurrency),void 0!==t.maxMobileConcurrency&&(this.maxMobileConcurrency=t.maxMobileConcurrency),void 0!==t.reuseWorkers&&(this.reuseWorkers=t.reuseWorkers),void 0!==t.onDebug&&(this.onDebug=t.onDebug)}startJob(t,e=((s,o,r)=>s.done(r)),i=((s,o)=>s.error(o))){var s=this;return Xe(function*(){const o=new Promise(r=>(s.jobQueue.push({name:t,onMessage:e,onError:i,onStart:r}),s));return s._startQueuedJob(),yield o})()}_startQueuedJob(){var t=this;return Xe(function*(){if(!t.jobQueue.length)return;const e=t._getAvailableWorker();if(!e)return;const i=t.jobQueue.shift();if(i){t.onDebug({message:"Starting job",name:i.name,workerThread:e,backlog:t.jobQueue.length});const s=new ect(i.name,e);e.onMessage=o=>i.onMessage(s,o.type,o.payload),e.onError=o=>i.onError(s,o),i.onStart(s);try{yield s.result}finally{t.returnWorkerToQueue(e)}}})()}returnWorkerToQueue(t){this.isDestroyed||!this.reuseWorkers||this.count>this._getMaxConcurrency()?(t.destroy(),this.count--):this.idleQueue.push(t),this.isDestroyed||this._startQueuedJob()}_getAvailableWorker(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count{},reuseWorkers:!0};class Ey{static isSupported(){return Eve.isSupported()}static getWorkerFarm(t={}){return Ey._workerFarm=Ey._workerFarm||new Ey({}),Ey._workerFarm.setProps(t),Ey._workerFarm}constructor(t){ps(this,"props",void 0),ps(this,"workerPools",new Map),this.props=Ne({},nct),this.setProps(t),this.workerPools=new Map}destroy(){for(const t of this.workerPools.values())t.destroy()}setProps(t){this.props=Ne(Ne({},this.props),t);for(const e of this.workerPools.values())e.setProps(this._getWorkerPoolProps())}getWorkerPool(t){const{name:e,source:i,url:s}=t;let o=this.workerPools.get(e);return o||(o=new tct({name:e,source:i,url:s}),o.setProps(this._getWorkerPoolProps()),this.workerPools.set(e,o)),o}_getWorkerPoolProps(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}}}function sct(n,t={}){const i=`${n.id}-worker.js`;let s=(t[n.id]||{}).workerUrl;if("test"===t._workerType&&(s=`modules/${n.module}/dist/${i}`),!s){let o=n.version;"latest"===o&&(o="latest"),s=`https://unpkg.com/@loaders.gl/${n.module}${o?`@${o}`:""}/dist/${i}`}return My(s),s}function oct(n,t){return!!Ey.isSupported()&&n.worker&&(null==t?void 0:t.worker)}function rct(n,t,e,i,s){return uW.apply(this,arguments)}function uW(){return(uW=Xe(function*(n,t,e,i,s){const o=n.id,r=sct(n,e),l=Ey.getWorkerFarm(e).getWorkerPool({name:o,url:r});e=JSON.parse(JSON.stringify(e));const c=yield l.startJob("process-on-worker",act.bind(null,s));return c.postMessage("process",{input:t,options:e}),yield(yield c.result).result})).apply(this,arguments)}function act(n,t,e,i){return hW.apply(this,arguments)}function hW(){return(hW=Xe(function*(n,t,e,i){switch(e){case"done":t.done(i);break;case"error":t.error(i.error);break;case"process":const{id:s,input:o,options:r}=i;try{const a=yield n(o,r);t.postMessage("done",{id:s,result:a})}catch(a){const l=a instanceof Error?a.message:"unknown error";t.postMessage("error",{id:s,error:l})}break;default:console.warn(`parse-with-worker unknown message ${e}`)}})).apply(this,arguments)}ps(Ey,"_workerFarm",void 0);var Ave=Pt(540);function Fve(n){if(Ave.toArrayBuffer&&(n=Ave.toArrayBuffer(n)),n instanceof ArrayBuffer)return n;if(ArrayBuffer.isView(n))return n.buffer;if("string"==typeof n){const t=n;return(new TextEncoder).encode(t).buffer}if(n&&"object"==typeof n&&n._toArrayBuffer)return n._toArrayBuffer();throw new Error("toArrayBuffer")}function cct(...n){const t=n.map(o=>o instanceof ArrayBuffer?new Uint8Array(o):o),e=t.reduce((o,r)=>o+r.byteLength,0),i=new Uint8Array(e);let s=0;for(const o of t)i.set(o,s),s+=o.byteLength;return i.buffer}function dct(n){return fW.apply(this,arguments)}function fW(){return(fW=Xe(function*(n){const t=[];var s,e=!0,i=!1;try{for(var r,a,o=Y9(n);e=(r=yield o.next()).done,a=yield r.value,!e;e=!0)t.push(a)}catch(l){i=!0,s=l}finally{try{!e&&null!=o.return&&(yield o.return())}finally{if(i)throw s}}return cct(...t)})).apply(this,arguments)}const pct=262144;function Ove(n){this.wrapped=n}function PA(n){return new Ove(n)}function LA(n){var t,e;function s(r,a){try{var l=n[r](a),c=l.value,d=c instanceof Ove;Promise.resolve(d?c.wrapped:c).then(function(u){d?s("return"===r?"return":"next",u):o(l.done?"return":"normal",u)},function(u){s("throw",u)})}catch(u){o("throw",u)}}function o(r,a){switch(r){case"return":t.resolve({value:a,done:!0});break;case"throw":t.reject(a);break;default:t.resolve({value:a,done:!1})}(t=t.next)?s(t.key,t.arg):e=null}this._invoke=function(r,a){return new Promise(function(l,c){var d={key:r,arg:a,resolve:l,reject:c,next:null};e?e=e.next=d:(t=e=d,s(r,a))})},"function"!=typeof n.return&&(this.return=void 0)}function mW(n){return function(){return new LA(n.apply(this,arguments))}}function yW(){return(yW=mW(function*(n,t){const e=(null==t?void 0:t.chunkSize)||1048576;let i=0;for(;in&&"object"==typeof n&&n.isBuffer)(n)&&(n=n.buffer),n instanceof ArrayBuffer){const i=n;return t.text&&!t.binary?new TextDecoder("utf8").decode(i):i}if(ArrayBuffer.isView(n)){if(t.text&&!t.binary)return new TextDecoder("utf8").decode(n);let i=n.buffer;const s=n.byteLength||n.length;return(0!==n.byteOffset||s!==i.byteLength)&&(i=i.slice(n.byteOffset,n.byteOffset+s)),i}throw new Error(bW)}function Cct(n,t,e){return CW.apply(this,arguments)}function CW(){return(CW=Xe(function*(n,t,e){const i=n instanceof ArrayBuffer||ArrayBuffer.isView(n);if("string"==typeof n||i)return bct(n,t);if(Nk(n)&&(n=yield yve(n)),RA(n)){const s=n;return yield Nlt(s),t.binary?yield s.arrayBuffer():yield s.text()}if(pve(n)&&(n=vct(n,e)),wlt(n)||Slt(n))return dct(n);throw new Error(bW)})).apply(this,arguments)}function wct(n,t,e=null){if(e)return e;const i=Ne({fetch:Cve(t,n)},n);return Array.isArray(i.loaders)||(i.loaders=null),i}function Sct(n,t){if(!t&&n&&!Array.isArray(n))return n;let e;if(n&&(e=Array.isArray(n)?n:[n]),t&&t.loaders){const i=Array.isArray(t.loaders)?t.loaders:[t.loaders];e=e?[...e,...i]:i}return e&&e.length?e:null}const Pve=()=>{const n=aW();return n.loaderRegistry=n.loaderRegistry||[],n.loaderRegistry},Dct=/\.([^.]+)$/;function Mct(n){return SW.apply(this,arguments)}function SW(){return(SW=Xe(function*(n,t=[],e,i){if(!Nve(n))return null;let s=Lve(n,t,yn(Ne({},e),{nothrow:!0}),i);if(s)return s;if(Nk(n)&&(s=Lve(n=yield n.slice(0,10).arrayBuffer(),t,e,i)),!(s||null!=e&&e.nothrow))throw new Error(Bve(n));return s})).apply(this,arguments)}function Lve(n,t=[],e,i){if(!Nve(n))return null;if(t&&!Array.isArray(t))return Z9(t);let s=[];t&&(s=s.concat(t)),null!=e&&e.ignoreRegisteredLoaders||s.push(...Pve()),function(n){for(const t of n)Z9(t)}(s);const o=function(n,t,e,i){const{url:s,type:o}=W3(n),r=s||(null==i?void 0:i.url);let a=null;return null!=e&&e.mimeType&&(a=TW(t,null==e?void 0:e.mimeType)),a=a||function(n,t){const e=t&&Dct.exec(t),i=e&&e[1];return i?function(n,t){t=t.toLowerCase();for(const e of n)for(const i of e.extensions)if(i.toLowerCase()===t)return e;return null}(n,i):null}(t,r),a=a||TW(t,o),a=a||function(n,t){if(!t)return null;for(const e of n)if("string"==typeof t){if(Rct(t,e))return e}else if(ArrayBuffer.isView(t)){if(Vve(t.buffer,t.byteOffset,e))return e}else if(t instanceof ArrayBuffer&&Vve(t,0,e))return e;return null}(t,n),a=a||TW(t,null==e?void 0:e.fallbackMimeType),a}(n,s,e,i);if(!(o||null!=e&&e.nothrow))throw new Error(Bve(n));return o}function Nve(n){return!(n instanceof Response&&204===n.status)}function Bve(n){const{url:t,type:e}=W3(n);let i="No valid loader found";return n&&(i+=` data: "${function(n,t=5){return"string"==typeof n?n.slice(0,t):ArrayBuffer.isView(n)?kW(n.buffer,n.byteOffset,t):n instanceof ArrayBuffer?kW(n,0,t):""}(n)}", contentType: "${e}"`),t&&(i+=` url: ${t}`),i}function TW(n,t){for(const e of n)if(e.mimeTypes&&e.mimeTypes.includes(t)||t===`application/x.${e.id}`)return e;return null}function Rct(n,t){return t.testText?t.testText(n):(Array.isArray(t.tests)?t.tests:[t.tests]).some(i=>n.startsWith(i))}function Vve(n,t,e){return(Array.isArray(e.tests)?e.tests:[e.tests]).some(s=>function(n,t,e,i){if(i instanceof ArrayBuffer)return function(n,t,e){if(n.byteLength<(e=e||n.byteLength)||t.byteLengthn.equals(t));let bg=new Uint8ClampedArray(0);const Uct={data:{type:"data",value:jct,async:!0},dataComparator:null,_dataDiff:{type:"function",value:n=>n&&n.__diff,compare:!1,optional:!0},dataTransform:{type:"function",value:null,compare:!1,optional:!0},onDataLoad:{type:"function",value:null,compare:!1,optional:!0},onError:{type:"function",value:null,compare:!1,optional:!0},fetch:{type:"function",value:(n,{propName:t,layer:e,loaders:i,loadOptions:s,signal:o})=>{const{resourceManager:r}=e.context;var a;s=s||e.getLoadOptions(),i=i||e.props.loaders,o&&(s=yn(Ne({},s),{fetch:yn(Ne({},null===(a=s)||void 0===a?void 0:a.fetch),{signal:o})}));let l=r.contains(n);return!l&&!s&&(r.add({resourceId:n,data:q3(n,i),persistent:!1}),l=!0),l?r.subscribe({resourceId:n,onChange:c=>e.internalState.reloadAsyncProp(t,c),consumerId:e.id,requestId:t}):q3(n,i,s)},compare:!1},updateTriggers:{},visible:!0,pickable:!1,opacity:{type:"number",min:0,max:1,value:1},onHover:{type:"function",value:null,compare:!1,optional:!0},onClick:{type:"function",value:null,compare:!1,optional:!0},onDragStart:{type:"function",value:null,compare:!1,optional:!0},onDrag:{type:"function",value:null,compare:!1,optional:!0},onDragEnd:{type:"function",value:null,compare:!1,optional:!0},coordinateSystem:_s.DEFAULT,coordinateOrigin:{type:"array",value:[0,0,0],compare:!0},modelMatrix:{type:"array",value:null,compare:!0,optional:!0},wrapLongitude:!1,positionFormat:"XYZ",colorFormat:"RGBA",parameters:{},transitions:null,extensions:[],loaders:{type:"array",value:[],optional:!0,compare:!0},getPolygonOffset:{type:"function",value:({layerIndex:n})=>[0,100*-n],compare:!1},highlightedObjectIndex:-1,autoHighlight:!1,highlightColor:{type:"accessor",value:[0,0,128,128]}};let HC=(()=>{class n extends Clt{toString(){return"".concat(this.constructor.layerName||this.constructor.name,"({id: '").concat(this.props.id,"'})")}raiseError(e,i){var s,o,r,a;i&&(e.message="".concat(i,": ").concat(e.message)),(null===(s=(o=this.props).onError)||void 0===s?void 0:s.call(o,e))||null===(r=this.context)||void 0===r||null===(a=r.onError)||void 0===a||a.call(r,e,this)}setState(e){this.setChangeFlags({stateChanged:!0}),Object.assign(this.state,e),this.setNeedsRedraw()}setNeedsRedraw(e=!0){this.internalState&&(this.internalState.needsRedraw=e)}setNeedsUpdate(){this.context.layerManager.setNeedsUpdate(String(this)),this.internalState.needsUpdate=!0}getNeedsRedraw(e={clearRedrawFlags:!1}){return this._getNeedsRedraw(e)}needsUpdate(){return this.internalState.needsUpdate||this.hasUniformTransition()||this.shouldUpdateState(this._getUpdateParams())}hasUniformTransition(){return this.internalState.uniformTransitions.active}get isLoaded(){return this.internalState&&!this.internalState.isAsyncPropLoading()}get wrapLongitude(){return this.props.wrapLongitude}isPickable(){return this.props.pickable&&this.props.visible}getModels(){return this.state&&(this.state.models||(this.state.model?[this.state.model]:[]))}getAttributeManager(){return this.internalState&&this.internalState.attributeManager}getCurrentLayer(){return this.internalState&&this.internalState.layer}getLoadOptions(){return this.props.loadOptions}project(e){const{viewport:i}=this.context,s=ove(e,{viewport:i,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem}),[o,r,a]=j9(s,i.pixelProjectionMatrix);return 2===e.length?[o,r]:[o,r,a]}unproject(e){const{viewport:i}=this.context;return i.unproject(e)}projectPosition(e){return function(n,t){const{viewport:e,coordinateSystem:i,coordinateOrigin:s,modelMatrix:o,fromCoordinateSystem:r,fromCoordinateOrigin:a}=function(n){const t=Ne({},n);let{coordinateSystem:e}=n;const{viewport:i,coordinateOrigin:s,fromCoordinateSystem:o,fromCoordinateOrigin:r}=n;return e===_s.DEFAULT&&(e=i.isGeospatial?_s.LNGLAT:_s.CARTESIAN),void 0===o&&(t.fromCoordinateSystem=e),void 0===r&&(t.fromCoordinateOrigin=s),t.coordinateSystem=e,t}(t),{geospatialOrigin:l,shaderCoordinateOrigin:c,offsetMode:d}=N_e(e,i,s),u=ove(n,{viewport:e,modelMatrix:o,coordinateSystem:r,coordinateOrigin:a,offsetMode:d});d&&function(n,t,e){n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2]}(u,u,e.projectPosition(l||c));return u}(e,{viewport:this.context.viewport,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem})}use64bitPositions(){const{coordinateSystem:e}=this.props;return e===_s.DEFAULT||e===_s.LNGLAT||e===_s.CARTESIAN}onHover(e,i){return!!this.props.onHover&&this.props.onHover(e,i)}onClick(e,i){return!!this.props.onClick&&this.props.onClick(e,i)}nullPickingColor(){return[0,0,0]}encodePickingColor(e,i=[]){return i[0]=e+1&255,i[1]=e+1>>8&255,i[2]=e+1>>8>>8&255,i}decodePickingColor(e){wu(e instanceof Uint8Array);const[i,s,o]=e;return i+256*s+65536*o-1}initializeState(){throw new Error("Layer ".concat(this," has not defined initializeState"))}getShaders(e){for(const i of this.props.extensions)e=iat(e,i.getShaders.call(this,i));return e}shouldUpdateState({changeFlags:o}){return o.propsOrDataChanged}updateState({oldProps:e,props:i,changeFlags:o}){const r=this.getAttributeManager();if(o.dataChanged&&r){const{dataChanged:c}=o;if(Array.isArray(c))for(const d of c)r.invalidateAll(d);else r.invalidateAll()}const l=i.highlightedObjectIndex>=0||i.pickable;if((e.highlightedObjectIndex>=0||e.pickable)!==l&&r){const{pickingColors:c,instancePickingColors:d}=r.attributes,u=c||d;u&&(l&&u.constant&&(u.constant=!1,r.invalidate(u.id)),!u.value&&!l&&(u.constant=!0,u.value=[0,0,0]))}}finalizeState(){for(const i of this.getModels())i.delete();const e=this.getAttributeManager();e&&e.finalize(),this.context.resourceManager.unsubscribe({consumerId:this.id}),this.internalState.uniformTransitions.clear(),this.internalState.finalize()}draw(e){for(const i of this.getModels())i.draw(e)}getPickingInfo({info:e}){const{index:s}=e;return s>=0&&Array.isArray(this.props.data)&&(e.object=this.props.data[s]),e}activateViewport(e){const i=this.internalState.viewport;this.internalState.viewport=e,(!i||!$ct({oldViewport:i,viewport:e}))&&(this.setChangeFlags({viewportChanged:!0}),this.isComposite?this.needsUpdate()&&this.setNeedsUpdate():this._update())}invalidateAttribute(e="all",i=""){const s=this.getAttributeManager();!s||("all"===e?s.invalidateAll():s.invalidate(e))}updateAttributes(e){for(const i of this.getModels())this._setModelAttributes(i,e)}_updateAttributes(e){const i=this.getAttributeManager();if(!i)return;const s=this.getNumInstances(e),o=this.getStartIndices(e);i.update({data:e.data,numInstances:s,startIndices:o,props:e,transitions:e.transitions,buffers:e.data.attributes,context:this,ignoreUnknownAttributes:!0});const r=i.getChangedAttributes({clearChangedFlags:!0});this.updateAttributes(r)}_updateAttributeTransition(){const e=this.getAttributeManager();e&&e.updateTransition()}_updateUniformTransition(){const{uniformTransitions:e}=this.internalState;if(e.active){const i=e.update(),s=Object.create(this.props);for(const o in i)Object.defineProperty(s,o,{value:i[o]});return s}return this.props}calculateInstancePickingColors(e,{numInstances:i}){if(e.constant)return;const s=Math.floor(bg.length/3);if(this.internalState.usesPickingColorCache=!0,s16777215&&$n.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")(),bg=Tk.allocate(bg,i,{size:3,copy:!0,maxCount:Math.max(i,16777215)});const o=Math.floor(bg.length/3),r=[];for(let a=s;a{const c={moduleParameters:e,uniforms:i,parameters:s,context:this.context};for(const d of this.props.extensions)d.draw.call(this,c,d);this.draw(c)})}finally{this.props=o}}getChangeFlags(){return this.internalState.changeFlags}setChangeFlags(e){const{changeFlags:i}=this.internalState;for(const o in e)if(e[o]){let r=!1;switch(o){case"dataChanged":Array.isArray(i[o])&&(i[o]=Array.isArray(e[o])?i[o].concat(e[o]):e[o],r=!0);default:i[o]||(i[o]=e[o],r=!0)}r&&yc("layer.changeFlag",this,o,e)}const s=i.dataChanged||i.updateTriggersChanged||i.propsChanged||i.extensionsChanged;i.propsOrDataChanged=s,i.somethingChanged=s||e.viewportChanged||e.stateChanged}clearChangeFlags(){this.internalState.changeFlags={dataChanged:!1,propsChanged:!1,updateTriggersChanged:!1,viewportChanged:!1,stateChanged:!1,extensionsChanged:!1,propsOrDataChanged:!1,somethingChanged:!1}}diffProps(e,i){const s=function(n,t){const e=E_e({newProps:n,oldProps:t,propTypes:V9(n),ignoreProps:{data:null,updateTriggers:null,extensions:null,transitions:null}}),i=function(n,t){if(null===t)return"oldProps is null, initial diff";let e=null;const{dataComparator:i,_dataDiff:s}=n;return i?i(n.data,t.data)||(e="Data comparator detected a change"):n.data!==t.data&&(e="A new data container was supplied"),e&&s&&(e=s(n.data,t.data)||e),e}(n,t);let s=!1;return i||(s=function(n,t){if(null===t)return"oldProps is null, initial diff";if("all"in n.updateTriggers&&I_e(n,t,"all"))return{all:!0};const e={};let i=!1;for(const s in n.updateTriggers)"all"!==s&&I_e(n,t,s)&&(e[s]=!0,i=e);return i}(n,t)),{dataChanged:i,propsChanged:e,updateTriggersChanged:s,extensionsChanged:Krt(n,t),transitionsChanged:qrt(n,t)}}(e,i);if(s.updateTriggersChanged)for(const o in s.updateTriggersChanged)s.updateTriggersChanged[o]&&this.invalidateAttribute(o);if(s.transitionsChanged)for(const o in s.transitionsChanged)this.internalState.uniformTransitions.add(o,i[o],e[o],e.transitions[o]);return this.setChangeFlags(s)}validateProps(){!function(n){const t=V9(n);for(const e in t){const i=t[e],{validate:s}=i;if(s&&!s(n[e],i))throw new Error("Invalid prop ".concat(e,": ").concat(n[e]))}}(this.props)}setModuleParameters(e){for(const i of this.getModels())i.updateModuleSettings(e)}updateAutoHighlight(e){this.props.autoHighlight&&this._updateAutoHighlight(e)}_updateAutoHighlight(e){const i={pickingSelectedColor:e.picked?e.color:null},{highlightColor:s}=this.props;e.picked&&"function"==typeof s&&(i.pickingHighlightColor=s(e)),this.setModuleParameters(i),this.setNeedsRedraw()}_updateModules({props:e,oldProps:i},s){const{autoHighlight:o,highlightedObjectIndex:r,highlightColor:a}=e;if(s||i.autoHighlight!==o||i.highlightedObjectIndex!==r||i.highlightColor!==a){const l={};o||(l.pickingSelectedColor=null),Array.isArray(a)&&(l.pickingHighlightColor=a),Number.isInteger(r)&&(l.pickingSelectedColor=r>=0?this.encodePickingColor(r):null),this.setModuleParameters(l)}}_getUpdateParams(){return{props:this.props,oldProps:this.internalState.getOldProps(),context:this.context,changeFlags:this.internalState.changeFlags}}_getNeedsRedraw(e){if(!this.internalState)return!1;let i=!1;i=i||this.internalState.needsRedraw&&this.id,this.internalState.needsRedraw=this.internalState.needsRedraw&&!e.clearRedrawFlags;const s=this.getAttributeManager(),o=s&&s.getNeedsRedraw(e);return i=i||o,i}_getAttributeManager(){return new Brt(this.context.gl,{id:this.props.id,stats:this.context.stats,timeline:this.context.timeline})}_initState(){wu(!this.internalState&&!this.state),wu(isFinite(this.props.coordinateSystem));const e=this._getAttributeManager();e&&e.addInstanced({instancePickingColors:{type:5121,size:3,noAlloc:!0,update:this.calculateInstancePickingColors}}),this.internalState=new xlt({attributeManager:e,layer:this}),this.clearChangeFlags(),this.state={},Object.defineProperty(this.state,"attributeManager",{get:()=>($n.deprecated("layer.state.attributeManager","layer.getAttributeManager()"),e)}),this.internalState.layer=this,this.internalState.uniformTransitions=new jrt(this.context.timeline),this.internalState.onAsyncPropUpdated=this._onAsyncPropUpdated.bind(this),this.internalState.setAsyncProps(this.props)}_transferState(e){yc("layer.matched",this,this===e);const{state:i,internalState:s}=e;this!==e&&(this.internalState=s,this.internalState.layer=this,this.state=i,this.internalState.setAsyncProps(this.props),this.diffProps(this.props,this.internalState.getOldProps()))}_onAsyncPropUpdated(){this.diffProps(this.props,this.internalState.getOldProps()),this.setNeedsUpdate()}}return n.layerName="Layer",n.defaultProps=Uct,n})(),X3=(()=>{class n extends HC{get isComposite(){return!0}get isLoaded(){return super.isLoaded&&this.getSubLayers().every(e=>e.isLoaded)}getSubLayers(){return this.internalState&&this.internalState.subLayers||[]}initializeState(){}setState(e){super.setState(e),this.setNeedsUpdate()}getPickingInfo({info:e}){const{object:i}=e;return i&&i.__source&&i.__source.parent&&i.__source.parent.id===this.id&&(e.object=i.__source.object,e.index=i.__source.index),e}renderLayers(){return null}filterSubLayer(e){return!0}shouldRenderSubLayer(e,i){const{_subLayerProps:s}=this.props;return i&&i.length||s&&s[e]}getSubLayerClass(e,i){const{_subLayerProps:s}=this.props;return s&&s[e]&&s[e].type||i}getSubLayerRow(e,i,s){return e.__source={parent:this,object:i,index:s},e}getSubLayerAccessor(e){if("function"==typeof e){const i={data:this.props.data,target:[]};return(s,o)=>s&&s.__source?(i.index=s.__source.index,e(s.__source.object,i)):e(s,o)}return e}getSubLayerProps(e={}){const{opacity:i,pickable:s,visible:o,parameters:r,getPolygonOffset:a,highlightedObjectIndex:l,autoHighlight:c,highlightColor:d,coordinateSystem:u,coordinateOrigin:h,wrapLongitude:f,positionFormat:m,modelMatrix:C,extensions:k,fetch:D,_subLayerProps:E}=this.props,O={opacity:i,pickable:s,visible:o,parameters:r,getPolygonOffset:a,highlightedObjectIndex:l,autoHighlight:c,highlightColor:d,coordinateSystem:u,coordinateOrigin:h,wrapLongitude:f,positionFormat:m,modelMatrix:C,extensions:k,fetch:D},z=E&&E[e.id],q=z&&z.updateTriggers,re=e.id||"sublayer";if(z){const ie=this.constructor._propTypes,Se=e.type?e.type._propTypes:{};for(const Te in z){const Ee=Se[Te]||ie[Te];Ee&&"accessor"===Ee.type&&(z[Te]=this.getSubLayerAccessor(z[Te]))}}Object.assign(O,e,z),O.id="".concat(this.props.id,"-").concat(re),O.updateTriggers=Ne(Ne({all:this.props.updateTriggers.all},e.updateTriggers),q);for(const ie of k){const Se=ie.getSubLayerProps.call(this,ie);Se&&Object.assign(O,Se,{updateTriggers:Object.assign(O.updateTriggers,Se.updateTriggers)})}return O}_updateAutoHighlight(e){for(const i of this.getSubLayers())i.updateAutoHighlight(e)}_getAttributeManager(){return null}_renderLayers(){let{subLayers:e}=this.internalState;const i=!e||this.needsUpdate();i&&(e=this.renderLayers(),e=x3(e,Boolean),this.internalState.subLayers=e),yc("compositeLayer.renderLayers",this,i,e);for(const s of e)s.parent=this}}return n.layerName="CompositeLayer",n})();function qct({data:n,getIndex:t,dataRange:e,replace:i}){const{startRow:s=0,endRow:o=1/0}=e,r=n.length;let a=r,l=r;for(let h=0;hh&&f>=s&&(a=h),f>=o){l=h;break}}let c=a;const d=l-a!==i.length,u=d&&n.slice(l);for(let h=0;h"const int COORDINATE_SYSTEM_".concat(n," = ").concat(_s[n],";")).join(""),Jct=Object.keys(gg).map(n=>"const int PROJECTION_MODE_".concat(n," = ").concat(gg[n],";")).join(""),edt="".concat(Qct,"\n").concat(Jct,"\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0;\nconst float GLOBE_RADIUS = 256.0;\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z;\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy;\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter;\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\nvec3 project_normal(vec3 vector) {\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n return normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n dy = clamp(dy, -1., 1.);\n }\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;\n if (project_uWrapLongitude) {\n x = mod(x + 180., 360.0) - 180.;\n }\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(y) * 0.5))\n );\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy) * WORLD_SCALE,\n project_size(position_world.z),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n position_world.xyz -= project_uCoordinateOrigin;\n }\n return project_offset_(position_world + project_uModelMatrix * vec4(position64Low, 0.0));\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\n"),tdt={},AW={name:"project",dependencies:[{name:"fp32",vs:"#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\nconst float TWO_PI = 6.2831854820251465;\nconst float PI_2 = 1.5707963705062866;\nconst float PI_16 = 0.1963495463132858;\n\nconst float SIN_TABLE_0 = 0.19509032368659973;\nconst float SIN_TABLE_1 = 0.3826834261417389;\nconst float SIN_TABLE_2 = 0.5555702447891235;\nconst float SIN_TABLE_3 = 0.7071067690849304;\n\nconst float COS_TABLE_0 = 0.9807852506637573;\nconst float COS_TABLE_1 = 0.9238795042037964;\nconst float COS_TABLE_2 = 0.8314695954322815;\nconst float COS_TABLE_3 = 0.7071067690849304;\n\nconst float INVERSE_FACTORIAL_3 = 1.666666716337204e-01;\nconst float INVERSE_FACTORIAL_5 = 8.333333767950535e-03;\nconst float INVERSE_FACTORIAL_7 = 1.9841270113829523e-04;\nconst float INVERSE_FACTORIAL_9 = 2.75573188446287533e-06;\n\nfloat sin_taylor_fp32(float a) {\n float r, s, t, x;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n x = -a * a;\n s = a;\n r = a;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_3;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_5;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_7;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_9;\n s = s + t;\n\n return s;\n}\n\nvoid sincos_taylor_fp32(float a, out float sin_t, out float cos_t) {\n if (a == 0.0) {\n sin_t = 0.0;\n cos_t = 1.0;\n }\n sin_t = sin_taylor_fp32(a);\n cos_t = sqrt(1.0 - sin_t * sin_t);\n}\n\nfloat tan_taylor_fp32(float a) {\n float sin_a;\n float cos_a;\n\n if (a == 0.0) {\n return 0.0;\n }\n float z = floor(a / TWO_PI);\n float r = a - TWO_PI * z;\n\n float t;\n float q = floor(r / PI_2 + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return 0.0 / 0.0;\n }\n\n t = r - PI_2 * q;\n\n q = floor(t / PI_16 + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return 0.0 / 0.0;\n } else {\n t = t - PI_16 * q;\n }\n\n float u = 0.0;\n float v = 0.0;\n\n float sin_t, cos_t;\n float s, c;\n sincos_taylor_fp32(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0;\n v = SIN_TABLE_0;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1;\n v = SIN_TABLE_1;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2;\n v = SIN_TABLE_2;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3;\n v = SIN_TABLE_3;\n }\n if (k > 0) {\n s = u * sin_t + v * cos_t;\n c = u * cos_t - v * sin_t;\n } else {\n s = u * sin_t - v * cos_t;\n c = u * cos_t + v * sin_t;\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return sin_a / cos_a;\n}\n#endif\n\nfloat tan_fp32(float a) {\n#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n return tan_taylor_fp32(a);\n#else\n return tan(a);\n#endif\n}\n",fs:null}],vs:edt,getUniforms:function(n=tdt){return n.viewport?function({viewport:n,devicePixelRatio:t=1,modelMatrix:e=null,coordinateSystem:i=_s.DEFAULT,coordinateOrigin:s,autoWrapLongitude:o=!1}={}){i===_s.DEFAULT&&(i=n.isGeospatial?_s.LNGLAT:_s.CARTESIAN);const r=Oat({viewport:n,devicePixelRatio:t,coordinateSystem:i,coordinateOrigin:s});return r.project_uWrapLongitude=o,r.project_uModelMatrix=e||Iat,r}(n):{}}},Bk={name:"project32",dependencies:[AW],vs:"\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset, out vec4 commonPosition\n) {\n vec3 projectedPosition = project_position(position, position64Low);\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n // offset is specified as ENU\n // when in globe projection, rotate offset so that the ground alighs with the surface of the globe\n mat3 rotation = project_get_orientation_matrix(projectedPosition);\n offset = rotation * offset;\n }\n commonPosition = vec4(projectedPosition + offset, 1.0);\n return project_common_position_to_clipspace(commonPosition);\n}\n\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64Low, vec3 offset\n) {\n vec4 commonPosition;\n return project_position_to_clipspace(position, position64Low, offset, commonPosition);\n}\n"},sdt={pickingSelectedColor:null,pickingHighlightColor:new Uint8Array([0,255,255,255]),pickingActive:!1,pickingAttribute:!1},Vk=Ne({inject:{"vs:DECKGL_FILTER_COLOR":"\n picking_setPickingColor(geometry.pickingColor);\n // for picking depth values\n picking_setPickingAttribute(geometry.position.z);\n ","fs:DECKGL_FILTER_COLOR":{order:99,injection:"\n // use highlight color if this fragment belongs to the selected object.\n color = picking_filterHighlightColor(color);\n\n // use picking color if rendering to picking FBO.\n color = picking_filterPickingColor(color);\n "}}},{name:"picking",vs:"uniform bool picking_uActive;\nuniform bool picking_uAttribute;\nuniform vec3 picking_uSelectedColor;\nuniform bool picking_uSelectedColorValid;\n\nout vec4 picking_vRGBcolor_Avalid;\n\nconst float COLOR_SCALE = 1. / 255.;\n\nbool picking_isColorValid(vec3 color) {\n return dot(color, vec3(1.0)) > 0.001;\n}\n\nbool isVertexPicked(vec3 vertexColor) {\n return\n picking_uSelectedColorValid &&\n !picking_isColorValid(abs(vertexColor - picking_uSelectedColor));\n}\n\nvoid picking_setPickingColor(vec3 pickingColor) {\n if (picking_uActive) {\n picking_vRGBcolor_Avalid.a = float(picking_isColorValid(pickingColor));\n\n if (!picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = pickingColor * COLOR_SCALE;\n }\n } else {\n picking_vRGBcolor_Avalid.a = float(isVertexPicked(pickingColor));\n }\n}\n\nvoid picking_setPickingAttribute(float value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.r = value;\n }\n}\nvoid picking_setPickingAttribute(vec2 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rg = value;\n }\n}\nvoid picking_setPickingAttribute(vec3 value) {\n if (picking_uAttribute) {\n picking_vRGBcolor_Avalid.rgb = value;\n }\n}\n",fs:"uniform bool picking_uActive;\nuniform vec3 picking_uSelectedColor;\nuniform vec4 picking_uHighlightColor;\n\nin vec4 picking_vRGBcolor_Avalid;\nvec4 picking_filterHighlightColor(vec4 color) {\n if (picking_uActive) {\n return color;\n }\n bool selected = bool(picking_vRGBcolor_Avalid.a);\n\n if (selected) {\n float highLightAlpha = picking_uHighlightColor.a;\n float blendedAlpha = highLightAlpha + color.a * (1.0 - highLightAlpha);\n float highLightRatio = highLightAlpha / blendedAlpha;\n\n vec3 blendedRGB = mix(color.rgb, picking_uHighlightColor.rgb, highLightRatio);\n return vec4(blendedRGB, blendedAlpha);\n } else {\n return color;\n }\n}\nvec4 picking_filterPickingColor(vec4 color) {\n if (picking_uActive) {\n if (picking_vRGBcolor_Avalid.a == 0.0) {\n discard;\n }\n return picking_vRGBcolor_Avalid;\n }\n return color;\n}\nvec4 picking_filterColor(vec4 color) {\n vec4 highightColor = picking_filterHighlightColor(color);\n return picking_filterPickingColor(highightColor);\n}\n\n",getUniforms:function(n=sdt){const t={};if(void 0!==n.pickingSelectedColor)if(n.pickingSelectedColor){const e=n.pickingSelectedColor.slice(0,3);t.picking_uSelectedColorValid=1,t.picking_uSelectedColor=e}else t.picking_uSelectedColorValid=0;if(n.pickingHighlightColor){const e=Array.from(n.pickingHighlightColor,i=>i/255);Number.isFinite(e[3])||(e[3]=1),t.picking_uHighlightColor=e}return void 0!==n.pickingActive&&(t.picking_uActive=Boolean(n.pickingActive),t.picking_uAttribute=Boolean(n.pickingAttribute)),t}}),Hve={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6};class zk{static get DRAW_MODE(){return Hve}constructor(t={}){const{id:e=Iv("geometry"),drawMode:i=Hve.TRIANGLES,attributes:s={},indices:o=null,vertexCount:r=null}=t;this.id=e,this.drawMode=0|i,this.attributes={},this.userData={},this._setAttributes(s,o),this.vertexCount=r||this._calculateVertexCount(this.attributes,this.indices)}get mode(){return this.drawMode}getVertexCount(){return this.vertexCount}getAttributes(){return this.indices?Ne({indices:this.indices},this.attributes):this.attributes}_print(t){return"Geometry ".concat(this.id," attribute ").concat(t)}_setAttributes(t,e){e&&(this.indices=ArrayBuffer.isView(e)?{value:e,size:1}:e);for(const i in t){let s=t[i];s=ArrayBuffer.isView(s)?{value:s}:s,nn(ArrayBuffer.isView(s.value),"".concat(this._print(i),": must be typed array or object with value as typed array")),("POSITION"===i||"positions"===i)&&!s.size&&(s.size=3),"indices"===i?(nn(!this.indices),this.indices=s):this.attributes[i]=s}return this.indices&&void 0!==this.indices.isIndexed&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this}_calculateVertexCount(t,e){if(e)return e.value.length;let i=1/0;for(const s in t){const o=t[s],{value:r,size:a,constant:l}=o;!l&&r&&a>=1&&(i=Math.min(i,r.length/a))}return nn(Number.isFinite(i)),i}}function Gve(n,t){if(!n)throw new Error(t)}const Cg={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global,document:"undefined"!=typeof document&&document},jve=Cg.global||Cg.self||Cg.window,cdt="object"!=typeof process||"[object process]"!==String(process)||process.browser,$ve="undefined"!=typeof process&&process.version&&/v([0-9]*)/.exec(process.version),{_parseImageNode:ddt}=($ve&&parseFloat($ve[1]),jve),FW="undefined"!=typeof Image,OW="undefined"!=typeof ImageBitmap,udt=Boolean(ddt),RW=!!cdt||udt;function Uve(n){const t=function(n){return"undefined"!=typeof ImageBitmap&&n instanceof ImageBitmap?"imagebitmap":"undefined"!=typeof Image&&n instanceof Image?"image":n&&"object"==typeof n&&n.data&&n.width&&n.height?"data":null}(n);if(!t)throw new Error("Not an image");return t}function Wve(n){switch(Uve(n)){case"data":return n;case"image":case"imagebitmap":const t=document.createElement("canvas"),e=t.getContext("2d");if(!e)throw new Error("getImageData");return t.width=n.width,t.height=n.height,e.drawImage(n,0,0),e.getImageData(0,0,n.width,n.height);default:throw new Error("getImageData")}}const fdt=/^data:image\/svg\+xml/,gdt=/\.svg((\?|#).*)?$/;function PW(n){return n&&(fdt.test(n)||gdt.test(n))}function mdt(n,t){if(PW(t)){const i=(new TextDecoder).decode(n);return`data:image/svg+xml;base64,${btoa(i)}`}return Xve(n,t)}function Xve(n,t){if(PW(t))throw new Error("SVG cannot be parsed directly to imagebitmap");return new Blob([new Uint8Array(n)])}function Yve(n,t,e){return LW.apply(this,arguments)}function LW(){return(LW=Xe(function*(n,t,e){const i=mdt(n,e),s=self.URL||self.webkitURL,o="string"!=typeof i&&s.createObjectURL(i);try{return yield ydt(o||i,t)}finally{o&&s.revokeObjectURL(o)}})).apply(this,arguments)}function ydt(n,t){return NW.apply(this,arguments)}function NW(){return(NW=Xe(function*(n,t){const e=new Image;return e.src=n,t.image&&t.image.decode&&e.decode?(yield e.decode(),e):yield new Promise((i,s)=>{try{e.onload=()=>i(e),e.onerror=o=>s(new Error(`Could not load image ${n}: ${o}`))}catch(o){s(o)}})})).apply(this,arguments)}const _dt={};let Kve=!0;function vdt(n,t,e){return BW.apply(this,arguments)}function BW(){return(BW=Xe(function*(n,t,e){let i;i=PW(e)?yield Yve(n,t,e):Xve(n,e);const s=t&&t.imagebitmap;return yield bdt(i,s)})).apply(this,arguments)}function bdt(n){return VW.apply(this,arguments)}function VW(){return(VW=Xe(function*(n,t=null){if((Cdt(t)||!Kve)&&(t=null),t)try{return yield createImageBitmap(n,t)}catch(e){console.warn(e),Kve=!1}return yield createImageBitmap(n)})).apply(this,arguments)}function Cdt(n){for(const t in n||_dt)return!1;return!0}const xg=!1,NA=!0;function Zve(n){const t=BA(n);return function(n){const t=BA(n);return t.byteLength>=24&&2303741511===t.getUint32(0,xg)?{mimeType:"image/png",width:t.getUint32(16,xg),height:t.getUint32(20,xg)}:null}(t)||function(n){const t=BA(n);if(!(t.byteLength>=3&&65496===t.getUint16(0,xg)&&255===t.getUint8(2)))return null;const{tableMarkers:i,sofMarkers:s}=function(){const n=new Set([65499,65476,65484,65501,65534]);for(let e=65504;e<65520;++e)n.add(e);return{tableMarkers:n,sofMarkers:new Set([65472,65473,65474,65475,65477,65478,65479,65481,65482,65483,65485,65486,65487,65502])}}();let o=2;for(;o+9=10&&1195984440===t.getUint32(0,xg)?{mimeType:"image/gif",width:t.getUint16(6,NA),height:t.getUint16(8,NA)}:null}(t)||function(n){const t=BA(n);return t.byteLength>=14&&16973===t.getUint16(0,xg)&&t.getUint32(2,NA)===t.byteLength?{mimeType:"image/bmp",width:t.getUint32(18,NA),height:t.getUint32(22,NA)}:null}(t)}function BA(n){if(n instanceof DataView)return n;if(ArrayBuffer.isView(n))return new DataView(n.buffer);if(n instanceof ArrayBuffer)return new DataView(n);throw new Error("toDataView")}function Ddt(n,t){const{mimeType:e}=Zve(n)||{},{_parseImageNode:i}=jve;return Gve(i),i(n,e,t)}function zW(){return(zW=Xe(function*(n,t,e){const s=((t=t||{}).image||{}).type||"auto",{url:o}=e||{};let a;switch(Edt(s)){case"imagebitmap":a=yield vdt(n,t,o);break;case"image":a=yield Yve(n,t,o);break;case"data":a=yield Ddt(n,t);break;default:Gve(!1)}return"data"===s&&(a=Wve(a)),a})).apply(this,arguments)}function Edt(n){switch(n){case"auto":case"data":return function(){if(OW)return"imagebitmap";if(FW)return"image";if(RW)return"data";throw new Error("Install '@loaders.gl/polyfills' to parse images under Node.js")}();default:return function(n){switch(n){case"auto":return OW||FW||RW;case"imagebitmap":return OW;case"image":return FW;case"data":return RW;default:throw new Error(`@loaders.gl/images: image ${n} not supported in this environment`)}}(n),n}}const Qve={id:"image",module:"images",name:"Images",version:"3.0.9",mimeTypes:["image/png","image/jpeg","image/gif","image/webp","image/bmp","image/vnd.microsoft.icon","image/svg+xml"],extensions:["png","jpg","jpeg","gif","webp","bmp","ico","svg"],parse:function(n,t,e){return zW.apply(this,arguments)},tests:[n=>Boolean(Zve(new DataView(n)))],options:{image:{type:"auto",decode:!0}}},Jve=()=>{},Fdt={10241:9987,10240:9729,10242:33071,10243:33071};function Odt(n){return Math.pow(2,Math.ceil(Math.log2(n)))}function Rdt(n,t,e,i){return e===t.width&&i===t.height?t:(n.canvas.height=i,n.canvas.width=e,n.clearRect(0,0,n.canvas.width,n.canvas.height),n.drawImage(t,0,0,t.width,t.height,0,0,e,i),n.canvas)}function VA(n){return n&&(n.id||n.url)}function ebe(n,t,e){for(let i=0;i0){const{mapping:i,xOffset:s,yOffset:o,rowHeight:r,canvasHeight:a}=function({icons:n,buffer:t,mapping:e={},xOffset:i=0,yOffset:s=0,rowHeight:o=0,canvasWidth:r}){let a=[];for(let l=0;lr&&(ebe(e,a,s),i=0,s=o+s+t,o=0,a=[]),a.push({icon:c,xOffset:i}),i=i+h+t,o=Math.max(o,u)}}return a.length>0&&ebe(e,a,s),{mapping:e,rowHeight:o,xOffset:i,yOffset:s,canvasWidth:r,canvasHeight:Odt(o+s+t)}}({icons:e,buffer:this._buffer,canvasWidth:this._canvasWidth,mapping:this._mapping,rowHeight:this._rowHeight,xOffset:this._xOffset,yOffset:this._yOffset});this._rowHeight=r,this._mapping=i,this._xOffset=s,this._yOffset=o,this._canvasHeight=a,this._texture||(this._texture=new Lh(this.gl,{width:this._canvasWidth,height:this._canvasHeight,parameters:Fdt})),this._texture.height!==this._canvasHeight&&(this._texture=function(n,t,e,i){const s=t.width,o=t.height,r=bye(t,{width:e,height:i});return function(n,t,e={}){const{sourceX:i=0,sourceY:s=0,targetMipmaplevel:o=0,targetInternalFormat:r=6408}=e;let{targetX:a,targetY:l,targetZ:c,width:d,height:u}=e;const{framebuffer:h,deleteFramebuffer:f}=mA(n);nn(h);const{gl:m,handle:C}=h,k=void 0!==a||void 0!==l||void 0!==c;a=a||0,l=l||0,c=c||0;const D=m.bindFramebuffer(36160,C);nn(t);let E=null;if(t instanceof BC&&(E=t,d=Number.isFinite(d)?d:E.width,u=Number.isFinite(u)?u:E.height,E.bind(0),t=E.target),k)switch(t){case 3553:case 34067:m.copyTexSubImage2D(t,o,a,l,i,s,d,u);break;case 35866:case 32879:mc(m).copyTexSubImage3D(t,o,a,l,c,i,s,d,u)}else m.copyTexImage2D(t,o,r,i,s,d,u,0);E&&E.unbind(),m.bindFramebuffer(36160,D||null),f&&h.delete()}(t,r,{targetY:0,width:s,height:o}),t.delete(),r}(0,this._texture,this._canvasWidth,this._canvasHeight)),this.onUpdate(),this._loadIcons(e)}}_loadIcons(t){const e=this._canvas.getContext("2d");for(const i of t)this._pendingCount++,q3(i.url,Qve,this._loadOptions).then(s=>{const o=VA(i),{x:r,y:a,width:l,height:c}=this._mapping[o],d=Rdt(e,s,l,c);this._texture.setSubImageData({data:d,x:r,y:a,width:l,height:c}),this._texture.generateMipmap(),this.onUpdate()}).catch(s=>{this.onError({url:i.url,source:i.source,sourceIndex:i.sourceIndex,loadOptions:this._loadOptions,error:s})}).finally(()=>{this._pendingCount--})}}const tbe=[0,0,0,255],Vdt={iconAtlas:{type:"image",value:null,async:!0},iconMapping:{type:"object",value:{},async:!0},sizeScale:{type:"number",value:1,min:0},billboard:!0,sizeUnits:"pixels",sizeMinPixels:{type:"number",min:0,value:0},sizeMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},alphaCutoff:{type:"number",value:.05,min:0,max:1},getPosition:{type:"accessor",value:n=>n.position},getIcon:{type:"accessor",value:n=>n.icon},getColor:{type:"accessor",value:tbe},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]},onIconError:{type:"function",value:null,compare:!1,optional:!0}};let nbe=(()=>{class n extends HC{getShaders(){return super.getShaders({vs:"#define SHADER_NAME icon-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec4 instanceIconFrames;\nattribute float instanceColorModes;\nattribute vec2 instanceOffsets;\nattribute vec2 instancePixelOffset;\n\nuniform float sizeScale;\nuniform vec2 iconsTextureDim;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform bool billboard;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = angle * PI / 180.0;\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n\n vec2 iconSize = instanceIconFrames.zw;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale), \n sizeMinPixels, sizeMaxPixels\n );\n float instanceScale = iconSize.y == 0.0 ? 0.0 : sizePixels / iconSize.y;\n vec2 pixelOffset = positions / 2.0 * iconSize + instanceOffsets;\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles) * instanceScale;\n pixelOffset += instancePixelOffset;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position); \n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTextureCoords = mix(\n instanceIconFrames.xy,\n instanceIconFrames.xy + iconSize,\n (positions.xy + 1.0) / 2.0\n ) / iconsTextureDim;\n\n vColor = instanceColors;\n DECKGL_FILTER_COLOR(vColor, geometry);\n\n vColorMode = instanceColorModes;\n}\n",fs:"#define SHADER_NAME icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float alphaCutoff;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec4 texColor = texture2D(iconsTexture, vTextureCoords);\n vec3 color = mix(texColor.rgb, vColor.rgb, vColorMode);\n float a = texColor.a * opacity * vColor.a;\n\n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color, a);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[Bk,Vk]})}initializeState(){this.state={iconManager:new Bdt(this.context.gl,{onUpdate:this._onUpdate.bind(this),onError:this._onError.bind(this)})},this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceOffsets:{size:2,accessor:"getIcon",transform:this.getInstanceOffset},instanceIconFrames:{size:4,accessor:"getIcon",transform:this.getInstanceIconFrame},instanceColorModes:{size:1,type:5121,accessor:"getIcon",transform:this.getInstanceColorMode},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:tbe},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instancePixelOffset:{size:2,transition:!0,accessor:"getPixelOffset"}})}updateState({oldProps:e,props:i,changeFlags:s}){super.updateState({props:i,oldProps:e,changeFlags:s});const o=this.getAttributeManager(),{iconAtlas:r,iconMapping:a,data:l,getIcon:c}=i,{iconManager:d}=this.state;d.setProps({loadOptions:i.loadOptions});let u=!1;if(r||this.internalState.isAsyncPropLoading("iconAtlas")?(e.iconAtlas!==i.iconAtlas&&d.setProps({iconAtlas:r,autoPacking:!1}),e.iconMapping!==i.iconMapping&&(d.setProps({iconMapping:a}),u=!0)):d.setProps({autoPacking:!0}),(s.dataChanged||s.updateTriggersChanged&&(s.updateTriggersChanged.all||s.updateTriggersChanged.getIcon))&&d.setProps({data:l,getIcon:c}),u&&(o.invalidate("instanceOffsets"),o.invalidate("instanceIconFrames"),o.invalidate("instanceColorModes")),s.extensionsChanged){var f;const{gl:m}=this.context;null===(f=this.state.model)||void 0===f||f.delete(),this.state.model=this._getModel(m),o.invalidateAll()}}get isLoaded(){return super.isLoaded&&this.state.iconManager.isLoaded}finalizeState(){super.finalizeState(),this.state.iconManager.finalize()}draw({uniforms:e}){const{sizeScale:i,sizeMinPixels:s,sizeMaxPixels:o,sizeUnits:r,billboard:a,alphaCutoff:l}=this.props,{iconManager:c}=this.state,{viewport:d}=this.context,u=c.getTexture();u&&this.state.model.setUniforms(e).setUniforms({iconsTexture:u,iconsTextureDim:[u.width,u.height],sizeScale:i*("pixels"===r?d.metersPerPixel:1),sizeMinPixels:s,sizeMaxPixels:o,billboard:a,alphaCutoff:l}).draw()}_getModel(e){return new Rv(e,yn(Ne({},this.getShaders()),{id:this.props.id,geometry:new zk({drawMode:6,attributes:{positions:{size:2,value:new Float32Array([-1,-1,-1,1,1,1,1,-1])}}}),isInstanced:!0}))}_onUpdate(){this.setNeedsRedraw()}_onError(e){const{onIconError:i}=this.getCurrentLayer().props;i?i(e):$n.error(e.error)()}getInstanceOffset(e){const i=this.state.iconManager.getIconMapping(e);return[i.width/2-i.anchorX||0,i.height/2-i.anchorY||0]}getInstanceColorMode(e){return this.state.iconManager.getIconMapping(e).mask?1:0}getInstanceIconFrame(e){const i=this.state.iconManager.getIconMapping(e);return[i.x||0,i.y||0,i.width||0,i.height||0]}}return n.layerName="IconLayer",n.defaultProps=Vdt,n})();const ibe=[0,0,0,255],Gdt={radiusUnits:"meters",radiusScale:{type:"number",min:0,value:1},radiusMinPixels:{type:"number",min:0,value:0},radiusMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},lineWidthUnits:"meters",lineWidthScale:{type:"number",min:0,value:1},lineWidthMinPixels:{type:"number",min:0,value:0},lineWidthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},stroked:!1,filled:!0,billboard:!1,antialiasing:!0,getPosition:{type:"accessor",value:n=>n.position},getRadius:{type:"accessor",value:1},getFillColor:{type:"accessor",value:ibe},getLineColor:{type:"accessor",value:ibe},getLineWidth:{type:"accessor",value:1},strokeWidth:{deprecatedFor:"getLineWidth"},outline:{deprecatedFor:"stroked"},getColor:{deprecatedFor:["getFillColor","getLineColor"]}};let jdt=(()=>{class n extends HC{getShaders(){return super.getShaders({vs:"#define SHADER_NAME scatterplot-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceRadius;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float lineWidthScale;\nuniform float lineWidthMinPixels;\nuniform float lineWidthMaxPixels;\nuniform float stroked;\nuniform bool filled;\nuniform bool billboard;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n outerRadiusPixels = clamp(\n project_size_to_pixel(radiusScale * instanceRadius),\n radiusMinPixels, radiusMaxPixels\n );\n float lineWidthPixels = clamp(\n project_size_to_pixel(lineWidthScale * instanceLineWidths),\n lineWidthMinPixels, lineWidthMaxPixels\n );\n outerRadiusPixels += stroked * lineWidthPixels / 2.0;\n unitPosition = positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n innerUnitRadius = 1.0 - stroked * lineWidthPixels / outerRadiusPixels;\n \n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = positions * outerRadiusPixels;\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset = positions * project_pixel_size(outerRadiusPixels);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset, geometry.position);\n }\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n",fs:"#define SHADER_NAME scatterplot-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool filled;\nuniform float stroked;\nuniform bool antialiasing;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition) * outerRadiusPixels;\n float inCircle = antialiasing ? \n smoothedge(distToCenter, outerRadiusPixels) : \n step(distToCenter, outerRadiusPixels);\n\n if (inCircle == 0.0) {\n discard;\n }\n\n if (stroked > 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (filled) {\n gl_FragColor = vFillColor;\n } else {\n discard;\n }\n\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[Bk,Vk]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceRadius:{size:1,transition:!0,accessor:"getRadius",defaultValue:1},instanceFillColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}updateState({props:e,oldProps:i,changeFlags:s}){if(super.updateState({props:e,oldProps:i,changeFlags:s}),s.extensionsChanged){var o;const{gl:r}=this.context;null===(o=this.state.model)||void 0===o||o.delete(),this.state.model=this._getModel(r),this.getAttributeManager().invalidateAll()}}draw({uniforms:e}){const{viewport:i}=this.context,{radiusUnits:s,radiusScale:o,radiusMinPixels:r,radiusMaxPixels:a,stroked:l,filled:c,billboard:d,antialiasing:u,lineWidthUnits:h,lineWidthScale:f,lineWidthMinPixels:m,lineWidthMaxPixels:C}=this.props,k="pixels"===s?i.metersPerPixel:1,D="pixels"===h?i.metersPerPixel:1;this.state.model.setUniforms(e).setUniforms({stroked:l?1:0,filled:c,billboard:d,antialiasing:u,radiusScale:o*k,radiusMinPixels:r,radiusMaxPixels:a,lineWidthScale:f*D,lineWidthMinPixels:m,lineWidthMaxPixels:C}).draw()}_getModel(e){return new Rv(e,yn(Ne({},this.getShaders()),{id:this.props.id,geometry:new zk({drawMode:6,vertexCount:4,attributes:{positions:{size:3,value:new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,1,0])}}}),isInstanced:!0}))}}return n.layerName="ScatterplotLayer",n.defaultProps=Gdt,n})();const obe=[],Udt={getIconOffsets:{type:"accessor",value:n=>n.offsets},alphaCutoff:.001,smoothing:.1,outlineWidth:0,outlineColor:{type:"color",value:[0,0,0,255]}};let Wdt=(()=>{class n extends nbe{getShaders(){return yn(Ne({},super.getShaders()),{fs:"#define SHADER_NAME multi-icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float gamma;\nuniform bool sdf;\nuniform float alphaCutoff;\nuniform float buffer;\nuniform float outlineBuffer;\nuniform vec4 outlineColor;\n\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n if (!picking_uActive) {\n float alpha = texture2D(iconsTexture, vTextureCoords).a;\n vec4 color = vColor;\n if (sdf) {\n float distance = alpha;\n alpha = smoothstep(buffer - gamma, buffer + gamma, distance);\n\n if (outlineBuffer > 0.0) {\n float inFill = alpha;\n float inBorder = smoothstep(outlineBuffer - gamma, outlineBuffer + gamma, distance);\n color = mix(outlineColor, vColor, inFill);\n alpha = inBorder;\n }\n }\n float a = alpha * color.a;\n \n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color.rgb, a * opacity);\n }\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n"})}initializeState(){super.initializeState(),this.getAttributeManager().addInstanced({instanceOffsets:{size:2,accessor:"getIconOffsets"},instancePickingColors:{type:5121,size:3,accessor:(i,{index:s,target:o})=>this.encodePickingColor(s,o)}})}updateState(e){super.updateState(e);const{props:i,oldProps:s}=e;let{outlineColor:o}=i;o!==s.outlineColor&&(o=o.map(r=>r/255),o[3]=Number.isFinite(o[3])?o[3]:1,this.setState({outlineColor:o})),!i.sdf&&i.outlineWidth&&$n.warn("".concat(this.id,": fontSettings.sdf is required to render outline"))()}draw(e){const{sdf:i,smoothing:s,outlineWidth:o}=this.props,{outlineColor:r}=this.state;e.uniforms=yn(Ne({},e.uniforms),{buffer:.75,outlineBuffer:o?Math.max(s,.75*(1-o)):-1,gamma:s,sdf:Boolean(i),outlineColor:r}),super.draw(e)}getInstanceOffset(e){return e?Array.from(e).map(i=>super.getInstanceOffset(i)):obe}getInstanceColorMode(e){return 1}getInstanceIconFrame(e){return e?Array.from(e).map(i=>super.getInstanceIconFrame(i)):obe}}return n.layerName="MultiIconLayer",n.defaultProps=Udt,n})();var qdt=Pt(2),Xdt=Pt.n(qdt);const Kdt=[];function Zdt(n){return Math.pow(2,Math.ceil(Math.log2(n)))}function rbe(n,t,e,i){let s=0;for(let o=t;oi&&(ra){let u=rbe(n,a,l,s);c+u>i&&(ri&&(u=abe(n,a,l,i,s,o),r=o[o.length-1])),a=l,c+=u}}(n,s,o,e,i,r),r}function tut(n,t,e,i,s,o){let r=0,a=0;for(let l=t;l0,d=[0,0],u=[];let h=0,f=0,m=0;for(let C=0;C<=o;C++){const k=n[C];if(("\n"===k||C===o)&&(m=C),m>f){const D=c?eut(n,e,i,s,f,m):Kdt;for(let E=0;E<=D.length;E++){const O=0===E?f:D[E-1],z=Ei===t);e>=0&&this._order.splice(e,1)}_appendOrder(t){this._order.push(t)}}(3),aut=["fontFamily","fontWeight","characterSet","fontSize","sdf","buffer","cutoff","radius"];function cut(n,t){for(let e=0;e{r in t&&(this.props[r]=t[r])});const e=this._key;this._key=this._getKey();const i=function(n,t){const e=HW.get(n);if(!e)return t;const i=[];let o=Object.keys(e.mapping);o=new Set(o);let r=t;return r instanceof Array&&(r=new Set(r)),r.forEach(a=>{o.has(a)||i.push(a)}),i}(this._key,this.props.characterSet),s=HW.get(this._key);if(s&&0===i.length)return void(this._key!==e&&(this._atlas=s));const o=this._generateFontAtlas(this._key,i,s);this._atlas=o,HW.set(this._key,o)}_generateFontAtlas(t,e,i){const{fontFamily:s,fontWeight:o,fontSize:r,buffer:a,sdf:l,radius:c,cutoff:d}=this.props;let u=i&&i.data;u||(u=document.createElement("canvas"),u.width=1024);const h=u.getContext("2d");_be(h,s,r,o);const{mapping:f,canvasHeight:m,xOffset:C,yOffset:k}=function({characterSet:n,getFontWidth:t,fontHeight:e,buffer:i,maxCanvasWidth:s,mapping:o={},xOffset:r=0,yOffset:a=0}){let l=0,c=r,d=0;for(const h of n)if(!o[h]){const f=t(h,d++);c+f+2*i>s&&(c=0,l++),o[h]={x:c+i,y:a+l*(e+2*i)+i,width:f,height:e},c+=f+2*i}const u=e+2*i;return{mapping:o,xOffset:c,yOffset:a+l*u,canvasHeight:Zdt(a+(l+1)*u)}}(Ne({getFontWidth:D=>h.measureText(D).width,fontHeight:1.2*r,buffer:a,characterSet:e,maxCanvasWidth:1024},i&&{mapping:i.mapping,xOffset:i.xOffset,yOffset:i.yOffset}));if(u.height!==m){const D=h.getImageData(0,0,u.width,u.height);u.height=m,h.putImageData(D,0,0)}if(_be(h,s,r,o),l){const D=new(Xdt())(r,a,c,d,s,o),E=h.getImageData(0,0,D.size,D.size);for(const O of e)cut(D.draw(O),E),h.putImageData(E,f[O].x-a,f[O].y+a)}else for(const D of e)h.fillText(D,f[D].x,f[D].y+.9*r);return{xOffset:C,yOffset:k,mapping:f,data:u,width:u.width,height:u.height}}_getKey(){const{fontFamily:t,fontWeight:e,fontSize:i,buffer:s,sdf:o,radius:r,cutoff:a}=this.props;return o?"".concat(t," ").concat(e," ").concat(i," ").concat(s," ").concat(r," ").concat(a):"".concat(t," ").concat(e," ").concat(i," ").concat(s)}}const put={billboard:!0,sizeScale:1,sizeUnits:"pixels",sizeMinPixels:0,sizeMaxPixels:Number.MAX_SAFE_INTEGER,padding:{type:"array",value:[0,0,0,0]},getPosition:{type:"accessor",value:n=>n.position},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]},getBoundingRect:{type:"accessor",value:[0,0,0,0]},getFillColor:{type:"accessor",value:[0,0,0,255]},getLineColor:{type:"accessor",value:[0,0,0,255]},getLineWidth:{type:"accessor",value:1}};let fut=(()=>{class n extends HC{getShaders(){return super.getShaders({vs:"#define SHADER_NAME text-background-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute vec4 instanceRects;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec2 instancePixelOffsets;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform bool billboard;\nuniform float opacity;\nuniform float sizeScale;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform vec4 padding;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying float vLineWidth;\nvarying vec2 uv;\nvarying vec2 dimensions;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = radians(angle);\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n vLineWidth = instanceLineWidths;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale),\n sizeMinPixels, sizeMaxPixels\n );\n\n dimensions = instanceRects.zw * sizePixels + padding.xy + padding.zw;\n\n vec2 pixelOffset = (positions * instanceRects.zw + instanceRects.xy) * sizePixels + mix(-padding.xy, padding.zw, positions);\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles);\n pixelOffset += instancePixelOffsets;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position);\n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n",fs:"#define SHADER_NAME text-background-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool stroked;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying float vLineWidth;\nvarying vec2 uv;\nvarying vec2 dimensions;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec2 pixelPosition = uv * dimensions;\n if (stroked) {\n float distToEdge = min(\n min(pixelPosition.x, dimensions.x - pixelPosition.x),\n min(pixelPosition.y, dimensions.y - pixelPosition.y)\n );\n float isBorder = smoothedge(distToEdge, vLineWidth);\n gl_FragColor = mix(vFillColor, vLineColor, isBorder);\n } else {\n gl_FragColor = vFillColor;\n }\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[Bk,Vk]})}initializeState(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instanceRects:{size:4,accessor:"getBoundingRect"},instancePixelOffsets:{size:2,transition:!0,accessor:"getPixelOffset"},instanceFillColors:{size:4,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:4,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}updateState({props:e,oldProps:i,changeFlags:s}){if(super.updateState({props:e,oldProps:i,changeFlags:s}),s.extensionsChanged){var o;const{gl:r}=this.context;null===(o=this.state.model)||void 0===o||o.delete(),this.state.model=this._getModel(r),this.getAttributeManager().invalidateAll()}}draw({uniforms:e}){const{viewport:i}=this.context,{billboard:s,sizeScale:o,sizeUnits:r,sizeMinPixels:a,sizeMaxPixels:l,getLineWidth:c}=this.props;let{padding:d}=this.props;const u="pixels"===r?i.metersPerPixel:1;d.length<4&&(d=[d[0],d[1],d[0],d[1]]),this.state.model.setUniforms(e).setUniforms({billboard:s,stroked:Boolean(c),padding:d,sizeScale:o*u,sizeMinPixels:a,sizeMaxPixels:l}).draw()}_getModel(e){return new Rv(e,yn(Ne({},this.getShaders()),{id:this.props.id,geometry:new zk({drawMode:6,vertexCount:4,attributes:{positions:{size:2,value:new Float32Array([0,0,1,0,1,1,0,1])}}}),isInstanced:!0}))}}return n.layerName="TextBackgroundLayer",n.defaultProps=put,n})();const vbe={fontSize:64,buffer:4,sdf:!1,radius:12,cutoff:.25,smoothing:.1},bbe={start:1,middle:0,end:-1},Cbe={top:1,center:0,bottom:-1},GW=[0,0,0,255],mut=["fontSize","buffer","sdf","radius","cutoff"],yut={billboard:!0,sizeScale:1,sizeUnits:"pixels",sizeMinPixels:0,sizeMaxPixels:Number.MAX_SAFE_INTEGER,background:!1,getBackgroundColor:{type:"accessor",value:[255,255,255,255]},getBorderColor:{type:"accessor",value:GW},getBorderWidth:{type:"accessor",value:0},backgroundPadding:{type:"array",value:[0,0,0,0]},characterSet:{type:"object",value:cbe},fontFamily:dbe,fontWeight:"normal",lineHeight:1,outlineWidth:{type:"number",value:0,min:0},outlineColor:{type:"color",value:GW},fontSettings:{},wordBreak:"break-word",maxWidth:{type:"number",value:-1},getText:{type:"accessor",value:n=>n.text},getPosition:{type:"accessor",value:n=>n.position},getColor:{type:"accessor",value:GW},getSize:{type:"accessor",value:32},getAngle:{type:"accessor",value:0},getTextAnchor:{type:"accessor",value:"middle"},getAlignmentBaseline:{type:"accessor",value:"center"},getPixelOffset:{type:"accessor",value:[0,0]},backgroundColor:{deprecatedFor:["background","getBackgroundColor"]}};let _ut=(()=>{class n extends X3{initializeState(){this.state={styleVersion:0,fontAtlasManager:new dut}}updateState({props:e,oldProps:i,changeFlags:s}){const r=this.state.characterSet;(s.dataChanged||s.updateTriggersChanged&&(s.updateTriggersChanged.all||s.updateTriggersChanged.getText))&&this._updateText();const a=r!==this.state.characterSet||this._fontChanged(i,e);a&&this._updateFontAtlas(i,e),(a||e.lineHeight!==i.lineHeight||e.wordBreak!==i.wordBreak||e.maxWidth!==i.maxWidth)&&this.setState({styleVersion:this.state.styleVersion+1})}getPickingInfo({info:e}){return e.object=e.index>=0?this.props.data[e.index]:null,e}_updateFontAtlas(e,i){const{fontSettings:s,fontFamily:o,fontWeight:r}=i,{fontAtlasManager:a,characterSet:l}=this.state;a.setProps(yn(Ne(Ne({},vbe),s),{characterSet:l,fontFamily:o,fontWeight:r}))}_fontChanged(e,i){if(e.fontFamily!==i.fontFamily||e.fontWeight!==i.fontWeight)return!0;if(e.fontSettings===i.fontSettings)return!1;const s=e.fontSettings||{},o=i.fontSettings||{};return mut.some(r=>s[r]!==o[r])}_updateText(){const{data:e,characterSet:i}=this.props,s=e.attributes&&e.attributes.getText;let a,{getText:o}=this.props,{startIndices:r}=e;const l="auto"===i&&new Set;if(s&&r){const{texts:c,characterCount:d}=function({value:n,length:t,stride:e,offset:i,startIndices:s,characterSet:o}){const r=n.BYTES_PER_ELEMENT,a=e?e/r:1,l=i?i/r:0,c=s[t]||Math.ceil((n.length-l)/a),d=o&&new Set,u=new Array(t);let h=n;if(a>1||l>0){h=new n.constructor(c);for(let f=0;fc[h]}else{const{iterable:c,objectInfo:d}=C3(e);r=[0],a=0;for(const u of c){d.index++;const h=Array.from(o(u,d)||"");l&&h.forEach(l.add,l),a+=h.length,r.push(a)}}this.setState({getText:o,startIndices:r,numInstances:a,characterSet:l||i})}getBoundingRect(e,i){const s=this.state.fontAtlasManager.mapping,{getText:o}=this.state,{wordBreak:r,maxWidth:a,lineHeight:l,getTextAnchor:c,getAlignmentBaseline:d}=this.props,u=o(e,i)||"",{size:[h,f]}=lbe(u,l,r,a,s);return[(bbe["function"==typeof c?c(e,i):c]-1)*h/2,(Cbe["function"==typeof d?d(e,i):d]-1)*f/2,h,f]}getIconOffsets(e,i){const s=this.state.fontAtlasManager.mapping,{getText:o}=this.state,{wordBreak:r,maxWidth:a,lineHeight:l,getTextAnchor:c,getAlignmentBaseline:d}=this.props,u=o(e,i)||"",{x:h,y:f,rowWidth:m,size:[C,k]}=lbe(u,l,r,a,s),D=bbe["function"==typeof c?c(e,i):c],E=Cbe["function"==typeof d?d(e,i):d],O=h.length,z=new Array(2*O);let q=0;for(let re=0;re{u=this.normalizeGeometry(u),c[h]=u,i[h+1]=i[h]+this.getGeometrySize(u)},a,l),s=i[i.length-1];else if(r.buffer instanceof So){const u=r.stride||4*this.positionSize;i=o.startIndices,s=i[o.length]||r.buffer.byteLength/u}else{const u=r.value||r,h=r.stride/u.BYTES_PER_ELEMENT||this.positionSize;i=o.startIndices,s=i[o.length]||u.length/h}this._allocate(s,Boolean(t)),this.indexStarts=e,this.vertexStarts=i,this.instanceCount=s;const d={};this._forEachGeometry((u,h)=>{u=c[h]||u,d.vertexStart=i[h],d.indexStart=e[h],d.geometrySize=(h=t;r-=i)a=Mbe(r,n[r],n[r+1],a);return a&&K3(a,a.next)&&(GA(a),a=a.next),a}function Nv(n,t){if(!n)return n;t||(t=n);let i,e=n;do{if(i=!1,e.steiner||!K3(e,e.next)&&0!==Mr(e.prev,e,e.next))e=e.next;else{if(GA(e),e=t=e.prev,e===e.next)break;i=!0}}while(i||e!==t);return t}function zA(n,t,e,i,s,o,r){if(!n)return;!r&&o&&function(n,t,e,i){let s=n;do{null===s.z&&(s.z=jW(s.x,s.y,t,e,i)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next}while(s!==n);s.prevZ.nextZ=null,s.prevZ=null,function(n){let t,e,s,o,r,a,l,c,i=1;do{for(o=n,n=null,c=null,s=0;o;){for(s++,a=o,r=0,e=0;e0||l>0&&a;)0!==r&&(0===l||!a||o.z<=a.z)?(t=o,o=o.nextZ,r--):(t=a,a=a.nextZ,l--),c?c.nextZ=t:n=t,t.prevZ=c,c=t;o=a}c.nextZ=null,i*=2}while(s>1)}(s)}(n,i,s,o);let l,c,a=n;for(;n.prev!==n.next;)if(l=n.prev,c=n.next,o?Tut(n,i,s,o):Sut(n))t.push(l.i/e),t.push(n.i/e),t.push(c.i/e),GA(n),n=c.next,a=c.next;else if((n=c)===a){r?1===r?zA(n=kut(Nv(n),t,e),t,e,i,s,o,2):2===r&&Dut(n,t,e,i,s,o):zA(Nv(n),t,e,i,s,o,1);break}}function Sut(n){const t=n.prev,e=n,i=n.next;if(Mr(t,e,i)>=0)return!1;let s=n.next.next;for(;s!==n.prev;){if(Hk(t.x,t.y,e.x,e.y,i.x,i.y,s.x,s.y)&&Mr(s.prev,s,s.next)>=0)return!1;s=s.next}return!0}function Tut(n,t,e,i){const s=n.prev,o=n,r=n.next;if(Mr(s,o,r)>=0)return!1;const c=s.x>o.x?s.x>r.x?s.x:r.x:o.x>r.x?o.x:r.x,d=s.y>o.y?s.y>r.y?s.y:r.y:o.y>r.y?o.y:r.y,u=jW(s.x=u&&m&&m.z<=h;){if(f!==n.prev&&f!==n.next&&Hk(s.x,s.y,o.x,o.y,r.x,r.y,f.x,f.y)&&Mr(f.prev,f,f.next)>=0||(f=f.prevZ,m!==n.prev&&m!==n.next&&Hk(s.x,s.y,o.x,o.y,r.x,r.y,m.x,m.y)&&Mr(m.prev,m,m.next)>=0))return!1;m=m.nextZ}for(;f&&f.z>=u;){if(f!==n.prev&&f!==n.next&&Hk(s.x,s.y,o.x,o.y,r.x,r.y,f.x,f.y)&&Mr(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;m&&m.z<=h;){if(m!==n.prev&&m!==n.next&&Hk(s.x,s.y,o.x,o.y,r.x,r.y,m.x,m.y)&&Mr(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function kut(n,t,e){let i=n;do{const s=i.prev,o=i.next.next;!K3(s,o)&&kbe(s,i,i.next,o)&&HA(s,o)&&HA(o,s)&&(t.push(s.i/e),t.push(i.i/e),t.push(o.i/e),GA(i),GA(i.next),i=n=o),i=i.next}while(i!==n);return Nv(i)}function Dut(n,t,e,i,s,o){let r=n;do{let a=r.next.next;for(;a!==r.prev;){if(r.i!==a.i&&Lut(r,a)){let l=Dbe(r,a);return r=Nv(r,r.next),l=Nv(l,l.next),zA(r,t,e,i,s,o),void zA(l,t,e,i,s,o)}a=a.next}r=r.next}while(r!==n)}function Eut(n,t){return n.x-t.x}function Iut(n,t){if(t=function(n,t){let e=t;const i=n.x,s=n.y;let r,o=-1/0;do{if(s<=e.y&&s>=e.next.y&&e.next.y!==e.y){const h=e.x+(s-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(h<=i&&h>o){if(o=h,h===i){if(s===e.y)return e;if(s===e.next.y)return e.next}r=e.x=e.x&&e.x>=l&&i!==e.x&&Hk(sr.x||e.x===r.x&&Fut(r,e)))&&(r=e,d=u)),e=e.next}while(e!==a);return r}(n,t)){const e=Dbe(t,n);Nv(t,t.next),Nv(e,e.next)}}function Fut(n,t){return Mr(n.prev,n,t.prev)<0&&Mr(t.next,n,n.next)<0}function jW(n,t,e,i,s){return(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n=32767*(n-e)*s)|n<<8))|n<<4))|n<<2))|n<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Put(n){let t=n,e=n;do{(t.x=0&&(n-r)*(i-a)-(e-r)*(t-a)>=0&&(e-r)*(o-a)-(s-r)*(i-a)>=0}function Lut(n,t){return n.next.i!==t.i&&n.prev.i!==t.i&&!function(n,t){let e=n;do{if(e.i!==n.i&&e.next.i!==n.i&&e.i!==t.i&&e.next.i!==t.i&&kbe(e,e.next,n,t))return!0;e=e.next}while(e!==n);return!1}(n,t)&&(HA(n,t)&&HA(t,n)&&function(n,t){let e=n,i=!1;const s=(n.x+t.x)/2,o=(n.y+t.y)/2;do{e.y>o!=e.next.y>o&&e.next.y!==e.y&&s<(e.next.x-e.x)*(o-e.y)/(e.next.y-e.y)+e.x&&(i=!i),e=e.next}while(e!==n);return i}(n,t)&&(Mr(n.prev,n,t.prev)||Mr(n,t.prev,t))||K3(n,t)&&Mr(n.prev,n,n.next)>0&&Mr(t.prev,t,t.next)>0)}function Mr(n,t,e){return(t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y)}function K3(n,t){return n.x===t.x&&n.y===t.y}function kbe(n,t,e,i){const s=Q3(Mr(n,t,e)),o=Q3(Mr(n,t,i)),r=Q3(Mr(e,i,n)),a=Q3(Mr(e,i,t));return!!(s!==o&&r!==a||0===s&&Z3(n,e,t)||0===o&&Z3(n,i,t)||0===r&&Z3(e,n,i)||0===a&&Z3(e,t,i))}function Z3(n,t,e){return t.x<=Math.max(n.x,e.x)&&t.x>=Math.min(n.x,e.x)&&t.y<=Math.max(n.y,e.y)&&t.y>=Math.min(n.y,e.y)}function Q3(n){return n>0?1:n<0?-1:0}function HA(n,t){return Mr(n.prev,n,n.next)<0?Mr(n,t,n.next)>=0&&Mr(n,n.prev,t)>=0:Mr(n,t,n.prev)<0||Mr(n,n.next,t)<0}function Dbe(n,t){const e=new $W(n.i,n.x,n.y),i=new $W(t.i,t.x,t.y),s=n.next,o=t.prev;return n.next=t,t.prev=n,e.next=s,s.prev=e,i.next=e,e.prev=i,o.next=i,i.prev=o,i}function Mbe(n,t,e,i){const s=new $W(n,t,e);return i?(s.next=i.next,s.prev=i,i.next.prev=s,i.next=s):(s.prev=s,s.next=s),s}function GA(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function $W(n,t,e){this.i=n,this.x=t,this.y=e,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Gk(n,t,e,i,s=[]){let o,r;if(8&e)o=(i[3]-n[1])/(t[1]-n[1]),r=3;else if(4&e)o=(i[1]-n[1])/(t[1]-n[1]),r=1;else if(2&e)o=(i[2]-n[0])/(t[0]-n[0]),r=2;else{if(!(1&e))return null;o=(i[0]-n[0])/(t[0]-n[0]),r=0}for(let a=0;at[2]&&(e|=2),n[1]t[3]&&(e|=8),e}function qp(n,t){const e=t.length,i=n.length;if(i>0){let s=!0;for(let o=0;oe&&(c=[],d.push(c),qp(c,u)),f=wg(h,m)}qp(c,h),UW(u,h)}return i?d:d[0]}function J3(n,t){for(let e=0;e=0?(qp(c,f)&&u.push(C),z+=m):u.length&&(u[u.length-1]=0),UW(k,f),D=m,E=C;return[O?{pos:l,types:t&&d}:null,z?{pos:c,types:t&&u}:null]}function Obe(n,t,e,i){const s=Math.floor((n[0]-e[0])/t)*t+e[0],o=Math.floor((n[1]-e[1])/t)*t+e[1];return i[0]=s,i[1]=o,i[2]=s+t,i[3]=o+t,i}function zut(n,t,e){8&e?(n[1]+=t,n[3]+=t):4&e?(n[1]-=t,n[3]-=t):2&e?(n[0]+=t,n[2]+=t):1&e&&(n[0]-=t,n[2]-=t)}function Hut(n,t,e,i){let s=1/0,o=-1/0,r=1/0,a=-1/0;for(let l=0;lo?c:o,r=da?d:a}return i[0][0]=s,i[0][1]=r,i[1][0]=o,i[1][1]=a,i}function Uut(n,t,e,i){let s=-1,o=-1;for(let r=e+1;rs&&(s=a,o=r-1)}return o}function Wut(n,t,e,i,s=85.051129){const o=n[e],r=n[i-t];if(Math.abs(o-r)>180){const a=jA(n,0,t,e);a[0]+=360*Math.round((r-o)/360),qp(n,a),a[1]=Math.sign(a[1])*s,qp(n,a),a[0]=o,qp(n,a)}}function Rbe(n,t,e,i){let o,s=n[0];for(let r=e;r180||a<-180)&&(o-=360*Math.round(a/360)),n[r]=s=o}}function Pbe(n,t){let e;const i=n.length/t;for(let o=0;onull}normalizeGeometry(t){return this.normalize?function(n,t,e,i){let s=n;if(Array.isArray(n[0])){s=new Array(n.length*t);for(let r=0;r=t.length&&(e+=1-t.length/s);const o=e*s;return i[0]=t[o],i[1]=t[o+1],i[2]=3===s&&t[o+2]||0,i}isClosed(t){if(!this.normalize)return this.opts.loop;const{positionSize:e}=this,i=t.length-e;return t[0]===t[i]&&t[1]===t[i+1]&&(2===e||t[2]===t[i+2])}}const Lbe=[0,0,0,255],Jut={widthUnits:"meters",widthScale:{type:"number",min:0,value:1},widthMinPixels:{type:"number",min:0,value:0},widthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},jointRounded:!1,capRounded:!1,miterLimit:{type:"number",min:0,value:4},billboard:!1,_pathType:null,getPath:{type:"accessor",value:n=>n.path},getColor:{type:"accessor",value:Lbe},getWidth:{type:"accessor",value:1},rounded:{deprecatedFor:["jointRounded","capRounded"]}},qW={enter:(n,t)=>t.length?t.subarray(t.length-n.length):n};let eht=(()=>{class n extends HC{getShaders(){return super.getShaders({vs:"#define SHADER_NAME path-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute float instanceTypes;\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec3 instanceLeftPositions;\nattribute vec3 instanceRightPositions;\nattribute vec3 instanceLeftPositions64Low;\nattribute vec3 instanceStartPositions64Low;\nattribute vec3 instanceEndPositions64Low;\nattribute vec3 instanceRightPositions64Low;\nattribute float instanceStrokeWidths;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float capType;\nuniform float miterLimit;\nuniform bool billboard;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\nvec3 lineJoin(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n vec2 dir = isEnd ? dirA : dirB;\n vec2 perp = isEnd ? perpA : perpB;\n float L = isEnd ? lenA : lenB;\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * capType * 4.0 * flipIfTrue(isStartCap), isJoint);\n vJointType = capType;\n } else {\n vJointType = jointType;\n }\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return currPoint + offset;\n}\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.worldPosition = instanceStartPositions;\n geometry.worldPositionAlt = instanceEndPositions;\n geometry.pickingColor = instancePickingColors;\n\n vec2 widthPixels = vec2(clamp(project_size_to_pixel(instanceStrokeWidths * widthScale),\n widthMinPixels, widthMaxPixels) / 2.0);\n vec3 width;\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(instanceLeftPositions, instanceStartPositions, isEnd);\n vec3 prevPosition64Low = mix(instanceLeftPositions64Low, instanceStartPositions64Low, isEnd);\n\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n vec3 currPosition64Low = mix(instanceStartPositions64Low, instanceEndPositions64Low, isEnd);\n\n vec3 nextPosition = mix(instanceEndPositions, instanceRightPositions, isEnd);\n vec3 nextPosition64Low = mix(instanceEndPositions64Low, instanceRightPositions64Low, isEnd);\n\n if (billboard) {\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n width = vec3(widthPixels, 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 pos = lineJoin(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n project_pixel_size_to_clipspace(width.xy)\n );\n\n gl_Position = vec4(pos * currPositionScreen.w, currPositionScreen.w);\n } else {\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n width = vec3(project_pixel_size(widthPixels), 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec4 pos = vec4(\n lineJoin(prevPosition, currPosition, nextPosition, width.xy),\n 1.0);\n geometry.position = pos;\n gl_Position = project_common_position_to_clipspace(pos);\n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float miterLimit;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n if (vJointType > 0.5 && length(vCornerOffset) > 1.0) {\n discard;\n }\n if (vJointType < 0.5 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[Bk,Vk]})}get wrapLongitude(){return!1}initializeState(){this.getAttributeManager().addInstanced({positions:{size:3,vertexOffset:1,type:5130,fp64:this.use64bitPositions(),transition:qW,accessor:"getPath",update:this.calculatePositions,noAlloc:!0,shaderAttributes:{instanceLeftPositions:{vertexOffset:0},instanceStartPositions:{vertexOffset:1},instanceEndPositions:{vertexOffset:2},instanceRightPositions:{vertexOffset:3}}},instanceTypes:{size:1,type:5121,update:this.calculateSegmentTypes,noAlloc:!0},instanceStrokeWidths:{size:1,accessor:"getWidth",transition:qW,defaultValue:1},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,accessor:"getColor",transition:qW,defaultValue:Lbe},instancePickingColors:{size:3,type:5121,accessor:(s,{index:o,target:r})=>this.encodePickingColor(s&&s.__source?s.__source.index:o,r)}}),this.setState({pathTesselator:new Kut({fp64:this.use64bitPositions()})}),this.props.getDashArray&&!this.props.extensions.length&&$n.removed("getDashArray","PathStyleExtension")()}updateState({oldProps:e,props:i,changeFlags:s}){super.updateState({props:i,oldProps:e,changeFlags:s});const o=this.getAttributeManager();if(s.dataChanged||s.updateTriggersChanged&&(s.updateTriggersChanged.all||s.updateTriggersChanged.getPath)){const{pathTesselator:l}=this.state,c=i.data.attributes||{};l.updateGeometry({data:i.data,geometryBuffer:c.getPath,buffers:c,normalize:!i._pathType,loop:"loop"===i._pathType,getGeometry:i.getPath,positionFormat:i.positionFormat,wrapLongitude:i.wrapLongitude,resolution:this.context.viewport.resolution,dataChanged:s.dataChanged}),this.setState({numInstances:l.instanceCount,startIndices:l.vertexStarts}),s.dataChanged||o.invalidateAll()}if(s.extensionsChanged){var a;const{gl:l}=this.context;null===(a=this.state.model)||void 0===a||a.delete(),this.state.model=this._getModel(l),o.invalidateAll()}}getPickingInfo(e){const i=super.getPickingInfo(e),{index:s}=i,{data:o}=this.props;return o[0]&&o[0].__source&&(i.object=o.find(r=>r.__source.index===s)),i}disablePickingIndex(e){const{data:i}=this.props;if(i[0]&&i[0].__source)for(let s=0;se*t/255)}const iht={};const oht={name:"gouraud-lighting",dependencies:[{name:"lights",vs:Nbe,fs:Nbe,getUniforms:function Bbe(n=tht){if("lightSources"in n){const{ambientLight:t,pointLights:e,directionalLights:i}=n.lightSources||{};return t||e&&e.length>0||i&&i.length>0?Object.assign({},function({ambientLight:n,pointLights:t=[],directionalLights:e=[]}){const i={};return i["lighting_uAmbientLight.color"]=n?XW(n):[0,0,0],t.forEach((s,o)=>{i["lighting_uPointLight[".concat(o,"].color")]=XW(s),i["lighting_uPointLight[".concat(o,"].position")]=s.position,i["lighting_uPointLight[".concat(o,"].attenuation")]=s.attenuation||[1,0,0]}),i.lighting_uPointLightCount=t.length,e.forEach((s,o)=>{i["lighting_uDirectionalLight[".concat(o,"].color")]=XW(s),i["lighting_uDirectionalLight[".concat(o,"].direction")]=s.direction}),i.lighting_uDirectionalLightCount=e.length,i}({ambientLight:t,pointLights:e,directionalLights:i}),{lighting_uEnabled:!0}):{lighting_uEnabled:!1}}if("lights"in n){const t={pointLights:[],directionalLights:[]};for(const e of n.lights||[])switch(e.type){case"ambient":t.ambientLight=e;break;case"directional":t.directionalLights.push(e);break;case"point":t.pointLights.push(e)}return Bbe({lightSources:t})}return{}},defines:{MAX_LIGHTS:3}}],vs:"\nuniform float lighting_uAmbient;\nuniform float lighting_uDiffuse;\nuniform float lighting_uShininess;\nuniform vec3 lighting_uSpecularColor;\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 light_direction, vec3 view_direction, vec3 normal_worldspace, vec3 color) {\n vec3 halfway_direction = normalize(light_direction + view_direction);\n float lambertian = dot(light_direction, normal_worldspace);\n float specular = 0.0;\n if (lambertian > 0.0) {\n float specular_angle = max(dot(normal_worldspace, halfway_direction), 0.0);\n specular = pow(specular_angle, lighting_uShininess);\n }\n lambertian = max(lambertian, 0.0);\n return (lambertian * lighting_uDiffuse * surfaceColor + specular * lighting_uSpecularColor) * color;\n}\n\nvec3 lighting_getLightColor(vec3 surfaceColor, vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = surfaceColor;\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n lightColor = lighting_uAmbient * surfaceColor * lighting_uAmbientLight.color;\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n\nvec3 lighting_getSpecularLightColor(vec3 cameraPosition, vec3 position_worldspace, vec3 normal_worldspace) {\n vec3 lightColor = vec3(0, 0, 0);\n vec3 surfaceColor = vec3(0, 0, 0);\n\n if (lighting_uEnabled) {\n vec3 view_direction = normalize(cameraPosition - position_worldspace);\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uPointLightCount) {\n break;\n }\n PointLight pointLight = lighting_uPointLight[i];\n vec3 light_position_worldspace = pointLight.position;\n vec3 light_direction = normalize(light_position_worldspace - position_worldspace);\n lightColor += lighting_getLightColor(surfaceColor, light_direction, view_direction, normal_worldspace, pointLight.color);\n }\n\n for (int i = 0; i < MAX_LIGHTS; i++) {\n if (i >= lighting_uDirectionalLightCount) {\n break;\n }\n DirectionalLight directionalLight = lighting_uDirectionalLight[i];\n lightColor += lighting_getLightColor(surfaceColor, -directionalLight.direction, view_direction, normal_worldspace, directionalLight.color);\n }\n }\n return lightColor;\n}\n",defines:{LIGHTING_VERTEX:1},getUniforms:function(n=iht){if(!("material"in n))return{};const{material:t}=n;return t?function(n){const{ambient:t=.35,diffuse:e=.6,shininess:i=32,specularColor:s=[30,30,30]}=n;return{lighting_uAmbient:t,lighting_uDiffuse:e,lighting_uShininess:i,lighting_uSpecularColor:s.map(o=>o/255)}}(t):{lighting_uEnabled:!1}}};var rht=Pt(604),aht=Pt.n(rht);const Bv={isClosed:!0};function jbe(n,t,e,i,s){let o=t;const r=e.length;for(let a=0;a=1&&n[0].length>=2&&Number.isFinite(n[0][0])}(n)){let s=0;for(const[o,r]of n.entries())s=jbe(e,s,r,t,0===o?1:-1),i.push(s);return i.pop(),{positions:e,holeIndices:i}}return jbe(e,0,n,t,1),e}(t,this.positionSize),this.opts.resolution)return Abe(t.positions||t,t.holeIndices,{size:this.positionSize,gridResolution:this.opts.resolution,edgeTypes:!0});if(this.opts.wrapLongitude)return function(n,t,e={}){const{size:i=2,normalize:s=!0,edgeTypes:o=!1}=e;t=t||[];const r=[],a=[];let l=0,c=0;for(let u=0;u<=t.length;u++){const h=t[u]||n.length,f=c,m=Uut(n,i,l,h);for(let C=m;Cnull}updateGeometryAttributes(t,e){if(Array.isArray(t)&&!Number.isFinite(t[0]))for(const i of t){const s=this.getGeometrySize(i);e.geometrySize=s,this.updateGeometryAttributes(i,e),e.vertexStart+=s,e.indexStart=this.indexStarts[e.geometryIndex+1]}else this._updateIndices(t,e),this._updatePositions(t,e),this._updateVertexValid(t,e)}_updateIndices(t,{geometryIndex:e,vertexStart:i,indexStart:s}){const{attributes:o,indexStarts:r,typedArrayManager:a}=this;let l=o.indices;if(!l)return;let c=s;const d=function(n,t,e){let i=null;n.holeIndices&&(i=n.holeIndices.map(o=>o/t));let s=n.positions||n;if(e){const o=s.length;s=s.slice();const r=[];for(let a=0;a2?r[l*o+2]:0;s[3*a]=r[l*o],s[3*a+1]=d,s[3*a+2]=u}}_updateVertexValid(t,{vertexStart:e,geometrySize:i}){const{attributes:{vertexValid:s},positionSize:o}=this,r=t&&t.holeIndices;if(t&&t.edgeTypes?s.set(t.edgeTypes,e):s.fill(1,e,e+i),r)for(let a=0;an.polygon},getElevation:{type:"accessor",value:1e3},getFillColor:{type:"accessor",value:tB},getLineColor:{type:"accessor",value:tB},material:!0},nB={enter:(n,t)=>t.length?t.subarray(t.length-n.length):n},iB={circle:{type:jdt,props:{filled:"filled",stroked:"stroked",lineWidthMaxPixels:"lineWidthMaxPixels",lineWidthMinPixels:"lineWidthMinPixels",lineWidthScale:"lineWidthScale",lineWidthUnits:"lineWidthUnits",pointRadiusMaxPixels:"radiusMaxPixels",pointRadiusMinPixels:"radiusMinPixels",pointRadiusScale:"radiusScale",pointRadiusUnits:"radiusUnits",pointAntialiasing:"antialiasing",getFillColor:"getFillColor",getLineColor:"getLineColor",getLineWidth:"getLineWidth",getPointRadius:"getRadius"}},icon:{type:nbe,props:{iconAtlas:"iconAtlas",iconMapping:"iconMapping",iconSizeMaxPixels:"sizeMaxPixels",iconSizeMinPixels:"sizeMinPixels",iconSizeScale:"sizeScale",iconSizeUnits:"sizeUnits",getIcon:"getIcon",getIconAngle:"getAngle",getIconColor:"getColor",getIconPixelOffset:"getPixelOffset",getIconSize:"getSize"}},text:{type:_ut,props:{textSizeMaxPixels:"sizeMaxPixels",textSizeMinPixels:"sizeMinPixels",textSizeScale:"sizeScale",textSizeUnits:"sizeUnits",textBackground:"background",textBackgroundPadding:"backgroundPadding",textFontFamily:"fontFamily",textFontWeight:"fontWeight",textLineHeight:"lineHeight",textMaxWidth:"maxWidth",textOutlineColor:"outlineColor",textOutlineWidth:"outlineWidth",textWordBreak:"wordBreak",textCharacterSet:"characterSet",getText:"getText",getTextAngle:"getAngle",getTextColor:"getColor",getTextPixelOffset:"getPixelOffset",getTextSize:"getSize",getTextAnchor:"getTextAnchor",getTextAlignmentBaseline:"getAlignmentBaseline",getTextBackgroundColor:"getBackgroundColor",getTextBorderColor:"getBorderColor",getTextBorderWidth:"getBorderWidth"}}},sB={type:eht,props:{lineWidthUnits:"widthUnits",lineWidthScale:"widthScale",lineWidthMinPixels:"widthMinPixels",lineWidthMaxPixels:"widthMaxPixels",lineJointRounded:"jointRounded",lineCapRounded:"capRounded",lineMiterLimit:"miterLimit",getLineColor:"getColor",getLineWidth:"getWidth"}},YW={type:(()=>{class n extends HC{getShaders(e){return super.getShaders({vs:"top"===e?ght:mht,fs:"#define SHADER_NAME solid-polygon-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",defines:{RING_WINDING_ORDER_CW:this.props._normalize||"CCW"!==this.props._windingOrder?1:0},modules:[Bk,oht,Vk]})}get wrapLongitude(){return!1}initializeState(){const{gl:e,viewport:i}=this.context;let{coordinateSystem:s}=this.props;i.isGeospatial&&s===_s.DEFAULT&&(s=_s.LNGLAT),this.setState({numInstances:0,polygonTesselator:new fht({preproject:s===_s.LNGLAT&&i.projectFlat,fp64:this.use64bitPositions(),IndexType:!e||p9(e,"ELEMENT_INDEX_UINT32")?Uint32Array:Uint16Array})});const o=this.getAttributeManager(),r=!0;o.remove(["instancePickingColors"]),o.add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:r},positions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:nB,accessor:"getPolygon",update:this.calculatePositions,noAlloc:r,shaderAttributes:{positions:{vertexOffset:0,divisor:0},instancePositions:{vertexOffset:0,divisor:1},nextPositions:{vertexOffset:1,divisor:1}}},vertexValid:{size:1,divisor:1,type:5121,update:this.calculateVertexValid,noAlloc:r},elevations:{size:1,transition:nB,accessor:"getElevation",shaderAttributes:{elevations:{divisor:0},instanceElevations:{divisor:1}}},fillColors:{alias:"colors",size:this.props.colorFormat.length,type:5121,normalized:!0,transition:nB,accessor:"getFillColor",defaultValue:tB,shaderAttributes:{fillColors:{divisor:0},instanceFillColors:{divisor:1}}},lineColors:{alias:"colors",size:this.props.colorFormat.length,type:5121,normalized:!0,transition:nB,accessor:"getLineColor",defaultValue:tB,shaderAttributes:{lineColors:{divisor:0},instanceLineColors:{divisor:1}}},pickingColors:{size:3,type:5121,accessor:(a,{index:l,target:c})=>this.encodePickingColor(a&&a.__source?a.__source.index:l,c),shaderAttributes:{pickingColors:{divisor:0},instancePickingColors:{divisor:1}}}})}getPickingInfo(e){const i=super.getPickingInfo(e),{index:s}=i,{data:o}=this.props;return o[0]&&o[0].__source&&(i.object=o.find(r=>r.__source.index===s)),i}disablePickingIndex(e){const{data:i}=this.props;if(i[0]&&i[0].__source)for(let s=0;sc.delete()),this.setState(this._getModels(this.context.gl)),r.invalidateAll())}updateGeometry({props:e,changeFlags:s}){if(s.dataChanged||s.updateTriggersChanged&&(s.updateTriggersChanged.all||s.updateTriggersChanged.getPolygon)){const{polygonTesselator:r}=this.state,a=e.data.attributes||{};r.updateGeometry({data:e.data,normalize:e._normalize,geometryBuffer:a.getPolygon,buffers:a,getGeometry:e.getPolygon,positionFormat:e.positionFormat,wrapLongitude:e.wrapLongitude,resolution:this.context.viewport.resolution,fp64:this.use64bitPositions(),dataChanged:s.dataChanged}),this.setState({numInstances:r.instanceCount,startIndices:r.vertexStarts}),s.dataChanged||this.getAttributeManager().invalidateAll()}}_getModels(e){const{id:i,filled:s,extruded:o}=this.props;let r,a;if(s){const l=this.getShaders("top");l.defines.NON_INSTANCED_MODEL=1,r=new Rv(e,yn(Ne({},l),{id:"".concat(i,"-top"),drawMode:4,attributes:{vertexPositions:new Float32Array([0,1])},uniforms:{isWireframe:!1,isSideVertex:!1},vertexCount:0,isIndexed:!0}))}return o&&(a=new Rv(e,yn(Ne({},this.getShaders("side")),{id:"".concat(i,"-side"),geometry:new zk({drawMode:1,vertexCount:4,attributes:{vertexPositions:{size:2,value:new Float32Array([1,0,0,0,0,1,1,1])}}}),instanceCount:0,isInstanced:1})),a.userData.excludeAttributes={indices:!0}),{models:[a,r].filter(Boolean),topModel:r,sideModel:a}}calculateIndices(e){const{polygonTesselator:i}=this.state;e.startIndices=i.indexStarts,e.value=i.get("indices")}calculatePositions(e){const{polygonTesselator:i}=this.state;e.startIndices=i.vertexStarts,e.value=i.get("positions")}calculateVertexValid(e){e.value=this.state.polygonTesselator.get("vertexValid")}}return n.layerName="SolidPolygonLayer",n.defaultProps=_ht,n})(),props:{extruded:"extruded",filled:"filled",wireframe:"wireframe",elevationScale:"elevationScale",material:"material",getElevation:"getElevation",getFillColor:"getFillColor",getLineColor:"getLineColor"}};function $A({type:n,props:t}){const e={};for(const i in t)e[i]=n.defaultProps[t[i]];return e}function KW(n,t){const{transitions:e,updateTriggers:i}=n.props,s={updateTriggers:{},transitions:e&&{getPosition:e.geometry}};for(const o in t){const r=t[o];let a=n.props[o];o.startsWith("get")&&(a=n.getSubLayerAccessor(a),s.updateTriggers[r]=i[o],e&&(s.transitions[r]=e[o])),s[r]=a}return s}function Wbe(n,t,e={}){const i={pointFeatures:[],lineFeatures:[],polygonFeatures:[],polygonOutlineFeatures:[]},{startRow:s=0,endRow:o=n.length}=e;for(let r=s;r0;)t=t[0];return t&&Number.isFinite(t[0])}(o,r))switch(o){case"Point":a.push(e({geometry:n},i,s));break;case"MultiPoint":r.forEach(u=>{a.push(e({geometry:{type:"Point",coordinates:u}},i,s))});break;case"LineString":l.push(e({geometry:n},i,s));break;case"MultiLineString":r.forEach(u=>{l.push(e({geometry:{type:"LineString",coordinates:u}},i,s))});break;case"Polygon":c.push(e({geometry:n},i,s)),r.forEach(u=>{d.push(e({geometry:{type:"LineString",coordinates:u}},i,s))});break;case"MultiPolygon":r.forEach(u=>{c.push(e({geometry:{type:"Polygon",coordinates:u}},i,s)),u.forEach(h=>{d.push(e({geometry:{type:"LineString",coordinates:h}},i,s))})})}else $n.warn("".concat(o," coordinates are malformed"))()}const Cht={Point:1,MultiPoint:2,LineString:2,MultiLineString:3,Polygon:3,MultiPolygon:4};function oB(n){return n.geometry.coordinates}const Tht=yn(Ne(Ne(Ne(Ne(Ne({},$A(iB.circle)),$A(iB.icon)),$A(iB.text)),$A(sB)),$A(YW)),{stroked:!0,filled:!0,extruded:!1,wireframe:!1,iconAtlas:{type:"object",value:null},iconMapping:{type:"object",value:{}},getIcon:{type:"accessor",value:n=>n.properties.icon},getText:{type:"accessor",value:n=>n.properties.text},pointType:"circle",getRadius:{deprecatedFor:"getPointRadius"}});let rB=(()=>{class n extends X3{initializeState(){this.state={layerProps:{},features:{}},this.props.getLineDashArray&&$n.removed("getLineDashArray","PathStyleExtension")()}updateState({props:e,changeFlags:i}){if(!i.dataChanged)return;const{data:s}=this.props,o=s&&"points"in s&&"polygons"in s&&"lines"in s;this.setState({binary:o}),o?this._updateStateBinary({props:e,changeFlags:i}):this._updateStateJSON({props:e,changeFlags:i})}_updateStateBinary({props:e}){const s=function(n,t){const e={points:{},lines:{},polygons:{},polygonsOutline:{}},{points:i,lines:s,polygons:o}=n,r=function(n,t){const e={points:null,lines:null,polygons:null};for(const i in e){const s=n[i].globalFeatureIds.value;e[i]=new Uint8ClampedArray(3*s.length);const o=[];for(let r=0;rf.__source.index,dataRange:d,replace:u[h]}))}}else r=Wbe(s,o);const l=function(n,t){const e={points:{},lines:{},polygons:{},polygonsOutline:{}},{pointFeatures:i,lineFeatures:s,polygonFeatures:o,polygonOutlineFeatures:r}=n;return e.points.data=i,e.points._dataDiff=t.pointFeatures&&(()=>t.pointFeatures),e.points.getPosition=oB,e.lines.data=s,e.lines._dataDiff=t.lineFeatures&&(()=>t.lineFeatures),e.lines.getPath=oB,e.polygons.data=o,e.polygons._dataDiff=t.polygonFeatures&&(()=>t.polygonFeatures),e.polygons.getPolygon=oB,e.polygonsOutline.data=r,e.polygonsOutline._dataDiff=t.polygonOutlineFeatures&&(()=>t.polygonOutlineFeatures),e.polygonsOutline.getPath=oB,e}(r,a);this.setState({features:r,featuresDiff:a,layerProps:l})}_updateAutoHighlight(e){const i="".concat(this.id,"-points-"),s=e.sourceLayer.id.startsWith(i);for(const o of this.getSubLayers())o.id.startsWith(i)===s&&o.updateAutoHighlight(e)}_renderPolygonLayer(){const{extruded:e,wireframe:i}=this.props,{layerProps:s}=this.state,o="polygons-fill",r=this.shouldRenderSubLayer(o,s.polygons.data)&&this.getSubLayerClass(o,YW.type);if(r){const a=KW(this,YW.props),l=e&&i;return l||delete a.getLineColor,a.updateTriggers.lineColors=l,new r(a,this.getSubLayerProps({id:o,updateTriggers:a.updateTriggers}),s.polygons)}return null}_renderLineLayers(){const{extruded:e,stroked:i}=this.props,{layerProps:s}=this.state,o="polygons-stroke",r="linestrings",a=!e&&i&&this.shouldRenderSubLayer(o,s.polygonsOutline.data)&&this.getSubLayerClass(o,sB.type),l=this.shouldRenderSubLayer(r,s.lines.data)&&this.getSubLayerClass(r,sB.type);if(a||l){const c=KW(this,sB.props);return[a&&new a(c,this.getSubLayerProps({id:o,updateTriggers:c.updateTriggers}),s.polygonsOutline),l&&new l(c,this.getSubLayerProps({id:r,updateTriggers:c.updateTriggers}),s.lines)]}return null}_renderPointLayers(){const{pointType:e}=this.props,{layerProps:i,binary:s}=this.state;let{highlightedObjectIndex:o}=this.props;!s&&Number.isFinite(o)&&(o=i.points.data.findIndex(l=>l.__source.index===o));const r=new Set(e.split("+")),a=[];for(const l of r){const c="points-".concat(l),d=iB[l],u=d&&this.shouldRenderSubLayer(c,i.points.data)&&this.getSubLayerClass(c,d.type);if(u){const h=KW(this,d.props);a.push(new u(h,this.getSubLayerProps({id:c,updateTriggers:h.updateTriggers,highlightedObjectIndex:o}),i.points))}}return a}renderLayers(){const{extruded:e}=this.props,i=this._renderPolygonLayer();return[!e&&i,this._renderLineLayers(),this._renderPointLayers(),e&&i]}getSubLayerAccessor(e){const{binary:i}=this.state;return i&&"function"==typeof e?(s,o)=>{const{data:r,index:a}=o,l=function(n,t){if(!n)return null;const e="startIndices"in n?n.startIndices[t]:t;return-1!==e?function(n,t,e){const i={properties:Ne({},n.properties[t])};for(const s in n.numericProps)i.properties[s]=n.numericProps[s].value[e];return i}(n,n.featureIds.value[e],e):null}(r,a);return e(l,o)}:super.getSubLayerAccessor(e)}}return n.layerName="GeoJsonLayer",n.defaultProps=Tht,n})();const kht=new Uint16Array([0,2,1,0,3,2]),Dht=new Float32Array([0,1,0,0,1,0,1,1]);function Iht(n,t,e){return Ty(Ty(n[0],n[1],e),Ty(n[3],n[2],e),t)}const Oht="\n#define SHADER_NAME bitmap-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D bitmapTexture;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float desaturate;\nuniform vec4 transparentColor;\nuniform vec3 tintColor;\nuniform float opacity;\n\nuniform float coordinateConversion;\nuniform vec4 bounds;\n\n/* projection utils */\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / PI / 2.0;\n\n// from degrees to Web Mercator\nvec2 lnglat_to_mercator(vec2 lnglat) {\n float x = lnglat.x;\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\n// from Web Mercator to degrees\nvec2 mercator_to_lnglat(vec2 xy) {\n xy /= WORLD_SCALE;\n return degrees(vec2(\n xy.x - PI,\n atan(exp(xy.y - PI)) * 2.0 - PI * 0.5\n ));\n}\n/* End projection utils */\n\n// apply desaturation\nvec3 color_desaturate(vec3 color) {\n float luminance = (color.r + color.g + color.b) * 0.333333333;\n return mix(color, vec3(luminance), desaturate);\n}\n\n// apply tint\nvec3 color_tint(vec3 color) {\n return color * tintColor;\n}\n\n// blend with background color\nvec4 apply_opacity(vec3 color, float alpha) {\n return mix(transparentColor, vec4(color, 1.0), alpha);\n}\n\nvec2 getUV(vec2 pos) {\n return vec2(\n (pos.x - bounds[0]) / (bounds[2] - bounds[0]),\n (pos.y - bounds[3]) / (bounds[1] - bounds[3])\n );\n}\n\n".concat("\nvec3 packUVsIntoRGB(vec2 uv) {\n // Extract the top 8 bits. We want values to be truncated down so we can add a fraction\n vec2 uv8bit = floor(uv * 256.);\n\n // Calculate the normalized remainders of u and v parts that do not fit into 8 bits\n // Scale and clamp to 0-1 range\n vec2 uvFraction = fract(uv * 256.);\n vec2 uvFraction4bit = floor(uvFraction * 16.);\n\n // Remainder can be encoded in blue channel, encode as 4 bits for pixel coordinates\n float fractions = uvFraction4bit.x + uvFraction4bit.y * 16.;\n\n return vec3(uv8bit, fractions) / 255.;\n}\n","\n\nvoid main(void) {\n vec2 uv = vTexCoord;\n if (coordinateConversion < -0.5) {\n vec2 lnglat = mercator_to_lnglat(vTexPos);\n uv = getUV(lnglat);\n } else if (coordinateConversion > 0.5) {\n vec2 commonPos = lnglat_to_mercator(vTexPos);\n uv = getUV(commonPos);\n }\n vec4 bitmapColor = texture2D(bitmapTexture, uv);\n\n gl_FragColor = apply_opacity(color_tint(color_desaturate(bitmapColor.rgb)), bitmapColor.a * opacity);\n\n geometry.uv = uv;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n if (picking_uActive) {\n // Since instance information is not used, we can use picking color for pixel index\n gl_FragColor.rgb = packUVsIntoRGB(uv);\n }\n}\n"),Rht={image:{type:"image",value:null,async:!0},bounds:{type:"array",value:[1,0,0,1],compare:!0},_imageCoordinateSystem:_s.DEFAULT,desaturate:{type:"number",min:0,max:1,value:0},transparentColor:{type:"color",value:[0,0,0,0]},tintColor:{type:"color",value:[255,255,255]}};let Pht=(()=>{class n extends HC{getShaders(){return super.getShaders({vs:"\n#define SHADER_NAME bitmap-layer-vertex-shader\n\nattribute vec2 texCoords;\nattribute vec3 positions;\nattribute vec3 positions64Low;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float coordinateConversion;\n\nconst vec3 pickingColor = vec3(1.0, 0.0, 0.0);\n\nvoid main(void) {\n geometry.worldPosition = positions;\n geometry.uv = texCoords;\n geometry.pickingColor = pickingColor;\n\n gl_Position = project_position_to_clipspace(positions, positions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTexCoord = texCoords;\n\n if (coordinateConversion < -0.5) {\n vTexPos = geometry.position.xy;\n } else if (coordinateConversion > 0.5) {\n vTexPos = geometry.worldPosition.xy;\n }\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:Oht,modules:[Bk,Vk]})}initializeState(){const e=this.getAttributeManager();e.remove(["instancePickingColors"]);const i=!0;e.add({indices:{size:1,isIndexed:!0,update:s=>s.value=this.state.mesh.indices,noAlloc:i},positions:{size:3,type:5130,fp64:this.use64bitPositions(),update:s=>s.value=this.state.mesh.positions,noAlloc:i},texCoords:{size:2,update:s=>s.value=this.state.mesh.texCoords,noAlloc:i}})}updateState({props:e,oldProps:i,changeFlags:s}){if(s.extensionsChanged){var o;const{gl:a}=this.context;null===(o=this.state.model)||void 0===o||o.delete(),this.state.model=this._getModel(a),this.getAttributeManager().invalidateAll()}const r=this.getAttributeManager();if(e.bounds!==i.bounds){const a=this.state.mesh,l=this._createMesh();this.state.model.setVertexCount(l.vertexCount);for(const c in l)a&&a[c]!==l[c]&&r.invalidate(c);this.setState(Ne({mesh:l},this._getCoordinateUniforms()))}else e._imageCoordinateSystem!==i._imageCoordinateSystem&&this.setState(this._getCoordinateUniforms())}getPickingInfo({info:e}){const{image:i}=this.props;if(!e.color||!i)return e.bitmap=null,e;const{width:s,height:o}=i;e.index=0;const r=function(n){const[t,e,i]=n;return[(t+(15&i)/16)/256,(e+(240&i)/256)/256]}(e.color),a=[Math.floor(r[0]*s),Math.floor(r[1]*o)];return e.bitmap={size:{width:s,height:o},uv:r,pixel:a},e}disablePickingIndex(){this.setState({disablePicking:!0})}restorePickingColors(){this.setState({disablePicking:!1})}_updateAutoHighlight(e){super._updateAutoHighlight(yn(Ne({},e),{color:this.encodePickingColor(0)}))}_createMesh(){const{bounds:e}=this.props;let i=e;return Number.isFinite(e[0])&&(i=[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]),function(n,t){if(!t)return function(n){const t=new Float64Array(12);for(let e=0;e0&&m>0&&(a[u++]=d-o,a[u++]=d-o-1,a[u++]=d-1,a[u++]=d-o,a[u++]=d-1,a[u++]=d),d++}}return{vertexCount:r,positions:c,indices:a,texCoords:l}}(i,this.context.viewport.resolution)}_getModel(e){return e?new Rv(e,yn(Ne({},this.getShaders()),{id:this.props.id,geometry:new zk({drawMode:4,vertexCount:6}),isInstanced:!1})):null}draw(e){const{uniforms:i,moduleParameters:s}=e,{model:o,coordinateConversion:r,bounds:a,disablePicking:l}=this.state,{image:c,desaturate:d,transparentColor:u,tintColor:h}=this.props;s.pickingActive&&l||c&&o&&o.setUniforms(i).setUniforms({bitmapTexture:c,desaturate:d,transparentColor:u.map(f=>f/255),tintColor:h.slice(0,3).map(f=>f/255),coordinateConversion:r,bounds:a}).draw()}_getCoordinateUniforms(){const{LNGLAT:e,CARTESIAN:i,DEFAULT:s}=_s;let{_imageCoordinateSystem:o}=this.props;if(o!==s){const{bounds:r}=this.props;if(!Number.isFinite(r[0]))throw new Error("_imageCoordinateSystem only supports rectangular bounds");const a=this.context.viewport.resolution?e:i;if(o=o===e?e:i,o===e&&a===i)return{coordinateConversion:-1,bounds:r};if(o===i&&a===e){const l=Pv([r[0],r[1]]),c=Pv([r[2],r[3]]);return{coordinateConversion:1,bounds:[l[0],l[1],c[0],c[1]]}}}return{coordinateConversion:0,bounds:[0,0,0,0]}}}return n.layerName="BitmapLayer",n.defaultProps=Rht,n})();class Nht{constructor({x:t,y:e,z:i,onTileLoad:s,onTileError:o}){this.x=t,this.y=e,this.z=i,this.isVisible=!1,this.isSelected=!1,this.parent=null,this.children=[],this.content=null,this._isLoaded=!1,this._isCancelled=!1,this.onTileLoad=s,this.onTileError=o}get data(){return this._isLoaded?this.content:this._loader}get isLoaded(){return this._isLoaded}get isLoading(){return Boolean(this._loader)}get isCancelled(){return this._isCancelled}get byteLength(){const t=this.content?this.content.byteLength:0;return Number.isFinite(t)||$n.error("byteLength not defined in tile data")(),t}_loadData(t,e){var i=this;return Xe(function*(){const{x:s,y:o,z:r,bbox:a}=i;i._abortController=new AbortController;const{signal:l}=i._abortController,c=yield e.scheduleRequest(i,h=>h.isSelected?1:-1);if(!c)return void(i._isCancelled=!0);if(i._isCancelled)return void c.done();let d,u;try{d=yield t({x:s,y:o,z:r,bbox:a,signal:l})}catch(h){u=h||!0}finally{c.done(),i._isCancelled&&!d?i._isLoaded=!1:(i._isLoaded=!0,i._isCancelled=!1)}!i._isLoaded||(u?i.onTileError(u,i):(i.content=d,i.onTileLoad(i)))})()}loadData(t,e){!t||(this._isCancelled=!1,this._loader=this._loadData(t,e),this._loader.finally(()=>{this._loader=void 0}))}abort(){this.isLoaded||(this._isCancelled=!0,this._abortController.abort())}}const vc=Object.freeze({OUTSIDE:-1,INTERSECTING:0,INSIDE:1}),Ybe=new on,Bht=new on;class ZW{constructor(t=[0,0,0],e=[0,0,0],i=null){i=i||Ybe.copy(t).add(e).scale(.5),this.center=new on(i),this.halfDiagonal=new on(e).subtract(this.center),this.minimum=new on(t),this.maximum=new on(e)}clone(){return new ZW(this.minimum,this.maximum,this.center)}equals(t){return this===t||Boolean(t)&&this.minimum.equals(t.minimum)&&this.maximum.equals(t.maximum)}transform(t){return this.center.transformAsPoint(t),this.halfDiagonal.transform(t),this.minimum.transform(t),this.maximum.transform(t),this}intersectPlane(t){const{halfDiagonal:e}=this,i=Bht.from(t.normal),s=e.x*Math.abs(i.x)+e.y*Math.abs(i.y)+e.z*Math.abs(i.z),o=this.center.dot(i)+t.distance;return o-s>0?vc.INSIDE:o+s<0?vc.OUTSIDE:vc.INTERSECTING}distanceTo(t){return Math.sqrt(this.distanceSquaredTo(t))}distanceSquaredTo(t){const e=Ybe.from(t).subtract(this.center),{halfDiagonal:i}=this;let o,s=0;return o=Math.abs(e.x)-i.x,o>0&&(s+=o*o),o=Math.abs(e.y)-i.y,o>0&&(s+=o*o),o=Math.abs(e.z)-i.z,o>0&&(s+=o*o),s}}const UA=new on,Kbe=new on;class QW{constructor(t=[0,0,0],e=0){this.radius=-0,this.center=new on,this.fromCenterRadius(t,e)}fromCenterRadius(t,e){return this.center.from(t),this.radius=e,this}fromCornerPoints(t,e){return e=UA.from(e),this.center=(new on).from(t).add(e).scale(.5),this.radius=this.center.distance(e),this}equals(t){return this===t||Boolean(t)&&this.center.equals(t.center)&&this.radius===t.radius}clone(){return new QW(this.center,this.radius)}union(t){const e=this.center,i=this.radius,o=t.radius,r=UA.copy(t.center).subtract(e),a=r.magnitude();if(i>=a+o)return this.clone();if(o>=a+i)return t.clone();const l=.5*(i+a+o);return Kbe.copy(r).scale((-i+l)/a).add(e),this.center.copy(Kbe),this.radius=l,this}expand(t){const e=(t=UA.from(t)).subtract(this.center).magnitude();return e>this.radius&&(this.radius=e),this}transform(t){this.center.transform(t);const e=function(n,t){var o=t[4],r=t[5],a=t[6],l=t[8],c=t[9],d=t[10];return n[0]=Math.hypot(t[0],t[1],t[2]),n[1]=Math.hypot(o,r,a),n[2]=Math.hypot(l,c,d),n}(UA,t);return this.radius=Math.max(e[0],Math.max(e[1],e[2]))*this.radius,this}distanceSquaredTo(t){const e=this.distanceTo(t);return e*e}distanceTo(t){const e=(t=UA.from(t)).subtract(this.center);return Math.max(0,e.len()-this.radius)}intersectPlane(t){const i=this.radius,o=t.normal.dot(this.center)+t.distance;return o<-i?vc.OUTSIDE:o0&&(o=1/Math.sqrt(o)),n[0]=t[0]*o,n[1]=t[1]*o,n[2]=t[2]*o}(n,n),t0e(i,n,Math.PI),i):r>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(v3(n,s,o),i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=1+r,function(n,t){var e=t[0],i=t[1],s=t[2],o=t[3],r=e*e+i*i+s*s+o*o;return r>0&&(r=1/Math.sqrt(r)),n[0]=e*r,n[1]=i*r,n[2]=s*r,n[3]=o*r,n}(i,i))}}();e0e(),e0e(),function(){var n=new Ld(9);Ld!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[5]=0,n[6]=0,n[7]=0),n[0]=1,n[4]=1,n[8]=1}();const lpt=[0,0,0,1];class a0e extends g9{constructor(t=0,e=0,i=0,s=1){super(-0,-0,-0,-0),Array.isArray(t)&&1===arguments.length?this.copy(t):this.set(t,e,i,s)}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this.check()}set(t,e,i,s){return this[0]=t,this[1]=e,this[2]=i,this[3]=s,this.check()}fromMatrix3(t){return function(n,t){var i,e=t[0]+t[4]+t[8];if(e>0)i=Math.sqrt(e+1),n[3]=.5*i,n[0]=(t[5]-t[7])*(i=.5/i),n[1]=(t[6]-t[2])*i,n[2]=(t[1]-t[3])*i;else{var s=0;t[4]>t[0]&&(s=1),t[8]>t[3*s+s]&&(s=2);var o=(s+1)%3,r=(s+2)%3;i=Math.sqrt(t[3*s+s]-t[3*o+o]-t[3*r+r]+1),n[s]=.5*i,n[3]=(t[3*o+r]-t[3*r+o])*(i=.5/i),n[o]=(t[3*o+s]+t[3*s+o])*i,n[r]=(t[3*r+s]+t[3*s+r])*i}}(this,t),this.check()}identity(){return function(n){n[0]=0,n[1]=0,n[2]=0,n[3]=1}(this),this.check()}fromAxisRotation(t,e){return t0e(this,t,e),this.check()}setAxisAngle(t,e){return this.fromAxisRotation(t,e)}get ELEMENTS(){return 4}get x(){return this[0]}set x(t){this[0]=$l(t)}get y(){return this[1]}set y(t){this[1]=$l(t)}get z(){return this[2]}set z(t){this[2]=$l(t)}get w(){return this[3]}set w(t){this[3]=$l(t)}len(){return function(n){return Math.hypot(n[0],n[1],n[2],n[3])}(this)}lengthSquared(){return function(n){var t=n[0],e=n[1],i=n[2],s=n[3];return t*t+e*e+i*i+s*s}(this)}dot(t,e){if(void 0!==e)throw new Error("Quaternion.dot only takes one argument");return function(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}(this,t)}rotationTo(t,e){return apt(this,t,e),this.check()}add(t,e){if(void 0!==e)throw new Error("Quaternion.add only takes one argument");return function(n,t,e){n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n[3]=t[3]+e[3]}(this,this,t),this.check()}calculateW(){return function(n,t){var e=t[0],i=t[1],s=t[2];n[0]=e,n[1]=i,n[2]=s,n[3]=Math.sqrt(Math.abs(1-e*e-i*i-s*s))}(this,this),this.check()}conjugate(){return function(n,t){n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n[3]=t[3]}(this,this),this.check()}invert(){return function(n,t){var e=t[0],i=t[1],s=t[2],o=t[3],r=e*e+i*i+s*s+o*o,a=r?1/r:0;n[0]=-e*a,n[1]=-i*a,n[2]=-s*a,n[3]=o*a}(this,this),this.check()}lerp(t,e,i){return function(n,t,e,i){var s=t[0],o=t[1],r=t[2],a=t[3];n[0]=s+i*(e[0]-s),n[1]=o+i*(e[1]-o),n[2]=r+i*(e[2]-r),n[3]=a+i*(e[3]-a)}(this,t,e,i),this.check()}multiplyRight(t,e){return Kc(!e),n0e(this,this,t),this.check()}multiplyLeft(t,e){return Kc(!e),n0e(this,t,this),this.check()}normalize(){const t=this.len(),e=t>0?1/t:0;return this[0]=this[0]*e,this[1]=this[1]*e,this[2]=this[2]*e,this[3]=this[3]*e,0===t&&(this[3]=1),this.check()}rotateX(t){return function(n,t,e){e*=.5;var i=t[0],s=t[1],o=t[2],r=t[3],a=Math.sin(e),l=Math.cos(e);n[0]=i*l+r*a,n[1]=s*l+o*a,n[2]=o*l-s*a,n[3]=r*l-i*a}(this,this,t),this.check()}rotateY(t){return function(n,t,e){e*=.5;var i=t[0],s=t[1],o=t[2],r=t[3],a=Math.sin(e),l=Math.cos(e);n[0]=i*l-o*a,n[1]=s*l+r*a,n[2]=o*l+i*a,n[3]=r*l-s*a}(this,this,t),this.check()}rotateZ(t){return function(n,t,e){e*=.5;var i=t[0],s=t[1],o=t[2],r=t[3],a=Math.sin(e),l=Math.cos(e);n[0]=i*l+s*a,n[1]=s*l-i*a,n[2]=o*l+r*a,n[3]=r*l-o*a}(this,this,t),this.check()}scale(t){return s0e(this,this,t),this.check()}slerp(t,e,i){switch(arguments.length){case 1:({start:t=lpt,target:e,ratio:i}=arguments[0]);break;case 2:[e,i]=arguments,t=this}return function(n,t,e,i){var h,f,m,C,k,s=t[0],o=t[1],r=t[2],a=t[3],l=e[0],c=e[1],d=e[2],u=e[3];(f=s*l+o*c+r*d+a*u)<0&&(f=-f,l=-l,c=-c,d=-d,u=-u),1-f>qo?(h=Math.acos(f),m=Math.sin(h),C=Math.sin((1-i)*h)/m,k=Math.sin(i*h)/m):(C=1-i,k=i),n[0]=C*s+k*l,n[1]=C*o+k*c,n[2]=C*r+k*d,n[3]=C*a+k*u}(this,t,e,i),this.check()}transformVector4(t,e=t){return function(n,t,e){var i=t[0],s=t[1],o=t[2],r=e[0],a=e[1],l=e[2],c=e[3],d=c*i+a*o-l*s,u=c*s+l*i-r*o,h=c*o+r*s-a*i,f=-r*i-a*s-l*o;n[0]=d*c+f*-r+u*-l-h*-a,n[1]=u*c+f*-a+h*-r-d*-l,n[2]=h*c+f*-l+d*-a-u*-r,n[3]=t[3]}(e,t,this),yA(e,4)}lengthSq(){return this.lengthSquared()}setFromAxisAngle(t,e){return this.setAxisAngle(t,e)}premultiply(t,e){return this.multiplyLeft(t,e)}multiply(t,e){return this.multiplyRight(t,e)}}const cpt=new on,dpt=new on,lB=new on,cB=new on,dB=new on,upt=new on,hpt=new on;class JW{constructor(t=[0,0,0],e=[0,0,0,0,0,0,0,0,0]){this.center=(new on).from(t),this.halfAxes=new ml(e)}get halfSize(){const t=this.halfAxes.getColumn(0),e=this.halfAxes.getColumn(1),i=this.halfAxes.getColumn(2);return[new on(t).len(),new on(e).len(),new on(i).len()]}get quaternion(){const t=this.halfAxes.getColumn(0),e=this.halfAxes.getColumn(1),i=this.halfAxes.getColumn(2),s=new on(t).normalize(),o=new on(e).normalize(),r=new on(i).normalize();return(new a0e).fromMatrix3(new ml([...s,...o,...r]))}fromCenterHalfSizeQuaternion(t,e,i){const s=new a0e(i),o=(new ml).fromQuaternion(s);return o[0]=o[0]*e[0],o[1]=o[1]*e[0],o[2]=o[2]*e[0],o[3]=o[3]*e[1],o[4]=o[4]*e[1],o[5]=o[5]*e[1],o[6]=o[6]*e[2],o[7]=o[7]*e[2],o[8]=o[8]*e[2],this.center=(new on).from(t),this.halfAxes=o,this}clone(){return new JW(this.center,this.halfAxes)}equals(t){return this===t||Boolean(t)&&this.center.equals(t.center)&&this.halfAxes.equals(t.halfAxes)}getBoundingSphere(t=new QW){const e=this.halfAxes,i=e.getColumn(0,lB),s=e.getColumn(1,cB),o=e.getColumn(2,dB),r=cpt.copy(i).add(s).add(o);return t.center.copy(this.center),t.radius=r.magnitude(),t}intersectPlane(t){const e=this.center,i=t.normal,s=this.halfAxes,o=i.x,r=i.y,a=i.z,l=Math.abs(o*s[0]+r*s[1]+a*s[2])+Math.abs(o*s[3]+r*s[4]+a*s[5])+Math.abs(o*s[6]+r*s[7]+a*s[8]),c=i.dot(e)+t.distance;return c<=-l?vc.OUTSIDE:c>=l?vc.INSIDE:vc.INTERSECTING}distanceTo(t){return Math.sqrt(this.distanceSquaredTo(t))}distanceSquaredTo(t){const e=dpt.from(t).subtract(this.center),i=this.halfAxes,s=i.getColumn(0,lB),o=i.getColumn(1,cB),r=i.getColumn(2,dB),a=s.magnitude(),l=o.magnitude(),c=r.magnitude();s.normalize(),o.normalize(),r.normalize();let u,d=0;return u=Math.abs(e.dot(s))-a,u>0&&(d+=u*u),u=Math.abs(e.dot(o))-l,u>0&&(d+=u*u),u=Math.abs(e.dot(r))-c,u>0&&(d+=u*u),d}computePlaneDistances(t,e,i=[-0,-0]){let s=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;const r=this.center,a=this.halfAxes,l=a.getColumn(0,lB),c=a.getColumn(1,cB),d=a.getColumn(2,dB),u=upt.copy(l).add(c).add(d).add(r),h=hpt.copy(u).subtract(t);let f=e.dot(h);return s=Math.min(f,s),o=Math.max(f,o),u.copy(r).add(l).add(c).subtract(d),h.copy(u).subtract(t),f=e.dot(h),s=Math.min(f,s),o=Math.max(f,o),u.copy(r).add(l).subtract(c).add(d),h.copy(u).subtract(t),f=e.dot(h),s=Math.min(f,s),o=Math.max(f,o),u.copy(r).add(l).subtract(c).subtract(d),h.copy(u).subtract(t),f=e.dot(h),s=Math.min(f,s),o=Math.max(f,o),r.copy(u).subtract(l).add(c).add(d),h.copy(u).subtract(t),f=e.dot(h),s=Math.min(f,s),o=Math.max(f,o),r.copy(u).subtract(l).add(c).subtract(d),h.copy(u).subtract(t),f=e.dot(h),s=Math.min(f,s),o=Math.max(f,o),r.copy(u).subtract(l).subtract(c).add(d),h.copy(u).subtract(t),f=e.dot(h),s=Math.min(f,s),o=Math.max(f,o),r.copy(u).subtract(l).subtract(c).subtract(d),h.copy(u).subtract(t),f=e.dot(h),s=Math.min(f,s),o=Math.max(f,o),i[0]=s,i[1]=o,i}transform(t){this.center.transformAsPoint(t);const e=this.halfAxes.getColumn(0,lB);e.transformAsPoint(t);const i=this.halfAxes.getColumn(1,cB);i.transformAsPoint(t);const s=this.halfAxes.getColumn(2,dB);return s.transformAsPoint(t),this.halfAxes=new ml([...e,...i,...s]),this}getTransform(){throw new Error("not implemented")}}const l0e=new on,c0e=new on;class GC{constructor(t=[0,0,1],e=0){this.normal=new on,this.distance=-0,this.fromNormalDistance(t,e)}fromNormalDistance(t,e){return Kc(Number.isFinite(e)),this.normal.from(t).normalize(),this.distance=e,this}fromPointNormal(t,e){t=l0e.from(t),this.normal.from(e).normalize();const i=-this.normal.dot(t);return this.distance=i,this}fromCoefficients(t,e,i,s){return this.normal.set(t,e,i),Kc(Fv(this.normal.len(),1)),this.distance=s,this}clone(t){return new GC(this.normal,this.distance)}equals(t){return Fv(this.distance,t.distance)&&Fv(this.normal,t.normal)}getPointDistance(t){return this.normal.dot(t)+this.distance}transform(t){const e=c0e.copy(this.normal).transformAsVector(t).normalize(),i=this.normal.scale(-this.distance).transform(t);return this.fromPointNormal(i,e)}projectPointOntoPlane(t,e=[0,0,0]){t=l0e.from(t);const i=this.getPointDistance(t),s=c0e.copy(this.normal).scale(i);return t.subtract(s).to(e)}}const d0e=[new on([1,0,0]),new on([0,1,0]),new on([0,0,1])],u0e=new on,ppt=new on;new GC(new on(1,0,0),0);class $k{static get MASK_OUTSIDE(){return 4294967295}static get MASK_INSIDE(){return 0}static get MASK_INDETERMINATE(){return 2147483647}constructor(t=[]){this.planes=t,Kc(this.planes.every(e=>e instanceof GC))}fromBoundingSphere(t){this.planes.length=2*d0e.length;const e=t.center,i=t.radius;let s=0;for(const o of d0e){let r=this.planes[s],a=this.planes[s+1];r||(r=this.planes[s]=new GC),a||(a=this.planes[s+1]=new GC);const l=u0e.copy(o).scale(-i).add(e);o.dot(l),r.fromPointNormal(l,o);const d=u0e.copy(o).scale(i).add(e),u=ppt.copy(o).negate();u.dot(d),a.fromPointNormal(d,u),s+=2}return this}computeVisibility(t){Kc(t);let e=vc.INSIDE;for(const i of this.planes)switch(t.intersectPlane(i)){case vc.OUTSIDE:return vc.OUTSIDE;case vc.INTERSECTING:e=vc.INTERSECTING}return e}computeVisibilityWithPlaneMask(t,e){if(Kc(t,"boundingVolume is required."),Kc(Number.isFinite(e),"parentPlaneMask is required."),e===$k.MASK_OUTSIDE||e===$k.MASK_INSIDE)return e;let i=$k.MASK_INSIDE;const s=this.planes;for(let o=0;oi&&(s=c,i=d)}const o=iq[s],r=sq[s];let a=1,l=0;if(Math.abs(n[Sg.getElementIndex(r,o)])>1e-15){const h=(n[Sg.getElementIndex(r,r)]-n[Sg.getElementIndex(o,o)])/2/n[Sg.getElementIndex(r,o)];let f;f=h<0?-1/(-h+Math.sqrt(1+h*h)):1/(h+Math.sqrt(1+h*h)),a=1/Math.sqrt(1+f*f),l=f*a}return ml.IDENTITY.to(t),t[Sg.getElementIndex(o,o)]=t[Sg.getElementIndex(r,r)]=a,t[Sg.getElementIndex(r,o)]=l,t[Sg.getElementIndex(o,r)]=-l,t}const zv=new on,Npt=new on,Bpt=new on,Vpt=new on,zpt=new on,Hpt=new ml,Gpt={diagonal:new ml,unitary:new ml},g0e=[[.5,.5],[0,0],[0,1],[1,0],[1,1]],$pt=g0e.concat([[0,.5],[.5,0],[1,.5],[.5,1]]);class Wk{constructor(t,e,i){this.x=t,this.y=e,this.z=i}get children(){if(!this._children){const t=2*this.x,e=2*this.y,i=this.z+1;this._children=[new Wk(t,e,i),new Wk(t,e+1,i),new Wk(t+1,e,i),new Wk(t+1,e+1,i)]}return this._children}update(t){const{viewport:e,cullingVolume:i,elevationBounds:s,minZ:o,maxZ:r,offset:a,project:l}=t,c=this.getBoundingVolume(s,a,l);if(i.computeVisibility(c)<0)return!1;if(!this.childVisible){let{z:u}=this;if(u=o){const h=c.distanceTo(e.cameraPosition)*e.scale/e.height;u+=Math.floor(Math.log2(h))}if(u>=r)return this.selected=!0,!0}this.selected=!1,this.childVisible=!0;for(const u of this.children)u.update(t);return!0}getSelected(t=[]){if(this.selected&&t.push(this),this._children)for(const e of this._children)e.getSelected(t);return t}getBoundingVolume(t,e,i){if(i){const l=this.z<2?$pt:g0e,c=[];for(const d of l){const u=aq(this.x+d[0],this.y+d[1],this.z);u[2]=t[0],c.push(i(u)),t[0]!==t[1]&&(u[2]=t[1],c.push(i(u)))}return function(n,t=new JW){if(!n||0===n.length)return t.halfAxes=new ml([0,0,0,0,0,0,0,0,0]),t.center=new on,t;const e=n.length,i=new on(0,0,0);for(const Te of n)i.add(Te);const s=1/e;i.multiplyByScalar(s);let o=0,r=0,a=0,l=0,c=0,d=0;for(const Te of n){const Ee=zv.copy(Te).subtract(i);o+=Ee.x*Ee.x,r+=Ee.x*Ee.y,a+=Ee.x*Ee.z,l+=Ee.y*Ee.y,c+=Ee.y*Ee.z,d+=Ee.z*Ee.z}o*=s,r*=s,a*=s,l*=s,c*=s,d*=s;const u=Hpt;u[0]=o,u[1]=r,u[2]=a,u[3]=r,u[4]=l,u[5]=c,u[6]=a,u[7]=c,u[8]=d;const{unitary:h}=function(n,t={}){let s=0,o=0;const r=Apt,a=Fpt;r.identity(),a.copy(n);const l=1e-20*function(n){let t=0;for(let e=0;e<9;++e){const i=n[e];t+=i*i}return Math.sqrt(t)}(a);for(;o<10&&Ppt(a)>l;)Lpt(a,uB),p0e.copy(uB).transpose(),a.multiplyRight(uB),a.multiplyLeft(p0e),r.multiplyRight(uB),++s>2&&(++o,s=0);return t.unitary=r.toTarget(t.unitary),t.diagonal=a.toTarget(t.diagonal),t}(u,Gpt),f=t.halfAxes.copy(h);let m=f.getColumn(0,Bpt),C=f.getColumn(1,Vpt),k=f.getColumn(2,zpt),D=-Number.MAX_VALUE,E=-Number.MAX_VALUE,O=-Number.MAX_VALUE,z=Number.MAX_VALUE,q=Number.MAX_VALUE,re=Number.MAX_VALUE;for(const Te of n)zv.copy(Te),D=Math.max(zv.dot(m),D),E=Math.max(zv.dot(C),E),O=Math.max(zv.dot(k),O),z=Math.min(zv.dot(m),z),q=Math.min(zv.dot(C),q),re=Math.min(zv.dot(k),re);m=m.multiplyByScalar(.5*(z+D)),C=C.multiplyByScalar(.5*(q+E)),k=k.multiplyByScalar(.5*(re+O)),t.center.copy(m).add(C).add(k);const ie=Npt.set(D-z,E-q,O-re).multiplyByScalar(.5),Se=new ml([ie[0],0,0,0,ie[1],0,0,0,ie[2]]);return t.halfAxes.multiplyRight(Se),t}(c)}const o=512/Math.pow(2,this.z),r=this.x*o+512*e,a=512-(this.y+1)*o;return new ZW([r,a,t[0]],[r+o,a+o,t[1]])}}const Ay=512,m0e=[-1/0,-1/0,1/0,1/0],Wpt={type:"url",value:null,validate:(n,t)=>t.optional&&null===n||"string"==typeof n||Array.isArray(n)&&n.every(e=>"string"==typeof e),equals:(n,t)=>{if(n===t)return!0;if(!Array.isArray(n)||!Array.isArray(t))return!1;const e=n.length;if(e!==t.length)return!1;for(let i=0;is[0])),Math.min(...e.map(s=>s[1])),Math.max(...e.map(s=>s[0])),Math.max(...e.map(s=>s[1]))]}function _0e(n,t){if(!n||!n.length)return null;Array.isArray(n)&&(n=n[Math.abs(t.x+t.y)%n.length]);const{x:e,y:i,z:s}=t;return n.replace("{x}",e).replace("{y}",i).replace("{z}",s).replace("{-y}",Math.pow(2,s)-i-1)}function rq(n,t){return Math.pow(2,n)*Ay/t}function aq(n,t,e){const i=rq(e,Ay),o=Math.PI-2*Math.PI*t/i;return[n/i*360-180,180/Math.PI*Math.atan(.5*(Math.exp(o)-Math.exp(-o)))]}function v0e(n,t,e,i){const s=rq(e,i);return[n/s*Ay,t/s*Ay]}function Ypt(n,t,e,i,s=Ay){if(n.isGeospatial){const[c,d]=aq(t,e,i),[u,h]=aq(t+1,e+1,i);return{west:c,north:d,east:u,south:h}}const[o,r]=v0e(t,e,i,s),[a,l]=v0e(t+1,e+1,i,s);return{left:o,top:r,right:a,bottom:l}}function Zpt({viewport:n,maxZoom:t,minZoom:e,zRange:i,extent:s,tileSize:o=Ay,modelMatrix:r,modelMatrixInverse:a,zoomOffset:l=0}){let c=n.isGeospatial?Math.round(n.zoom+Math.log2(Ay/o))+l:Math.ceil(n.zoom)+l;if(Number.isFinite(e)&&ct&&(c=t);let d=s;return r&&a&&s&&!n.isGeospatial&&(d=y0e(s,r)),n.isGeospatial?function(n,t,e){const i=n.resolution?n.projectPosition:null,s=Object.values(n.getFrustumPlanes()).map(({normal:h,distance:f})=>new GC(h.clone().negate(),f)),o=new $k(s),r=n.distanceScales.unitsPerMeter[2],a=e&&e[0]*r||0,l=e&&e[1]*r||0,c=n.pitch<=60?t:0,d=new Wk(0,0,0),u={viewport:n,project:i,cullingVolume:o,elevationBounds:[a,l],minZ:c,maxZ:t,offset:0};if(d.update(u),n.subViewports&&n.subViewports.length>1){for(u.offset=-1;d.update(u)&&!(--u.offset<-3););for(u.offset=1;d.update(u)&&!(++u.offset>3););}return d.getSelected()}(n,c,i):function(n,t,e,i,s){const o=function(n,t,e){let i;return i=n.getBounds(),n.isGeospatial?[Math.max(i[0],e[0]),Math.max(i[1],e[1]),Math.min(i[2],e[2]),Math.min(i[3],e[3])]:[Math.max(Math.min(i[0],e[2]),e[0]),Math.max(Math.min(i[1],e[3]),e[1]),Math.min(Math.max(i[2],e[0]),e[2]),Math.min(Math.max(i[3],e[1]),e[3])]}(n,0,i),r=rq(t,e),[a,l,c,d]=function(n,t,e){return e?y0e(n,e).map(s=>s*t/Ay):n.map(i=>i*t/Ay)}(o,r,s),u=[];for(let h=Math.floor(a);h0)){if(!this.props.throttleRequests)return Promise.resolve({done:()=>{}});if(this.requestMap.has(t))return this.requestMap.get(t);const i={handle:t,priority:0,getPriority:e},s=new Promise(o=>(i.resolve=o,i));return this.requestQueue.push(i),this.requestMap.set(t,s),this._issueNewRequests(),s}_issueRequest(t){const{handle:e,resolve:i}=t;let s=!1;const o=()=>{s||(s=!0,this.requestMap.delete(e),this.activeRequestCount--,this._issueNewRequests())};return this.activeRequestCount++,i?i({done:o}):Promise.resolve({done:o})}_issueNewRequests(){this.deferredUpdate||(this.deferredUpdate=setTimeout(()=>this._issueNewRequestsAsync(),0))}_issueNewRequestsAsync(){this.deferredUpdate=null;const t=Math.max(this.props.maxRequests-this.activeRequestCount,0);if(0!==t){this._updateAllRequests();for(let e=0;ee.priority-i.priority)}_updateRequest(t){return t.priority=t.getPriority(t.handle),!(t.priority<0&&(t.resolve(null),1))}}const lq="best-available";class dft{constructor(t){this.opts=t,this._getTileData=t.getTileData,this.onTileError=t.onTileError,this.onTileLoad=e=>{t.onTileLoad(e),this.opts.maxCacheByteSize&&(this._cacheByteSize+=e.byteLength,this._resizeCache())},this.onTileUnload=t.onTileUnload,this._requestScheduler=new oft({maxRequests:t.maxRequests,throttleRequests:t.maxRequests>0}),this._cache=new Map,this._tiles=[],this._dirty=!1,this._cacheByteSize=0,this._viewport=null,this._selectedTiles=null,this._frameNumber=0,this.setOptions(t)}get tiles(){return this._tiles}get selectedTiles(){return this._selectedTiles}get isLoaded(){return this._selectedTiles.every(t=>t.isLoaded)}setOptions(t){Object.assign(this.opts,t),Number.isFinite(t.maxZoom)&&(this._maxZoom=Math.floor(t.maxZoom)),Number.isFinite(t.minZoom)&&(this._minZoom=Math.ceil(t.minZoom))}finalize(){for(const t of this._cache.values())t.isLoading&&t.abort()}update(t,{zRange:e,modelMatrix:i}={}){const s=new Nd(i),o=!s.equals(this._modelMatrix);if(!t.equals(this._viewport)||o){o&&(this._modelMatrixInverse=i&&s.clone().invert(),this._modelMatrix=i&&s),this._viewport=t;const a=this.getTileIndices({viewport:t,maxZoom:this._maxZoom,minZoom:this._minZoom,zRange:e,modelMatrix:this._modelMatrix,modelMatrixInverse:this._modelMatrixInverse});this._selectedTiles=a.map(l=>this._getTile(l,!0)),this._dirty&&this._rebuildTree()}const r=this.updateTileStates();return this._dirty&&this._resizeCache(),r&&this._frameNumber++,this._frameNumber}getTileIndices({viewport:t,maxZoom:e,minZoom:i,zRange:s,modelMatrix:o,modelMatrixInverse:r}){const{tileSize:a,extent:l,zoomOffset:c}=this.opts;return Zpt({viewport:t,maxZoom:e,minZoom:i,zRange:s,tileSize:a,extent:l,modelMatrix:o,modelMatrixInverse:r,zoomOffset:c})}getTileMetadata({x:t,y:e,z:i}){const{tileSize:s}=this.opts;return{bbox:Ypt(this._viewport,t,e,i,s)}}getParentIndex(t){return t.x=Math.floor(t.x/2),t.y=Math.floor(t.y/2),t.z-=1,t}updateTileStates(){this._updateTileStates(this.selectedTiles);const{maxRequests:t}=this.opts,e=[];let i=0,s=!1;for(const o of this._cache.values()){const r=Boolean(1&o.state);o.isVisible!==r&&(s=!0,o.isVisible=r),o.isSelected=5===o.state,o.isLoading&&(i++,o.isSelected||e.push(o))}if(t>0)for(;i>t&&e.length>0;)e.shift().abort(),i--;return s}_rebuildTree(){const{_cache:t}=this;for(const e of t.values())e.parent=null,e.children.length=0;for(const e of t.values()){const i=this._getNearestAncestor(e.x,e.y,e.z);e.parent=i,i&&i.children.push(e)}}_updateTileStates(t){const{_cache:e}=this,i=this.opts.refinementStrategy||lq;for(const s of e.values())s.state=0;for(const s of t)s.state=5;if("never"!==i){for(const s of t)hft(s,i);for(const s of t)uft(s)&&w0e(s)}}_resizeCache(){const{_cache:t,opts:e}=this,i=e.maxCacheSize||(e.maxCacheByteSize?1/0:5*this.selectedTiles.length),s=e.maxCacheByteSize||1/0;if(t.size>i||this._cacheByteSize>s){for(const[r,a]of t)if(a.isVisible||(this._cacheByteSize-=e.maxCacheByteSize?a.byteLength:0,t.delete(r),this.onTileUnload(a)),t.size<=i&&this._cacheByteSize<=s)break;this._rebuildTree(),this._dirty=!0}this._dirty&&(this._tiles=Array.from(this._cache.values()).sort((r,a)=>r.z-a.z),this._dirty=!1)}_getTile({x:t,y:e,z:i},s){const o="".concat(t,",").concat(e,",").concat(i);let r=this._cache.get(o);return!r&&s?(r=new Nht({x:t,y:e,z:i,onTileLoad:this.onTileLoad,onTileError:this.onTileError}),Object.assign(r,this.getTileMetadata(r)),r.loadData(this._getTileData,this._requestScheduler),this._cache.set(o,r),this._dirty=!0):r&&r.isCancelled&&!r.isLoading&&r.loadData(this._getTileData,this._requestScheduler),r}_getNearestAncestor(t,e,i){const{_minZoom:s=0}=this;let o={x:t,y:e,z:i};for(;o.z>s;){o=this.getParentIndex(o);const r=this._getTile(o);if(r)return r}return null}}function uft(n){let t=n;for(;t;){if(!1&t.state)return!0;if(t.isLoaded)return!1;t=t.parent}return!0}function hft(n,t){let e,i=3;for(;e=n.parent;){if(n.isLoaded&&(i=4,t===lq))return;e.state=Math.max(e.state,i),n=e}}function w0e(n){for(const t of n.children)t.state=Math.max(t.state,3),t.isLoaded||w0e(t)}const pft={data:[],dataComparator:Wpt.equals,renderSubLayers:{type:"function",value:n=>new rB(n),compare:!1},getTileData:{type:"function",optional:!0,value:null,compare:!1},onViewportLoad:{type:"function",optional:!0,value:null,compare:!1},onTileLoad:{type:"function",value:n=>{},compare:!1},onTileUnload:{type:"function",value:n=>{},compare:!1},onTileError:{type:"function",value:n=>console.error(n),compare:!1},extent:{type:"array",optional:!0,value:null,compare:!0},tileSize:512,maxZoom:null,minZoom:0,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:lq,zRange:null,maxRequests:6,zoomOffset:0};let T0e,jC,dq,hB,uq,hq,WA,S0e=(()=>{class n extends X3{initializeState(){this.state={tileset:null,isLoaded:!1}}finalizeState(){var e;null===(e=this.state.tileset)||void 0===e||e.finalize()}get isLoaded(){const{tileset:e}=this.state;return e.selectedTiles.every(i=>i.layers&&i.layers.every(s=>s.isLoaded))}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState({props:e,changeFlags:i}){let{tileset:s}=this.state;!s||i.dataChanged||i.updateTriggersChanged&&(i.updateTriggersChanged.all||i.updateTriggersChanged.getTileData)?(s&&s.finalize(),s=new dft(yn(Ne({},this._getTilesetOptions(e)),{getTileData:this.getTileData.bind(this),onTileLoad:this._onTileLoad.bind(this),onTileError:this._onTileError.bind(this),onTileUnload:this._onTileUnload.bind(this)})),this.setState({tileset:s})):(i.propsChanged||i.updateTriggersChanged)&&(s.setOptions(this._getTilesetOptions(e)),this.state.tileset.tiles.forEach(r=>{r.layers=null})),this._updateTileset()}_getTilesetOptions(e){const{tileSize:i,maxCacheSize:s,maxCacheByteSize:o,refinementStrategy:r,extent:a,maxZoom:l,minZoom:c,maxRequests:d,zoomOffset:u}=e;return{maxCacheSize:s,maxCacheByteSize:o,maxZoom:l,minZoom:c,tileSize:i,refinementStrategy:r,extent:a,maxRequests:d,zoomOffset:u}}_updateTileset(){const{tileset:e}=this.state,{zRange:i,modelMatrix:s}=this.props,o=e.update(this.context.viewport,{zRange:i,modelMatrix:s}),{isLoaded:r}=e,l=this.state.frameNumber!==o;r&&(this.state.isLoaded!==r||l)&&this._onViewportLoad(),l&&this.setState({frameNumber:o}),this.state.isLoaded=r}_onViewportLoad(){const{tileset:e}=this.state,{onViewportLoad:i}=this.props;i&&i(e.selectedTiles)}_onTileLoad(e){this.getCurrentLayer().props.onTileLoad(e),e.isVisible&&this.setNeedsUpdate()}_onTileError(e,i){const s=this.getCurrentLayer();s.props.onTileError(e),s._updateTileset(),i.isVisible&&this.setNeedsUpdate()}_onTileUnload(e){this.getCurrentLayer().props.onTileUnload(e)}getTileData(e){const{data:i}=this.props,{getTileData:s,fetch:o}=this.getCurrentLayer().props,{signal:r}=e;return e.url=_0e(i,e),s?s(e):e.url?o(e.url,{propName:"data",layer:this,signal:r}):null}renderSubLayers(e){return this.props.renderSubLayers(e)}getHighlightedObjectIndex(){return-1}getPickingInfo({info:e,sourceLayer:i}){return e.tile=i.props.tile,e}_updateAutoHighlight(e){e.sourceLayer&&e.sourceLayer.updateAutoHighlight(e)}renderLayers(){const{visible:e}=this.props;return this.state.tileset.tiles.map(i=>{const s=this.getHighlightedObjectIndex(i);if(i.isLoaded)if(i.layers)i.layers[0]&&i.layers[0].props.highlightedObjectIndex!==s&&(i.layers=i.layers.map(o=>o.clone({highlightedObjectIndex:s})));else{const o=this.renderSubLayers(yn(Ne({},this.props),{id:"".concat(this.id,"-").concat(i.x,"-").concat(i.y,"-").concat(i.z),data:i.data,visible:e,_offset:0,tile:i}));i.layers=x3(o,Boolean).map(r=>r.clone({tile:i,highlightedObjectIndex:s}))}return i.layers})}filterSubLayer({layer:e}){return e.props.tile.isVisible}}return n.layerName="TileLayer",n.defaultProps=pft,n})();class cq{static get types(){return["Unknown","Point","LineString","Polygon"]}constructor(t,e,i,s,o){this.properties={},this.extent=i,this.type=0,this.id=null,this._pbf=t,this._geometry=-1,this._keys=s,this._values=o,t.readFields(mft,this,e)}loadGeometry(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let i=1,s=0,o=0,r=0;const a=[];let l;for(;t.pos>3}if(s--,1===i||2===i)o+=t.readSVarint(),r+=t.readSVarint(),1===i&&(l&&a.push(l),l=[]),l.push([o,r]);else{if(7!==i)throw new Error(`unknown command ${i}`);l&&l.push(l[0].slice())}}return l&&a.push(l),a}bbox(){const t=this._pbf;t.pos=this._geometry;const e=t.readVarint()+t.pos;let i=1,s=0,o=0,r=0,a=1/0,l=-1/0,c=1/0,d=-1/0;for(;t.pos>3}if(s--,1===i||2===i)o+=t.readSVarint(),r+=t.readSVarint(),ol&&(l=o),rd&&(d=r);else if(7!==i)throw new Error(`unknown command ${i}`)}return[a,c,l,d]}_toGeoJSON(t){let s,o,e=this.loadGeometry(),i=cq.types[this.type];switch(this.type){case 1:var r=[];for(s=0;s=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];const e=this._pbf.readVarint()+this._pbf.pos;return new cq(this._pbf,e,this.extent,this._keys,this._values)}}function vft(n,t,e){15===n?t.version=e.readVarint():1===n?t.name=e.readString():5===n?t.extent=e.readVarint():2===n?t._features.push(e.pos):3===n?t._keys.push(e.readString()):4===n&&t._values.push(function(n){let t=null;const e=n.readVarint()+n.pos;for(;n.pos>3;t=1===i?n.readString():2===i?n.readFloat():3===i?n.readDouble():4===i?n.readVarint64():5===i?n.readVarint():6===i?n.readSVarint():7===i?n.readBoolean():null}return t}(e))}class Cft{constructor(t,e){this.layers=t.readFields(xft,{},e)}}function xft(n,t,e){if(3===n){const i=new _ft(e,e.readVarint()+e.pos);i.length&&(t[i.name]=i)}}class pq{static get types(){return["Unknown","Point","LineString","Polygon"]}constructor(t,e,i,s,o,r){this.properties={},this.extent=i,this.type=0,this.id=null,this._pbf=t,this._geometry=-1,this._keys=s,this._values=o,this._firstPassData=r,t.readFields(wft,this,e)}loadGeometry(){const t=this._pbf;t.pos=this._geometry,T0e=t.readVarint()+t.pos,jC=1,hB=0,uq=0,hq=0,WA=0;const e=[],i=[];for(;t.pos>3),hB--,1===jC||2===jC)uq+=t.readSVarint(),hq+=t.readSVarint(),1===jC&&e.push(WA),i.push(uq,hq),WA+=2;else{if(7!==jC)throw new Error(`unknown command ${jC}`);if(WA>0){const s=e[e.length-1];i.push(i[s],i[s+1]),WA+=2}}return{data:i,lines:e}}_toBinaryCoordinates(t){let e=this.loadGeometry();switch(t(e.data,this),this.type){case 1:this._firstPassData.pointFeaturesCount++,this._firstPassData.pointPositionsCount+=e.lines.length;break;case 2:this._firstPassData.lineFeaturesCount++,this._firstPassData.linePathsCount+=e.lines.length,this._firstPassData.linePositionsCount+=e.data.length/2;break;case 3:const o=function(n){const t=n.lines.length;if(t<=1)return{data:n.data,areas:[[Y3(n.data)]],lines:[n.lines]};const e=[],i=[];let s,o,r,a=0;for(let c,d,l=0;l1&&(e.type=`Multi${e.type}`);const s={type:"Feature",geometry:e,properties:this.properties};return null!==this.id&&(s.id=this.id),s}toBinaryCoordinates(t){if("function"==typeof t)return this._toBinaryCoordinates(t);const{x:e,y:i,z:s}=t,o=this.extent*Math.pow(2,s),r=this.extent*e,a=this.extent*i;return this._toBinaryCoordinates(function(c){for(let d=0,u=c.length;d=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];const i=this._pbf.readVarint()+this._pbf.pos;return new pq(this._pbf,i,this.extent,this._keys,this._values,e)}}function kft(n,t,e){15===n?t.version=e.readVarint():1===n?t.name=e.readString():5===n?t.extent=e.readVarint():2===n?t._features.push(e.pos):3===n?t._keys.push(e.readString()):4===n&&t._values.push(function(n){let t=null;const e=n.readVarint()+n.pos;for(;n.pos>3;t=1===i?n.readString():2===i?n.readFloat():3===i?n.readDouble():4===i?n.readVarint64():5===i?n.readVarint():6===i?n.readSVarint():7===i?n.readBoolean():null}return t}(e))}class Mft{constructor(t,e){this.layers=t.readFields(Eft,{},e)}}function Eft(n,t,e){if(3===n){const i=new Tft(e,e.readVarint()+e.pos);i.length&&(t[i.name]=i)}}function D0e(n){const t={};for(const e of n)if(e.properties)for(const i in e.properties){const s=t[i];(s||void 0===s)&&(t[i]=Lft(e.properties[i]))}return Object.keys(t).filter(e=>t[e])}function Aft(n,t,e,i,s){t.positions.set(n.data,e.pointPosition*i);const o=n.data.length/i;fq(t,s,e.pointPosition,o),t.globalFeatureIds.fill(e.feature,e.pointPosition,e.pointPosition+o),t.featureIds.fill(e.pointFeature,e.pointPosition,e.pointPosition+o),e.pointPosition+=o}function Fft(n,t,e,i,s){t.positions.set(n.data,e.linePosition*i);const o=n.data.length/i;fq(t,s,e.linePosition,o),t.globalFeatureIds.fill(e.feature,e.linePosition,e.linePosition+o),t.featureIds.fill(e.lineFeature,e.linePosition,e.linePosition+o);for(let r=0,a=n.lines.length;r80*e){u=c=n[0],h=d=n[1];for(let C=e;Cc&&(c=f),m>d&&(d=m);l=Math.max(c-u,d-h),l=0!==l?1/l:0}return zA(r,a,e,u,h,l),a}(l,e.slice(1).map(h=>(h-c)/o),o,t);for(let h=0,f=u.length;h0){const o=e?new Mft(new(E0e())(n)):new Cft(new(E0e())(n)),r=t.mvt;(Array.isArray(r.layers)?r.layers:Object.keys(o.layers)).forEach(l=>{const c=o.layers[l],d=yn(Ne({},r),{layerName:l});if(c)for(let u=0;u65535?Uint32Array:Uint16Array,D={positions:new f(2*i),globalFeatureIds:new k(i),featureIds:s>65535?new Uint32Array(i):new Uint16Array(i),numericProps:{},properties:[],fields:[]},E={pathIndices:o>65535?new Uint32Array(r+1):new Uint16Array(r+1),positions:new f(2*o),globalFeatureIds:new k(o),featureIds:a>65535?new Uint32Array(o):new Uint16Array(o),numericProps:{},properties:[],fields:[]},O={polygonIndices:l>65535?new Uint32Array(c+1):new Uint16Array(c+1),primitivePolygonIndices:l>65535?new Uint32Array(d+1):new Uint16Array(d+1),positions:new f(2*l),triangles:[],globalFeatureIds:new k(l),featureIds:u>65535?new Uint32Array(l):new Uint16Array(l),numericProps:{},properties:[],fields:[]};for(const q of[D,E,O])for(const re of h)q.numericProps[re]=new Float32Array(q.positions.length/2);E.pathIndices[r]=o,O.polygonIndices[c]=l,O.primitivePolygonIndices[d]=l;const z={pointPosition:0,pointFeature:0,linePosition:0,linePath:0,lineFeature:0,polygonPosition:0,polygonObject:0,polygonRing:0,polygonFeature:0,feature:0};for(const q of n){const re=q.geometry,ie=q.properties||{};switch(re.type){case"Point":case"MultiPoint":Aft(re,D,z,2,ie),D.properties.push(gq(ie,h)),m&&D.fields.push({id:q.id}),z.pointFeature++;break;case"LineString":case"MultiLineString":Fft(re,E,z,2,ie),E.properties.push(gq(ie,h)),m&&E.fields.push({id:q.id}),z.lineFeature++;break;case"Polygon":case"MultiPolygon":Oft(re,O,z,2,ie),O.properties.push(gq(ie,h)),m&&O.fields.push({id:q.id}),z.polygonFeature++;break;default:throw new Error("Invalid geometry type")}z.feature++}return function(n,t,e,i){const s={points:yn(Ne({},n),{positions:{value:n.positions,size:2},globalFeatureIds:{value:n.globalFeatureIds,size:1},featureIds:{value:n.featureIds,size:1}}),lines:yn(Ne({},t),{pathIndices:{value:t.pathIndices,size:1},positions:{value:t.positions,size:2},globalFeatureIds:{value:t.globalFeatureIds,size:1},featureIds:{value:t.featureIds,size:1}}),polygons:yn(Ne({},e),{polygonIndices:{value:e.polygonIndices,size:1},primitivePolygonIndices:{value:e.primitivePolygonIndices,size:1},positions:{value:e.positions,size:2},triangles:{value:new Uint32Array(e.triangles),size:1},globalFeatureIds:{value:e.globalFeatureIds,size:1},featureIds:{value:e.featureIds,size:1}})};for(const o in s)for(const r in s[o].numericProps)s[o].numericProps[r]={value:s[o].numericProps[r],size:1};return s}(D,E,O)}(n,t,{numericPropKeys:e.numericPropKeys||D0e(n),PositionDataType:e.PositionDataType||Float32Array})}(i,s,t.gis);return o.byteLength=n.byteLength,o}return i}function Vft(n,t={}){const e=n.toGeoJSON("wgs84"===t.coordinates?t.tileIndex:Hft);return t.layerProperty&&(e.properties[t.layerProperty]=t.layerName),e}function zft(n,t={}){const e=n.toBinaryCoordinates("wgs84"===t.coordinates?t.tileIndex:Gft);return t.layerProperty&&(e.properties[t.layerProperty]=t.layerName),e}function Hft(n,t){const{extent:e}=t;for(let i=0;i1?{type:"MultiPoint",coordinates:s}:{type:"Point",coordinates:s[0]}}(n,t,e);case"LineString":return function(n,t=-1/0,e=1/0){const{positions:i}=n,s=n.pathIndices.value.filter(a=>a>=t&&a<=e);if(!(s.length>2))return{type:"LineString",coordinates:fB(i,s[0],s[1])};const r=[];for(let a=0;al>=t&&l<=e),o=n.primitivePolygonIndices.value.filter(l=>l>=t&&l<=e);if(!(s.length>2)){const l=[];for(let c=0;c= clip_bounds[0] && position.y >= clip_bounds[1] && position.x < clip_bounds[2] && position.y < clip_bounds[3];\n}\n",Zft={name:"clip-vs",vs:B0e},Qft={"vs:#decl":"\nvarying float clip_isVisible;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_isVisible = float(clip_isInBounds(geometry.worldPosition.xy));\n","fs:#decl":"\nvarying float clip_isVisible;\n","fs:DECKGL_FILTER_COLOR":"\n if (clip_isVisible < 0.5) discard;\n"},Jft={name:"clip-fs",fs:B0e},egt={"vs:#decl":"\nvarying vec2 clip_commonPosition;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_commonPosition = geometry.position.xy;\n","fs:#decl":"\nvarying vec2 clip_commonPosition;\n","fs:DECKGL_FILTER_COLOR":"\n if (!clip_isInBounds(clip_commonPosition)) discard;\n"};let tgt=(()=>{class n extends class{constructor(t={}){this.opts=t}equals(t){return this===t||this.constructor===t.constructor&&qk(this.opts,t.opts)}getShaders(t){return null}getSubLayerProps(t){const{defaultProps:e={}}=t.constructor,i={updateTriggers:{}};for(const s in e)if(s in this.props){const o=e[s],r=this.props[s];i[s]=r,o&&"accessor"===o.type&&(i.updateTriggers[s]=this.props.updateTriggers[s],"function"==typeof r&&(i[s]=this.getSubLayerAccessor(r,!0)))}return i}initializeState(t,e){}updateState(t,e){}draw(t,e){}finalizeState(t){}}{getShaders(){let e="instancePositions"in this.getAttributeManager().attributes;return"clipByInstance"in this.props&&(e=this.props.clipByInstance),this.state.clipByInstance=e,e?{modules:[Zft],inject:Qft}:{modules:[Jft],inject:egt}}draw({uniforms:e}){const{clipBounds:i=N0e.clipBounds}=this.props;if(this.state.clipByInstance)e.clip_bounds=i;else{const s=this.projectPosition([i[0],i[1],0]),o=this.projectPosition([i[2],i[3],0]);e.clip_bounds=[Math.min(s[0],o[0]),Math.min(s[1],o[1]),Math.max(s[0],o[0]),Math.max(s[1],o[1])]}}}return n.extensionName="ClipExtension",n.defaultProps=N0e,n})();const ngt={Point:V0e,MultiPoint:function(n,t,e){return mq(n,t,e)},LineString:z0e,MultiLineString:function(n,t,e){return n.map(i=>z0e(i,t,e))},Polygon:H0e,MultiPolygon:function(n,t,e){return n.map(i=>H0e(i,t,e))}};function V0e([n,t],[e,i],s){const o=Ty(e[0],i[0],n),r=Ty(e[1],i[1],t);return s.unprojectFlat([o,r])}function mq(n,t,e){return n.map(i=>V0e(i,t,e))}function z0e(n,t,e){return mq(n,t,e)}function H0e(n,t,e){return n.map(i=>mq(i,t,e))}const agt=["points","lines","polygons"];function cgt(n,t,e,i){const s=n.featureIds.value;if(!s.length)return-1;let o=0,r=s[s.length-1]+1;if(i){const l=function(n,t){if(!n.__layers){const e={},{properties:i}=n;for(let s=0;sc===e&&s[d]>=o&&s[d]=0?n.globalFeatureIds.value[l]:-1}return a=t?G0e(n.properties,l=>l[t]===e,o,r):G0e(n.fields,l=>l.id===e,o,r),a>=0?function(n,t){if(!n.__ids){const e=[],i=n.featureIds.value,s=n.globalFeatureIds.value;for(let o=0;ot.minZoom&&(e.minZoom=i.minzoom),Number.isFinite(i.maxzoom)&&(!Number.isFinite(t.maxZoom)||i.maxzoom{const h=vq(u,s)===d,f=l||j0e(u)===i;return h&&f}):a&&r?function(n,t,e,i){for(const s of agt){const o=n[s]&&cgt(n[s],t,e,i);if(o>=0)return o}return-1}(a,s,d,l?"":i):-1}_pickObjects(t){const{deck:e,viewport:i}=this.context;return e.pickObjects({x:i.x,y:i.y,width:i.width,height:i.height,layerIds:[this.id],maxObjects:t})}getRenderedFeatures(t=null){const e=this._pickObjects(t),i=new Set,s=[];for(const o of e){const r=vq(o.object,this.props.uniqueIdProperty);void 0===r?s.push(o.object):i.has(r)||(i.add(r),s.push(o.object))}return s}_setWGS84PropertyForTiles(){const t="dataInWGS84",{tileset:e}=this.state;e.selectedTiles.forEach(i=>{i.hasOwnProperty(t)||Object.defineProperty(i,t,{get:()=>{if(!i.content)return null;if(this.props.binary&&Array.isArray(i.content)&&!i.content.length)return[];if(void 0===i._contentWGS84){const s=this.props.binary?F0e(i.content):i.content;i._contentWGS84=s.map(o=>U0e(o,i.bbox,this.context.viewport))}return i._contentWGS84}})})}}function vq(n,t){return t?n.properties[t]:"id"in n?n.id:void 0}function j0e(n){var t;return(null===(t=n.properties)||void 0===t?void 0:t.layerName)||null}function $0e(n){return null!=n&&""!==n}function U0e(n,t,e){const i=yn(Ne({},n),{geometry:{type:n.geometry.type}});return Object.defineProperty(i.geometry,"coordinates",{get:()=>function(n,t,e){const o=[e.projectFlat([t.west,t.north]),e.projectFlat([t.east,t.south])];return yn(Ne({},n),{coordinates:ngt[n.type](n.coordinates,o,e)})}(n.geometry,t,e).coordinates}),i}_q.layerName="MVTLayer",_q.defaultProps=hgt;const ua={V1:"v1",V2:"v2",V3:"v3"},Zc={QUERY:"query",TABLE:"table",TILESET:"tileset"};function Xk(n,t){return"".concat(n,"=").concat(encodeURIComponent(t))}const W0e={username:"public",apiKey:"default_public",region:"us",mapsUrl:null},q0e={accessToken:null,apiBaseUrl:null,mapsUrl:null};let mB={};function X0e(n){const t=n.apiVersion||ua.V2;switch(t){case ua.V1:n.mapsUrl=n.mapsUrl||"https://{user}.carto.com/api/v1/map",mB=Ne(Ne({apiVersion:t},W0e),n);break;case ua.V2:n.mapsUrl=n.mapsUrl||"https://maps-api-v2.{region}.carto.com/user/{user}",mB=Ne(Ne({apiVersion:t},W0e),n);break;case ua.V3:if(!n.apiBaseUrl)throw new Error("API version ".concat(ua.V3," requires to define apiBaseUrl at credentials. Go to https://app.carto.com to get your apiBaseUrl."));const e=n.apiBaseUrl||q0e.apiBaseUrl;n.mapsUrl=n.mapsUrl||Y0e(e),mB=Ne(Ne({apiVersion:t},q0e),n);break;default:throw new Error("Invalid API version ".concat(t,". Use API_VERSIONS enum."))}}function yB(){return mB}function Y0e(n){let t="/v3/maps";return n.endsWith("/")&&(t=t.substring(1)),"".concat(n).concat(t)}function bq(n){return Cq.apply(this,arguments)}function Cq(){return(Cq=Xe(function*({method:n,url:t,format:e,accessToken:i,body:s}){let o;const r={Accept:"application/json"};i&&(r.Authorization="Bearer ".concat(i)),"POST"===n&&(r["Content-Type"]="application/json");try{o=yield fetch(t,{method:n,headers:r,body:s})}catch(l){throw new Error("Failed to connect to Maps API: ".concat(l))}if("ndjson"===e)return o;const a=yield o.json();return o.ok||mgt({response:o,error:a.error}),a.rows?a.rows:a})).apply(this,arguments)}function mgt({response:n,error:t}){switch(n.status){case 401:case 403:throw new Error("Unauthorized access to Maps API");default:throw new Error(t)}}function ygt({type:n,source:t}){const i=[Xk("client","deck-gl-carto")];return i.push(Xk(n===Zc.QUERY?"q":"name",t)),i.join("&")}function _gt(n){return xq.apply(this,arguments)}function xq(){return(xq=Xe(function*({type:n,source:t,connection:e,credentials:i}){const s="".concat(i.mapsUrl,"/").concat(e,"/").concat(n),o="".concat(s,"?").concat(ygt({type:n,source:t})),{accessToken:r}=i,a="json";if(o.length>2048&&n===Zc.QUERY){const l=JSON.stringify({q:t,client:"deck-gl-carto"});return yield bq({method:"POST",url:s,format:a,accessToken:r,body:l})}return yield bq({url:o,format:a,accessToken:r})})).apply(this,arguments)}function K0e(n,t){const e=n[t];return e&&!e.error&&e.url?e.url[0]:null}function wq(){return(wq=Xe(function*({type:n,source:t,connection:e,credentials:i,format:s}){const o=Ne(Ne({},yB()),i);$n.assert(e,"Must define connection"),$n.assert(n,"Must define a type"),$n.assert(t,"Must define a source"),$n.assert(o.apiVersion===ua.V3,"Method only available for v3"),$n.assert(o.apiBaseUrl,"Must define apiBaseUrl"),$n.assert(o.accessToken,"Must define an accessToken"),$n.assert(o.mapsUrl,"mapsUrl cannot be undefined"),o.mapsUrl||(o.mapsUrl=Y0e(o.apiBaseUrl));const r=yield _gt({type:n,source:t,connection:e,credentials:o});let a,l;if(s)l=s,a=K0e(r,s),$n.assert(a,"Format ".concat(s," not available"));else{const d=["geojson","ndjson","tilejson"];for(const u of d)if(a=K0e(r,u),a){l=u;break}}const{accessToken:c}=o;return yield bq({url:a,format:l,accessToken:c})})).apply(this,arguments)}X0e({});function Sq(){return(Sq=Xe(function*({type:n,source:t,credentials:e}){const i=Ne(Ne({},yB()),e),{apiVersion:s}=i;let o;const r="tileset"===n?"bigquery":"carto";switch(s){case ua.V1:return o=Sgt({mapConfig:kgt(t),credentials:i}),(yield Q0e({url:o,credentials:i})).metadata.tilejson.vector;case ua.V2:return o=Tgt({connection:r,type:n,source:t,credentials:i}),yield Q0e({url:o,credentials:i});default:throw new Error("Invalid maps API version. It shoud be ".concat(ua.V1," or ").concat(ua.V2))}})).apply(this,arguments)}function Q0e(n){return Tq.apply(this,arguments)}function Tq(){return(Tq=Xe(function*({url:n,credentials:t}){let e;try{e=yield fetch(n,{headers:{Accept:"application/json"}})}catch(s){throw new Error("Failed to connect to Maps API: ".concat(s))}const i=yield e.json();return e.ok||wgt({response:e,json:i,credentials:t}),i})).apply(this,arguments)}function wgt({response:n,json:t,credentials:e}){switch(n.status){case 401:throw new Error("Unauthorized access to Maps API: invalid combination of user ('".concat(e.username,"') and apiKey ('").concat(e.apiKey,"')"));case 403:throw new Error("Unauthorized access to dataset: the provided apiKey('".concat(e.apiKey,"') doesn't provide access to the requested data"));default:const i=e.apiVersion===ua.V1?JSON.stringify(t.errors):t.error;throw new Error(i)}}function J0e(n){return[Xk("api_key",n.apiKey),Xk("client","deck-gl-carto")]}function Sgt({mapConfig:n,credentials:t}){const e=J0e(t),i=JSON.stringify(n);return"".concat(eCe(t),"?").concat(e.join("&"),"&").concat(Xk("config",i))}function Tgt({connection:n,type:t,source:e,credentials:i}){const s=J0e(i),o=t===Zc.QUERY?"sql":t;let r="".concat(eCe(i),"/").concat(n,"/").concat(o,"?");return r+="".concat(Xk("source",e),"&format=tilejson&").concat(s.join("&")),r}function eCe(n){return n.mapsUrl.replace("{user}",n.username).replace("{region}",n.region)}function kgt(n){return{version:"1.3.1",buffersize:{mvt:16},layers:[{type:"mapnik",options:{sql:n,vector_extent:4096}}]}}const Dgt={data:null,type:null,onDataLoad:{type:"function",value:n=>{},compare:!1},onDataError:{type:"function",value:null,compare:!1,optional:!0},credentials:null,connection:null};let Fy=(()=>{class n extends X3{initializeState(){this.state={data:null,apiVersion:null}}get isLoaded(){return this.getSubLayers().length>0&&super.isLoaded}_checkProps(e){const{type:i,credentials:s,connection:o}=e,r=Ne(Ne({},yB()),s),{apiVersion:a}=r;$n.assert(Object.values(ua).includes(a),"Invalid apiVersion ".concat(a,". Use API_VERSIONS enum.")),a===ua.V1||a===ua.V2?($n.assert(i===Zc.QUERY||i===Zc.TILESET,"Invalid type ".concat(i,". Use type MAP_TYPES.QUERY or MAP_TYPES.TILESET for apiVersion ").concat(a)),$n.assert(!o,"Connection prop is not supported for apiVersion ".concat(a))):a===ua.V3&&($n.assert(o,"Missing mandatory connection parameter"),$n.assert(Object.values(Zc).includes(i),"Invalid type ".concat(i,". Use MAP_TYPES enum.")))}updateState({props:e,oldProps:i,changeFlags:s}){this._checkProps(e),(s.dataChanged||e.connection!==i.connection||e.type!==i.type||JSON.stringify(e.credentials)!==JSON.stringify(i.credentials))&&(this.setState({data:null,apiVersion:null}),this._updateData())}_updateData(){var e=this;return Xe(function*(){try{const{type:i,data:s,connection:o,credentials:r}=e.props,a=Ne(Ne({},yB()),r),{apiVersion:l}=a;let c;l===ua.V3?c=yield function(n){return wq.apply(this,arguments)}({type:i,source:s,connection:o,credentials:r}):l===ua.V1||l===ua.V2?c=yield function(n){return Sq.apply(this,arguments)}({type:i,source:s,credentials:r}):$n.assert("Unknow apiVersion ".concat(l,". Use API_VERSIONS enum.")),e.setState({data:c,apiVersion:l}),e.props.onDataLoad(c)}catch(i){if(!e.props.onDataError)throw i;e.props.onDataError(i)}})()}renderLayers(){const{data:e,apiVersion:i}=this.state,{type:s}=this.props;if(!e)return null;const{updateTriggers:o}=this.props;let r;r=i===ua.V1||i===ua.V2||s===Zc.TILESET?_q:rB;const a=Ne({},this.props);return delete a.data,new r(a,this.getSubLayerProps({id:"carto-".concat(r.layerName),data:e,updateTriggers:o}))}}return n.layerName="CartoLayer",n.defaultProps=Dgt,n})();const Mgt=yn(Ne({},Fy.defaultProps),{type:Zc.QUERY,uniqueIdProperty:"cartodb_id"});let _B=(()=>{class n extends Fy{constructor(...e){super(...e),$n.warn("CartoSQLLayer will be removed in future versions. Use CartoLayer with type=MAP_TYPES.QUERY and apiVersion=API_VERSIONS.V2")()}}return n.layerName="CartoSQLLayer",n.defaultProps=Mgt,n})();const Er={SA3FilterByYear:"\n SELECT \n sa3.the_geom, sa3.the_geom_webmercator, \n sa3.sa3_code16, \n sa3.sa3_name16 as name,\n sa3yearly_temperature.timestamp, \n sa3yearly_temperature.avgtemp as avgtemp, \n (sa3yearly_temperature.rhist_theatavg * 100) as rhist_theatavg, \n (sa3yearly_temperature.rhist_tcoldavg * 100) as rhist_tcoldavg,\n (sa3yearly_temperature.rhvi * 100) as heat_vul_index, \n (sa3yearly_temperature.rcvi * 100) as cold_vul_index,\n (sa3yearly_temperature.e_heat * 100) as e_heat,\n (sa3yearly_temperature.s_heat * 100) as s_heat,\n (sa3yearly_temperature.a_heat * 100) as a_heat,\n (sa3yearly_temperature.e_cold * 100) as e_cold,\n (sa3yearly_temperature.s_cold * 100) as s_cold,\n (sa3yearly_temperature.a_cold * 100) as a_cold \n FROM sa3, sa3yearly_temperature\n where sa3.sa3_code16 = sa3yearly_temperature.sa3_code16 and sa3yearly_temperature.timestamp = [filter]\n ",SA3FilterByMonth:"\n select \n sa3.the_geom,sa3.the_geom_webmercator, \n sa3.sa3_code16, \n sa3.sa3_name16 as name,\n sa3monthly_temperature.timestamp, \n sa3monthly_temperature.avgtemp as avgtemp, \n (sa3monthly_temperature.rhist_theatavg * 100) as rhist_theatavg, \n (sa3monthly_temperature.rhist_tcoldavg * 100) as rhist_tcoldavg,\n (sa3monthly_temperature.rhvi * 100) as heat_vul_index, \n (sa3monthly_temperature.rcvi * 100) as cold_vul_index,\n (sa3monthly_temperature.e_heat * 100) as e_heat,\n (sa3monthly_temperature.s_heat * 100) as s_heat,\n (sa3monthly_temperature.a_heat * 100) as a_heat,\n (sa3monthly_temperature.e_cold * 100) as e_cold,\n (sa3monthly_temperature.s_cold * 100) as s_cold,\n (sa3monthly_temperature.a_cold * 100) as a_cold \n FROM sa3, sa3monthly_temperature\n where sa3.sa3_code16 = sa3monthly_temperature.sa3_code16 and sa3monthly_temperature.timestamp = [filter]\n ",SA3:"\n SELECT\n the_geom,\n the_geom_webmercator,\n sa3_code16,\n sa3_name16 as name\n FROM\n sa3\n ",SA3Filter:"\n SELECT\n the_geom,\n the_geom_webmercator,\n sa3_code16,\n sa3_name16 as name\n FROM\n sa3\n WHERE\n sa3_code16 = [filter]\n ",SA2FilterByYear:"\n SELECT \n sa2.the_geom, sa2.the_geom_webmercator, \n sa2.sa2_main16, \n sa2.sa2_name16 as name,\n combined_climate_sa2_yearly.year, \n combined_climate_sa2_yearly.avgtemp as avgtemp, \n (combined_climate_sa2_yearly.rhist_theatavg * 100) as rhist_theatavg, \n (combined_climate_sa2_yearly.rhist_tcoldavg * 100) as rhist_tcoldavg,\n (combined_climate_sa2_yearly.rhvi * 100) as heat_vul_index, \n (combined_climate_sa2_yearly.rcvi * 100) as cold_vul_index,\n (combined_climate_sa2_yearly.e_heat * 100) as e_heat,\n (combined_climate_sa2_yearly.s_heat * 100) as s_heat,\n (combined_climate_sa2_yearly.a_heat * 100) as a_heat,\n (combined_climate_sa2_yearly.e_cold * 100) as e_cold,\n (combined_climate_sa2_yearly.s_cold * 100) as s_cold,\n (combined_climate_sa2_yearly.a_cold * 100) as a_cold \n FROM sa2, combined_climate_sa2_yearly\n where sa2.sa2_main16 = combined_climate_sa2_yearly.sa2_main16 and combined_climate_sa2_yearly.year = [filter]\n ",SA2FilterByMonth:"\n select \n sa2.the_geom,sa2.the_geom_webmercator, \n sa2.sa2_main16, \n sa2.sa2_name16 as name,\n combined_climate_sa2_monthly.year, \n combined_climate_sa2_monthly.month, \n combined_climate_sa2_monthly.avgtemp as avgtemp, \n (combined_climate_sa2_monthly.rhist_theatavg * 100) as rhist_theatavg, \n (combined_climate_sa2_monthly.rhist_tcoldavg * 100) as rhist_tcoldavg,\n (combined_climate_sa2_monthly.rhvi * 100) as heat_vul_index, \n (combined_climate_sa2_monthly.rcvi * 100) as cold_vul_index,\n (combined_climate_sa2_monthly.e_heat * 100) as e_heat,\n (combined_climate_sa2_monthly.s_heat * 100) as s_heat,\n (combined_climate_sa2_monthly.a_heat * 100) as a_heat,\n (combined_climate_sa2_monthly.e_cold * 100) as e_cold,\n (combined_climate_sa2_monthly.s_cold * 100) as s_cold,\n (combined_climate_sa2_monthly.a_cold * 100) as a_cold \n FROM sa2, combined_climate_sa2_monthly\n where sa2.sa2_main16 = combined_climate_sa2_monthly.sa2_main16 and combined_climate_sa2_monthly.year = [filterYear] and combined_climate_sa2_monthly.month = [filterMonth]\n ",SA2:"\n SELECT\n the_geom,\n the_geom_webmercator,\n sa2_main16,\n sa2_name16 as name\n FROM\n sa2\n ",SA2Filter:"\n SELECT\n the_geom,\n the_geom_webmercator,\n sa2_main16,\n sa2_name16 as name\n FROM\n sa2\n WHERE\n sa2_main16 = [filter]\n ",SA4Filter:"\n SELECT\n the_geom,\n the_geom_webmercator,\n sa4_code16,\n sa4_name16 as name\n FROM\n sa4\n WHERE\n sa4_code16 = [filter]\n ",StateForecastClimateByYear:"\n SELECT \n state.the_geom,state.the_geom_webmercator, \n state.ste_code16, \n state.ste_name16 as name, \n state.ste_abbrev as abbrev, \n forecast_climate_ste_yearly.year, \n (forecast_climate_ste_yearly.avgfctemp) as avgfctemp, \n (forecast_climate_ste_yearly.rhist_avgfctemp * 100) as rhist_avgfctemp,\n (forecast_climate_ste_yearly.natrisk_fcheat) as natrisk_fcheat, \n (forecast_climate_ste_yearly.nhighrisk_fcheat) as nhighrisk_fcheat\n FROM state, forecast_climate_ste_yearly\n where state.ste_code16 = forecast_climate_ste_yearly.ste_code16 and forecast_climate_ste_yearly.year = [filter]\n ",StateForecastClimateByMonth:"\n SELECT \n state.the_geom,state.the_geom_webmercator, \n state.ste_code16, \n state.ste_name16 as name, \n state.ste_abbrev as abbrev, \n forecast_climate_ste_monthly.year, \n forecast_climate_ste_monthly.month, \n (forecast_climate_ste_monthly.avgfctemp) as avgfctemp, \n (forecast_climate_ste_monthly.rhist_avgfctemp * 100) as rhist_avgfctemp,\n (forecast_climate_ste_monthly.natrisk_fcheat) as natrisk_fcheat, \n (forecast_climate_ste_monthly.nhighrisk_fcheat) as nhighrisk_fcheat\n FROM state, forecast_climate_ste_monthly\n where state.ste_code16 = forecast_climate_ste_monthly.ste_code16 \n and forecast_climate_ste_monthly.year = [filterYear] and forecast_climate_ste_monthly.month = [filterMonth]\n ",StateList:"\n SELECT \n state.the_geom,state.the_geom_webmercator, \n state.ste_code16, \n state.ste_name16 as name, \n state.ste_abbrev as abbrev \n FROM state \n ",SA3ForecastClimateByYear:"\n SELECT \n sa3.the_geom,sa3.the_geom_webmercator, \n sa3.sa3_code16, \n sa3.sa3_name16 as name, \n forecast_climate_sa3_yearly.year, \n (forecast_climate_sa3_yearly.avgfctemp) as avgfctemp, \n (forecast_climate_sa3_yearly.rhist_avgfctemp * 100) as rhist_avgfctemp,\n (forecast_climate_sa3_yearly.natrisk_fcheat) as natrisk_fcheat, \n (forecast_climate_sa3_yearly.nhighrisk_fcheat) as nhighrisk_fcheat\n FROM sa3, forecast_climate_sa3_yearly\n where sa3.sa3_code16 = forecast_climate_sa3_yearly.sa3_code16 \n and forecast_climate_sa3_yearly.year = [filterYear]\n and sa3.ste_code16 = [statecode]\n ",SA3ForecastClimateByMonth:"\n SELECT \n sa3.the_geom,sa3.the_geom_webmercator, \n sa3.sa3_code16, \n sa3.sa3_name16 as name, \n forecast_climate_sa3_monthly.year, \n (forecast_climate_sa3_monthly.avgfctemp) as avgfctemp, \n (forecast_climate_sa3_monthly.rhist_avgfctemp * 100) as rhist_avgfctemp,\n (forecast_climate_sa3_monthly.natrisk_fcheat) as natrisk_fcheat, \n (forecast_climate_sa3_monthly.nhighrisk_fcheat) as nhighrisk_fcheat\n FROM sa3, forecast_climate_sa3_monthly\n where sa3.sa3_code16 = forecast_climate_sa3_monthly.sa3_code16 \n and forecast_climate_sa3_monthly.year = [filterYear]\n and forecast_climate_sa3_monthly.month = [filterMonth]\n and sa3.ste_code16 = [statecode]\n ",SA4AirQualityByMonth:"\n SELECT \n sa4.the_geom,sa4.the_geom_webmercator, \n sa4.sa4_code16, \n sa4.sa4_name16 as name, \n combined_airquality_sa4_monthly.year, \n combined_airquality_sa4_monthly.month, \n combined_airquality_sa4_monthly.not1_avgo3, \n combined_airquality_sa4_monthly.not2_avgo3, \n combined_airquality_sa4_monthly.not1_avgno2, \n combined_airquality_sa4_monthly.not2_avgno2, \n combined_airquality_sa4_monthly.not1_avgno, \n combined_airquality_sa4_monthly.not2_avgno, \n combined_airquality_sa4_monthly.not1_avgpm25, \n combined_airquality_sa4_monthly.not2_avgpm25, \n (combined_airquality_sa4_monthly.aqvi * 100) as aqvi,\n (combined_airquality_sa4_monthly.e_aq * 100) as e_aq,\n (combined_airquality_sa4_monthly.s_aq * 100) as s_aq,\n (combined_airquality_sa4_monthly.a_aq * 100) as a_aq\n FROM sa4, combined_airquality_sa4_monthly\n where sa4.sa4_code16 = combined_airquality_sa4_monthly.sa4_code16 and combined_airquality_sa4_monthly.year =[filterYear] \n and combined_airquality_sa4_monthly.month = [filterMonth]\n ",SA4AirQualityByYear:"\n SELECT \n sa4.the_geom,sa4.the_geom_webmercator, \n sa4.sa4_code16, \n sa4.sa4_name16 as name, \n combined_airquality_sa4_yearly.year, \n combined_airquality_sa4_yearly.not1_avgo3, \n combined_airquality_sa4_yearly.not2_avgo3, \n combined_airquality_sa4_yearly.not1_avgno2, \n combined_airquality_sa4_yearly.not2_avgno2, \n combined_airquality_sa4_yearly.not1_avgno, \n combined_airquality_sa4_yearly.not2_avgno, \n combined_airquality_sa4_yearly.not1_avgpm25, \n combined_airquality_sa4_yearly.not2_avgpm25, \n (combined_airquality_sa4_yearly.aqvi * 100) as aqvi,\n (combined_airquality_sa4_yearly.e_aq * 100) as e_aq,\n (combined_airquality_sa4_yearly.s_aq * 100) as s_aq,\n (combined_airquality_sa4_yearly.a_aq * 100) as a_aq\n FROM sa4, combined_airquality_sa4_yearly\n where sa4.sa4_code16 = combined_airquality_sa4_yearly.sa4_code16 and combined_airquality_sa4_yearly.year =[filterYear] \n ",SA3AirQualityByMonth:"\n SELECT \n sa3.the_geom,sa3.the_geom_webmercator, \n sa3.sa4_code16, \n sa3.sa3_code16, \n sa3.sa3_name16 as name, \n combined_airquality_sa3_monthly.year, \n combined_airquality_sa3_monthly.month, \n combined_airquality_sa3_monthly.not1_avgo3, \n combined_airquality_sa3_monthly.not2_avgo3, \n combined_airquality_sa3_monthly.not1_avgno2, \n combined_airquality_sa3_monthly.not2_avgno2, \n combined_airquality_sa3_monthly.not1_avgno, \n combined_airquality_sa3_monthly.not2_avgno, \n combined_airquality_sa3_monthly.not1_avgpm25, \n combined_airquality_sa3_monthly.not2_avgpm25, \n (combined_airquality_sa3_monthly.aqvi * 100) as aqvi,\n (combined_airquality_sa3_monthly.e_aq * 100) as e_aq,\n (combined_airquality_sa3_monthly.s_aq * 100) as s_aq,\n (combined_airquality_sa3_monthly.a_aq * 100) as a_aq\n FROM sa3, combined_airquality_sa3_monthly\n where sa3.sa3_code16 = combined_airquality_sa3_monthly.sa3_code16 and combined_airquality_sa3_monthly.year =[filterYear] \n and combined_airquality_sa3_monthly.month = [filterMonth]\n ",SA3AirQualityByYear:"\n SELECT \n sa3.the_geom,sa3.the_geom_webmercator, \n sa3.sa4_code16, \n sa3.sa3_code16, \n sa3.sa3_name16 as name, \n combined_airquality_sa3_yearly.year, \n combined_airquality_sa3_yearly.not1_avgo3, \n combined_airquality_sa3_yearly.not2_avgo3, \n combined_airquality_sa3_yearly.not1_avgno2, \n combined_airquality_sa3_yearly.not2_avgno2, \n combined_airquality_sa3_yearly.not1_avgno, \n combined_airquality_sa3_yearly.not2_avgno, \n combined_airquality_sa3_yearly.not1_avgpm25, \n combined_airquality_sa3_yearly.not2_avgpm25, \n (combined_airquality_sa3_yearly.aqvi * 100) as aqvi,\n (combined_airquality_sa3_yearly.e_aq * 100) as e_aq,\n (combined_airquality_sa3_yearly.s_aq * 100) as s_aq,\n (combined_airquality_sa3_yearly.a_aq * 100) as a_aq\n FROM sa3, combined_airquality_sa3_yearly\n where sa3.sa3_code16 = combined_airquality_sa3_yearly.sa3_code16 and combined_airquality_sa3_yearly.year =[filterYear] \n "};function Yk(n){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]}function tCe(n,t){return Number.parseInt(n+t)}var Xa=(()=>(function(n){n.Yearly="yearly",n.Monthly="monthly"}(Xa||(Xa={})),Xa))();let Egt=(()=>{class n{constructor(e){this.store=e}createGeoJsonLayer(e){return new rB({id:"geojson-layer",data:e,pickable:!0,stroked:!1,filled:!0,extruded:!0,pointType:"circle",lineWidthScale:20,lineWidthMinPixels:2,getFillColor:[160,160,180,200],getLineColor:[160,160,180,200],getPointRadius:100,getLineWidth:1,getElevation:30})}createTileLayer(e,i,s,o,r,a){return new S0e({id:e,data:i,visible:s,minZoom:o,maxZoom:r,tileSize:a,lineWidthMinPixels:.6,renderSubLayers:l=>{const{bbox:{west:c,south:d,east:u,north:h}}=l.tile;return new Pht(l,{data:null,image:l.data,bounds:[c,d,u,h]})}})}createSA3Layer(){const e=this.store.selectSnapshot(s=>s.map.layers.sa3Layer);return new _B({id:e.id,data:Er.SA3,visible:e.isVisible,pickable:!0,stroked:!0,autoHighlight:!0,filled:!0,extruded:!1,lineWidthScale:20,lineWidthMinPixels:1,getFillColor:[160,160,180,200],getLineColor:[160,0,0],getPointRadius:100})}createHighlightSA3Layer(e){const i=this.store.selectSnapshot(o=>o.map.layers.sa3Layer);return new _B({id:i.id,data:Er.SA3Filter.replace("[filter]",e.toString()),visible:i.isVisible,pickable:!0,stroked:!0,autoHighlight:!0,filled:!1,extruded:!1,lineWidthScale:20,lineWidthMinPixels:2,getLineColor:[0,255,255]})}createHighlightSA4Layer(e){return new _B({id:"sa4_highlighted_layer",data:Er.SA4Filter.replace("[filter]",e.toString()),visible:!0,pickable:!0,stroked:!0,autoHighlight:!0,filled:!1,extruded:!1,lineWidthScale:20,lineWidthMinPixels:2,getLineColor:[0,255,255]})}createHighlightSA2Layer(e){const i=this.store.selectSnapshot(o=>o.map.layers.sa2Layer);return new _B({id:i.id,data:Er.SA2Filter.replace("[filter]",e.toString()),visible:i.isVisible,pickable:!0,stroked:!0,autoHighlight:!0,filled:!1,extruded:!1,lineWidthScale:20,lineWidthMinPixels:3,getLineColor:[0,255,255]})}createSA3TileLayer(){const e=this.store.selectSnapshot(i=>i.map.layers.sa3Layer);return this.createTileLayer(e.id,e.url,e.isVisible,0,19,256)}createLGALayer(){const e=this.store.selectSnapshot(i=>i.map.layers.lgaLayer);return this.createTileLayer(e.id,e.url,e.isVisible,0,19,256)}createBOMTmaxLayer(){const e=this.store.selectSnapshot(i=>i.map.layers.bomTmaxLayer);return this.createTileLayer(e.id,e.url,e.isVisible,0,19,256)}createSA2HeatRiskAssessFilterLayer(){const e=this.store.selectSnapshot(r=>r.heatriskassessment.analysisFilter),i=this.store.selectSnapshot(r=>r.heatriskassessment.analysisResult),s=this.store.selectSnapshot(r=>r.heatriskassessment.rankingList);let o=Er.SA2FilterByYear;switch(e.filterType){case"yearly":o=Er.SA2FilterByYear.replace("[filter]",e.filterYear.toString());break;case"monthly":o=Er.SA2FilterByMonth.replace("[filterYear]",e.filterYear.toString()).replace("[filterMonth]",e.filterMonth.toString())}return new Fy({id:`sa2FilterLayer_${i.sa2AnalysisIndicator}`,uniqueIdProperty:"sa2_main16",type:Zc.QUERY,data:o,onViewportLoad:r=>{},visible:!0,opacity:.5,pickable:!0,stroked:!0,autoHighlight:!0,getLineColor:[0,0,100],lineWidthMinPixels:.6,getFillColor:r=>{let a=r.properties[i.sa2AnalysisIndicator],l=s[4].colorCode,c=s.filter(d=>d.min<=a&&a<=d.max);return c.length>0&&(l=c[0].colorCode),Yk(l)}})}createSA3HeatRiskAssessFilterLayer(){const e=this.store.selectSnapshot(r=>r.heatriskassessment.analysisFilter),i=this.store.selectSnapshot(r=>r.heatriskassessment.analysisResult),s=this.store.selectSnapshot(r=>r.heatriskassessment.rankingList);let o=Er.SA3FilterByYear;switch(e.filterType){case"yearly":o=Er.SA3FilterByYear.replace("[filter]",e.filterYear.toString());break;case"monthly":let r=tCe(e.filterYear.toString(),e.filterMonth.toLocaleString("en-AU",{minimumIntegerDigits:2,useGrouping:!1}));o=Er.SA3FilterByMonth.replace("[filter]",r.toString())}return new Fy({id:`sa3FilterLayer_${i.sa3AnalysisIndicator}`,uniqueIdProperty:"sa3_code16",type:Zc.QUERY,data:o,onViewportLoad:r=>{},visible:!0,opacity:.5,pickable:!0,stroked:!0,autoHighlight:!0,getLineColor:[0,0,100],lineWidthMinPixels:.6,getFillColor:r=>{let a=r.properties[i.sa3AnalysisIndicator],l=s[4].colorCode,c=s.filter(d=>d.min<=a&&a<=d.max);return c.length>0&&(l=c[0].colorCode),Yk(l)}})}createClimateChangeForecastStateLayer(){let e=this.store.selectSnapshot(r=>r.heatclimatechange.indicator),i=this.store.selectSnapshot(r=>r.heatclimatechange.rankingList),s=this.store.selectSnapshot(r=>r.heatclimatechange.filter),o=Er.SA3FilterByYear;switch(s.filterType){case Xa.Yearly:o=Er.StateForecastClimateByYear.replace("[filter]",s.filterYear.toString());break;case Xa.Monthly:o=Er.StateForecastClimateByMonth.replace("[filterYear]",s.filterYear.toString()).replace("[filterMonth]",s.filterMonth.toString())}return new Fy({id:`climatechangeForecast_state_${e}`,uniqueIdProperty:"ste_code16",type:Zc.QUERY,data:o,onViewportLoad:r=>{},visible:!0,opacity:.5,pickable:!0,stroked:!0,autoHighlight:!0,getLineColor:[0,0,100],lineWidthMinPixels:.6,getFillColor:r=>{let a=r.properties[e],l=i[4].colorCode,c=i.filter(d=>d.min<=a&&a<=d.max);return c.length>0&&(l=c[0].colorCode),Yk(l)}})}createAirQualityImpactSA4Layer(){let e=this.store.selectSnapshot(r=>r.airimpact.analysisResult.sa4AnalysisIndicator),i=this.store.selectSnapshot(r=>r.airimpact.rankingList),s=this.store.selectSnapshot(r=>r.airimpact.analysisFilter),o=Er.SA4AirQualityByYear;switch(s.filterType){case Xa.Yearly:o=Er.SA4AirQualityByYear.replace("[filter]",s.filterYear.toString());break;case Xa.Monthly:o=Er.SA4AirQualityByMonth.replace("[filterYear]",s.filterYear.toString()).replace("[filterMonth]",s.filterMonth.toString())}return new Fy({id:`airquality_sa4_${e}`,uniqueIdProperty:"sa4_code16",type:Zc.QUERY,data:o,onViewportLoad:r=>{},visible:!0,opacity:.5,pickable:!0,stroked:!0,autoHighlight:!0,getLineColor:[0,0,100],lineWidthMinPixels:.6,getFillColor:r=>{let a=r.properties[e],l=i[4].colorCode,c=i.filter(d=>d.min<=a&&a<=d.max);return c.length>0&&(l=c[0].colorCode),Yk(l)}})}createAirQualityImpactSA3Layer(){let e=this.store.selectSnapshot(r=>r.airimpact.analysisResult.sa3AnalysisIndicator),i=this.store.selectSnapshot(r=>r.airimpact.rankingList),s=this.store.selectSnapshot(r=>r.airimpact.analysisFilter),o=Er.SA3AirQualityByYear;switch(s.filterType){case Xa.Yearly:o=Er.SA3AirQualityByYear.replace("[filter]",s.filterYear.toString());break;case Xa.Monthly:o=Er.SA3AirQualityByMonth.replace("[filterYear]",s.filterYear.toString()).replace("[filterMonth]",s.filterMonth.toString())}return new Fy({id:`airquality_sa3_${e}`,uniqueIdProperty:"sa3_code16",type:Zc.QUERY,data:o,onViewportLoad:r=>{},visible:!0,opacity:.5,pickable:!0,stroked:!0,autoHighlight:!0,getLineColor:[0,0,100],lineWidthMinPixels:.6,getFillColor:r=>{let a=r.properties[e],l=i[4].colorCode,c=i.filter(d=>d.min<=a&&a<=d.max);return c.length>0&&(l=c[0].colorCode),Yk(l)}})}createEmptyClimateChangeStateLayer(){let e=this.store.selectSnapshot(s=>s.heatclimatechange.indicator);return new Fy({id:`climatechangeForecast_state_${e}`,uniqueIdProperty:"ste_code16",type:Zc.QUERY,data:Er.StateList,onViewportLoad:s=>{},visible:!0,opacity:.5,pickable:!0,stroked:!0,autoHighlight:!0,getLineColor:[0,0,100],lineWidthMinPixels:.6,getFillColor:[128,128,128]})}createClimateChangeForecastSA3Layer(){let e=this.store.selectSnapshot(r=>r.heatclimatechange.indicator),i=this.store.selectSnapshot(r=>r.heatclimatechange.rankingList),s=this.store.selectSnapshot(r=>r.heatclimatechange.filter),o=Er.SA3FilterByYear;switch(s.filterType){case Xa.Yearly:o=Er.SA3ForecastClimateByYear.replace("[statecode]",s.filterStateCode.toString()).replace("[filterYear]",s.filterYear.toString());break;case Xa.Monthly:o=Er.SA3ForecastClimateByMonth.replace("[statecode]",s.filterStateCode.toString()).replace("[filterYear]",s.filterYear.toString()).replace("[filterMonth]",s.filterMonth.toString())}return new Fy({id:`climatechangeForecast_sa3_${e}`,uniqueIdProperty:"sa3_code16",type:Zc.QUERY,data:o,onViewportLoad:r=>{},visible:!0,opacity:.5,pickable:!0,stroked:!0,autoHighlight:!0,getLineColor:[0,0,100],lineWidthMinPixels:.6,getFillColor:r=>{let a=r.properties[e],l=i[4].colorCode,c=i.filter(d=>d.min<=a&&a<=d.max);return c.length>0&&(l=c[0].colorCode),Yk(l)}})}}return n.\u0275fac=function(e){return new(e||n)(V(zi))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Oy{constructor(t,e){this.store=t,this.layerfactory=e}pingService(){}createLayers(){try{const t=this.store.selectSnapshot(i=>i.map.currentOverlay),e=this.store.selectSnapshot(i=>i.map.layers);return t?t.layers.map(i=>{if(e[i].isActive)return this.layerfactory[e[i].factoryFunc]()}):[]}catch(t){return[]}}createSA3FilterLayers(){return[this.layerfactory.createSA3HeatRiskAssessFilterLayer()]}createSA2FilterLayers(){return[this.layerfactory.createSA2HeatRiskAssessFilterLayer()]}createSA4AirQualityFilterLayers(){return[this.layerfactory.createAirQualityImpactSA4Layer()]}createSA3AirQualityFilterLayers(){return[this.layerfactory.createAirQualityImpactSA3Layer()]}createSA3HighlightLayers(t){return[this.layerfactory.createHighlightSA3Layer(t)]}createSA4HighlightLayers(t){return[this.layerfactory.createHighlightSA4Layer(t)]}createSA2HighlightLayers(t){return[this.layerfactory.createHighlightSA2Layer(t)]}highlightFeature(t){this.highlightLayer.forEach(e=>{this.highlightLayer.remove(e)}),this.highlightLayer.add(t)}createClimateChangeForecastFilterLayer(){let e=null;switch(this.store.selectSnapshot(i=>i.heatclimatechange.filter.filterLevelType)){case go.SA3:let i=this.layerfactory.createEmptyClimateChangeStateLayer();return e=this.layerfactory.createClimateChangeForecastSA3Layer(),[i,e];case go.State:default:e=this.layerfactory.createClimateChangeForecastStateLayer()}return e?[e]:[]}CreateGeojonLayerWithData(t){return[this.layerfactory.createGeoJsonLayer(t)]}}Oy.\u0275fac=function(t){return new(t||Oy)(V(zi),V(Egt))},Oy.\u0275prov=ue({token:Oy,factory:Oy.\u0275fac,providedIn:"root"}),nt([rn(n=>n.map.layers)],Oy.prototype,"layers$",void 0);const kq_yearKeyValue=[{key:"1",value:"2000"},{key:"2",value:"2001"},{key:"3",value:"2002"},{key:"4",value:"2003"},{key:"5",value:"2004"},{key:"6",value:"2005"},{key:"7",value:"2006"},{key:"8",value:"2007"},{key:"9",value:"2008"},{key:"10",value:"2009"},{key:"11",value:"2010"},{key:"12",value:"2011"},{key:"13",value:"2012"},{key:"14",value:"2013"},{key:"15",value:"2014"},{key:"16",value:"2015"},{key:"17",value:"2016"},{key:"18",value:"2017"},{key:"19",value:"2018"},{key:"20",value:"2019"},{key:"21",value:"2020"},{key:"22",value:"2040"},{key:"23",value:"2060"},{key:"24",value:"2100"}],Ry_baseApiUrl="https://default-backend-dot-ausenhealth-digital-twin.ts.r.appspot.com";let qA=(()=>{class n{constructor(e){this.http=e}get(e,i){let s;return s=this.http.get(`${Ry_baseApiUrl}${e}`,i||{headers:this._getDefaultHeaders()}),s.pipe(fl(o=>(this._checkResponse(o),Vt(null))))}put(e,i){return this.http.put(`${Ry_baseApiUrl}${e}`,i,{headers:this._getDefaultHeaders()})}post(e,i,s){let o;return o=this.http.post(`${Ry_baseApiUrl}${e}`,i,s||{headers:this._getDefaultHeaders()}),o.pipe(fl(r=>(this._checkResponse(r),Vt(null))))}delete(e){return this.http.delete(`${Ry_baseApiUrl}${e}`,{headers:this._getDefaultHeaders()}).pipe(fl(i=>(this._checkResponse(i),Vt(null))))}_getDefaultHeaders(){return{}}_checkResponse(e){return Vt(null)}}return n.\u0275fac=function(e){return new(e||n)(V(XT))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vB=(()=>{class n{constructor(e){this.httpWrapper=e}filterSA3TemperatureMonthly(e){return this.httpWrapper.get(`/api/heat/sa3monthlyfilter/${e}`)}filterSA2TemperatureMonthly(e,i){return this.httpWrapper.get(`/api/heat/sa2monthlyfilter/${e}/${i}`)}filterSA3TemperatureYearly(e){return this.httpWrapper.get(`/api/heat/sa3yearlyfilter/${e}`)}filterSA2TemperatureYearly(e){return this.httpWrapper.get(`/api/heat/sa2yearlyfilter/${e}`)}filterSA3TemperatureMonthlyBySA3(e){return this.httpWrapper.get(`/api/heat/sa3monthlyfilterbysa3/${e}`)}filterSA2TemperatureMonthlyBySA2(e){return this.httpWrapper.get(`/api/heat/sa2monthlyfilterbysa2/${e}`)}filterSA3TemperatureYearlyBySA3(e){return this.httpWrapper.get(`/api/heat/sa3yearlyfilterbysa3/${e}`)}filterSA2TemperatureYearlyBySA2(e){return this.httpWrapper.get(`/api/heat/sa2yearlyfilterbysa2/${e}`)}getAllStateForecastClimateByYear(){return this.httpWrapper.get("/api/heat/forecast/climate/ste/yearly")}getAllStateForecastClimateByMonth(){return this.httpWrapper.get("/api/heat/forecast/climate/ste/monthly")}getAllSA3ForecastClimateYearly(e){return this.httpWrapper.get(`/api/heat/forecast/climate/sa3/${e}/yearly`)}filterStateForecastClimateByYear(e){return this.httpWrapper.get(`/api/heat/forecast/climate/ste/yearly/${e}`)}filterStateForecastClimateByMonth(e){return this.httpWrapper.get(`/api/heat/forecast/climate/ste/monthly/${e}`)}filterSa3MonthlyForecastClimate(e,i){return this.httpWrapper.get(`/api/heat/forecast/climate/sa3/${e}/monthly/${i}`)}filterSA3ForecastClimateByYear(e,i){return this.httpWrapper.get(`/api/heat/forecast/climate/sa3/${e}/yearly/${i}`)}getSA3Bbox(e){return this.httpWrapper.get(`/api/heat/${e}/bbox/sa3`)}getSA2Bbox(e){return this.httpWrapper.get(`/api/heat/${e}/bbox/sa2`)}getSA4Bbox(e){return this.httpWrapper.get(`/api/heat/${e}/bbox/sa4`)}getStateBbox(e){return this.httpWrapper.get(`/api/heat/${e}/bbox/state`)}getSA3ByGeometry(e){return this.httpWrapper.post("/api/heat/getsa3bygeometry",e)}getSA2ByGeometry(e){return this.httpWrapper.post("/api/heat/getsa2bygeometry",e)}getSA4ByGeometry(e){return this.httpWrapper.post("/api/heat/getsa4bygeometry",e)}getAvailableStateForecastYears(){return this.httpWrapper.get("/api/heat/forecast/climate/ste/yearlist")}getAvailableSA3ForecastYears(){return this.httpWrapper.get("/api/heat/forecast/climate/sa3/yearlist")}getMinMax(e,i,s,o){return this.httpWrapper.get(`/api/heat/getminmax/${e}/${i}/${s}/${o}`)}}return n.\u0275fac=function(e){return new(e||n)(V(qA))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hv=(()=>{class n{constructor(e,i){this.store=e,this.heatapiservice=i}getAnalysisYears(){let e=[];for(var i=2e3;i<=2020;i++)e.push({key:i.toString(),value:i.toString()});return e}getAnalysisMonths(){let e=[];for(var i=1;i<=12;i++)e.push({key:i.toString(),value:Eme[i-1]});return e}doesChartNeedToLoad(e,i){let s=this.store.selectSnapshot(r=>r.heatriskassessment.analysisFilter);return this.store.selectSnapshot(r=>r.heatriskassessment.analysisResult.sa3AnalysisIndicator)!==i||s.filterType!==e.filterType||!(s.filterType===Xa.Yearly&&s.filterYear===e.filterYear||s.filterType===Xa.Monthly&&s.filterYear===e.filterYear&&s.filterMonth===e.filterMonth)}manageSelectedSearchLocation(e){var i=this;return Xe(function*(){let s=yield i.heatapiservice.getSA3ByGeometry(e).toPromise();if(s&&s.length>0){let o=s[0].id;yield i.store.dispatch(new Gn.SetSelectedSA3Code16([o])).toPromise()}})()}filterSA3TemperatureAnalysis(e){var i=this;return Xe(function*(){let s;switch(e.filterType){case"yearly":s=yield i.heatapiservice.filterSA3TemperatureYearly(e.filterYear).toPromise();break;case"monthly":let o=tCe(e.filterYear.toString(),e.filterMonth.toLocaleString("en-AU",{minimumIntegerDigits:2,useGrouping:!1}));s=yield i.heatapiservice.filterSA3TemperatureMonthly(o).toPromise()}return s})()}filterSA3TemperatureAnalysisBySA3(e,i){var s=this;return Xe(function*(){let o;switch(e.filterType){case"yearly":o=yield s.heatapiservice.filterSA3TemperatureYearlyBySA3(i).toPromise();break;case"monthly":o=yield s.heatapiservice.filterSA3TemperatureMonthlyBySA3(i).toPromise()}return o})()}calculateRankingByIndicator(e,i){var s=this;return Xe(function*(){let o=[];try{switch(e){case"rhist_theatavg":case"heat_vul_index":case"e_heat":case"s_heat":case"a_heat":o=[{colorCode:"#a50f15",min:null,max:null,className:"hrank1"},{colorCode:"#de2d26",min:null,max:null,className:"hrank2"},{colorCode:"#fb6a4a",min:null,max:null,className:"hrank3"},{colorCode:"#fcae91",min:null,max:null,className:"hrank4"},{colorCode:"#fee5d9",min:null,max:null,className:"hrank5"}];break;case"rhist_tcoldavg":case"cold_vul_index":case"e_cold":case"s_cold":case"a_cold":default:o=[{colorCode:"#08519c",min:null,max:null,className:"crank1"},{colorCode:"#3182bd",min:null,max:null,className:"crank2"},{colorCode:"#6baed6",min:null,max:null,className:"crank3"},{colorCode:"#bdd7e7",min:null,max:null,className:"crank4"},{colorCode:"#eff3ff",min:null,max:null,className:"crank5"}]}let a=0,l=100;if(!s.IsPercentageIndicator(e)){let u=s.store.selectSnapshot(f=>f.heatriskassessment.analysisFilter.filterType),h=yield s.heatapiservice.getMinMax("heatrisk",i,u,e).toPromise();h.length>0&&(a=h[0].min,l=h[0].max)}l=Math.ceil(l),a=Math.floor(a);let c=Math.ceil((l-a)/5),d=l;for(var r=0;r<5;r++){let u=d-c;u<0&&(u=0),o[r].max=d,o[r].min=u,d=u}return o}catch(a){console.log(a)}return o})()}updateRankingClass(e,i,s){return i.map(r=>{let a=Object.assign({},r),l=a[s],c=e[4].className;if(l){let d=e.filter(u=>u.min<=l&&l<=u.max);d.length>0&&(c=d[0].className)}return a.cssclass=c,a})}manageAnalysisIndicatorUpdate(e){var i=this;return Xe(function*(){let s=i.store.selectSnapshot(o=>o.heatriskassessment.analysisResult);if(s.sa3FilterResult&&s.sa3FilterResult.length>0){yield i.store.dispatch(new Gn.SetBusyState(!0)).toPromise();let o=yield i.calculateRankingByIndicator(e,"sa3"),r=i.updateRankingClass(o,s.sa3FilterResult,e);yield i.store.dispatch(new Gn.SetIndicatorUpdateData({indicator:e,ranking:o,result:r})).toPromise(),yield i.store.dispatch(new Gn.DisplaySA3FilterLayer).toPromise(),yield i.store.dispatch(new Gn.SetBusyState(!1)).toPromise()}else yield i.store.dispatch(new Gn.SetSa3AnalysisIndicator(e)).toPromise()})()}manageSA3FilterUpdate(e){var i=this;return Xe(function*(){yield i.store.dispatch(new Gn.SetBusyState(!0)).toPromise();let s=i.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.sa3AnalysisIndicator),o=yield i.filterSA3TemperatureAnalysis(e),r=yield i.calculateRankingByIndicator(s,"sa3");o=i.updateRankingClass(r,o,s),yield i.store.dispatch(new Gn.SetFilterUpdateData({analysisFilter:e,ranking:r,result:o})).toPromise(),yield i.store.dispatch(new Gn.DisplaySA3FilterLayer).toPromise(),yield i.store.dispatch(new Gn.SetBusyState(!1)).toPromise()})()}doesSA2ChartNeedToLoad(e,i){let s=this.store.selectSnapshot(r=>r.heatriskassessment.analysisFilter);return this.store.selectSnapshot(r=>r.heatriskassessment.analysisResult.sa2AnalysisIndicator)!==i||s.filterType!==e.filterType||!(s.filterType===Xa.Yearly&&s.filterYear===e.filterYear||s.filterType===Xa.Monthly&&s.filterYear===e.filterYear&&s.filterMonth===e.filterMonth)}clearSA2Selection(){var e=this;return Xe(function*(){yield e.store.dispatch(new Gn.SetSelectedSA2Code16([])).toPromise()})()}clearSelection(){var e=this;return Xe(function*(){yield e.store.dispatch(new Gn.SetSelectedSA3Code16([])).toPromise()})()}IsPercentageIndicator(e){switch(e){case"rhist_theatavg":case"rhist_tcoldavg":case"heat_vul_index":case"e_heat":case"s_heat":case"a_heat":case"cold_vul_index":case"e_cold":case"s_cold":case"a_cold":return!0;default:return!1}}manageSelectedSearchSA2Location(e){var i=this;return Xe(function*(){let s=yield i.heatapiservice.getSA2ByGeometry(e).toPromise();if(s&&s.length>0){let o=s[0].id;yield i.store.dispatch(new Gn.SetSelectedSA2Code16([o])).toPromise()}})()}manageSA2AnalysisIndicatorUpdate(e){var i=this;return Xe(function*(){let s=i.store.selectSnapshot(o=>o.heatriskassessment.analysisResult);if(s.sa2FilterResult&&s.sa2FilterResult.length>0){yield i.store.dispatch(new Gn.SetBusyState(!0)).toPromise();let o=yield i.calculateRankingByIndicator(e,"sa2"),r=i.updateSA2RankingClass(o,s.sa2FilterResult,e);yield i.store.dispatch(new Gn.SetSa2IndicatorUpdateData({indicator:e,ranking:o,result:r})).toPromise(),yield i.store.dispatch(new Gn.DisplaySA2FilterLayer).toPromise(),yield i.store.dispatch(new Gn.SetBusyState(!1)).toPromise()}else yield i.store.dispatch(new Gn.SetSa2AnalysisIndicator(e)).toPromise()})()}manageSA2FilterUpdate(e){var i=this;return Xe(function*(){yield i.store.dispatch(new Gn.SetBusyState(!0)).toPromise();let s=i.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.sa2AnalysisIndicator),o=yield i.filterSA2TemperatureAnalysis(e),r=yield i.calculateRankingByIndicator(s,"sa2");o=i.updateSA2RankingClass(r,o,s),yield i.store.dispatch(new Gn.SetSa2FilterUpdateData({analysisFilter:e,ranking:r,result:o})).toPromise(),yield i.store.dispatch(new Gn.DisplaySA2FilterLayer).toPromise(),yield i.store.dispatch(new Gn.SetBusyState(!1)).toPromise()})()}updateSA2RankingClass(e,i,s){return i.map(r=>{let a=Object.assign({},r),l=a[s],c=e[4].className;if(l){let d=e.filter(u=>u.min<=l&&l<=u.max);d.length>0&&(c=d[0].className)}return a.cssclass=c,a})}filterSA2TemperatureAnalysis(e){var i=this;return Xe(function*(){let s;switch(e.filterType){case"yearly":s=yield i.heatapiservice.filterSA2TemperatureYearly(e.filterYear).toPromise();break;case"monthly":s=yield i.heatapiservice.filterSA2TemperatureMonthly(e.filterYear,e.filterMonth).toPromise()}return s})()}filterSA2TemperatureAnalysisBySA2(e,i){var s=this;return Xe(function*(){let o;switch(e.filterType){case"yearly":o=yield s.heatapiservice.filterSA2TemperatureYearlyBySA2(i).toPromise();break;case"monthly":o=yield s.heatapiservice.filterSA2TemperatureMonthlyBySA2(i).toPromise()}return o})()}}return n.\u0275fac=function(e){return new(e||n)(V(zi),V(vB))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nCe=["mat-button",""],iCe=["*"],sCe=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",Agt=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Fgt=gy(ug(hg(class{constructor(n){this._elementRef=n}})));let Bd=(()=>{class n extends Fgt{constructor(e,i,s){super(e),this._focusMonitor=i,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of Agt)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Wc),g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Ae(Lp,5),2&e){let s;U(s=W())&&(i.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(fe("disabled",i.disabled||null),he("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[N],attrs:nCe,ngContentSelectors:iCe,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Xt(),y(0,"span",0),mt(1),_(),P(2,"span",1),P(3,"span",2)),2&e&&(b(2),he("mat-button-ripple-round",i.isRoundButton||i.isIconButton),v("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Lp],styles:[sCe],encapsulation:2,changeDetection:0}),n})(),bB=(()=>{class n extends Bd{constructor(e,i,s){super(i,e,s)}_haltDisabledEvents(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}return n.\u0275fac=function(e){return new(e||n)(g(Wc),g($),g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){1&e&&se("click",function(o){return i._haltDisabledEvents(o)}),2&e&&(fe("tabindex",i.disabled?-1:i.tabIndex||0)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),he("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[N],attrs:nCe,ngContentSelectors:iCe,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Xt(),y(0,"span",0),mt(1),_(),P(2,"span",1),P(3,"span",2)),2&e&&(b(2),he("mat-button-ripple-round",i.isRoundButton||i.isIconButton),v("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Lp],styles:[sCe],encapsulation:2,changeDetection:0}),n})(),Ogt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[dk,vi],vi]}),n})();const Rgt=["underline"],Pgt=["connectionContainer"],Lgt=["inputContainer"],Ngt=["label"];function Bgt(n,t){1&n&&(_n(0),y(1,"div",14),P(2,"div",15),P(3,"div",16),P(4,"div",17),_(),y(5,"div",18),P(6,"div",15),P(7,"div",16),P(8,"div",17),_(),vn())}function Vgt(n,t){1&n&&(y(0,"div",19),mt(1,1),_())}function zgt(n,t){if(1&n&&(_n(0),mt(1,2),y(2,"span"),H(3),_(),vn()),2&n){const e=I(2);b(3),un(e._control.placeholder)}}function Hgt(n,t){1&n&&mt(0,3,["*ngSwitchCase","true"])}function Ggt(n,t){1&n&&(y(0,"span",23),H(1," *"),_())}function jgt(n,t){if(1&n){const e=ht();y(0,"label",20,21),se("cdkObserveContent",function(){return Le(e),I().updateOutlineGap()}),A(2,zgt,4,1,"ng-container",12),A(3,Hgt,1,0,"ng-content",12),A(4,Ggt,2,0,"span",22),_()}if(2&n){const e=I();he("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),v("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),fe("for",e._control.id)("aria-owns",e._control.id),b(2),v("ngSwitchCase",!1),b(1),v("ngSwitchCase",!0),b(1),v("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function $gt(n,t){1&n&&(y(0,"div",24),mt(1,4),_())}function Ugt(n,t){if(1&n&&(y(0,"div",25,26),P(2,"span",27),_()),2&n){const e=I();b(2),he("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Wgt(n,t){1&n&&(y(0,"div"),mt(1,5),_()),2&n&&v("@transitionMessages",I()._subscriptAnimationState)}function qgt(n,t){if(1&n&&(y(0,"div",31),H(1),_()),2&n){const e=I(2);v("id",e._hintLabelId),b(1),un(e.hintLabel)}}function Xgt(n,t){if(1&n&&(y(0,"div",28),A(1,qgt,2,2,"div",29),mt(2,6),P(3,"div",30),mt(4,7),_()),2&n){const e=I();v("@transitionMessages",e._subscriptAnimationState),b(1),v("ngIf",e.hintLabel)}}const Ygt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Kgt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],oCe=new ot("MatError"),Qgt={transitionMessages:fc("transitionMessages",[Tr("enter",zt({opacity:1,transform:"translateY(0%)"})),Go("void => enter",[zt({opacity:0,transform:"translateY(-5px)"}),Xi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let CB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n}),n})();const rCe=new ot("MatHint");let Tg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["mat-label"]]}),n})(),emt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["mat-placeholder"]]}),n})();const aCe=new ot("MatPrefix");let tmt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["","matPrefix",""]],features:[we([{provide:aCe,useExisting:n}])]}),n})();const lCe=new ot("MatSuffix");let cCe=0;const imt=gy(class{constructor(n){this._elementRef=n}},"primary"),smt=new ot("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Dq=new ot("MatFormField");let kg=(()=>{class n extends imt{constructor(e,i,s,o,r,a,l,c){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=r,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Z,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+cCe++,this._labelId="mat-form-field-label-"+cCe++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Tn(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe($o(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(et(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(et(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),ii(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe($o(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe($o(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(et(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Hi(this._label.nativeElement,"transitionend").pipe(jn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,s=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,s=0;const o=this._connectionContainerRef.nativeElement,r=o.querySelectorAll(".mat-form-field-outline-start"),a=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=o.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),d=e.children,u=this._getStartEnd(d[0].getBoundingClientRect());let h=0;for(let f=0;f0?.75*h+10:0}for(let l=0;l{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,vi,IN],vi]}),n})();const uCe=yv({passive:!0});let hCe=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Op;const i=fy(e),s=this._monitoredElements.get(i);if(s)return s.subject;const o=new Z,r="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(r)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(r)&&(i.classList.remove(r),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(r),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,uCe),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,uCe)}}),o}stopMonitoring(e){const i=fy(e),s=this._monitoredElements.get(i);s&&(s.unlisten(),s.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(V(Qi),V(ce))},n.\u0275prov=ue({factory:function(){return new n(V(Qi),V(ce))},token:n,providedIn:"root"}),n})(),pCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[rk]]}),n})();const rmt=new ot("MAT_INPUT_VALUE_ACCESSOR"),amt=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let lmt=0;const cmt=Ffe(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let wB=(()=>{class n extends cmt{constructor(e,i,s,o,r,a,l,c,d,u){super(a,o,r,s),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+lmt++,this.focused=!1,this.stateChanges=new Z,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>rfe().has(m));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",m=>{const C=m.target;!C.value&&0===C.selectionStart&&0===C.selectionEnd&&(C.setSelectionRange(1,1),C.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Tn(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Tn(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&rfe().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Tn(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const s=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(s!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=s,s?o.setAttribute("placeholder",s):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){amt.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Qi),g(Zs,10),g(OC,8),g(_y,8),g(Q$),g(rmt,10),g(hCe),g(ce),g(Dq,8))},n.\u0275dir=R({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,i){1&e&&se("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Kf("disabled",i.disabled)("required",i.required),fe("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),he("mat-input-server",i._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[we([{provide:CB,useExisting:n}]),N,st]}),n})(),dmt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[Q$],imports:[[pCe,xB,vi],pCe,xB]}),n})();const umt=["search"];let Mq=(()=>{class n{constructor(e,i,s){this.actions$=e,this.store=i,this.ngZone=s,this.autoCompleteOptions={bounds:{north:-11,south:-43,east:154,west:113},strictBounds:!0},this.destroyed$=new Z,this.actions$.pipe(dv(hn.MapReady),lt(o=>{console.log("map ready ",o.payload.map),this.map=o.payload.map,this.setupLocationSearchBox()}),et(this.destroyed$)).subscribe()}setupLocationSearchBox(){this.geoCoder=new google.maps.Geocoder;let e=new google.maps.places.Autocomplete(this.searchElementRef.nativeElement,this.autoCompleteOptions);e.addListener("place_changed",()=>{this.ngZone.run(()=>{let i=e.getPlace();null==i.geometry||(this.map.setCenter(i.geometry.location),this.map.setZoom(11),this.store.dispatch(new hn.SetSearchLocationOnMap(i.geometry.location)))})})}ngOnInit(){this.geoCoder=null}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return n.\u0275fac=function(e){return new(e||n)(g(sg),g(zi),g(ce))},n.\u0275cmp=K({type:n,selectors:[["app-map-location-search"]],viewQuery:function(e,i){if(1&e&&Ae(umt,5),2&e){let s;U(s=W())&&(i.searchElementRef=s.first)}},decls:4,vars:0,consts:[[1,"addressPanel"],["type","text","matInput","","placeholder","Search","autocorrect","off","autocapitalize","off","spellcheck","off","type","text",1,"form-control",3,"keydown.enter"],["search",""]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"mat-form-field"),y(2,"input",1,2),se("keydown.enter",function(o){return o.preventDefault()}),_(),_(),_())},directives:[kg,wB],styles:[".addressPanel{font-size:12px;margin-bottom:-5px;height:40px}"]}),n})();function oe(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function Wl(n,t){return function(e,i){t(e,i,n)}}function j(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function TB(n,t){return function(e,i){t(e,i,n)}}function fmt(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}let Gv=(()=>{let n=class{constructor(){this.changes=new Hs({rtl:void 0})}notify(e){this.changes.next({rtl:e})}get(e){}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),yl=(()=>{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(UI(1)).subscribe(()=>this.register(this))}register(e){Object.keys(e).forEach(s=>this.service.register(s,this[s],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,features:[st]}),n})();const _l=new ot("Kendo UI Right-to-Left token"),An=new ot("Localization key prefix");let J=(()=>{let n=class{constructor(e,i,s){this.prefix=e,this.messageService=i,this._rtl=s,this.changes=new Hs({rtl:this._rtl}),this.dictionary={},i&&(this.subscription=i.changes.pipe(xe(({rtl:o})=>void 0!==o?o:this._rtl),lt(o=>this._rtl=o)).subscribe(o=>{this.dictionary={},this.changes.next({rtl:o})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(e){const i=this.key(e);return this.dictionary[i]}register(e,i,s=!1){const o=this.key(e);let r=i;if(!s){if(this.dictionary.hasOwnProperty(o))return;r=this.defaultValue(o,i)}this.dictionary[o]=r}notifyChanges(){this.changes.next({rtl:this.rtl})}key(e){return this.prefix+"."+e}defaultValue(e,i){if(!this.messageService)return i;const s=this.messageService.get(e);return void 0===s?i:s}};return n.\u0275fac=function(e){return new(e||n)(V(An),V(Gv,8),V(_l,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=function(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}([TB(0,Rn(An)),TB(1,gt()),TB(2,gt()),TB(2,Rn(_l)),fmt("design:paramtypes",[String,Gv,Boolean])],n),n})();function Nh(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function Bh(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}const Kk=(n,t)=>e=>t(n(e)),Xp=(n,t,e)=>n.addEventListener&&n.addEventListener(t,e),Qc=(n,t,e)=>n&&n.removeEventListener&&n.removeEventListener(t,e),Zk=()=>{},Fq=n=>n.preventDefault(),ymt=/touch/;function Qk(n){return n.type.match(ymt)?{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}}const Oq=(()=>{class n{static supportPointerEvent(){return"undefined"!=typeof window&&window.PointerEvent}get document(){return this._element?this._element.ownerDocument:document}constructor({press:e=Zk,drag:i=Zk,release:s=Zk,mouseOnly:o=!1}){this._pressHandler=Kk(Qk,e),this._dragHandler=Kk(Qk,i),this._releaseHandler=Kk(Qk,s),this._ignoreMouse=!1,this._mouseOnly=o,this._touchstart=r=>{1===r.touches.length&&this._pressHandler(r)},this._touchmove=r=>{1===r.touches.length&&this._dragHandler(r)},this._touchend=r=>{0===r.touches.length&&1===r.changedTouches.length&&(this._releaseHandler(r),this._ignoreMouse=!0,setTimeout(this._restoreMouse,2e3))},this._restoreMouse=()=>{this._ignoreMouse=!1},this._mousedown=r=>{const{which:a}=r;a&&a>1||this._ignoreMouse||(Xp(this.document,"mousemove",this._mousemove),Xp(this.document,"mouseup",this._mouseup),this._pressHandler(r))},this._mousemove=r=>{this._dragHandler(r)},this._mouseup=r=>{Qc(this.document,"mousemove",this._mousemove),Qc(this.document,"mouseup",this._mouseup),this._releaseHandler(r)},this._pointerdown=r=>{r.isPrimary&&0===r.button&&(Xp(this.document,"pointermove",this._pointermove),Xp(this.document,"pointerup",this._pointerup),Xp(this.document,"pointercancel",this._pointerup),Xp(this.document,"contextmenu",Fq),this._pressHandler(r))},this._pointermove=r=>{r.isPrimary&&this._dragHandler(r)},this._pointerup=r=>{r.isPrimary&&(Qc(this.document,"pointermove",this._pointermove),Qc(this.document,"pointerup",this._pointerup),Qc(this.document,"pointercancel",this._pointerup),Qc(this.document,"contextmenu",Fq),this._releaseHandler(r))}}bindTo(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())}_bindToCurrent(){const e=this._element;this._usePointers()?Xp(e,"pointerdown",this._pointerdown):(Xp(e,"mousedown",this._mousedown),this._mouseOnly||(Xp(e,"touchstart",this._touchstart),Xp(e,"touchmove",this._touchmove),Xp(e,"touchend",this._touchend)))}_unbindFromCurrent(){const e=this._element;if(this._usePointers())return Qc(e,"pointerdown",this._pointerdown),Qc(this.document,"pointermove",this._pointermove),Qc(this.document,"pointerup",this._pointerup),Qc(this.document,"contextmenu",Fq),void Qc(this.document,"pointercancel",this._pointerup);Qc(e,"mousedown",this._mousedown),this._mouseOnly||(Qc(e,"touchstart",this._touchstart),Qc(e,"touchmove",this._touchmove),Qc(e,"touchend",this._touchend))}_usePointers(){return!this._mouseOnly&&n.supportPointerEvent()}update({press:e=Zk,drag:i=Zk,release:s=Zk,mouseOnly:o=!1}){this._pressHandler=Kk(Qk,e),this._dragHandler=Kk(Qk,i),this._releaseHandler=Kk(Qk,s),this._mouseOnly=o}destroy(){this._unbindFromCurrent(),this._element=null}}return n.default=n,n})(),Ft=()=>"undefined"!=typeof document,Io=(n,t,e=!0)=>!(void 0===t[n]||t[n].isFirstChange()&&e||t[n].previousValue===t[n].currentValue),Xo=(n,t,e=!0)=>n.some(i=>Io(i,t,e)),Kt=n=>n&&n.observers.length>0,cs=()=>{let n="";for(let t=0;t<32;t++){const e=16*Math.random()|0;(8===t||12===t||16===t||20===t)&&(n+="-"),n+=(12===t?4:16===t?3&e|8:e).toString(16)}return n};let Jc=(()=>{let n=class{constructor(e,i){this.element=e,this.ngZone=i,this.enableDrag=!0,this.kendoPress=new S,this.kendoDrag=new S,this.kendoRelease=new S}ngOnInit(){this.toggleDraggable()}ngOnChanges(e){Io("enableDrag",e)&&this.toggleDraggable()}ngOnDestroy(){this.destroyDraggable()}toggleDraggable(){Ft()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new Oq({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=null)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[st]}),Nh([p(),Bh("design:type",Boolean)],n.prototype,"enableDrag",void 0),Nh([Q(),Bh("design:type",S)],n.prototype,"kendoPress",void 0),Nh([Q(),Bh("design:type",S)],n.prototype,"kendoDrag",void 0),Nh([Q(),Bh("design:type",S)],n.prototype,"kendoRelease",void 0),n=Nh([Bh("design:paramtypes",[$,ce])],n),n})(),XA=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),lr=(()=>{let n=class{constructor(e,i,s){this.element=e,this.ngZone=i,this.renderer=s,this.events={}}ngOnInit(){if(!this.element||!this.element.nativeElement)return;const e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(()=>{for(let i in e)e.hasOwnProperty(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{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();class wCe{constructor(t){this.resizeBatchService=t,this.resize=new S,this.acceptedSize=!1,this.state=0}acceptSize(t=this.measure()){this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0}checkChanges(){!Ft()||0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}destroy(){this.resizeBatchService.cancel(this)}checkSize(){if(!this.parentElement)return;const{width:t,height:e}=this.measure();return t!==this.lastWidth||e!==this.lastHeight?(this.lastWidth=t,this.lastHeight=e,this.acceptedSize=!1,this.resize.emit(),!0):void 0}initSize(){const 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}}}const MB=n=>{const t=document.createElement("div");return t.style.cssText=n,t},Lq="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;";class Tmt extends wCe{constructor(t,e,i){super(t),this.element=e,this.ngZone=i}checkChanges(){2!==this.state?super.checkChanges():this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}destroy(){if(super.destroy(),this.subscription&&this.subscription.unsubscribe(),this.expand){const 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(){if(super.checkSize())return this.reset(),!0}init(){const t=this.parentElement=this.element.nativeElement.parentElement;"static"===((n,t)=>getComputedStyle(n,null).getPropertyValue("position"))(t)&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}render(){const t=this.element.nativeElement;t.style.cssText=Lq,t.setAttribute("dir","ltr"),this.expand=MB(Lq),this.expandChild=MB("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),t.appendChild(this.expand),this.shrink=MB(Lq);const e=MB("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(e),t.appendChild(this.shrink)}reset(){const t=this.expandChild;t.style.width="100000px",t.style.height="100000px";const e=this.expand;e.scrollLeft=1e5,e.scrollTop=1e5;const i=this.shrink;i.scrollLeft=1e5,i.scrollTop=1e5}subscribe(){this.ngZone.runOutsideAngular(()=>{this.subscription=ii(Hi(this.shrink,"scroll"),Hi(this.expand,"scroll")).subscribe(()=>{this.checkSize()})})}}const kmt="undefined"!=typeof ResizeObserver;class TCe extends wCe{constructor(t,e,i){super(t),this.element=e,this.ngZone=i}static supported(){return kmt}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)})}}let Nq=(()=>{let n=class{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=Ys(this.resolvedPromise).subscribe(this.flush)})}isScheduled(e){return Boolean(this.scheduled.find(i=>i.instance===e))}cancel(e){const i=this.scheduled,s=i.length;for(let o=0;o{e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()}};return n.\u0275fac=function(e){return new(e||n)(V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=Nh([Bh("design:paramtypes",[ce])],n),n})(),Kr=(()=>{let n=class{constructor(e,i,s){this.rateLimit=10,this.resize=new S;const o=TCe.supported()?TCe:Tmt;this.resizeService=new o(e,i,s),this.subscription=this.resizeService.resize.pipe(Bp(1e3/(this.rateLimit||10))).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)(g(Nq),g($),g(ce))},n.\u0275cmp=K({type:n,selectors:[["kendo-resize-sensor"]],inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),Nh([p(),Bh("design:type",Number)],n.prototype,"rateLimit",void 0),Nh([Q(),Bh("design:type",S)],n.prototype,"resize",void 0),n=Nh([Bh("design:paramtypes",[Nq,$,ce])],n),n})(),Du=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[Nq]}),n})();class Ds{}var _e=(()=>(function(n){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"}(_e||(_e={})),_e))(),DCe=["vvjmBve=","DhLWzq==","rM5KAM8=","z21bCfO=","y29Kzq==","C2nYAxb0s2v5","CgfYC2u=","zffeyxy=","ChjVzhvJDhm=","DgLTzxn0yw1W","r2ffv0C=","B2jQzwn0","D3r2twO=","zgf0yq==","B2z1BvG=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","swvIzwC=","uhjVz3jLC3mG","C2v0","D2fYBG==","BMfTzq==","zg9JC1vYBa==","A0LRreO=","z3jVDxbfBMq=","vfzMs1O=","zNvUy3rPB24=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","ChjVzhvJDe5HBwu=","z3jVDxa=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","BMLUAu4=","z2v0","BgvUz3rO","uhDTvg0=","wKnNs0S=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","wNzfD2i=","B3LJz3C=","AKfdDMG=","zMLUza==","yufOzgq=","ChjVzhvJDenVzgvZ","tM8GBgLJzw5ZzsbMB3vUzc4k","ChvIBgLZAerHDgu=","C0v4EKy=","u2vLia==","BgLJzw5ZAw5Nrg9JC1vYBa==","CgfJA2fNzu5HBwu=","zxHWAxj5rgf0zq==","rgrushO=","CfLSqMi=","Dw5KzwzPBMvK","DMvYC2LVBG==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","AMfxD3G=","AgfZ","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","CMzsEvu=","Dg9mB2nHBgvtDhjPBMC=","txHWC0G=","CwvOAfG="];!function(n,t){!function(i){for(;--i;)n.push(n.shift())}(++t)}(DCe,415);var it=function(n,t){var e=DCe[n-=0];void 0===it.uXIQOS&&(it.BZzwkU=function(o){for(var r=function(o){for(var d,u,a=String(o).replace(/=+$/,""),l="",c=0,h=0;u=a.charAt(h++);~u&&(d=c%4?64*d+u:u,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(u);return l}(o),a=[],l=0,c=r.length;l{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[qmt]}),n})();const Ymt=["header"],Kmt=["contentWrapper"];function Zmt(n,t){1&n&&P(0,"span",6),2&n&&v("ngClass",I().iconClasses)}function Qmt(n,t){1&n&&P(0,"img",7),2&n&&v("src",I().imageUrl,RE)}function Jmt(n,t){if(1&n&&(_n(0),H(1),vn()),2&n){const e=I();b(1),un(e.title)}}function eyt(n,t){}function tyt(n,t){1&n&&A(0,eyt,0,0,"ng-template",8),2&n&&v("ngTemplateOutlet",I().titleTemplate)}function nyt(n,t){if(1&n&&P(0,"span"),2&n){const e=I();he("k-icon",!0)("k-i-arrow-n",e.expanded)("k-panelbar-collapse",e.expanded)("k-i-arrow-s",!e.expanded)("k-panelbar-expand",!e.expanded)}}function iyt(n,t){if(1&n&&(y(0,"div",12),mt(1),_()),2&n){const e=I(2);yt("overflow",e.contentOverflow)("height",e.contentHeight)}}function syt(n,t){}const RCe=function(n,t,e,i,s,o){return{title:n,id:t,icon:e,imageUrl:i,disabled:s,content:o}},Gq=function(n){return{$implicit:n}};function oyt(n,t){if(1&n&&(y(0,"div",13),A(1,syt,0,0,"ng-template",14),_()),2&n){const e=I(2);yt("overflow",e.contentOverflow)("height",e.contentHeight),b(1),v("ngTemplateOutlet",e.contentTemplate.first.templateRef)("ngTemplateOutletContext",Yt(13,Gq,aI(6,RCe,e.title,e.id,e.icon,e.imageUrl,e.disabled,e.content)))}}function ryt(n,t){if(1&n&&P(0,"kendo-panelbar-item",17),2&n){const e=I().$implicit,i=I(3);v("title",e.title)("id",e.id)("icon",e.icon)("iconClass",e.iconClass)("imageUrl",e.imageUrl)("selected",!!e.selected)("expanded",!!e.expanded)("disabled",!!e.disabled)("template",i.template)("items",e.children)("content",e.content)}}function ayt(n,t){if(1&n&&(_n(0),A(1,ryt,1,11,"kendo-panelbar-item",16),vn()),2&n){const e=t.$implicit;b(1),v("ngIf",!e.hidden)}}function lyt(n,t){if(1&n&&(y(0,"div",12),A(1,ayt,2,1,"ng-container",15),_()),2&n){const e=I(2);yt("overflow",e.contentOverflow)("height",e.contentHeight),b(1),v("ngForOf",e.items)}}function cyt(n,t){}function dyt(n,t){1&n&&H(0),2&n&&un(I(3).content)}function uyt(n,t){if(1&n&&(y(0,"div",13),A(1,cyt,0,0,"ng-template",14),A(2,dyt,1,1,"ng-template",18),_()),2&n){const e=I(2);yt("overflow",e.contentOverflow)("height",e.contentHeight),b(1),v("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Yt(14,Gq,aI(7,RCe,e.title,e.id,e.icon,e.imageUrl,e.disabled,e.content))),b(1),v("ngIf",!e.template)}}function hyt(n,t){if(1&n&&(y(0,"div",null,9),A(2,iyt,2,4,"div",10),A(3,oyt,2,15,"div",11),A(4,lyt,2,5,"div",10),A(5,uyt,3,16,"div",11),_()),2&n){const e=I();v("@toggle",e.state),fe("role","group")("aria-hidden",!e.disabled&&!e.expanded),b(2),v("ngIf",e.hasChildItems&&!(null!=e.items&&e.items.length)),b(1),v("ngIf",e.hasContent&&!e.content),b(1),v("ngIf",e.hasItems),b(1),v("ngIf",e.content)}}const PCe=[[["kendo-panelbar-item"]]];function yyt(n,t){1&n&&(_n(0),mt(1),vn())}function _yt(n,t){1&n&&P(0,"div",2)}const Vd=["*"];function vyt(n,t){if(1&n&&P(0,"kendo-splitter-bar",2),2&n){const e=I().index,i=I();v("index",e)("orientation",i.orientation)}}function byt(n,t){if(1&n&&(_n(0),A(1,vyt,1,2,"kendo-splitter-bar",1),vn()),2&n){const e=t.last;b(1),v("ngIf",!e)}}const Cyt=[[["kendo-splitter-pane"]]],xyt=["kendo-splitter-pane"];const Py={name:"@progress/kendo-angular-layout",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1626873693,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"};var Dg=(()=>(function(n){n[n.Single=0]="Single",n[n.Full=1]="Full",n[n.Multiple=2]="Multiple",n[n.Default=2]="Default"}(Dg||(Dg={})),Dg))();let U_t=0,YA=(()=>{let n=class{constructor(){this.parentSource=new Z,this.keepContentSource=new Hs(!1),this.childSource=new Z,this.parent$=this.parentSource.asObservable(),this.children$=this.childSource.asObservable(),this.keepContent$=this.keepContentSource.asObservable(),this.pbId=U_t++}onKeepContent(e){this.keepContentSource.next(e)}onSelect(e){this.childSource.next(e)}onFocus(){this.parentSource.next(!0)}onBlur(){this.parentSource.next(!1)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=oe([j("design:paramtypes",[])],n),n})(),$q=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoPanelBarContent",""]]}),n=oe([j("design:paramtypes",[ve])],n),n})(),Uq=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoPanelBarItemTitle",""]]}),n=oe([Wl(0,gt()),j("design:paramtypes",[ve])],n),n})();const X_t=/^(?:a|input|select|option|textarea|button|object)$/i;var Jk;let Z_t=0,Ai=Jk=class{constructor(t,e,i){this.parent=t,this.eventService=e,this.element=i,this.id="default-"+Z_t++,this.icon="",this.iconClass="",this.imageUrl="",this.disabled=!1,this.selected=!1,this.keepContent=!1,this.hasChildItems=!1,this.hasItems=!1,this.hasContent=!1,this.state="inactive",this.role="treeitem",this.titleAttribute=null,this.focused=!1,this.wrapperFocused=!1,this.subscriptions=new Je(()=>{}),this._expanded=!1,this.subscriptions.add(e.parent$.subscribe(s=>this.onWrapperFocusChange(s))),this.subscriptions.add(e.keepContent$.subscribe(s=>this.keepContent=s)),this.wrapperFocused=!!t&&t.focused}set expanded(t){this.state=t?this.animate?"active":"activeWithoutAnimation":"inactive",this.keepContent||this.toggleExpandedChildAnimations(t),this._expanded=t}get expanded(){return this._expanded}get animate(){return this.eventService.animate}get kItemClass(){return!0}get kStateDefaultClass(){return!this.disabled}get kStateDisabledClass(){return this.disabled}get kStateExpandedClass(){return!this.disabled&&this.expanded&&(this.hasChildItems||this.hasContent)}get itemId(){return"k-panelbar-"+this.eventService.pbId+"-item-"+this.id}get ariaExpanded(){return this.hasChildItems||this.hasContent?!this.disabled&&this.expanded:null}get ariaSelected(){return!this.disabled&&this.selected}get ariaDisabled(){return!!this.disabled||null}get titleTemplate(){return this.titleTemplates.length>0?this.titleTemplates.toArray()[0].templateRef:void 0}headerHeight(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}ngAfterContentChecked(){this.hasItems=this.items&&this.items.filter(t=>!t.hidden).length>0,this.hasChildItems=this.contentItems.filter(t=>t!==this).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}ngAfterViewChecked(){this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(t=>t!==this)}ngOnDestroy(){this.subscriptions.unsubscribe()}onItemAction(){this.disabled||this.eventService.onSelect(this)}onItemClick(t){(n=>{if(n.tagName){const t=n.tagName.toLowerCase(),e=n.getAttribute("tabIndex"),i="-1"===e;let s=null!==e&&!i;return X_t.test(t)&&(s=!n.disabled&&!i),s}return!1})(t.target)||this.onItemAction()}get iconClasses(){return{[(this.icon?"k-i-"+this.icon:null)||this.iconClass]:!0}}serialize(){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}}subTreeViewItems(){let t=[];return this.viewChildItems.forEach(e=>{t=t.concat(e.subTreeViewItems()),t.push(e)}),t}validateConfiguration(){if(En()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}toggleAnimationState(t){!this.animate||(this.state=t&&this.eventService.expandMode!==Dg.Single?"active":"activeWithoutAnimation")}toggleExpandedChildAnimations(t){this.childrenItems&&this.childrenItems.forEach(e=>{e.expanded&&(e.toggleAnimationState(t),e.toggleExpandedChildAnimations(t))})}onWrapperFocusChange(t){this.wrapperFocused=t}};Ai.\u0275fac=function(t){return new(t||Ai)(g(Ai,13),g(YA),g($))},Ai.\u0275cmp=K({type:Ai,selectors:[["kendo-panelbar-item"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Jk,4),Ce(i,$q,4),Ce(i,Uq,4)),2&t){let s;U(s=W())&&(e.contentItems=s),U(s=W())&&(e.contentTemplate=s),U(s=W())&&(e.titleTemplates=s)}},viewQuery:function(t,e){if(1&t&&(Ae(Ymt,5),Ae(Kmt,5),Ae(Jk,5)),2&t){let i;U(i=W())&&(e.header=i.first),U(i=W())&&(e.contentWrapper=i.first),U(i=W())&&(e.viewChildItems=i)}},hostVars:14,hostBindings:function(t,e){2&t&&(Kf("id",e.itemId),fe("role",e.role)("title",e.titleAttribute)("aria-expanded",e.ariaExpanded)("aria-selected",e.ariaSelected)("aria-disabled",e.ariaDisabled),he("k-item",e.kItemClass)("k-state-default",e.kStateDefaultClass)("k-state-disabled",e.kStateDisabledClass)("k-state-expanded",e.kStateExpandedClass))},inputs:{id:"id",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",selected:"selected",expanded:"expanded",title:"title",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:["kendo-panelbar-item"],decls:8,vars:14,consts:[[3,"click"],["header",""],["class","k-icon",3,"ngClass",4,"ngIf"],["class","k-image","alt","",3,"src",4,"ngIf"],[4,"ngIf"],[3,"k-icon","k-i-arrow-n","k-panelbar-collapse","k-i-arrow-s","k-panelbar-expand",4,"ngIf"],[1,"k-icon",3,"ngClass"],["alt","",1,"k-image",3,"src"],[3,"ngTemplateOutlet"],["contentWrapper",""],["class","k-panel k-group",3,"overflow","height",4,"ngIf"],["class","k-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group"],[1,"k-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[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&&(Xt(PCe),y(0,"span",0,1),se("click",function(s){return e.onItemClick(s)}),A(2,Zmt,1,1,"span",2),A(3,Qmt,1,1,"img",3),A(4,Jmt,2,1,"ng-container",4),A(5,tyt,1,1,void 0,4),A(6,nyt,1,10,"span",5),_(),A(7,hyt,6,7,"div",4)),2&t&&(he("k-link",!0)("k-header",!e.parent)("k-state-selected",!e.disabled&&e.selected)("k-state-focused",!e.disabled&&e.focused&&e.wrapperFocused),b(2),v("ngIf",e.icon||e.iconClass),b(1),v("ngIf",e.imageUrl),b(1),v("ngIf",!e.titleTemplate),b(1),v("ngIf",e.titleTemplate),b(1),v("ngIf",e.hasChildItems||e.hasContent),b(1),v("ngIf",e.keepContent||!e.disabled&&e.expanded&&(e.hasChildItems||e.hasContent)))},directives:[pt,Un,zs,Wn,Ai],encapsulation:2,data:{animation:[fc("toggle",[Tr("inactive",zt({display:"none"})),Go("* => active",[zt({overflow:"hidden",display:"block",height:0}),Xi(200,zt({height:Rp}))]),Go("active => *",[zt({overflow:"hidden",height:Rp}),Xi(200,zt({height:0,display:"none"}))])])]}}),oe([p(),j("design:type",String)],Ai.prototype,"title",void 0),oe([p(),j("design:type",String)],Ai.prototype,"id",void 0),oe([p(),j("design:type",String)],Ai.prototype,"icon",void 0),oe([p(),j("design:type",String)],Ai.prototype,"iconClass",void 0),oe([p(),j("design:type",String)],Ai.prototype,"imageUrl",void 0),oe([p(),j("design:type",Boolean)],Ai.prototype,"disabled",void 0),oe([p(),j("design:type",Boolean),j("design:paramtypes",[Boolean])],Ai.prototype,"expanded",null),oe([p(),j("design:type",Boolean)],Ai.prototype,"selected",void 0),oe([p(),j("design:type",Object)],Ai.prototype,"content",void 0),oe([p(),j("design:type",Array)],Ai.prototype,"items",void 0),oe([p(),j("design:type",ve)],Ai.prototype,"template",void 0),oe([at("header",{static:!1}),j("design:type",$)],Ai.prototype,"header",void 0),oe([at("contentWrapper",{static:!1}),j("design:type",$)],Ai.prototype,"contentWrapper",void 0),oe([G("attr.role"),j("design:type",String)],Ai.prototype,"role",void 0),oe([G("attr.title"),j("design:type",String)],Ai.prototype,"titleAttribute",void 0),oe([G("class.k-item"),j("design:type",Boolean),j("design:paramtypes",[])],Ai.prototype,"kItemClass",null),oe([G("class.k-state-default"),j("design:type",Boolean),j("design:paramtypes",[])],Ai.prototype,"kStateDefaultClass",null),oe([G("class.k-state-disabled"),j("design:type",Boolean),j("design:paramtypes",[])],Ai.prototype,"kStateDisabledClass",null),oe([G("class.k-state-expanded"),j("design:type",Boolean),j("design:paramtypes",[])],Ai.prototype,"kStateExpandedClass",null),oe([G("id"),j("design:type",String),j("design:paramtypes",[])],Ai.prototype,"itemId",null),oe([G("attr.aria-expanded"),j("design:type",Boolean),j("design:paramtypes",[])],Ai.prototype,"ariaExpanded",null),oe([G("attr.aria-selected"),j("design:type",Boolean),j("design:paramtypes",[])],Ai.prototype,"ariaSelected",null),oe([G("attr.aria-disabled"),j("design:type",Boolean),j("design:paramtypes",[])],Ai.prototype,"ariaDisabled",null),oe([lc(Jk),j("design:type",wt)],Ai.prototype,"viewChildItems",void 0),oe([fi(Jk),j("design:type",wt)],Ai.prototype,"contentItems",void 0),oe([fi($q,{descendants:!1}),j("design:type",wt)],Ai.prototype,"contentTemplate",void 0),oe([fi(Uq,{descendants:!1}),j("design:type",wt)],Ai.prototype,"titleTemplates",void 0),Ai=Jk=oe([Wl(0,za()),Wl(0,Md()),Wl(0,gt()),j("design:paramtypes",[Ai,YA,$])],Ai);let Vh=(()=>{let n=class{constructor(e,i,s){this.element=e,this.renderer=i,this.cdr=s,this.resizable=!0,this.collapsible=!1,this.scrollable=!0,this.collapsed=!1,this.orientation="horizontal",this.overlayContent=!1,this.sizeChange=new S,this.collapsedChange=new S,this.hostClass=!0,this.forceExpand=!1,this.isResized=!1}set order(e){this._order=e,this.setOrderStyles()}get order(){return this._order}set size(e){this._size=e;const i=this.element.nativeElement;this.renderer.setStyle(i,"-ms-flex-preferred-size",e),this.renderer.setStyle(i,"flex-basis",e),this.staticPaneClass?this.renderer.addClass(i,"k-pane-static"):this.renderer.removeClass(i,"k-pane-static")}get size(){return this._size}set containsSplitter(e){const i=this.element.nativeElement;e?this.renderer.addClass(i,"k-pane-flex"):this.renderer.removeClass(i,"k-pane-flex")}get isHidden(){return this.collapsed}get staticPaneClass(){return!this.forceExpand&&(!this.resizable&&!this.collapsible||this.fixedSize)}get scrollablePaneClass(){return this.scrollable}get fixedSize(){return this.size&&this.size.length>0}ngAfterViewChecked(){const 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"))}get computedSize(){return"vertical"===this.orientation?this.element.nativeElement.offsetHeight:this.element.nativeElement.offsetWidth}toggleOverlay(e){this.overlayContent=e,this.cdr.detectChanges()}detectChanges(){this.cdr.detectChanges()}setOrderStyles(){const e=this.element.nativeElement;this.renderer.setStyle(e,"-ms-flex-order",this.order),this.renderer.setStyle(e,"order",this.order)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-splitter-pane"]],hostVars:6,hostBindings:function(e,i){2&e&&he("k-pane",i.hostClass)("k-pane-static",i.staticPaneClass)("k-scrollable",i.scrollablePaneClass)},inputs:{resizable:"resizable",collapsible:"collapsible",scrollable:"scrollable",collapsed:"collapsed",orientation:"orientation",overlayContent:"overlayContent",order:"order",size:"size",containsSplitter:"containsSplitter",min:"min",max:"max"},outputs:{sizeChange:"sizeChange",collapsedChange:"collapsedChange"},exportAs:["kendoSplitterPane"],ngContentSelectors:Vd,decls:2,vars:2,consts:[[4,"ngIf"],["class","k-splitter-overlay k-overlay",4,"ngIf"],[1,"k-splitter-overlay","k-overlay"]],template:function(e,i){1&e&&(Xt(),A(0,yyt,2,0,"ng-container",0),A(1,_yt,1,0,"div",1)),2&e&&(v("ngIf",!i.collapsed),b(1),v("ngIf",i.overlayContent))},directives:[pt],encapsulation:2}),oe([p(),j("design:type",Number),j("design:paramtypes",[Number])],n.prototype,"order",null),oe([p(),j("design:type",String),j("design:paramtypes",[String])],n.prototype,"size",null),oe([p(),j("design:type",String)],n.prototype,"min",void 0),oe([p(),j("design:type",String)],n.prototype,"max",void 0),oe([p(),j("design:type",Boolean)],n.prototype,"resizable",void 0),oe([p(),j("design:type",Boolean)],n.prototype,"collapsible",void 0),oe([p(),j("design:type",Boolean)],n.prototype,"scrollable",void 0),oe([p(),j("design:type",Boolean)],n.prototype,"collapsed",void 0),oe([p(),j("design:type",String)],n.prototype,"orientation",void 0),oe([p(),j("design:type",Boolean),j("design:paramtypes",[Boolean])],n.prototype,"containsSplitter",null),oe([p(),j("design:type",Boolean)],n.prototype,"overlayContent",void 0),oe([Q(),j("design:type",S)],n.prototype,"sizeChange",void 0),oe([Q(),j("design:type",S)],n.prototype,"collapsedChange",void 0),oe([G("class.k-pane"),j("design:type",Boolean)],n.prototype,"hostClass",void 0),oe([G("class.k-pane-static"),j("design:type",Boolean),j("design:paramtypes",[])],n.prototype,"staticPaneClass",null),oe([G("class.k-scrollable"),j("design:type",Boolean),j("design:paramtypes",[])],n.prototype,"scrollablePaneClass",null),n=oe([j("design:paramtypes",[$,Ie,Be])],n),n})(),KA=(()=>{let n=class{constructor(e){this.zone=e,this.layoutChange=new S,this.containerSize=()=>{}}tryToggle(e){const i=this.pane(e);i.collapsible&&(i.collapsed=!i.collapsed,i.collapsedChange.emit(i.collapsed),this.emit(this.layoutChange,{}),i.collapsed&&i.detectChanges());const s=this.panes.filter(r=>!r.collapsed),o=s.every(r=>r.fixedSize);return s[s.length-1].forceExpand=!!o,i.collapsible}toggleContentOverlay(e,i){this.pane(e).toggleOverlay(i),this.pane(e+1).toggleOverlay(i)}dragState(e){let i=this.pane(e),s=this.pane(e+1);const o=i.computedSize+s.computedSize,r=a=>this.toPixels(a);return{prev:{index:e,initialSize:i.computedSize,min:r(i.min)||o-r(s.max)||0,max:r(i.max)||o-r(s.min)||o},next:{index:e+1,initialSize:s.computedSize,min:r(s.min)||o-r(i.max)||0,max:r(s.max)||o-r(i.min)||o}}}setSize(e,i){const o=(l,c)=>{const d=this.pane(l.index),u=this.containerSize(),h=((l,c,d)=>Math.min(c,Math.max(l,d)))(l.min,l.max,l.initialSize+c);let f="";f=this.isPercent(d.size)?100*h/u+"%":h+"px",d.size=f,d.isResized=!0,this.emit(d.sizeChange,f)},r=this.pane(e.prev.index),a=this.pane(e.next.index);r.fixedSize&&a.fixedSize?(o(e.prev,i),o(e.next,-i)):a.collapsible||a.fixedSize?o(e.next,-i):o(e.prev,i),this.emit(this.layoutChange,{})}isDraggable(e){const i=this.pane(e),s=this.pane(e+1);return i.resizable&&s.resizable&&!(i.collapsed||s.collapsed)}isStatic(e){const i=this.pane(e),s=this.pane(e+1);return!(i.resizable&&s.resizable||i.collapsible||s.collapsible)}pane(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]}configure({panes:e,orientation:i,containerSize:s}){if(this.panes=e,this.panes.forEach((o,r)=>{o.order=2*r,o.orientation=i}),En()){const o=e.length&&!e.some(a=>!a.fixedSize),r=e.length&&e.some(a=>a.isResized);if(o&&!r)throw new Error("\n The Splitter should have at least one pane without a set size.\n See https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#toc-size for more information.\n ")}this.containerSize=s}isPercent(e){return/%$/.test(e)}toPixels(e){let i=parseFloat(e);return this.isPercent(e)&&(i=this.containerSize()*i/100),i}emit(e,i){e.observers.length&&this.zone.run(()=>e.emit(i))}};return n.\u0275fac=function(e){return new(e||n)(V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=oe([j("design:paramtypes",[ce])],n),n})(),$C=(()=>{let n=class{constructor(e,i,s,o){this.element=e,this.splitterService=i,this.localization=s,this.enclosingPane=o,this.orientation="horizontal",this.ariaRole="splitter",Ii(Py),o&&(o.containsSplitter=!0),this.layoutChange=this.splitterService.layoutChange,this.configure=this.configure.bind(this)}get hostClasses(){return!0}get horizontalHostClasses(){return"horizontal"===this.orientation}get verticalHostClasses(){return"vertical"===this.orientation}get dir(){return this.direction}ngAfterContentInit(){this.reconfigure()}ngOnChanges(e){e.orientation&&!e.orientation.isFirstChange()&&this.reconfigure()}ngOnDestroy(){this.enclosingPane&&(this.enclosingPane.containsSplitter=!1),this.unsubscribeChanges()}reconfigure(){this.unsubscribeChanges(),this.configure(),this.paneChangesSubscription=this.panes.changes.subscribe(this.configure)}unsubscribeChanges(){this.paneChangesSubscription&&(this.paneChangesSubscription.unsubscribe(),this.paneChangesSubscription=null)}configure(){this.splitterService.configure({panes:this.panes.toArray(),orientation:this.orientation,containerSize:()=>"vertical"===this.orientation?this.element.nativeElement.clientHeight:this.element.nativeElement.clientWidth})}get direction(){return this.localization.rtl?"rtl":"ltr"}};return n.\u0275fac=function(e){return new(e||n)(g($),g(KA),g(J),g(Vh,9))},n.\u0275cmp=K({type:n,selectors:[["kendo-splitter"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,Vh,4),2&e){let o;U(o=W())&&(i.panes=o)}},hostVars:12,hostBindings:function(e,i){2&e&&(fe("role",i.ariaRole)("dir",i.dir),he("k-widget",i.hostClasses)("k-splitter",i.hostClasses)("k-splitter-flex",i.hostClasses)("k-splitter-horizontal",i.horizontalHostClasses)("k-splitter-vertical",i.verticalHostClasses))},inputs:{orientation:"orientation"},outputs:{layoutChange:"layoutChange"},exportAs:["kendoSplitter"],features:[we([KA,J,{provide:An,useValue:"kendo.spliter"}]),st],ngContentSelectors:xyt,decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDraggable","",3,"index","orientation",4,"ngIf"],["kendoDraggable","",3,"index","orientation"]],template:function(e,i){1&e&&(Xt(Cyt),mt(0),A(1,byt,2,1,"ng-container",0)),2&e&&(b(1),v("ngForOf",i.panes))},directives:function(){return[Wn,pt,txe,Jc]},encapsulation:2}),oe([p(),j("design:type",String)],n.prototype,"orientation",void 0),oe([Q(),j("design:type",S)],n.prototype,"layoutChange",void 0),oe([G("class.k-widget"),G("class.k-splitter"),G("class.k-splitter-flex"),j("design:type",Boolean),j("design:paramtypes",[])],n.prototype,"hostClasses",null),oe([G("class.k-splitter-horizontal"),j("design:type",Boolean),j("design:paramtypes",[])],n.prototype,"horizontalHostClasses",null),oe([G("class.k-splitter-vertical"),j("design:type",Boolean),j("design:paramtypes",[])],n.prototype,"verticalHostClasses",null),oe([G("attr.dir"),j("design:type",String),j("design:paramtypes",[])],n.prototype,"dir",null),oe([G("attr.role"),j("design:type",String)],n.prototype,"ariaRole",void 0),oe([fi(Vh),j("design:type",wt)],n.prototype,"panes",void 0),n=oe([Wl(3,gt()),Wl(3,Md()),Wl(3,Rn(Vh)),j("design:paramtypes",[$,KA,J,Vh])],n),n})();const Mg={};Mg[_e.ArrowLeft]="left",Mg[_e.ArrowRight]="right",Mg[_e.ArrowUp]="up",Mg[_e.ArrowDown]="down",Mg[_e.Home]="home",Mg[_e.End]="end",Mg[_e.Enter]="enter",Mg[_e.Space]="enter";const Kq=Object.assign({},Mg);Kq[_e.ArrowLeft]="right",Kq[_e.ArrowRight]="left";let jvt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),$vt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})();let Xvt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),Yvt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ha]]}),n})(),Kvt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})();const Zvt=({originalEvent:n})=>{n.stopPropagation(),n.preventDefault()},iX=n=>Object.keys(n).filter(t=>n[t]).join(" ");let txe=(()=>{let n=class{constructor(e,i,s){this.draggable=e,this.splitter=i,this.localization=s,this.orientation="horizontal",this.index=0,this.ariaRole="separator",this.focused=!1,this.subscriptions=new Je}get direction(){return this.localization.rtl?"rtl":"ltr"}get tabIndex(){return this.splitter.isStatic(this.index)?-1:0}get hostClasses(){const e="horizontal"===this.orientation,i=this.splitter.isDraggable(this.index),s=this.splitter.isStatic(this.index);return iX({"k-state-focused":this.focused,"k-splitbar":!0,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&i,"k-splitbar-draggable-vertical":!e&&i,"k-splitbar-static-horizontal":e&&s,"k-splitbar-static-vertical":!e&&s,"k-touch-action-none":i})}get order(){return 2*this.index+1}collapseAny(){this.expandLast?this.toggleNext():this.tryToggleNearest()}onFocusIn(){this.focused=!0}onFocusOut(){this.focused=!1}onKeyDown(e){const i=e&&e.keyCode,s="horizontal"===this.orientation,o=r=>{e.preventDefault();const a=this.splitter.dragState(this.index);this.splitter.setSize(a,r)};i===_e.Enter?(e.preventDefault(),this.collapseAny()):s&&i===_e.ArrowLeft?o(-10):s&&i===_e.ArrowRight?o(10):s||i!==_e.ArrowUp?!s&&i===_e.ArrowDown&&o(10):o(-10)}get expandLast(){const e=this.splitter.panes;return 2===e.length&&e[1].collapsed}ngOnInit(){let e;const i=this.draggable.kendoPress.pipe(lt(Zvt),dt(()=>this.splitter.isDraggable(this.index)),lt(()=>e=this.splitter.dragState(this.index)),lt(()=>this.splitter.toggleContentOverlay(this.index,!0)),ls((n=>t=>Vt(t).pipe(my(150),et(n)))(this.draggable.kendoRelease)),ls((n=>t=>n.kendoDrag.pipe(et(n.kendoRelease),xe(({pageX:e,pageY:i})=>({originalX:t.pageX,originalY:t.pageY,pageX:e,pageY:i}))))(this.draggable))).subscribe(({pageX:s,pageY:o,originalX:r,originalY:a})=>{let l;l="vertical"===this.orientation?o-a:"rtl"===this.direction?r-s:s-r,this.splitter.setSize(e,l)});this.subscriptions.add(i),this.subscriptions.add(this.draggable.kendoRelease.subscribe(()=>this.splitter.toggleContentOverlay(this.index,!1)))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}togglePrevious(){this.splitter.tryToggle(this.index)}toggleNext(){this.splitter.tryToggle(this.index+1)}previousArrowClass(){const e=this.splitter.pane(this.index),i=this.splitter.pane(this.index+1),s=e.collapsible,o=e.collapsed,r="horizontal"===this.orientation;return iX({"k-icon":!0,"k-hidden":!s||i.isHidden,"k-collapse-prev":s,"k-i-arrow-60-left":s&&r&&!o,"k-i-arrow-60-right":s&&r&&o,"k-i-arrow-60-up":s&&!r&&!o,"k-i-arrow-60-down":s&&!r&&o})}nextArrowClass(){const e=this.splitter.pane(this.index+1),i=this.splitter.pane(this.index),s=e.collapsible,o=e.collapsed,r="horizontal"===this.orientation;return iX({"k-icon":!0,"k-hidden":!s||i.isHidden,"k-collapse-next":s,"k-i-arrow-60-right":s&&r&&!o,"k-i-arrow-60-left":s&&r&&o,"k-i-arrow-60-down":s&&!r&&!o,"k-i-arrow-60-up":s&&!r&&o})}tryToggleNearest(){const i=this.index+1;this.splitter.tryToggle(this.index)||this.splitter.tryToggle(i)}};return n.\u0275fac=function(e){return new(e||n)(g(Jc,1),g(KA),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-splitter-bar"]],hostVars:11,hostBindings:function(e,i){1&e&&se("dblclick",function(){return i.collapseAny()})("focusin",function(){return i.onFocusIn()})("focusout",function(){return i.onFocusOut()})("keydown",function(o){return i.onKeyDown(o)}),2&e&&(fe("aria-orientation",i.orientation)("role",i.ariaRole)("tabindex",i.tabIndex),ov(i.hostClasses),yt("-ms-flex-order",i.order)("order",i.order),he("k-state-focused",i.focused))},inputs:{orientation:"orientation",index:"index"},decls:3,vars:4,consts:[[3,"click"],[1,"k-resize-handle"]],template:function(e,i){1&e&&(y(0,"div",0),se("click",function(){return i.togglePrevious()}),_(),P(1,"div",1),y(2,"div",0),se("click",function(){return i.toggleNext()}),_()),2&e&&(ov(i.previousArrowClass()),b(2),ov(i.nextArrowClass()))},encapsulation:2}),oe([p(),G("attr.aria-orientation"),j("design:type",String)],n.prototype,"orientation",void 0),oe([p(),j("design:type",Number)],n.prototype,"index",void 0),oe([G("attr.role"),j("design:type",String)],n.prototype,"ariaRole",void 0),oe([G("class.k-state-focused"),j("design:type",Boolean)],n.prototype,"focused",void 0),oe([G("attr.tabindex"),j("design:type",Number),j("design:paramtypes",[])],n.prototype,"tabIndex",null),oe([G("class"),j("design:type",String),j("design:paramtypes",[])],n.prototype,"hostClasses",null),oe([G("style.-ms-flex-order"),G("style.order"),j("design:type",Number),j("design:paramtypes",[])],n.prototype,"order",null),oe([Zn("dblclick"),j("design:type",Function),j("design:paramtypes",[]),j("design:returntype",void 0)],n.prototype,"collapseAny",null),oe([Zn("focusin"),j("design:type",Function),j("design:paramtypes",[]),j("design:returntype",void 0)],n.prototype,"onFocusIn",null),oe([Zn("focusout"),j("design:type",Function),j("design:paramtypes",[]),j("design:returntype",void 0)],n.prototype,"onFocusOut",null),oe([Zn("keydown",["$event"]),j("design:type",Function),j("design:paramtypes",[Object]),j("design:returntype",void 0)],n.prototype,"onKeyDown",null),n=oe([Wl(0,Md()),j("design:paramtypes",[Jc,KA,J])],n),n})(),ebt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,XA]]}),n})();let $B=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{optional:"optional"},features:[N]}),oe([p(),j("design:type",String)],n.prototype,"optional",void 0),n})();var sX;let jv=sX=class extends $B{constructor(t){super(),this.service=t}};var oX;jv.\u0275fac=function(t){return new(t||jv)(g(J))},jv.\u0275dir=R({type:jv,selectors:[["","kendoStepperLocalizedMessages",""]],features:[we([{provide:$B,useExisting:He(()=>sX)}]),N]}),jv=sX=oe([j("design:paramtypes",[J])],jv);let XC=oX=class extends $B{constructor(t){super(),this.service=t}get override(){return!0}};XC.\u0275fac=function(t){return new(t||XC)(g(J))},XC.\u0275cmp=K({type:XC,selectors:[["kendo-stepper-messages"]],features:[we([{provide:$B,useExisting:He(()=>oX)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),XC=oX=oe([j("design:paramtypes",[J])],XC);let nbt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,Xmt]]}),n})(),ibt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),sbt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),obt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[jvt,$vt,Xvt,Kvt,Yvt,ebt,nbt,ibt,sbt]}),n})();const rbt=["trigger"],abt=["panel"];function lbt(n,t){if(1&n&&(y(0,"span",8),H(1),_()),2&n){const e=I();b(1),un(e.placeholder)}}function cbt(n,t){if(1&n&&(y(0,"span",12),H(1),_()),2&n){const e=I(2);b(1),un(e.triggerValue)}}function dbt(n,t){1&n&&mt(0,0,["*ngSwitchCase","true"])}function ubt(n,t){1&n&&(y(0,"span",9),A(1,cbt,2,1,"span",10),A(2,dbt,1,0,"ng-content",11),_()),2&n&&(v("ngSwitch",!!I().customTrigger),b(2),v("ngSwitchCase",!0))}function hbt(n,t){if(1&n){const e=ht();y(0,"div",13),y(1,"div",14,15),se("@transformPanel.done",function(s){return Le(e),I()._panelDoneAnimatingStream.next(s.toState)})("keydown",function(s){return Le(e),I()._handleKeydown(s)}),mt(3,1),_(),_()}if(2&n){const e=I();v("@transformPanelWrap",void 0),b(1),DT("mat-select-panel ",e._getPanelTheme(),""),yt("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),v("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),fe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const pbt=[[["mat-select-trigger"]],"*"],fbt=["mat-select-trigger","*"],rxe={transformPanelWrap:fc("transformPanelWrap",[Go("* => void",dy("@transformPanel",[L7()],{optional:!0}))]),transformPanel:fc("transformPanel",[Tr("void",zt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Tr("showing",zt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Tr("showing-multiple",zt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Go("void => *",Xi("120ms cubic-bezier(0, 0, 0.2, 1)")),Go("* => void",Xi("100ms 25ms linear",zt({opacity:0})))])};let axe=0;const cxe=new ot("mat-select-scroll-strategy"),_bt=new ot("MAT_SELECT_CONFIG"),vbt={provide:cxe,deps:[Oh],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};class bbt{constructor(t,e){this.source=t,this.value=e}}const Cbt=hg(XI(ug(Ffe(class{constructor(n,t,e,i,s){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}})))),dxe=new ot("MatSelectTrigger");let xbt=(()=>{class n extends Cbt{constructor(e,i,s,o,r,a,l,c,d,u,h,f,m,C){var k,D,E;super(r,o,l,c,u),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=s,this._dir=a,this._parentFormField=d,this._liveAnnouncer=m,this._defaultOptions=C,this._panelOpen=!1,this._compareWith=(O,z)=>O===z,this._uid="mat-select-"+axe++,this._triggerAriaLabelledBy=null,this._destroy=new Z,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+axe++,this._panelDoneAnimatingStream=new Z,this._overlayPanelClass=(null===(k=this._defaultOptions)||void 0===k?void 0:k.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(E=null===(D=this._defaultOptions)||void 0===D?void 0:D.disableOptionCentering)&&void 0!==E&&E,this.ariaLabel="",this.optionSelectionChanges=oN(()=>{const O=this.options;return O?O.changes.pipe($o(O),ls(()=>ii(...O.map(z=>z.onSelectionChange)))):this._ngZone.onStable.pipe(jn(1),ls(()=>this.optionSelectionChanges))}),this.openedChange=new S,this._openedStream=this.openedChange.pipe(dt(O=>O),xe(()=>{})),this._closedStream=this.openedChange.pipe(dt(O=>!O),xe(()=>{})),this.selectionChange=new S,this.valueChange=new S,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=C.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Tn(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Tn(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Tn(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Uo(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new gU(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ry(),et(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(et(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe($o(null),et(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,s=40===i||38===i||37===i||39===i,o=13===i||32===i,r=this._keyManager;if(!r.isTyping()&&o&&!Rd(e)||(this.multiple||e.altKey)&&s)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;r.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,s=e.keyCode,o=40===s||38===s,r=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(r||13!==s&&32!==s||!i.activeItem||Rd(e))if(!r&&this._multiple&&65===s&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(jn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(s=>{if(this._selectionModel.isSelected(s))return!1;try{return null!=s.value&&this._compareWith(s.value,e)}catch(o){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new KZe(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(et(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(et(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=ii(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(et(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ii(...this.options.map(i=>i._stateChanges)).pipe(et(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const s=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(s!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),s!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,s)=>this.sortComparator?this.sortComparator(i,s,e):e.indexOf(i)-e.indexOf(s)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(s=>s.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let s=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(g(vu),g(Be),g(ce),g(Q$),g($),g(nr,8),g(OC,8),g(_y,8),g(Dq,8),g(Zs,10),Hc("tabindex"),g(cxe),g(Sfe),g(_bt,8))},n.\u0275dir=R({type:n,viewQuery:function(e,i){if(1&e&&(Ae(rbt,5),Ae(abt,5),Ae(cge,5)),2&e){let s;U(s=W())&&(i.trigger=s.first),U(s=W())&&(i.panel=s.first),U(s=W())&&(i._overlayDir=s.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[N,st]}),n})(),iD=(()=>{class n extends xbt{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,s){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),s)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(et(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(jn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=zfe(e,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function(n,t,e,i){return ne+256?Math.max(0,n-256+t):e}((e+i)*s,s,this.panel.nativeElement.scrollTop)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new bbt(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),s=this._isRtl(),o=this.multiple?56:32;let r;if(this.multiple)r=40;else if(this.disableOptionCentering)r=16;else{let c=this._selectionModel.selected[0]||this.options.first;r=c&&c.group?32:16}s||(r*=-1);const a=0-(e.left+r-(s?o:0)),l=e.right+r-i.width+(s?0:o);a>0?r+=a+8:l>0&&(r-=l+8),this._overlayDir.offsetX=Math.round(r),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,s){const o=this._getItemHeight(),r=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===s?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-r))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,r=s.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>r?this._adjustPanelUp(c,r):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const s=Math.round(e-i);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,s){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),s=Math.min(i*e,256),r=i*e-s;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=zfe(a,this.options,this.optionGroups);const l=s/2;this._scrollTop=this._calculateOverlayScroll(a,l,r),this._offsetY=this._calculateOverlayOffsetY(a,l,r),this._checkOverlayWithinViewport(r)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275cmp=K({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,dxe,5),Ce(s,DC,5),Ce(s,oU,5)),2&e){let o;U(o=W())&&(i.customTrigger=o.first),U(o=W())&&(i.options=o),U(o=W())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&se("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(fe("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),he("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[we([{provide:CB,useExisting:n},{provide:sU,useExisting:n}]),N],ngContentSelectors:fbt,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Xt(pbt),y(0,"div",0,1),se("click",function(){return i.toggle()}),y(3,"div",2),A(4,lbt,2,1,"span",3),A(5,ubt,3,2,"span",4),_(),y(6,"div",5),P(7,"div",6),_(),_(),A(8,hbt,4,14,"ng-template",7),se("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const s=ki(1);fe("aria-owns",i.panelOpen?i.id+"-panel":null),b(3),v("ngSwitch",i.empty),fe("id",i._valueId),b(1),v("ngSwitchCase",!0),b(1),v("ngSwitchCase",!1),b(3),v("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[GJe,Dh,tg,cge,pL,Un],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[rxe.transformPanelWrap,rxe.transformPanel]},changeDetection:0}),n})(),wbt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[vbt],imports:[[Ut,GN,Hfe,vi],EC,xB,Hfe,vi]}),n})();function Sbt(n,t){1&n&&mt(0)}const rX=["*"];function Tbt(n,t){}const kbt=function(n){return{animationDuration:n}},Dbt=function(n,t){return{value:n,params:t}},Mbt=["tabBodyWrapper"],Ebt=["tabHeader"];function Ibt(n,t){}function Abt(n,t){1&n&&A(0,Ibt,0,0,"ng-template",9),2&n&&v("cdkPortalOutlet",I().$implicit.templateLabel)}function Fbt(n,t){1&n&&H(0),2&n&&un(I().$implicit.textLabel)}function Obt(n,t){if(1&n){const e=ht();y(0,"div",6),se("click",function(){const s=Le(e),o=s.$implicit,r=s.index,a=I(),l=ki(1);return a._handleClick(o,l,r)})("cdkFocusChange",function(s){const r=Le(e).index;return I()._tabFocusChanged(s,r)}),y(1,"div",7),A(2,Abt,1,1,"ng-template",8),A(3,Fbt,1,1,"ng-template",8),_(),_()}if(2&n){const e=t.$implicit,i=t.index,s=I();he("mat-tab-label-active",s.selectedIndex==i),v("id",s._getTabLabelId(i))("disabled",e.disabled)("matRippleDisabled",e.disabled||s.disableRipple),fe("tabIndex",s._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(i))("aria-selected",s.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),b(2),v("ngIf",e.templateLabel),b(1),v("ngIf",!e.templateLabel)}}function Rbt(n,t){if(1&n){const e=ht();y(0,"mat-tab-body",10),se("_onCentered",function(){return Le(e),I()._removeTabBodyWrapperHeight()})("_onCentering",function(s){return Le(e),I()._setTabBodyWrapperHeight(s)}),_()}if(2&n){const e=t.$implicit,i=t.index,s=I();he("mat-tab-body-active",s.selectedIndex===i),v("id",s._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",s.animationDuration),fe("tabindex",null!=s.contentTabIndex&&s.selectedIndex===i?s.contentTabIndex:null)("aria-labelledby",s._getTabLabelId(i))}}const uxe=["tabListContainer"],hxe=["tabList"],pxe=["nextPaginator"],fxe=["previousPaginator"],Lbt=new ot("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let WB=(()=>{class n{constructor(e,i,s,o){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=s,this._animationMode=o}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const i=this._inkBarPositioner(e),s=this._elementRef.nativeElement;s.style.left=i.left,s.style.width=i.width}}return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(Lbt),g(jo,8))},n.\u0275dir=R({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&&he("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),n})();const gxe=new ot("MatTabContent"),mxe=new ot("MatTabLabel"),Bbt=ug(class{}),yxe=new ot("MAT_TAB_GROUP");let qB=(()=>{class n extends Bbt{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new Z,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _v(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(g(Gt),g(yxe,8))},n.\u0275cmp=K({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,mxe,5),Ce(s,gxe,7,ve)),2&e){let o;U(o=W())&&(i.templateLabel=o.first),U(o=W())&&(i._explicitContent=o.first)}},viewQuery:function(e,i){if(1&e&&Ae(ve,7),2&e){let s;U(s=W())&&(i._implicitContent=s.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[N,st],ngContentSelectors:rX,decls:1,vars:0,template:function(e,i){1&e&&(Xt(),A(0,Sbt,1,0,"ng-template"))},encapsulation:2}),n})();const Vbt={translateTab:fc("translateTab",[Tr("center, void, left-origin-center, right-origin-center",zt({transform:"none"})),Tr("left",zt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Tr("right",zt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Go("* => left, * => right, left => center, right => center",Xi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Go("void => left-origin-center",[zt({transform:"translate3d(-100%, 0, 0)"}),Xi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Go("void => right-origin-center",[zt({transform:"translate3d(100%, 0, 0)"}),Xi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let zbt=(()=>{class n extends vv{constructor(e,i,s,o){super(e,i,o),this._host=s,this._centeringSub=Je.EMPTY,this._leavingSub=Je.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe($o(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(qr),g(Gt),g(He(()=>_xe)),g($t))},n.\u0275dir=R({type:n,selectors:[["","matTabBodyHost",""]],features:[N]}),n})(),Hbt=(()=>{class n{constructor(e,i,s){this._elementRef=e,this._dir=i,this._dirChangeSubscription=Je.EMPTY,this._translateTabComplete=new Z,this._onCentering=new S,this._beforeCentering=new S,this._afterLeavingCenter=new S,this._onCentered=new S(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),s.markForCheck()})),this._translateTabComplete.pipe(ry((o,r)=>o.fromState===r.fromState&&o.toState===r.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(g($),g(nr,8),g(Be))},n.\u0275dir=R({type:n,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),_xe=(()=>{class n extends Hbt{constructor(e,i,s){super(e,i,s)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(nr,8),g(Be))},n.\u0275cmp=K({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Ae(vv,5),2&e){let s;U(s=W())&&(i._portalHost=s.first)}},hostAttrs:[1,"mat-tab-body"],features:[N],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(y(0,"div",0,1),se("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),A(2,Tbt,0,0,"ng-template",2),_()),2&e&&v("@translateTab",di(3,Dbt,i._position,Yt(1,kbt,i.animationDuration)))},directives:[zbt],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Vbt.translateTab]}}),n})();const vxe=new ot("MAT_TABS_CONFIG");let Gbt=0;class jbt{}const $bt=gy(hg(class{constructor(n){this._elementRef=n}}),"primary");let Ubt=(()=>{class n extends $bt{constructor(e,i,s,o){var r;super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new wt,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Je.EMPTY,this._tabLabelSubscription=Je.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new S,this.focusChange=new S,this.animationDone=new S,this.selectedTabChange=new S(!0),this._groupId=Gbt++,this.animationDuration=s&&s.animationDuration?s.animationDuration:"500ms",this.disablePagination=!(!s||null==s.disablePagination)&&s.disablePagination,this.dynamicHeight=!(!s||null==s.dynamicHeight)&&s.dynamicHeight,this.contentTabIndex=null!==(r=null==s?void 0:s.contentTabIndex)&&void 0!==r?r:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Tn(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Uo(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Uo(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const s=this._tabBodyWrapper.nativeElement;s.style.minHeight=s.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((s,o)=>s.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,s)=>{i.position=s-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const i=this._tabs.toArray();for(let s=0;s{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new jbt;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ii(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,s){e.disabled||(this.selectedIndex=i.focusIndex=s)}_getTabIndex(e,i){return e.disabled?null:this.selectedIndex===i?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(vxe,8),g(jo,8))},n.\u0275dir=R({type:n,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[N]}),n})(),aX=(()=>{class n extends Ubt{constructor(e,i,s,o){super(e,i,s,o)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(vxe,8),g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,qB,5),2&e){let o;U(o=W())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Ae(Mbt,5),Ae(Ebt,5)),2&e){let s;U(s=W())&&(i._tabBodyWrapper=s.first),U(s=W())&&(i._tabHeader=s.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&&he("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[we([{provide:yxe,useExisting:n}]),N],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,i){1&e&&(y(0,"mat-tab-header",0,1),se("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),A(2,Obt,4,14,"div",2),_(),y(3,"div",3,4),A(5,Rbt,1,9,"mat-tab-body",5),_()),2&e&&(v("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),b(2),v("ngForOf",i._tabs),b(1),he("_mat-animation-noopable","NoopAnimations"===i._animationMode),b(2),v("ngForOf",i._tabs))},directives:function(){return[Kbt,Wn,bxe,Lp,fQe,pt,vv,_xe]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),n})();const Wbt=ug(class{});let bxe=(()=>{class n extends Wbt{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(g($))},n.\u0275dir=R({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(fe("aria-disabled",!!i.disabled),he("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[N]}),n})();const Cxe=yv({passive:!0});let wxe=(()=>{class n{constructor(e,i,s,o,r,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=s,this._dir=o,this._ngZone=r,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Z,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Z,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new S,this.indexFocused=new S,r.runOutsideAngular(()=>{Hi(e.nativeElement,"mouseleave").pipe(et(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Uo(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Hi(this._previousPaginator.nativeElement,"touchstart",Cxe).pipe(et(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Hi(this._nextPaginator.nativeElement,"touchstart",Cxe).pipe(et(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Vt("ltr"),i=this._viewportRuler.change(150),s=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ON(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(s):s(),ii(e,i,this._items.changes).pipe(et(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(s)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(et(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Rd(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const s=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:r}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=o,l=a+r):(l=this._tabList.nativeElement.offsetWidth-o,a=l-r);const c=this.scrollDistance,d=this.scrollDistance+s;ad&&(this.scrollDistance+=l-d+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),pU(650,100).pipe(et(ii(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:s,distance:o}=this._scrollHeader(e);(0===o||o>=s)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(vu),g(nr,8),g(ce),g(Qi),g(jo,8))},n.\u0275dir=R({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),Ybt=(()=>{class n extends wxe{constructor(e,i,s,o,r,a,l){super(e,i,s,o,r,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Tn(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(vu),g(nr,8),g(ce),g(Qi),g(jo,8))},n.\u0275dir=R({type:n,inputs:{disableRipple:"disableRipple"},features:[N]}),n})(),Kbt=(()=>{class n extends Ybt{constructor(e,i,s,o,r,a,l){super(e,i,s,o,r,a,l)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(vu),g(nr,8),g(ce),g(Qi),g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,bxe,4),2&e){let o;U(o=W())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Ae(WB,7),Ae(uxe,7),Ae(hxe,7),Ae(pxe,5),Ae(fxe,5)),2&e){let s;U(s=W())&&(i._inkBar=s.first),U(s=W())&&(i._tabListContainer=s.first),U(s=W())&&(i._tabList=s.first),U(s=W())&&(i._nextPaginator=s.first),U(s=W())&&(i._previousPaginator=s.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&he("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[N],ngContentSelectors:rX,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Xt(),y(0,"div",0,1),se("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),P(2,"div",2),_(),y(3,"div",3,4),se("keydown",function(o){return i._handleKeydown(o)}),y(5,"div",5,6),se("cdkObserveContent",function(){return i._onContentChanges()}),y(7,"div",7),mt(8),_(),P(9,"mat-ink-bar"),_(),_(),y(10,"div",8,9),se("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),P(12,"div",2),_()),2&e&&(he("mat-tab-header-pagination-disabled",i._disableScrollBefore),v("matRippleDisabled",i._disableScrollBefore||i.disableRipple),b(5),he("_mat-animation-noopable","NoopAnimations"===i._animationMode),b(5),he("mat-tab-header-pagination-disabled",i._disableScrollAfter),v("matRippleDisabled",i._disableScrollAfter||i.disableRipple))},directives:[Lp,EN,WB],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),n})(),t0t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,vi,VN,dk,IN,Efe],vi]}),n})();const fr=n=>null!=n,XB=n=>null==n,lX=n=>Array.isArray(n),Txe=n=>"function"==typeof n,cX=n=>"string"==typeof n,YC=n=>!isNaN(n-parseFloat(n)),$v=n=>n&&n.getTime,Ly=n=>fr(n.filters),kxe=(n,t,e)=>i=>n(i)?t(i):e(i),Yp=(...n)=>t=>n.reduceRight((e,i)=>i(e),t),JA={},c0t=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;JA.undefined=n=>n;const Eg=(n,t)=>{const e=n+t;if(JA[e])return JA[e];const i=[];return n.replace(c0t,(s,o,r,a)=>{i.push(fr(o)?o:r||a)}),JA[e]=s=>{let o=s;for(let r=0;rt=>[n,t],f0t=()=>null,dX=n=>t=>fr(n(t)),Exe=n=>t=>(n=>fr(n)&&lX(n)&&n.length>0)(n(t)),sD=(n,t)=>kxe(n,t,f0t),uX=(n,t)=>e=>n(e).map(t).join("~"),_0t=Yp(...[['"',""],[":","-"]].map(([t,e])=>i=>i.replace(new RegExp(t,"g"),e))),v0t=t=>t.slice(0,t.indexOf(".")),Ixe=({field:n,dir:t="asc"})=>`${n}-${t}`,Axe=Eg("take"),Fxe=Eg("aggregates"),C0t=Eg("skip"),Oxe=Eg("group"),hX=Eg("sort",!0),x0t=uX(hX,Ixe),w0t=uX(Oxe,Ixe),S0t=uX(Fxe,({field:n,aggregate:t})=>`${n}-${t}`),T0t=Yp(n=>`datetime'${n}'`,v0t,_0t,JSON.stringify,n=>new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))),M0t=Yp(e2("page"),({skip:n,take:t})=>Math.floor((n||0)/t)+1),E0t=Yp(e2("pageSize"),Axe),I0t=Yp(e2("group"),w0t),A0t=Yp(e2("sort"),x0t),F0t=Yp(e2("aggregate"),S0t),pX=(sD(dX(C0t),M0t),sD(dX(Axe),E0t),sD(Exe(Oxe),I0t),sD(dX(Fxe),F0t),Yp(sD(Exe(hX),A0t),n=>Object.assign({},n,{sort:(hX(n)||[]).filter(({dir:t})=>(n=>!(n=>XB(n)||0===n.trim().length)(n))(t))})),({field:n,operator:t,value:e})=>`${n}~${t}~${e}`),YB=(kxe(n=>$v(n.value),Yp(pX,({field:n,value:t,ignoreCase:e,operator:i})=>({value:T0t(t),field:n,ignoreCase:e,operator:i})),pX),(n,t,e)=>(t[n]=e,t)),fX=n=>t=>{const e=t[n];return fr(e)?e:t[(n=>n.replace(/(^[A-Z])/g,(t,e)=>e.toLowerCase()))(n)]},Nxe=(fX("Member"),fX("AggregateMethodName"),fX("Value"),n=>t=>Object.keys(t).reduce(n.bind(null,t),{})),W0t=Nxe((n,t,e)=>YB(e.toLowerCase(),t,n[e])),q0t=Nxe((n,t,e)=>YB(e,t,W0t(n[e]))),Bxe=(n,t)=>fr(n)?n:t,Vxe=Yp(({field:n,hasSubgroups:t,value:e,aggregates:i,items:s})=>({aggregates:q0t(i),field:n,items:t?s.map(Vxe):s,value:e}),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:Bxe(n.Key,Bxe(n.key,n.value))})),zxe=(n,t)=>XB(n)?n===t?0:-1:XB(t)?1:n.localeCompare?n.localeCompare(t):n>t?1:nzxe(t,n),Y0t=n=>{const t=Eg(n.field,!0);return(e,i)=>("asc"===n.dir?zxe:X0t)(t(e),t(i))},K0t=(n,t)=>0,Hxe=n=>t=>(e,i,s)=>t(e,n(i,s)),Uxe=(Hxe(n=>n),n=>{n.filters&&(n.filters=n.filters.map(t=>{const e=Object.assign({},t);return!Ly(t)&&cX(t.operator)&&(e.operator=(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))(t.operator)),Ly(t)&&Uxe(e),e}))}),Wxe=n=>(fr(n)&&(n=(n=>Ly(n)?Object.assign({},n):{filters:lX(n)?n:[n],logic:"and"})(n),Uxe(n)),n),dCt={or:{concat:(n,t)=>e=>n(e)||t(e),identity:()=>!1},and:{concat:(n,t)=>e=>n(e)&&t(e),identity:()=>!0}},uCt={contains:(n,t)=>(n||"").indexOf(t)>=0,doesnotcontain:(n,t)=>-1===(n||"").indexOf(t),doesnotendwith:(n,t)=>(n||"").indexOf(t,(n||"").length-(t||"").length)<0,doesnotstartwith:(n,t)=>-1===(n||"").lastIndexOf(t,0),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=>fr(n),isnull:n=>XB(n),lt:(n,t)=>nn<=t,neq:(n,t)=>n!=t,startswith:(n,t)=>0===(n||"").lastIndexOf(t,0)},qxe=/^\/Date\((.*?)\)\/$/,Xxe=n=>{const t=dCt[n.logic];return n.filters.filter(fr).map(e=>Ly(e)?Xxe(e):(({field:n,ignoreCase:t,value:e,operator:i})=>{n=fr(n)?n:r=>r,t=!fr(t)||t;const s=((n,t,e)=>{if(!fr(t))return n;let i=n;if(cX(t)){const s=qxe.exec(t);s?t=new Date(+s[1]):i=o=>{const r=n(o);return"string"==typeof r&&e?r.toLowerCase():YC(r)?r+"":r}}return $v(t)?s=>{const o=i(s);return $v(o)?o.getTime():o}:i})(Txe(n)?n:Eg(n,!0),e,t);e=((n,t)=>{if(null!=n&&cX(n)){const e=qxe.exec(n);if(e)return new Date(+e[1]).getTime();if(t)return n.toLowerCase()}else if(null!=n&&$v(n))return n.getTime();return n})(e,t);const o=Txe(i)?i:uCt[i];return r=>o(s(r),e,t)})(e)).reduce(t.concat,t.identity)},Yxe=n=>n&&0!==n.filters.length?Xxe(n):()=>!0,Kp=(n,t)=>!fr(t)||Ly(t)&&0===t.filters.length?n:n.filter(Yxe(Wxe(t))),yX=(Hxe(n=>n),(n,t,e,i)=>{if(e-t<2)return;const s=t+e>>>1;yX(n,t,s,i),yX(n,s,e,i),((n,t,e,i,s)=>{let o=e-t,r=i-e;const a=[];for(let u=0;u0&&o>0);for(;o;)n[d++]=a[l++],o--;for(;r;)n[d++]=n[c++],r--})(n,t,s,e,i)}),zh=(n,t)=>{if(t.some(e=>fr(e.dir))){n=n.slice(0);const e=(n=>n.filter(t=>fr(t.dir)).map(t=>Y0t(t)).reduce((t,e)=>(i,s)=>t(i,s)||e(i,s),K0t))(t);yX(n,0,n.length,e)}return n};function M(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function qn(n,t){return function(e,i){t(e,i,n)}}function T(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function t2(n=0,t=SC){return(!hU(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=SC),new an(e=>(e.add(t.schedule(xCt,n,{subscriber:e,counter:0,period:n})),e))}function xCt(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}class SCt{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new TCt(t,this.resultSelector))}}class TCt extends In{constructor(t,e,i=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;Ht(t)?e.push(new DCt(t)):e.push("function"==typeof t[Eo]?new kCt(t[Eo]()):new MCt(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class MCt extends Pf{constructor(t,e,i){super(t),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Eo](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Lf(this.observable,new ru(this))}}function ZB(n,t){return t?ls(()=>n,t):ls(()=>n)}const twe={leading:!0,trailing:!1};function vX(n,t=SC,e=twe){return i=>i.lift(new ACt(n,t,e.leading,e.trailing))}class ACt{constructor(t,e,i,s){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=s}call(t,e){return e.subscribe(new FCt(t,this.duration,this.scheduler,this.leading,this.trailing))}}class FCt extends In{constructor(t,e,i,s,o){super(t),this.duration=e,this.scheduler=i,this.leading=s,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(OCt,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function OCt(n){const{subscriber:t}=n;t.clearThrottle()}class PCt{constructor(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?NCt:LCt}call(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))}}class LCt extends In{constructor(t,e){super(t),this.bufferSize=e,this.buffer=[]}_next(t){const e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])}_complete(){const t=this.buffer;t.length>0&&this.destination.next(t),super._complete()}}class NCt extends In{constructor(t,e,i){super(t),this.bufferSize=e,this.startBufferEvery=i,this.buffers=[],this.count=0}_next(t){const{bufferSize:e,startBufferEvery:i,buffers:s,count:o}=this;this.count++,o%i==0&&s.push([]);for(let r=s.length;r--;){const a=s[r];a.push(t),a.length===e&&(s.splice(r,1),this.destination.next(a))}}_complete(){const{buffers:t,destination:e}=this;for(;t.length>0;){let i=t.shift();i.length>0&&e.next(i)}super._complete()}}function Ir(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function oD(n,t){return function(e,i){t(e,i,n)}}function Ar(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function swe(n){return n.ownerDocument||n.document||n}const CX=n=>swe(n).defaultView,xX=n=>swe(n).documentElement;let wX=0;function owe(n){const t=CX(n),e=xX(n),i={height:t.innerHeight,width:t.innerWidth};return e.scrollHeight-e.clientHeight>0&&(i.width-=function(){if(!wX&&"undefined"!=typeof document){const n=document.createElement("div");n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML=" ",document.body.appendChild(n),wX=n.offsetWidth-n.scrollWidth,document.body.removeChild(n)}return wX}()),i}const n2=n=>{let t=n.getBoundingClientRect(),{left:e,top:i}=t;return!t.height&&!t.width&&(t=(n=>{const{display:t,left:e,position:i}=n.style;n.style.display="",n.style.left="-10000px",n.style.position="absolute";const s=n.getBoundingClientRect();return n.style.display=t,n.style.left=e,n.style.position=i,s})(n)),{top:i,left:e,height:t.height,width:t.width}},rwe=(n,t)=>{const e=[];let i=n.parentNode;for(;i&&(e.push(i),i!==t);)i=i.parentNode;return e};function awe(n){const t=xX(n),e=CX(n);return{x:e.pageXOffset||t.scrollLeft||0,y:e.pageYOffset||t.scrollTop||0}}const lwe=n=>n===(n.ownerDocument||{}).body?awe(n):{x:n.scrollLeft,y:n.scrollTop},SX=n=>{let t=n.offsetParent;for(;t&&"static"===t.style.position;)t=t.offsetParent;return t||xX(n)},qCt=(n,t,e=1)=>{const i=t?SX(t):null,{top:s,left:o,height:r,width:a}=((n,t)=>{const e=CX(n),i=e.getComputedStyle(n),s=n2(n),o=t||SX(n),r=n.ownerDocument;let l={top:0,left:0};if("fixed"!==i.position&&o!==r.body&&o!==r.documentElement){const c=e.getComputedStyle(o);l=n2(o),l.top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:s.top-l.top,left:s.left-l.left,height:s.height,width:s.width}})(n,i),{x:l,y:c}=((n,t)=>n?lwe(n):function(n){const t=SX(n);return t?lwe(t):{x:0,y:0}}(t))(i,n),d=n.ownerDocument,u=i===d.body||i===d.documentElement?1:e;return{top:s+c*u,left:o+l*u,height:r,width:a}},cwe=function(n,t,e){let i=0;return n+t>e&&(i=e-(n+t)),n<0&&(i=-n),i},dwe=function({offset:n,size:t,anchorSize:e,viewPortSize:i,anchorAlignPoint:s,elementAlignPoint:o,margin:r}){let a=0;const d=2*r;if(o!==s&&"center"!==o&&"middle"!==o&&"center"!==s&&"middle"!==s){const u="top"===s||"left"===s;n<0&&u?(a=t+e+d,n+a+t>i&&(a=0)):n>=0&&!u&&(n+t>i&&(a+=-(e+t+d)),n+a<0&&(a=0))}return a},KCt=n=>{const t=[];let e=n.parentNode.firstElementChild;for(;e;)e!==n&&t.push(e),e=e.nextElementSibling;return t},QCt=["container"];function JCt(n,t){}const ext=["*"],TX=(n,t)=>n||{height:0,left:t.left,top:t.top,width:0},e5=()=>"undefined"!=typeof window,ixt=/auto|scroll/,rxt=n=>(n=>`${n.style.overflow}${n.style.overflowX}${n.style.overflowY}`)(n)||(n=>{const t=window.getComputedStyle(n);return`${t.overflow}${t.overflowX}${t.overflowY}`})(n),uwe=1e3/60,cxt=function(n){let t,e=!1;return(...i)=>(e||(t=(()=>{if(!Ft()&&null!==document.body)return!1;const t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='
child
',document.body.appendChild(t);const e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e})(...i),e=!0),t)}(),s2=(n,t)=>n&&1!==t?{height:n.height/t,left:n.left/t,top:n.top/t,width:n.width/t}:n,uxt=["font-size","font-family","font-stretch","font-style","font-weight","line-height"];let Zp=(()=>{let n=class{addOffset(e,i){return{left:e.left+i.left,top:e.top+i.top}}addScroll(e,i){return function(n,t){return{top:n.top+t.y,left:n.left+t.x,height:n.height,width:n.width}}(e,i)}align(e){return(n=>{const{anchorRect:t,anchorAlign:e,elementRect:i,elementAlign:s,margin:o={}}=n,r=e.horizontal,a=e.vertical,l=s.horizontal,c=s.vertical;let d=o.horizontal||0,u=o.vertical||0,h=t.top,f=t.left;return"bottom"===a&&(h+=t.height),("center"===a||"middle"===a)&&(h+=Math.round(t.height/2)),"bottom"===c&&(h-=i.height,u*=-1),("center"===c||"middle"===c)&&(h-=Math.round(i.height/2),u*=-1),"right"===r&&(f+=t.width),("center"===r||"middle"===r)&&(f+=Math.round(t.width/2)),"right"===l&&(f-=i.width,d*=-1),("center"===l||"middle"===l)&&(f-=Math.round(i.width/2),d*=-1),{top:h+u,left:f+d}})(e)}boundingOffset(e){return(n=>{if(!n.getBoundingClientRect){const o=owe(n);return{bottom:o.height,left:0,right:o.width,top:0}}const{bottom:t,left:e,right:i,top:s}=n.getBoundingClientRect();return{bottom:t,left:e,right:i,top:s}})(this.nativeElement(e))}getFontStyles(e){const i=this.getWindow();if(!i||!e)return[];const s=i.getComputedStyle(this.nativeElement(e));return uxt.map(o=>({key:o,value:s[o]}))}getWindow(){return e5()?window:null}hasOffsetParent(e){return!!e&&!!this.nativeElement(e).offsetParent}offset(e){return e?n2(this.nativeElement(e)):null}offsetAtPoint(e,i){if(!e)return null;const s=this.nativeElement(e),{left:o,top:r,transition:a}=s.style;s.style.transition="none",s.style.left=`${i.left}px`,s.style.top=`${i.top}px`;const l=n2(s);return s.style.left=o,s.style.top=r,s.style.transition=a,l}nativeElement(e){return e?e.nativeElement||e:null}position(e,i,s=1){return e&&i?qCt(this.nativeElement(e),this.nativeElement(i),s):null}removeScroll(e,i){return function(n,t){return{top:n.top-t.y,left:n.left-t.x,height:n.height,width:n.width}}(e,i)}restrictToView(e){return(n=>{const{anchorRect:t,anchorAlign:e,elementRect:i,elementAlign:s,collisions:o,viewPort:r,margin:a={}}=n,{top:l,left:c,height:d,width:u}=i,{height:h,width:f}=r,m=a.horizontal||0,C=a.vertical||0;let k=0,D=0;const E="flip"===o.horizontal,O="flip"===o.vertical;"fit"===o.vertical&&(D+=cwe(l,d,h)),"fit"===o.horizontal&&(k+=cwe(c,u,f)),O&&(D+=dwe({margin:C,offset:l,size:d,anchorSize:t.height,viewPortSize:h,anchorAlignPoint:e.vertical,elementAlignPoint:s.vertical})),E&&(k+=dwe({margin:m,offset:c,size:u,anchorSize:t.width,viewPortSize:f,anchorAlignPoint:e.horizontal,elementAlignPoint:s.horizontal}));const z=E&&0!==k,q=O&&0!==D;return{flipped:z||q,flip:{horizontal:z,vertical:q},offset:{left:k,top:D}}})(e)}scrollPosition(e){return awe(this.nativeElement(e))}scrollableParents(e){return(n=>{const t=[];if(!Ft()||!e5())return t;let e=n.parentElement;for(;e;)(ixt.test(rxt(e))||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentElement;return t.push(window),t})(this.nativeElement(e))}stackingElementOffset(e){const i=this.getRelativeContextElement(e);return i?n2(i):null}stackingElementScroll(e){const i=this.getRelativeContextElement(e);return i?{x:i.scrollLeft,y:i.scrollTop}:{x:0,y:0}}getRelativeContextElement(e){if(!e||!cxt())return null;let i=this.nativeElement(e).parentElement;for(;i;){if("none"!==window.getComputedStyle(i).transform)return i;i=i.parentElement}return null}useRelativePosition(e){return!!this.getRelativeContextElement(e)}windowViewPort(e){return owe(this.nativeElement(e))}zIndex(e,i){return((n,t)=>{if(!n||!Ft()||!e5())return null;const e=((n,t)=>{const e=rwe(n);let s,o,i=t;for(;i&&(s=KCt(i),o=e.reduce((r,a)=>r.concat(s.filter(l=>l===a)),[])[0],!o);)i=i.parentElement;return o})(n,t);if(!e)return null;const i=[n].concat(rwe(n,e)).reduce((s,o)=>{const r=o.style.zIndex||window.getComputedStyle(o).zIndex,a=parseInt(r,10);return a>s?a:s},0);return i?i+1:null})(this.nativeElement(e),this.nativeElement(i))}zoomLevel(){return Ft()&&e5()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}isZoomed(){return this.zoomLevel()>1}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const t5=new ot("Popup Document Scale");let kX=(()=>{let n=class{constructor(e,i=1){this._dom=e,this.scale=i}alignElement(e){const{anchor:i,element:s,anchorAlign:o,elementAlign:r,margin:a,offset:l,positionMode:c}=e,d=this.scale||1,h="fixed"!==c&&this._dom.hasOffsetParent(s)?this.relativeRect(i,s,l,d):this.absoluteRect(i,s,l,d),f=s2(this._dom.offset(s),d);return this._dom.align({anchorAlign:o,anchorRect:h,elementAlign:r,elementRect:f,margin:a})}absoluteRect(e,i,s,o){const r=this.elementScrollPosition(e,i),a=TX(this._dom.offset(e),s),l=2*o,c=this._dom.stackingElementScroll(i);1!==o&&c&&(c.x/=l,c.y/=l);const d=this._dom.stackingElementOffset(i);return 1!==o&&d&&(d.left/=l,d.top/=l),this._dom.removeScroll(this._dom.addScroll(((n,t)=>t?{height:n.height,left:n.left-t.left,top:n.top-t.top,width:n.width}:n)(s2(a,o),d),c),r)}elementScrollPosition(e,i){return e?{x:0,y:0}:this._dom.scrollPosition(i)}relativeRect(e,i,s,o){const r=TX(this._dom.position(e,i,o),s);return s2(r,o)}};return n.\u0275fac=function(e){return new(e||n)(V(Zp),V(t5,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=Ir([oD(1,Rn(t5)),oD(1,gt()),Ar("design:paramtypes",[Zp,Number])],n),n})(),DX=(()=>{let n=class{constructor(e,i=1){this._dom=e,this.scale=i}positionElement(e){const{anchor:i,currentLocation:s,element:o,anchorAlign:r,elementAlign:a,collisions:l,margin:c}=e,d=this._dom,u=this.scale||1,h=d.offsetAtPoint(o,s),f=s2(h,u),m=s2(d.offset(i),u),C=TX(m,s),k=e.viewPort||d.windowViewPort(o);k.width=k.width/u,k.height=k.height/u;const D=d.restrictToView({anchorAlign:r,anchorRect:C,collisions:l,elementAlign:a,elementRect:f,margin:c,viewPort:k}),E=d.addOffset(s,D.offset);return{flip:D.flip,flipped:D.flipped,offset:E}}};return n.\u0275fac=function(e){return new(e||n)(V(Zp),V(t5,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=Ir([oD(1,Rn(t5)),oD(1,gt()),Ar("design:paramtypes",[Zp,Number])],n),n})(),MX=(()=>{let n=class{constructor(e,i){this._dom=e,this._zone=i}subscribe(e){!Ft()||this._zone.runOutsideAngular(()=>{this.subscription=Hi(this._dom.getWindow(),"resize").pipe(Bp(uwe)).subscribe(()=>e())})}unsubscribe(){!this.subscription||this.subscription.unsubscribe()}isUnsubscribed(){return this.subscription&&this.subscription.closed}};return n.\u0275fac=function(e){return new(e||n)(V(Zp),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=Ir([Ar("design:paramtypes",[Zp,ce])],n),n})(),EX=(()=>{let n=class{constructor(e,i){this._dom=e,this._zone=i}forElement(e){return this.unsubscribe(),this.element=e,this}subscribe(e){if(!e||!Ft()||!this.element)return;const i=this._dom.nativeElement(this.element),s=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(()=>{const o=s.map(a=>Hi(a,"scroll").pipe(Bp(uwe)));this.subscription=ii(...o).subscribe(a=>{const l=a.target;(s.filter(h=>h===l).length>0||l===document||l===window)&&e(this.isVisible(i,l))})})}unsubscribe(){!this.subscription||this.subscription.unsubscribe()}isVisible(e,i){const s=this._dom.boundingOffset(e),o=this._dom.boundingOffset(i);return!(1{const t="up"===n||n===aD?"scaleY":"scaleX";let s;return s=n===aD?"top":n===o2?rD:n===rD?o2:"bottom",{start:{transform:`${t}(0)`,transformOrigin:s},end:{transform:`${t}(1)`}}},slide:n=>{const t=n===o2||n===rD?"translateX":"translateY";return{start:{transform:`${t}(${n===rD||n===aD?-100:100}%)`},end:{transform:`${t}(0%)`}}},fade:()=>({start:{opacity:0},end:{opacity:1}}),zoom:()=>({start:{transform:"scale(0)"},end:{transform:"scale(1)"}})};let AX=(()=>{let n=class{constructor(e){this.animationBuilder=e,this.start=new S,this.end=new S}play(e,i,s){if(!this.flip||this.flip.horizontal!==s.horizontal||this.flip.vertical!==s.vertical){this.flip=s;const o=i.type||"slide",r=r2[o];if(r){const l=r(this.getDirection(s,i));this.playStates(e,l,i)}else if(En())throw new Error(`Unsupported animation type: "${o}". The supported types are slide, expand, fade and zoom.`)}}ngOnDestroy(){this.stopPlayer()}playStates(e,i,s){this.stopPlayer();const o=s.duration||100,r=this.animationBuilder.build([zt(i.start),Xi(`${o}ms ease-in`,zt(i.end))]),a=this.player=r.create(e);a.onDone(()=>{this.end.emit(),this.stopPlayer()}),this.start.emit(),a.play()}getDirection(e,i){let s=i.direction||aD;return e.horizontal&&(s===o2?s=rD:s===rD&&(s=o2)),e.vertical&&(s===aD?s="up":"up"===s&&(s=aD)),s}stopPlayer(){this.player&&(this.player.destroy(),this.player=null)}};return n.\u0275fac=function(e){return new(e||n)(V(og))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=Ir([Ar("design:paramtypes",[og])],n),n})();const fxt={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620213546,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"},hwe={left:-1e4,top:0};let pwe=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d){this.container=e,this._alignService=i,this.domService=s,this._positionService=o,this._resizeService=r,this._scrollableService=a,this.animationService=l,this._renderer=c,this._zone=d,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=hwe,this.anchorViewportLeave=new S,this.close=new S,this.open=new S,this.positionChange=new S,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Ii(fxt),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}ngOnInit(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=hwe,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()}ngOnChanges(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()}ngAfterViewInit(){this.reposition(),this.animate||this.resolvedPromise.then(()=>{this.onAnimationEnd()})}ngAfterViewChecked(){this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(()=>{this.unsubscribeReposition(),this.repositionSubscription=Ys(this.resolvedPromise).subscribe(this.reposition)})}ngOnDestroy(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()}onResize(){this.reposition()}onAnimationStart(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")}onAnimationEnd(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()}get currentOffset(){return this._currentOffset}set currentOffset(e){this.setContainerStyle("left",`${e.left}px`),this.setContainerStyle("top",`${e.top}px`),this._currentOffset=e}setZIndex(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))}reposition(){if(!Ft())return;const{flip:e,offset:i}=this.position();(!this.currentOffset||((n,t)=>{const{left:e,top:i}=n,{left:s,top:o}=t;return Math.abs(e-s)>=1||Math.abs(i-o)>=1})(this.currentOffset,i))&&(this.currentOffset=i,Kt(this.positionChange)&&this._zone.run(()=>this.positionChange.emit({offset:i,flip:e}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,e),this.resizeSensor.acceptSize()}position(){const e=this._alignService.alignElement({anchor: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.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}onScroll(e){const i=Kt(this.anchorViewportLeave);e||!i?this.reposition():i&&this._zone.run(()=>{this.anchorViewportLeave.emit()})}copyFontStyles(){!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.anchor).forEach(e=>this.setContainerStyle(e.key,e.value))}updateFixedClass(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}setContainerStyle(e,i){this._renderer.setStyle(this.container.nativeElement,e,i)}unsubscribeReposition(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}};return n.\u0275fac=function(e){return new(e||n)(g($),g(kX),g(Zp),g(DX),g(MX),g(EX),g(AX),g(Ie),g(ce))},n.\u0275cmp=K({type:n,selectors:[["kendo-popup"]],viewQuery:function(e,i){if(1&e&&(Ae(QCt,7),Ae(Kr,7)),2&e){let s;U(s=W())&&(i.contentContainer=s.first),U(s=W())&&(i.resizeSensor=s.first)}},inputs:{animate:"animate",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",positionMode:"positionMode",offset:"offset",anchor:"anchor",popupClass:"popupClass",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[we([kX,AX,Zp,DX,MX,EX]),st],ngContentSelectors:ext,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(e,i){1&e&&(Xt(),y(0,"div",0,1),mt(2),A(3,JCt,0,0,"ng-template",2),y(4,"kendo-resize-sensor",3),se("resize",function(){return i.onResize()}),_(),_()),2&e&&(v("ngClass",i.popupClass),b(3),v("ngTemplateOutlet",i.content)("ngIf",i.content),b(1),v("rateLimit",100))},directives:[Un,zs,pt,Kr],encapsulation:2}),Ir([p(),Ar("design:type",Object)],n.prototype,"animate",void 0),Ir([p(),Ar("design:type",$)],n.prototype,"anchor",void 0),Ir([p(),Ar("design:type",Object)],n.prototype,"anchorAlign",void 0),Ir([p(),Ar("design:type",Object)],n.prototype,"collision",void 0),Ir([p(),Ar("design:type",Object)],n.prototype,"popupAlign",void 0),Ir([p(),Ar("design:type",Boolean)],n.prototype,"copyAnchorStyles",void 0),Ir([p(),Ar("design:type",Object)],n.prototype,"popupClass",void 0),Ir([p(),Ar("design:type",String)],n.prototype,"positionMode",void 0),Ir([p(),Ar("design:type",Object)],n.prototype,"offset",void 0),Ir([p(),Ar("design:type",Object)],n.prototype,"margin",void 0),Ir([Q(),Ar("design:type",S)],n.prototype,"anchorViewportLeave",void 0),Ir([Q(),Ar("design:type",S)],n.prototype,"close",void 0),Ir([Q(),Ar("design:type",S)],n.prototype,"open",void 0),Ir([Q(),Ar("design:type",S)],n.prototype,"positionChange",void 0),Ir([at("container",{static:!0}),Ar("design:type",$)],n.prototype,"contentContainer",void 0),Ir([at(Kr,{static:!0}),Ar("design:type",Kr)],n.prototype,"resizeSensor",void 0),n=Ir([Ar("design:paramtypes",[$,kX,Zp,DX,MX,EX,AX,Ie,ce])],n),n})();const i5=new ot("Popup Container");let Oi=(()=>{let n=class{constructor(e,i,s,o){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=s,this.container=o}get rootViewContainer(){const 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 ")}get rootViewContainerNode(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}open(e={}){const{component:i,nodes:s}=this.contentFrom(e.content),o=this.appendPopup(s,e.appendTo),r=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),i&&i.changeDetectorRef.detectChanges();const a=this.getComponentRootNode(o);return{close:()=>{i&&i.destroy(),o.destroy(),(n=>{n&&n.parentNode&&n.parentNode.removeChild(n)})(a)},content:i,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}}appendPopup(e,i){const s=this.createComponent(pwe,e,i);return i||this.rootViewContainerNode.appendChild(this.getComponentRootNode(s)),s}getComponentRootNode(e){return e.location.nativeElement}getComponentFactory(e){return this.componentFactoryResolver.resolveComponentFactory(e)}createComponent(e,i,s){const o=this.getComponentFactory(e);if(s)return s.createComponent(o,void 0,this.injector,i);{const r=o.create(this.injector,i);return this.applicationRef.attachView(r.hostView),r}}projectComponentInputs(e,i){return Object.getOwnPropertyNames(i).filter(s=>"content"!==s||i.content instanceof ve).map(s=>{e.instance[s]=i[s]}),e}contentFrom(e){if(!e||e instanceof ve)return{component:null,nodes:[[]]};const i=this.createComponent(e);return{component:i,nodes:[i?[i.location.nativeElement]:[]]}}};return n.\u0275fac=function(e){return new(e||n)(V(Jf),V(qr),V(Jt),V(i5,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=Ir([oD(3,Rn(i5)),oD(3,gt()),Ar("design:paramtypes",[Jf,qr,Jt,$])],n),n})(),ql=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[Oi],imports:[[Ut,Du]]}),n})();const fwe=()=>"undefined"!=typeof window,FX={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/},_xt={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/},OX={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},vxt={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},gwe=(n,t,e)=>{for(let i in t)if(t.hasOwnProperty(i)&&t[i].test(n))return i;return void 0!==e?e:n},s5=fwe()&&window.navigator?window.navigator.userAgent:null,lD=s5?(n=>{let t=null,e=[];for(let i in OX)if(OX.hasOwnProperty(i)&&(e=n.match(OX[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})(s5):null,mwe=s5?(n=>{let t,e=[];for(let i in FX)if(FX.hasOwnProperty(i)){if(e=n.match(FX[i]),!e)continue;if("windows"===i&&"plugins"in window.navigator)return null;const s={};return s.device=i,s.browser=gwe(n,vxt,"default"),s.name=gwe(i,_xt),s[s.name]=!0,s.majorVersion=e[2],s.minorVersion=e[3]?e[3].replace("_","."):".0",t=s.minorVersion.replace(".","").substr(0,2),s.flatVersion=s.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),s.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,s.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||s.cordova,s}return null})(s5):null,xxt=fwe()&&"ontouchstart"in window,wxt=lD&&!lD.chrome&&window.MSPointerEvent,ywe=lD&&!lD.chrome&&window.PointerEvent,a2=mwe&&(xxt||wxt||ywe),Sxt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;const l2={};function pa(n){if(l2[n])return l2[n];const t=function(n){const t=[];return n.replace(Sxt,function(e,i,s,o){t.push(void 0!==i?i:s||o)}),t}(n);return l2[n]=function(e){let i=e;for(let s=0;s=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function Qp(n,t){return function(e,i){t(e,i,n)}}function B(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function $e(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function cD(n,t){return function(e,i){t(e,i,n)}}function Oe(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function ne(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function Ao(n,t){return function(e,i){t(e,i,n)}}function Y(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function l5(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function Ext(n,t){return function(e,i){t(e,i,n)}}function c5(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function u5(n){return"string"==typeof n}l2.undefined=n=>n;const Oxt=/\{(\d+)}?\}/g;class Rxt{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){const e=Pxt(t),i=this.message.replace(Oxt,function(s,o){return e[parseInt(o,10)]});return`${this.name}: ${i}`}error(...t){return new Error(this.formatMessage(t))}}const Pxt=function(n){return n.reduce((t,e)=>t.concat(e),[])},dD=function(n){return Object.keys(n).reduce(function(e,i){return e[i]=new Rxt({name:i,message:n[i]}),e},{})}({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."}),cr={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function uD(n){let t;return t=u5(n)?KC(n):n,t}function KC(n){if(cr[n])return cr[n];if(cr.supplemental.likelySubtags){const e=n.split("-"),i=e[0],s=e.slice(1),o=function(n,t){const e=cr.supplemental.likelySubtags;for(let i=0;i=1;o--){const r=i[o];(r===t.variant||r===t.script)&&i.splice(o,1)}const s=i.length;if(s>1)return i[s-1].toUpperCase()}(n.name,e),n.territory=i,i}function Zxt(n,t){for(let e in t)"numbers"===e?Hxt(n,t[e]):"dates"===e&&Yxt(n,t[e])}function Rwe(n,t){const{type:e,nameType:i,standAlone:s,lower:o}=t,l=(o?"lower-":"")+i,c=uD(n).calendar[e][s?"stand-alone":"format"];let d=c[l];return!d&&o&&(d=c[l]=function(n){return Array.isArray(n)?function(n){const t=[];for(let e=0;e=l){let f=h,m=[];for(;f>-1;){let C=d.substring(f-l,f);C&&m.push(C),f-=l;let k=a.shift();if(l=void 0!==k?k:l,0===l){C=d.substring(0,f),C&&m.push(C);break}}d=m.reverse().join(o.group),u=n.substring(0,t)+d+n.substring(c)}return u}function qX(n){return n===d2||n===h5}function ed(n,t=2,e=!1){const i=t-String(n).length;let s=n;if(i>0){const o=new Array(i+1).join("0");s=e?n+o:o+n}return s}function u2(n,t){let e=n,i=t||0;return e=e.toString().split("e"),e=Math.round(Number(e[0]+"e"+(e[1]?Number(e[1])+i:i))),e=e.toString().split("e"),e=Number(e[0]+"e"+(e[1]?Number(e[1])-i:-i)),e.toFixed(Math.min(i,20))}const wwt=/0+$/;function Dwt(n,t,e){const i=e.numbers.symbols,{style:s}=t,o=qX(s);if(s===Dwe)return(void 0!==t.minimumFractionDigits?n.toExponential(t.minimumFractionDigits):n.toExponential()).replace(Wv,i.decimal);let a,r=n;o&&(t.value=r,a=Hwe(e,t)),s===hD&&(r*=100,a=i.percentSign);const{minimumFractionDigits:l,maximumFractionDigits:c}=function(n){let{minimumFractionDigits:t,maximumFractionDigits:e,style:i}=n;const s=qX(i);let o;return s&&(o=function(n){let t=2,e=2;const i=((cr.supplemental.currencyData||{}).fractions||{})[n];return i&&i._digits&&(e=t=parseInt(i._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:e}}(n.currency)),void 0===t&&(t=s?o.minimumFractionDigits:0),void 0===e&&(e=i===hD?Math.max(t,0):s?Math.max(t,o.maximumFractionDigits):Math.max(t,3)),{minimumFractionDigits:t,maximumFractionDigits:e}}(t);r=u2(r,c);const d=r<0,u=zwe(n),h=r.split(Wv);let f=h[0],m=ed(h[1]?h[1].replace(wwt,""):"",l,!0);d&&(f=f.substring(1)),t.minimumIntegerDigits&&(f=ed(f,t.minimumIntegerDigits));let k,C=!1!==t.useGrouping?Gwe(f,0,f.length,t,e):f;if(m&&(C+=i.decimal+m),o&&"name"===t.currencyDisplay)k=function(n,t){const e=n.numbers.currency;let i=1!==t?e["unitPattern-count-other"]:e["unitPattern-count-one"];return t<0&&(i=i.replace("n","-n")),i}(e,n);else{const E=t.patterns;k=d||u?E[1]||"-"+E[0]:E[0]}return"n"!==k||d?function(n,t,e){let i="";for(let s=0,o=t.length;s-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){const e=n.literals=[];n.format=t.replace(Mwt,function(i){const s=i.charAt(0).replace("\\",""),o=i.slice(1).replace(s,"");return e.push(o),"__??__"})}}const Iwt=/(\.(?:[0-9]*[1-9])?)0+$/g,Awt=/\.$/,Fwt=/\,/g;function Wwe(n,t,e){let i;return i=-1===n&&-1!==t?t:-1!==n&&-1===t?n:e?Math.min(n,t):Math.max(n,t),i}function Gwt(n,t,e){const i={negative:n<0,number:Math.abs(n),negativeZero:zwe(n),format:t};return function(n){let{number:t,format:e}=n;if(e=e.split(";"),(n.negative||n.negativeZero)&&e[1])e=e[1],n.hasNegativeFormat=!0;else if(0===t){const i=e[2];e=i||e[0],i&&function(n){return-1===n.indexOf("#")&&-1===n.indexOf("0")}(i)&&(n.constant=i)}else e=e[0];n.format=e}(i),i.constant?i.constant:(Uwe(i),$we(i,e),function(n){n.hasGroup=n.format.indexOf(",")>-1,n.hasGroup&&(n.format=n.format.replace(Fwt,""))}(i),function(n){let{number:t,format:e}=n,i=e.indexOf(Wv);if(-1!==i){const s=e.lastIndexOf("0")-i,o=e.lastIndexOf("#")-i,r=s>-1,a=o>-1;let l=t.toString().split("e");l=l[1]?u2(t,Math.abs(l[1])):l[0],l=l.split(Wv)[1]||"";let c=l.length,d=-1;r||a?r&&s>o?c=s:o>s&&(a&&c>o?c=o:r&&c-1&&(t=u2(t,c),d>-1&&(t=function(n,t){let e;return e=0===t?Iwt:new RegExp(`(\\.[0-9]{${t}}[1-9]*)0+$`,"g"),n.replace(e,"$1").replace(Awt,"")}(t,d)))}else t=u2(t);n.negative&&-1*t>=0&&!n.negativeZero&&(n.negative=!1),n.number=t,n.decimalIndex=i}(i),function(n){const t=n.format;let e=t.indexOf("#"),i=t.indexOf("0"),s=Wwe(e,i,!0);e=t.lastIndexOf("#"),i=t.lastIndexOf("0");let o=Wwe(e,i);s===t.length&&(o=s),n.start=s,n.end=o,n.lastZeroIndex=i}(i),function(n,t){let e=n.number;return-1!==n.start&&(e=function(n,t){const{start:e,end:i,negative:s,negativeZero:o,format:r,decimalIndex:a,lastZeroIndex:l,hasNegativeFormat:c,hasGroup:d}=n;let u=n.number;const h=u.toString().split(Wv),f=r.length,m=h[0],C=h[1]||"",k=m.length;let D="";u=r.substring(0,e),(s||o)&&!c&&(u+="-");for(let E=e;E-1&&(u+=m,E=a),a===E){u+=(C?t.numbers.symbols.decimal:"")+C,E+=i-a+1;continue}"0"===O?(u+=O,D=O):"#"===O&&(u+=D)}return d&&(u=Gwe(u,e+(s&&!c?1:0),Math.max(i,k+e),t.numbers.decimal,t)),i>=e&&(u+=r.substring(i+1)),u}(n,t),e=function(n,t,e){let i=n;if(t===d2||t===hD){i="";for(let s=0,o=n.length;s1){const e=(t[1]||"").replace("$","").split("n");if(n.indexOf(e[0])>-1&&n.indexOf(e[1])>-1)return n.replace(e[0],"").replace(e[1],"")}}const Ywt=/\{(\d+)}/g;function YX(n){const t=arguments;return n.replace(Ywt,(e,i)=>t[parseInt(i,10)+1])}const Zwe=[2,1,5,3,4],nSt={[(-2).toString()]:8,[(-1).toString()]:6,[2..toString()]:6,[1..toString()]:3},iSt={numeric:1,"2-digit":2,short:3,long:4,narrow:5},sSt=/[hHmsSzZoOvVxX]/,Qwe=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(n){return n.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Jwe={e:"c",E:"c",M:"L",Q:"q"},KX={},gD={};function ZX(n){return KX[n]||(KX[n]=new RegExp(n+"+")),KX[n]}function m5(n){const t=[];let e=n.charAt(0),i=e;for(let s=1;si&&(i=c,s=a,o=t[r])}o=o.replace("v","z");for(let r=0;r0){const o=n.substr(0,i),r=n.substr(i);s=YX(t.calendar.dateTimeFormats.short,e[r]||QX(m5(r),e),e[o]||QX(m5(o),e))}else s=QX(m5(n),e);return function(n,t,e){gD[e]||(gD[e]={}),gD[e][n]=t}(n,s,t.name),s}(s,t))}return i||(i=e.patterns.d),i}function eSe(n){let t;return n<=3?t="abbreviated":4===n?t="wide":5===n?t="narrow":6===n&&(t="short"),t}function Jp(n,t,e,i,s){return Rwe(n,{type:t,nameType:eSe(e),standAlone:i,lower:s})}function tSe(n){return"function"==typeof n}function eY(n){return Boolean(n)&&tSe(n.getTime)&&tSe(n.getMonth)}const y5="hour",_5="zone",tY="weekday",cSt={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:tY,c:tY,e:tY,h:y5,H:y5,k:y5,K:y5,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:_5,X:_5,z:_5,Z:_5},f2=/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 sSe(n,t,e,i){return t<=2?ed(n+1,t):Jp(e,"months",t,i)[n]}function oSe(n,t,e,i){const s=Math.floor(n.getMonth()/3);return t<3?s+1:Jp(e,"quarters",t,i)[s]}function v5(n,t,e){const{shortHours:i,optionalMinutes:s,separator:o,localizedName:r,zZeroOffset:a}=e,l=n.getTimezoneOffset()/60;if(0===l&&a)return"Z";const c=l<=0?"+":"-",d=Math.abs(l).toString().split("."),u=d[1]||0;let h=c+(i?d[0]:ed(d[0],2));return(u||!s)&&(h+=(o?":":"")+ed(u,2)),r&&(h=YX(0===l?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,h)),h}function rSe(n,t,e,i){let s;return s=t<3?function(n,t,e){const i=Vwe(e);let s;return s=n3,localizedName:4===t,zZeroOffset:5===t})},Fr.x=function(n,t,e){return v5(n,e,{optionalMinutes:1===t,separator:3===t||5===t})},Fr.X=function(n,t,e){return v5(n,e,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},Fr.G=function(n,t,e){let i=n.getFullYear()>=0?1:0;return Jp(e,"eras",t)[i]},Fr.e=rSe,Fr.c=function(n,t,e){return rSe(n,t,e,!0)},Fr.q=function(n,t,e){return oSe(n,t,e,!0)},Fr.Q=oSe;const hSt=/([+|\-]\d{1,2})(:?)(\d{2})?/,pSt=/^\/Date\((.*?)\)\/$/,fSt=/[+-]\d*/,gSt={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},mSt=/\d+/,ySt=/^ */,_St=/ *$/,vSt=["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"],dSe=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Hh(n,t,e){return!(n>=t&&n<=e)}function Cl(n,t){let{format:e,idx:i}=t,s=0;for(;e[i]===n;)s++,i++;return s>0&&(i-=1),t.idx=i,s}function Ig(n,t){let e=n?gSt[n]||new RegExp("^\\d{1,"+n+"}"):mSt,i=t.value.substr(t.valueIdx,n).match(e);return i?(i=i[0],t.valueIdx+=i.length,parseInt(i,10)):null}function ZC(n,t,e){let o,r,c,i=0,s=n.length,a=0,l=0;for(;ia&&(a=r,l=i);return a?(t.valueIdx+=a,l+1):null}function nY(n){let t=!1;return n.value.charAt(n.valueIdx)===n.format[n.idx]&&(n.valueIdx++,t=!0),t}function b5(n,t,e){const{shortHours:i,noSeparator:s,optionalMinutes:o,localizedName:r,zLiteral:a}=e;if(n.UTC=!0,a&&"Z"===n.value.charAt(n.valueIdx))return n.valueIdx++,!1;if(r&&!ZC(function(n){const{gmtFormat:t,gmtZeroFormat:e}=n;if(!t)throw dD.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),e.replace("{0}","").toLowerCase()]}(t.calendar),n,!0))return!0;const l=hSt.exec(n.value.substr(n.valueIdx,6));if(!l)return!r;const c=l[1],d=l[3],u=parseInt(c,10),h=l[2];let f=parseInt(d,10);if(isNaN(u)||!i&&3!==c.length||!o&&isNaN(f)||s&&h||(isNaN(f)&&(f=null),Hh(u,-12,13)||f&&Hh(f,0,59)))return!0;n.valueIdx+=l[0].length,n.hoursOffset=u,n.minutesOffset=f}function uSe(n,t,e){const i=Cl(n,t),s=Jp(e,"months",i,"L"===n,!0),o=i<3?Ig(2,t):ZC(s,t,!0);if(null===o||Hh(o,1,12))return!0;t.month=o-1}function hSe(n,t,e){const i=Cl(n,t),s=Jp(e,"days",i,"c"===n,!0);let o=i<3?Ig(1,t):ZC(s,t,!0);if(!o&&0!==o||Hh(o,1,7))return!0}const Zr={};function wSt(n,t){return`${ySt.exec(t)[0]}${n}${_St.exec(t)[0]}`}function SSt(n,t,e){let i=JX(t,e).split("");const s={format:i,idx:0,value:wSt(n,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},o=i.length;let r=!1;for(;s.idx2029&&(e-=100)}n.year=e},Zr.h=function(n){Cl("h",n);let t=Ig(2,n);if(12===t&&(t=0),null===t||Hh(t,0,11))return!0;n.hours=t},Zr.K=function(n){Cl("K",n);let t=Ig(2,n);if(null===t||Hh(t,0,11))return!0;n.hours=t},Zr.a=function(n,t){let i=Jp(t,"dayPeriods",Cl("a",n),!1,!0);const s=ZC([i.pm],n,!0);if(!s&&!ZC([i.am],n,!0))return!0;n.pmHour=s},Zr.H=function(n){Cl("H",n);const t=Ig(2,n);if(null===t||Hh(t,0,23))return!0;n.hours=t},Zr.k=function(n){Cl("k",n);let t=Ig(2,n);if(null===t||Hh(t,1,24))return!0;n.hours=24===t?0:t},Zr.m=function(n){Cl("m",n);const t=Ig(2,n);if(null===t||Hh(t,0,59))return!0;n.minutes=t},Zr.s=function(n){Cl("s",n);const t=Ig(2,n);if(null===t||Hh(t,0,59))return!0;n.seconds=t},Zr.S=function(n){const t=Cl("S",n),e=n.value.substr(n.valueIdx,t);let i=null;if(isNaN(parseInt(e,10))||(i=parseFloat("0."+e,10),i=u2(i,3),i*=1e3,n.valueIdx+=t),null===i||Hh(i,0,999))return!0;n.milliseconds=i},Zr.z=function(n,t){const i=Cl("z",n)<4,s=b5(n,t,{shortHours:i,optionalMinutes:i,localizedName:!0});if(s)return s},Zr.Z=function(n,t){const e=Cl("Z",n),i=b5(n,t,{noSeparator:e<4,zLiteral:5===e,localizedName:4===e});if(i)return i},Zr.x=function(n,t){const e=Cl("x",n),i=b5(n,t,{noSeparator:3!==e&&5!==e,optionalMinutes:1===e});if(i)return i},Zr.X=function(n,t){const e=Cl("X",n),i=b5(n,t,{noSeparator:3!==e&&5!==e,optionalMinutes:1===e,zLiteral:!0});if(i)return i},Zr.G=function(n,t){const i=Jp(t,"eras",Cl("G",n),!1,!0);if(null===ZC([i[0],i[1]],n,!0))return!0},Zr.e=function(n,t){return hSe("e",n,t)},Zr.c=function(n,t){return hSe("c",n,t)};const ESt={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}};function iY(n,t){const e=n[n.length-1];e&&"literal"===e.type?e.pattern+=t:n.push({type:"literal",pattern:t})}function ISt(n){return"h"===n||"K"===n}const FSt=/\{(\d+)(:[^\}]+)?\}/g;function sY(n,t,e){if(t){if(eY(n))return aSe(n,t,e);if(XX(n))return Xwe(n,t,e)}return null!=n?n:""}const RSt={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620213344,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"},Ny="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",fSe={NoCurrency:`Solution: ${Ny}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${Ny}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${Ny}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${Ny}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${Ny}#toc-no-first-day`,NoGMTInfo:`Solution: ${Ny}#toc-no-gmt-info`,NoLocale:`Solution: ${Ny}#toc-no-locale`,NoValidCurrency:`Solution: ${Ny}#toc-no-valid-currency`,NoWeekData:`Solution: ${Ny}#toc-no-week-data`};function Mu(n){return function(...t){try{return n.apply(null,t)}catch(e){throw e.message=function(n){const t=n.message,e=fSe[Object.keys(fSe).filter(i=>0===t.indexOf(i))[0]];return e?`${t} ${e}`:t}(e),e}}}const PSt=Mu(Rwe),LSt=Mu(function(n,t=fD){const i=KC(t).calendar.dateFields;if(!i)throw dD.NoDateFieldNames.error();const s=i[n.type]||{};return s[n.nameType]||s.wide}),NSt=Mu(Vwe),BSt=Mu(function(n,t,e){return n.replace(FSt,function(i,s,o){return sY(t[parseInt(s,10)],o?o.substring(1):"",e)})}),VSt=Mu(aSe),zSt=Mu(Xwe),HSt=(Mu(function(){const n=arguments.length;for(let t=0;t-1)&&(o=o.replace(s.percentSign,""),a=!0),Uwt.test(o))return o=parseFloat(o.replace(s.decimal,Wv)),isNaN(o)?null:o;const{negative:l,number:c}=function(n,t,e){const i=qwe(e)||{};let r,s=qX(i.style),o=n;const a=i.currency||Bwe(t,s);if(a){const l=function(n,t,e=!0){const i=Nwe(n,t,e);if(i){if(!i.displays){const s=[t];for(let o in i)s.push(i[o]);s.sort(cwt),i.displays=s}return i.displays}}(t,a,s);if(l)for(let c=0;c0)return null;let u=d>-1;return u=void 0!==l?l:u,o=o.replace("-","").replace(Ywe," ").split(s.group.replace(Ywe," ")).join("").replace(s.decimal,Wv),o=parseFloat(o),isNaN(o)?o=null:u&&(o*=-1),o&&a&&(o/=100),o}),$St=Mu(function(n,t=fD){const i=JX(n,KC(t)),s=[];let o=f2.lastIndex=0,r=f2.exec(i);for(;r;){let a=r[0];if(o=h&&(d.names={type:u.type,nameType:eSe(f),standAlone:u.standAlone===l})}s.push(d)}o=f2.lastIndex,r=f2.exec(i)}return o{let n=class extends kn{constructor(e){super(),this.localeId=e}get localeId(){return this.locale}set localeId(e){const i=e.replace(qSt,"-");i!==this.locale&&(this.locale=i,this.notify())}format(e,...i){return BSt(e,i,this.localeId)}toString(e,i,s){return USt(e,i,s||this.localeId)}formatDate(e,i,s){return VSt(e,i,s||this.localeId)}parseDate(e,i,s){return GSt(e,i,s||this.localeId)}parseNumber(e,i,s){return jSt(e,s||this.localeId,i)}formatNumber(e,i,s){return zSt(e,i,s||this.localeId)}dateFieldName(e,i){return LSt(e,i||this.localeId)}dateFormatNames(e,i){return PSt(i||this.localeId,e)}splitDateFormat(e,i){return $St(e,i||this.localeId)}numberSymbols(e){return HSt(e||this.localeId)}firstDay(e){return NSt(e||this.localeId)}weekendRange(e){return WSt(e||this.localeId)}};return n.\u0275fac=function(e){return new(e||n)(V(ra))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=l5([Ext(0,Rn(ra)),c5("design:paramtypes",[String])],n),n})(),mD=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();class Yi{}let C5={};const Ag={get browser(){return"undefined"==typeof window||C5||(C5=function(n){const t={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};let e;for(let i in t)if(t.hasOwnProperty(i)){const s=n.match(t[i]);if(s){e={},e[i]=!0,e[s[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||s[2],10);break}}return e}(window.navigator.userAgent)),C5}},yD={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},ySe=Ag.browser;let _Se=n=>{const t=Object.keys(yD);t.push("transparent");const e=new RegExp("^("+t.join("|")+")(\\W|$)","i");return _Se=i=>e.exec(i),e.exec(n)};class x5 extends Yi{constructor(){super()}toHSV(){return this}toRGB(){return this}toHex(){return this.toBytes().toHex()}toBytes(){return this}toCss(){return"#"+this.toHex()}toCssRgba(){const t=this.toBytes();return`rgba(${t.r}, ${t.g}, ${t.b}, ${parseFloat(Number(this.a).toFixed(3))})`}toDisplay(){return ySe.msie&&ySe.version<9?this.toCss():this.toCssRgba()}equals(t){return t===this||null!==t&&this.toCssRgba()===ef(t).toCssRgba()}diff(t){if(null===t)return NaN;const e=this.toBytes(),i=t.toBytes();return Math.sqrt(Math.pow(.3*(e.r-i.r),2)+Math.pow(.59*(e.g-i.g),2)+Math.pow(.11*(e.b-i.b),2))}clone(){let t=this.toBytes();return t===this&&(t=new QC(t.r,t.g,t.b,t.a)),t}}class qv extends x5{constructor(t,e,i,s){super(),this.r=t,this.g=e,this.b=i,this.a=s}toHSV(){const{r:t,g:e,b:i}=this,s=Math.min(t,e,i),o=Math.max(t,e,i),r=o-s,a=o;let l,c;return 0===r?new rY(0,0,a,this.a):(0!==o?(c=r/o,l=t===o?(e-i)/r:e===o?2+(i-t)/r:4+(t-e)/r,l*=60,l<0&&(l+=360)):(c=0,l=-1),new rY(l,c,a,this.a))}toHSL(){const{r:t,g:e,b:i}=this,s=Math.max(t,e,i),o=Math.min(t,e,i);let r,a,l=(s+o)/2;if(s===o)r=a=0;else{const c=s-o;switch(a=l>.5?c/(2-s-o):c/(s+o),s){case t:r=(e-i)/c+(ei.length;)i=e+i;return i}class rY extends x5{constructor(t,e,i,s){super(),this.h=t,this.s=e,this.v=i,this.a=s}toRGB(){let s,o,r,{h:t,s:e,v:i}=this;if(0===e)s=o=r=i;else{t/=60;const a=Math.floor(t),l=t-a,c=i*(1-e),d=i*(1-e*l),u=i*(1-e*(1-l));switch(a){case 0:s=i,o=u,r=c;break;case 1:s=d,o=i,r=c;break;case 2:s=c,o=i,r=u;break;case 3:s=c,o=d,r=i;break;case 4:s=u,o=c,r=i;break;default:s=i,o=c,r=d}}return new qv(s,o,r,this.a)}toHSL(){return this.toRGB().toHSL()}toBytes(){return this.toRGB().toBytes()}}class vSe extends x5{constructor(t,e,i,s){super(),this.h=t,this.s=e,this.l=i,this.a=s}toRGB(){let s,o,r,t=this.h/360,e=this.s/100,i=this.l/100;if(0===e)s=o=r=i;else{const a=i<.5?i*(1+e):i+e-i*e,l=2*i-a;s=aY(l,a,t+1/3),o=aY(l,a,t),r=aY(l,a,t-1/3)}return new qv(s,o,r,this.a)}toHSV(){return this.toRGB().toHSV()}toBytes(){return this.toRGB().toBytes()}}function aY(n,t,e){let i=e;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?n+6*(t-n)*i:i<.5?t:i<2/3?n+(t-n)*(2/3-i)*6:n}function ef(n,t){let e,i;if(null==n||"none"===n)return null;if(n instanceof x5)return n;let s=n.toLowerCase();if(e=_Se(s))return s="transparent"===e[1]?new qv(1,1,1,0):ef(yD[e[1]],t),s.match=[e[1]],s;if((e=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(s))?i=new QC(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),1):(e=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(s))?i=new QC(parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),1):(e=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(s))?i=new QC(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),1):(e=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(s))?i=new QC(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])):(e=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(s))?i=new qv(parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])/100,1):(e=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(s))&&(i=new qv(parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])/100,parseFloat(e[4]))),i)i.match=e;else if(!t)throw new Error("Cannot parse color: "+s);return i}const Eu=(()=>{class n extends Yi{constructor(e){if(super(),1===arguments.length){const i=n.formats,s=this.resolveColor(e);for(let o=0;o255?255:e}padDigit(e){return 1===e.length?"0"+e:e}brightness(e){const i=Math.round;return this.r=i(this.normalizeByte(this.r*e)),this.g=i(this.normalizeByte(this.g*e)),this.b=i(this.normalizeByte(this.b*e)),this}percBrightness(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}isDark(){return this.percBrightness()<180}static fromBytes(e,i,s,o){return new QC(e,i,s,null!=o?o:1)}static fromRGB(e,i,s,o){return new qv(e,i,s,null!=o?o:1)}static fromHSV(e,i,s,o){return new rY(e,i,s,null!=o?o:1)}static fromHSL(e,i,s,o){return new vSe(e,i,s,null!=o?o:1)}}return n.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)]}}],n.namedColors=yD,n})(),QSt=["wrap"],JSt=["track"],e1t=["sliderSelection"],bSe=["ticks"],t1t=["draghandle"],n1t=["decreaseButton"],i1t=["increaseButton"];function s1t(n,t){if(1&n&&(y(0,"span",13,14),P(2,"span",15),_()),2&n){const e=I();v("title",e.decrementMessage),b(2),he("k-i-arrow-w",!e.vertical)("k-i-arrow-s",e.vertical)}}function o1t(n,t){if(1&n&&(y(0,"span",16,17),se("click",function(i){return i.preventDefault()}),P(2,"span",15),_()),2&n){const e=I();v("title",e.incrementMessage),fe("aria-label",e.currentValue),b(2),he("k-i-arrow-e",!e.vertical)("k-i-arrow-n",e.vertical)}}function r1t(n,t){if(1&n&&P(0,"ul",18,19),2&n){const e=I();v("tickTitle",e.title)("vertical",e.vertical)("step",e.smallStep)("largeStep",e.largeStep)("min",e.min)("max",e.max)("labelTemplate",null==e.labelTemplate?null:e.labelTemplate.templateRef),fe("aria-hidden",!0)}}const CSe=function(n,t){return{click:n,keydown:t}},a1t=["draghandleStart"],l1t=["draghandleEnd"];function c1t(n,t){if(1&n&&P(0,"ul",12,13),2&n){const e=I();v("tickTitle",e.title)("vertical",e.vertical)("step",e.smallStep)("largeStep",e.largeStep)("min",e.min)("max",e.max)("labelTemplate",null==e.labelTemplate?null:e.labelTemplate.templateRef),fe("aria-hidden",!0)}}const xSe=["wrapper"],d1t=function(n,t,e,i){return{click:n,keydown:t,focus:e,blur:i}},h1t=["numericInput"],p1t=["numericWrap"],f1t=function(n,t){return{mouseup:n,mouseleave:t}},wSe=function(n){return{mousedown:n}};function g1t(n,t){if(1&n&&(y(0,"span",6),y(1,"span",7),P(2,"span",8),_(),y(3,"span",9),P(4,"span",10),_(),_()),2&n){const e=I();v("kendoEventsOutsideAngular",di(11,f1t,e.releaseArrow,e.releaseArrow)),b(1),he("k-state-active",e.arrowDirection===e.ArrowDirection.Up),v("kendoEventsOutsideAngular",Yt(14,wSe,e.increasePress))("title",e.incrementTitle),fe("aria-label",e.incrementTitle),b(2),he("k-state-active",e.arrowDirection===e.ArrowDirection.Down),v("kendoEventsOutsideAngular",Yt(16,wSe,e.decreasePress))("title",e.decrementTitle),fe("aria-label",e.decrementTitle)}}const m1t=function(n,t){return{mousewheel:n,DOMMouseScroll:t}},y1t=function(n,t,e,i,s,o,r){return{mousedown:n,dragenter:t,keydown:e,input:i,focus:s,blur:o,paste:r}},lY=["input"],_1t=function(n,t,e,i,s){return{focus:n,blur:t,click:e,dragstart:i,drop:s}},v1t=["tickElement"],b1t=["kendoSliderTicks",""];function C1t(n,t){if(1&n&&(y(0,"span",7),wn(1,8),_()),2&n){const e=I().$implicit,i=I(),s=ki(2);b(1),v("ngTemplateOutlet",i.labelTemplate||s)("ngTemplateOutletContext",e)}}function x1t(n,t){1&n&&(_n(0),H(1,"\xa0"),vn())}function w1t(n,t){if(1&n&&(y(0,"li",2,3),_n(2,4),A(3,C1t,2,2,"span",5),A(4,x1t,2,0,"ng-container",6),vn(),_()),2&n){const e=t.$implicit;kP("title",I().tickTitle(e.value)),v("ngClass",e.classes),b(2),v("ngSwitch",e.large),b(1),v("ngSwitchCase",!0),b(1),v("ngSwitchCase",!1)}}function S1t(n,t){if(1&n&&H(0),2&n){const e=t.value;_t(" ",I().tickTitle(e)," ")}}function T1t(n,t){}function k1t(n,t){if(1&n&&A(0,T1t,0,0,"ng-template",8),2&n){const e=I();v("ngTemplateOutlet",null==e.prefixTemplate?null:e.prefixTemplate.templateRef)}}function D1t(n,t){1&n&&P(0,"span",9),2&n&&v("ngClass",I().errorIconClasses)}function M1t(n,t){1&n&&P(0,"span",9),2&n&&v("ngClass",I().successIconClasses)}function E1t(n,t){if(1&n){const e=ht();y(0,"span",10),se("click",function(){return Le(e),I().clearValue()})("mousedown",function(s){return s.preventDefault()})("keydown.enter",function(s){return Le(e),I().clearValue(s)})("keydown.space",function(s){return Le(e),I().clearValue(s)}),P(1,"span",9),_()}if(2&n){const e=I();v("tabindex",e.tabIndex)("title",e.clearTitle()),fe("aria-label",e.clearTitle()),b(1),v("ngClass",e.clearButtonClasses)}}function I1t(n,t){}function A1t(n,t){if(1&n&&A(0,I1t,0,0,"ng-template",8),2&n){const e=I();v("ngTemplateOutlet",null==e.suffixTemplate?null:e.suffixTemplate.templateRef)}}const SSe=function(n,t,e){return{focus:n,blur:t,input:e}},F1t=[[["kendo-textarea-suffix"]]],R1t=["opacityInput"];function P1t(n,t){if(1&n){const e=ht();y(0,"kendo-numerictextbox",7,8),se("valueChange",function(s){return Le(e),I().rgba.a=s})("blur",function(){return Le(e),I().handleRgbaInputBlur()})("valueChange",function(){return Le(e),I().handleRgbaValueChange()}),_()}if(2&n){const e=I();v("disabled",e.disabled)("readonly",e.readonly)("min",0)("max",1)("placeholder",e.textFor("alphaInputPlaceholder"))("value",e.rgba.a)("autoCorrect",!0)("spinners",!1)("step",.01)("format","n2")("decimals",2)}}function L1t(n,t){1&n&&(y(0,"div"),H(1,"a"),_())}const N1t=["gradientDragHandle"],B1t=["inputs"],V1t=["alphaSlider"],z1t=["gradientWrapper"];function H1t(n,t){if(1&n){const e=ht();y(0,"span",12),se("click",function(){return Le(e),I().reset()})("keydown.enter",function(){return Le(e),I().reset()})("keydown.space",function(){return Le(e),I().reset()}),P(1,"span",13),_()}if(2&n){const e=I();fe("aria-label",e.clearButtonTitle)("title",e.clearButtonTitle)}}function G1t(n,t){if(1&n){const e=ht();y(0,"kendo-slider",14,15),se("valueChange",function(s){return Le(e),I().handleAlphaSliderChange(s)}),_()}if(2&n){const e=I();v("dragHandleTitle",e.opacitySliderTitle)("disabled",e.disabled)("readonly",e.readonly)("showButtons",!1)("tickPlacement","none")("vertical",!0)("min",0)("max",100)("smallStep",1)("largeStep",10)("value",e.alphaSliderValue)}}const j1t=["palette"],$1t=["container"],U1t=["popupTemplate"],W1t=["colorGradient"];function q1t(n,t){1&n&&P(0,"span",11)}function X1t(n,t){if(1&n){const e=ht();y(0,"span",9),se("click",function(){return Le(e),I().handleActiveColorClick()}),A(1,q1t,1,0,"span",10),_()}if(2&n){const e=I();yt("background-color",e.value),b(1),v("ngIf",!e.value)}}function Y1t(n,t){if(1&n){const e=ht();y(0,"span",12),se("click",function(){return Le(e),I().handleActiveColorClick()}),P(1,"span",13),_()}if(2&n){const e=I();v("ngClass",e.iconStyles),b(1),yt("background-color",e.value)}}function K1t(n,t){if(1&n){const e=ht();y(0,"kendo-colorgradient",16,17),se("focusout",function(s){return Le(e),I(2).handlePopupBlur(s)})("valueChange",function(s){return Le(e),I(2).handleValueChange(s,!1)})("keydown",function(s){return Le(e),I(2).handlePopupKeyDown(s)}),_()}if(2&n){const e=I(2);v("value",e.value)("format",e.format)("opacity",e.gradientSettings.opacity)("clearButton",e.gradientSettings.clearButton)("delay",e.gradientSettings.delay)}}function Z1t(n,t){if(1&n){const e=ht();y(0,"kendo-colorpalette",18,19),se("blur",function(s){return Le(e),I(2).handlePopupBlur(s)})("cellSelection",function(s){return Le(e),I(2).handleValueChange(s,!0)})("mousedown",function(s){return s.preventDefault()})("keydown",function(s){return Le(e),I(2).handlePopupKeyDown(s)}),_()}if(2&n){const e=I(2);v("palette",e.paletteSettings.palette)("columns",e.paletteSettings.columns)("tileSize",e.paletteSettings.tileSize)("format",e.format)("value",e.value)}}function Q1t(n,t){if(1&n&&(A(0,K1t,2,5,"kendo-colorgradient",14),A(1,Z1t,2,5,"kendo-colorpalette",15)),2&n){const e=I();v("ngIf","gradient"===e.view||"combo"===e.view),b(1),v("ngIf","palette"===e.view||"combo"===e.view)}}const J1t=function(n,t){return{"k-picker-wrap":!0,"k-state-disabled":n,"k-state-focused":t}},eTt=function(n,t,e,i){return{backgroundColor:n,width:t,height:e,minWidth:i}};function tTt(n,t){if(1&n){const e=ht();y(0,"td",5),se("click",function(){const s=Le(e),o=s.$implicit,r=s.index,a=I().index;return I().handleCellSelection(o,{row:a,col:r})}),_()}if(2&n){const e=t.$implicit,i=t.index,s=I().index,o=I();he("k-state-selected",(null==o.focusedCell?null:o.focusedCell.row)===s&&(null==o.focusedCell?null:o.focusedCell.col)===i),v("id",s+""+i)("ngStyle",kp(7,eTt,e,o.tileLayout.width+"px",o.tileLayout.height+"px",o.tileLayout.width+"px")),fe("aria-selected",(null==o.focusedCell?null:o.focusedCell.row)===s&&(null==o.focusedCell?null:o.focusedCell.col)===i)("aria-label",e)("value",e)}}function nTt(n,t){if(1&n&&(y(0,"tr"),A(1,tTt,1,12,"td",4),_()),2&n){const e=t.$implicit;b(1),v("ngForOf",e)}}const Ji=n=>null!=n,_D=(n,t)=>n===t||null===n&&void 0===t||void 0===n&&null===t,Xv=n=>n&&(!n.touched||n.control&&"blur"===n.control.updateOn),Fg=(n,t,e)=>!Ji(n)||isNaN(n)||n<=t?t:n>=e?e:n,TSe=n=>Math.min(n,20),g2=n=>(String(n).split(".")[1]||"").length,kSe=(n,t)=>Math.max(g2(n),g2(t)),S5=(n,t)=>{const e=TSe(t);return parseFloat(n.toFixed(e))},JC=(n,t)=>{const e=kSe(n,t);return S5(n+t,e)},By=(n,t)=>JC(n,-t),T5=(n,t)=>{const e=g2(n)+g2(t);return S5(n*t,e)},DSe=(n,t)=>{if(0===t)return NaN;const e=kSe(n,t),i=Math.pow(10,e);return i*n/(i*t)},MSe=(n,t)=>Math.abs(By(n,T5(t,Math.floor(DSe(n,t))))),ESe=({max:n,min:t,smallStep:e,fixedTickWidth:i})=>(n-t)/e*i,ISe=(n,t,e=!0)=>{const s=e?2*parseFloat(t):0;return Math.floor(n-s)},ASe=(n=0,t=0,e=1)=>{if(e<=0)throw new Error("Invalid argument: smallStep must be a positive number");const i=Math.abs(By(t,n)),s=Math.floor(DSe(i,e));return JC(s,1)},lTt=(n,{max:t,min:e,smallStep:i,reverse:s,vertical:o})=>{const r=JC(e,T5(n,i));return o||s?Math.abs(By(r,t)):r},cY=({handleWidth:n,trackWidth:t,min:e,max:i,reverse:s,value:o})=>{const r=Math.floor(n/2),a=t/Math.abs(i-e);let l=Ji(o)?a*(o-e):e;return s&&(l=t-l),Math.floor(l-r)},k5=(n,{max:t,min:e,smallStep:i,largeStep:s},o=!1)=>{const r=o&&s?T5(i,s):i,a=By(n,e);let l;const c=MSe(a,r);return l=By(a,0===c?r:c),uY(JC(l,e),e,t)},D5=(n,{max:t,min:e,smallStep:i,largeStep:s},o=!1)=>{const r=o&&s?T5(i,s):i,a=By(n,e),l=MSe(a,r),c=JC(By(a,l),r);return uY(JC(c,e),e,t)},M5=n=>n.id.indexOf("k-start-handle")>-1,vD=(n,t,e)=>e>n?n:ee?[vD(n,t,e[0]),vD(n,t,e[1])]:[t,t],dTt=n=>n,uY=(n,t,e)=>Math.max(Math.min(n,e),t),ex=(n,t,e)=>{const{min:i,max:s,vertical:o,rtl:r}=e,a=(n=>{const t=n.getBoundingClientRect(),e=document.documentElement;return{left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:t.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}})(t),d=(s-i)/(o?t.clientHeight:t.clientWidth)*(o?n.pageY-a.top:n.pageX-a.left);let u=r||o?s-d:i+d;const h=g2(e.smallStep);return u=S5(u,h+1),((n,t)=>{const{smallStep:e,min:i,max:s}=t,o=uY(n,i,s);if(n!==o)return o;const r=k5(n,t),a=D5(n,t);return(n-i)%e==0?n:a-n<=(a-r)/2?a:r})(u,e)},FSe=n=>n.className.indexOf("k-button-increase")>=0||n.className.indexOf("k-button-decrease")>=0,hY=n=>D5(n.value,n),pY=n=>k5(n.value,n),pTt=n=>D5(n.value,n,!0),fTt=n=>k5(n.value,n,!0),OSe=n=>{if(En&&n&&n[0]>n[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")};class RSe{constructor(t,e,i,s){this.props=t,this.wrapper=e,this.track=i,this.renderer=s,this.props=t,this.wrapper=e,this.track=i,this.tickSizes=this.getTickSizes()}resizeTrack(){const t=this.props.vertical?"height":"width",e=this.trackWidth();this.track.style[t]=`${e}px`}resizeTicks(t,e){const i=this.props.vertical?"height":"width";[...e].map((s,o)=>s.style[i]=`${this.tickSizes[o]}px`),this.props.vertical&&this.adjustPadding(t)}resizeWrapper(){const t=this.props.vertical?"height":"width",e=this.elementSize(this.wrapper),i=ISe(e,this.elementOffset(this.track)),s=ESe(this.props);this.wrapper.parentElement.style[t]=i>s?e-(i-s)+"px":`${e+(s-i)}px`}trackWidth(){return this.props.fixedTickWidth?ESe(this.props):ISe(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)}getTickSizes(){const{min:t,max:e,smallStep:i}=this.props,s=ASe(t,e,i),o=this.trackWidth(),r=o/By(e,t),a=[];let l=0,c=0;for(let d=0;d=o&&(a[a.length-1]-=1),a}adjustPadding(t){const e=this.tickSizes.reduce((o,r)=>o+r,0),s=this.trackWidth()-e;if(0!==s){const o=s+this.elementOffset(this.track);t.style.paddingTop=`${o}px`}}elementOffset(t){const{vertical:e}=this.props,i=getComputedStyle(t);return parseInt(e?i.bottom:i.left,10)}elementSize(t){const{vertical:e}=this.props;return e?t.clientHeight:t.clientWidth}}class gTt extends RSe{positionHandle(t){const{max:e,min:i,reverse:s,vertical:o}=this.props,r=o?"bottom":"left",a=this.trackWidth(),l=vD(e,i,this.props.value);this.handlePosition=cY({min:i,max:e,reverse:s,value:l,trackWidth:a,handleWidth:t.offsetWidth}),this.renderer.setStyle(t,r,`${this.handlePosition}px`)}positionSelection(t,e){const{reverse:i,vertical:s}=this.props,o=s?"height":"width",r=Math.floor(t.offsetWidth/2);let a=this.handlePosition+r;i&&(a=this.trackWidth()-a),this.renderer.setStyle(e,o,`${a}px`)}}function Iu(n,t,...e){if(n&&n.nativeElement)return n.nativeElement[t].apply(n.nativeElement,e)}const PSe=(n,t)=>{for(;n&&!t(n);)n=n.parentNode;return n},Yv={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1628009274,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"};let fY=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoSliderLabelTemplate",""]]}),n=ne([Ao(0,gt()),Y("design:paramtypes",[ve])],n),n})(),LSe=(()=>{class n{constructor(e,i,s,o,r,a){this.localizationService=e,this.injector=i,this.renderer=s,this.ngZone=o,this.changeDetector=r,this.hostElement=a,this.title=dTt,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new S,this.onBlur=new S,this.valueChange=new S,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new Je,this.ifEnabled=(l,c)=>{this.isDisabled||l.call(this,c)},Ii(Yv),this.direction=e.rtl?"rtl":"ltr"}get horizontalClass(){return!this.vertical}get verticalClass(){return this.vertical}get disabledClass(){return this.disabled}setDisabledState(e){this.changeDetector.markForCheck(),this.disabled=e}ngOnInit(){this.subscriptions.add(this.localizationService.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr",this.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Zs,null)}get isDisabled(){return this.disabled||this.readonly}isEmpty(){return!1}get reverse(){return this.localizationService.rtl&&!this.vertical}get keyBinding(){const e=this.reverse;return{[_e.ArrowLeft]:e?hY:pY,[_e.ArrowRight]:e?pY:hY,[_e.ArrowDown]:pY,[_e.ArrowUp]:hY,[_e.PageUp]:pTt,[_e.PageDown]:fTt,[_e.Home]:({min:i})=>i,[_e.End]:({max:i})=>i}}resetStyles(e){e.forEach(i=>{i&&(this.vertical?(this.renderer.removeStyle(i,"width"),this.renderer.removeStyle(i,"left"),this.renderer.removeStyle(i,"right")):(this.renderer.removeStyle(i,"height"),this.renderer.removeStyle(i,"bottom")),this.renderer.removeStyle(i,"padding-top"))})}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,contentQueries:function(e,i,s){if(1&e&&Ce(s,fY,5),2&e){let o;U(o=W())&&(i.labelTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(Ae(QSt,7),Ae(JSt,7),Ae(e1t,7),Ae(bSe,5,$),Ae(bSe,5)),2&e){let s;U(s=W())&&(i.wrapper=s.first),U(s=W())&&(i.track=s.first),U(s=W())&&(i.sliderSelection=s.first),U(s=W())&&(i.ticksContainer=s.first),U(s=W())&&(i.ticks=s.first)}},hostVars:11,hostBindings:function(e,i){2&e&&(fe("dir",i.direction),he("k-slider",i.sliderClass)("k-widget",i.widgetClass)("k-slider-horizontal",i.horizontalClass)("k-slider-vertical",i.verticalClass)("k-state-disabled",i.disabledClass))},inputs:{title:"title",tickPlacement:"tickPlacement",vertical:"vertical",min:"min",max:"max",smallStep:"smallStep",largeStep:"largeStep",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",fixedTickWidth:"fixedTickWidth"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"}}),ne([p(),Y("design:type",Function)],n.prototype,"title",void 0),ne([p(),Y("design:type",String)],n.prototype,"tickPlacement",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"vertical",void 0),ne([p(),Y("design:type",Number)],n.prototype,"min",void 0),ne([p(),Y("design:type",Number)],n.prototype,"max",void 0),ne([p(),Y("design:type",Number)],n.prototype,"smallStep",void 0),ne([p(),Y("design:type",Number)],n.prototype,"largeStep",void 0),ne([p(),Y("design:type",Number)],n.prototype,"fixedTickWidth",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"readonly",void 0),ne([p(),Y("design:type",Number)],n.prototype,"tabindex",void 0),ne([Q("focus"),Y("design:type",S)],n.prototype,"onFocus",void 0),ne([Q("blur"),Y("design:type",S)],n.prototype,"onBlur",void 0),ne([Q(),Y("design:type",S)],n.prototype,"valueChange",void 0),ne([G("attr.dir"),Y("design:type",String)],n.prototype,"direction",void 0),ne([G("class.k-slider-horizontal"),Y("design:type",Boolean),Y("design:paramtypes",[])],n.prototype,"horizontalClass",null),ne([G("class.k-slider-vertical"),Y("design:type",Boolean),Y("design:paramtypes",[])],n.prototype,"verticalClass",null),ne([G("class.k-slider"),Y("design:type",Boolean)],n.prototype,"sliderClass",void 0),ne([G("class.k-widget"),Y("design:type",Boolean)],n.prototype,"widgetClass",void 0),ne([G("class.k-state-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],n.prototype,"disabledClass",null),ne([at("wrap",{static:!0}),Y("design:type",$)],n.prototype,"wrapper",void 0),ne([at("track",{static:!0}),Y("design:type",$)],n.prototype,"track",void 0),ne([at("sliderSelection",{static:!0}),Y("design:type",$)],n.prototype,"sliderSelection",void 0),ne([at("ticks",{read:$,static:!1}),Y("design:type",$)],n.prototype,"ticksContainer",void 0),ne([at("ticks",{static:!1}),Y("design:type",Object)],n.prototype,"ticks",void 0),ne([ct(fY,{static:!1}),Y("design:type",fY)],n.prototype,"labelTemplate",void 0),n})();var E5;const I5="k-pressed";let Ia=E5=class extends LSe{constructor(t,e,i,s,o,r){super(t,e,i,s,o,r),this.localization=t,this.injector=e,this.renderer=i,this.ngZone=s,this.changeDetector=o,this.hostElement=r,this.focusableId=`k-${cs()}`,this.animate=!0,this.showButtons=!0,this.value=this.min,this.focusChangedProgrammatically=!1,this.onWrapClick=a=>{const l=a.target;if(!this.isDisabled&&!FSe(l)&&!FSe(l.parentNode)){const c=ex(a,this.track.nativeElement,this.getProps());this.changeValue(c)}Iu(this.draghandle,"focus")},this.onKeyDown=a=>{const l=this.getProps(),{max:c,min:d}=l,u=this.keyBinding[a.keyCode];if(this.isDisabled||!u)return;const h=u(l);this.changeValue(vD(c,d,h)),a.preventDefault()},this.ngChange=a=>{},this.ngTouched=()=>{},this.decreaseValue=()=>{this.changeValue(k5(this.value,this.getProps()))},this.increaseValue=()=>{this.changeValue(D5(this.value,this.getProps()))},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,(Kt(this.onBlur)||Xv(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.focusChangedProgrammatically||this.onBlur.emit()})}}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}get currentValue(){return Ji(this.value)?this.value.toString():""}focus(){this.disabled||(this.focusChangedProgrammatically=!0,Iu(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0,Iu(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1}ngOnChanges(t){Xo(["value","fixedTickWidth","tickPlacement"],t,!0)&&this.ngZone.onStable.asObservable().pipe(jn(1)).subscribe(()=>{this.sizeComponent(!1)})}ngAfterViewInit(){!Ft()||(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,()=>this.increaseValue()),this.setValueChangeInterval(this.decreaseButton.nativeElement,()=>this.decreaseValue())),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(()=>this.sizeComponent(!1)),this.attachElementEventHandlers())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get incrementMessage(){return this.incrementTitle||this.localizationService.get("increment")}get decrementMessage(){return this.decrementTitle||this.localizationService.get("decrement")}get dragHandleMessage(){return this.dragHandleTitle||this.localizationService.get("dragHandle")}handleDragPress(t){t.originalEvent&&t.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")}onHandleDrag(t){this.dragging=!0,this.changeValue(ex(t,this.track.nativeElement,this.getProps()))}onHandleRelease(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")}writeValue(t){this.changeDetector.markForCheck(),this.value=t,this.sizeComponent(this.animate)}registerOnChange(t){this.ngChange=t}registerOnTouched(t){this.ngTouched=t}changeValue(t){_D(this.value,t)||this.ngZone.run(()=>{this.value=t,this.ngChange(t),this.valueChange.emit(t),this.sizeComponent(this.animate),this.changeDetector.markForCheck()})}sizeComponent(t){if(!Ft())return;const e=this.wrapper.nativeElement,i=this.track.nativeElement,s=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;t||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([i,s,o,r,this.hostElement.nativeElement]);const a=this.getProps(),l=new gTt(a,e,i,this.renderer);l.resizeTrack(),this.ticks&&l.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(c=>c.nativeElement)),l.positionHandle(o),l.positionSelection(o,s),t||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&l.resizeWrapper()}set focused(t){this.isFocused!==t&&this.hostElement&&(this.isFocused=t)}set dragging(t){if(this.isDragged!==t&&this.sliderSelection&&this.draghandle){const e=this.sliderSelection.nativeElement,i=this.draghandle.nativeElement;t?(this.renderer.addClass(e,I5),this.renderer.addClass(i,I5)):(this.renderer.removeClass(e,I5),this.renderer.removeClass(i,I5)),this.isDragged=t}}setValueChangeInterval(t,e){this.ngZone.runOutsideAngular(()=>{const i=Hi(t,"mousedown"),s=Hi(t,"mouseup"),o=Hi(t,"mouseout"),r=i.pipe(dt(a=>0===a.button&&!this.isDisabled),ly(()=>t2(150).pipe($o(-1),et(ii(s,o))))).subscribe(()=>{this.isFocused||Iu(this.draghandle,"focus"),e()});this.subscriptions.add(r)})}getProps(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:vD(this.max,this.min,this.value),vertical:this.vertical}}attachElementEventHandlers(){const t=this.hostElement.nativeElement;let e=!1,i=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(t,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onFocus.emit(),this.focused=!0})})),this.subscriptions.add(this.renderer.listen(t,"focusout",s=>{!this.isFocused||(e?(s.relatedTarget!==this.draghandle.nativeElement&&this.handleBlur(),e=!1):i||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(t,"mouseenter",()=>{i=!0})),this.subscriptions.add(this.renderer.listen(t,"mouseleave",()=>{i=!1})),this.subscriptions.add(this.renderer.listen(t,"keydown",s=>{e=s.keyCode===_e.Tab}))})}};Ia.\u0275fac=function(t){return new(t||Ia)(g(J),g(Jt),g(Ie),g(ce),g(Be),g($))},Ia.\u0275cmp=K({type:Ia,selectors:[["kendo-slider"]],viewQuery:function(t,e){if(1&t&&(Ae(t1t,7),Ae(n1t,5),Ae(i1t,5)),2&t){let i;U(i=W())&&(e.draghandle=i.first),U(i=W())&&(e.decreaseButton=i.first),U(i=W())&&(e.increaseButton=i.first)}},inputs:{focusableId:"focusableId",animate:"animate",showButtons:"showButtons",value:"value",tabIndex:"tabIndex",dragHandleTitle:"dragHandleTitle",incrementTitle:"incrementTitle",decrementTitle:"decrementTitle"},exportAs:["kendoSlider"],features:[we([J,{provide:An,useValue:"kendo.slider"},{multi:!0,provide:es,useExisting:He(()=>E5)},{provide:Ds,useExisting:He(()=>E5)}]),N,st],decls:13,vars:25,consts:function(){let n,t,e;return n=$localize`:kendo.slider.increment|The title of the **Increase** button of the Slider.␟0fa71630d40c425b9c366afd7f6c3cecc5bef59d␟8302125540024939132:increment`,t=$localize`:kendo.slider.decrement|The title of the **Decrease** button of the Slider.␟042c26f68d78afd6834ea46a5f7533850fe8c800␟652458644240352212:decrement`,e=$localize`:kendo.slider.dragHandle|The title of the drag handle of the Slider.␟481eb98e9cd8ef8e8b22051796441901e883763d␟9117416417579607469:Drag`,[["kendoSliderLocalizedMessages","","increment",n,"decrement",t,"dragHandle",e],[1,"k-slider-wrap",3,"kendoEventsOutsideAngular"],["wrap",""],["class","k-button k-button-decrease","role","presentation",3,"title",4,"ngIf"],["class","k-button k-button-increase",3,"title","click",4,"ngIf"],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate",4,"ngIf"],[1,"k-slider-track"],["track",""],[1,"k-slider-selection"],["sliderSelection",""],["role","slider","kendoDraggable","",1,"k-draghandle",3,"title","id","kendoPress","kendoDrag","kendoRelease"],["draghandle",""],[3,"resize"],["role","presentation",1,"k-button","k-button-decrease",3,"title"],["decreaseButton",""],[1,"k-icon"],[1,"k-button","k-button-increase",3,"title","click"],["increaseButton",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate"],["ticks",""]]},template:function(t,e){1&t&&(_n(0,0),y(1,"div",1,2),A(3,s1t,3,5,"span",3),A(4,o1t,3,6,"span",4),A(5,r1t,2,8,"ul",5),y(6,"div",6,7),P(8,"div",8,9),y(10,"a",10,11),se("kendoPress",function(s){return e.ifEnabled(e.handleDragPress,s)})("kendoDrag",function(s){return e.ifEnabled(e.onHandleDrag,s)})("kendoRelease",function(s){return e.ifEnabled(e.onHandleRelease,s)}),_(),_(),y(12,"kendo-resize-sensor",12),se("resize",function(){return e.sizeComponent(!1)}),_(),_(),vn()),2&t&&(b(1),he("k-slider-buttons",e.showButtons)("k-slider-topleft","before"===e.tickPlacement)("k-slider-bottomright","after"===e.tickPlacement),v("kendoEventsOutsideAngular",di(22,CSe,e.onWrapClick,e.onKeyDown)),b(2),v("ngIf",e.showButtons),b(1),v("ngIf",e.showButtons),b(1),v("ngIf","none"!==e.tickPlacement),b(5),yt("touch-action",e.isDisabled?"":"none"),v("title",e.dragHandleMessage)("id",e.focusableId),fe("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.currentValue)("aria-valuetext",e.currentValue)("aria-disabled",!!e.disabled||void 0)("aria-readonly",!!e.readonly||void 0)("aria-orientation",e.vertical?"vertical":"horizontal")("tabindex",e.disabled?"-1":e.tabIndex))},directives:function(){return[sx,lr,pt,Jc,Kr,KSe]},encapsulation:2}),ne([p(),Y("design:type",String)],Ia.prototype,"focusableId",void 0),ne([p(),Y("design:type",String)],Ia.prototype,"dragHandleTitle",void 0),ne([p(),Y("design:type",String)],Ia.prototype,"incrementTitle",void 0),ne([p(),Y("design:type",Boolean)],Ia.prototype,"animate",void 0),ne([p(),Y("design:type",String)],Ia.prototype,"decrementTitle",void 0),ne([p(),Y("design:type",Boolean)],Ia.prototype,"showButtons",void 0),ne([p(),Y("design:type",Number)],Ia.prototype,"value",void 0),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],Ia.prototype,"tabIndex",null),ne([at("draghandle",{static:!0}),Y("design:type",$)],Ia.prototype,"draghandle",void 0),ne([at("decreaseButton",{static:!1}),Y("design:type",$)],Ia.prototype,"decreaseButton",void 0),ne([at("increaseButton",{static:!1}),Y("design:type",$)],Ia.prototype,"increaseButton",void 0),Ia=E5=ne([Y("design:paramtypes",[J,Jt,Ie,ce,Be,$])],Ia);class CTt extends RSe{positionHandle(t){if(!t.id)return;const{max:e,min:i,reverse:s,vertical:o}=this.props,r=o?"bottom":"left",a=this.trackWidth(),l=M5(t)?dY(e,i,this.props.value)[0]:dY(e,i,this.props.value)[1];M5(t)?(this.startHandlePosition=cY({min:i,max:e,reverse:s,value:l,trackWidth:a,handleWidth:t.offsetWidth}),this.renderer.setStyle(t,r,`${this.startHandlePosition}px`)):(this.endHandlePosition=cY({min:i,max:e,reverse:s,value:l,trackWidth:a,handleWidth:t.offsetWidth}),this.renderer.setStyle(t,r,`${this.endHandlePosition}px`))}positionSelection(t,e){const{reverse:i,vertical:s}=this.props,o=s?"height":"width",r=s?"bottom":i?"right":"left",a=Math.floor(t.offsetWidth/2),l=Math.abs(this.endHandlePosition-this.startHandlePosition),c=s?t.style.bottom:t.style.left;this.renderer.setStyle(e,o,`${l}px`),this.renderer.setStyle(e,r,i?this.trackWidth()-parseFloat(c)-a+"px":parseFloat(c)+a+"px")}}var A5;const F5="k-pressed";let Vy=A5=class extends LSe{constructor(t,e,i,s,o,r){super(t,e,i,s,o,r),this.localization=t,this.injector=e,this.renderer=i,this.ngZone=s,this.changeDetector=o,this.hostElement=r,this.startHandleId=`k-start-handle-${cs()}`,this.endHandleId=`k-end-handle-${cs()}`,this.focusableId=this.startHandleId,this.handleZIndex=0,this.activeHandle="startHandle",this.focusChangedProgrammatically=!1,this.onWrapClick=a=>{if(!this.isDisabled){this.value=this.value||[this.min,this.min];const l=ex(a,this.track.nativeElement,this.getProps());let c;const[d,u]=c=this.value;l<=d?(c=[l,u],this.activeHandle="startHandle"):d=u&&(c=[d,l],this.activeHandle="endHandle"),Iu("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"focus"),this.changeValue(c)}},this.onKeyDown=a=>{this.value=this.value||[this.min,this.min];const l=this.getProps(),{max:c,min:d}=l,u=this.keyBinding[a.keyCode];if(this.isDisabled||!u)return;this.renderer.setStyle(a.target,"zIndex",++this.handleZIndex);const h=M5(a.target),f=u(Object.assign({},l,{value:h?this.value[0]:this.value[1]}));h?f>this.value[1]&&(this.value[1]=f):f{},this.ngTouched=()=>{},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,(Kt(this.onBlur)||Xv(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.focusChangedProgrammatically||this.onBlur.emit()})}}focus(){this.focusChangedProgrammatically=!0,Iu(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1}blur(){this.focusChangedProgrammatically=!0,Iu("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1}ngOnInit(){this.value||(this.value=[this.min,this.max]),super.ngOnInit()}ngOnChanges(t){Xo(["value","fixedTickWidth","tickPlacement"],t,!0)&&(t.value&&t.value.currentValue&&OSe(t.value.currentValue),this.ngZone.onStable.asObservable().pipe(jn(1)).subscribe(()=>{this.sizeComponent()}))}ngAfterViewInit(){!Ft()||(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(()=>this.sizeComponent()),this.attachElementEventHandlers())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}textFor(t){return this.localization.get(t)}get valueText(){return this.value?`${this.value[0]} - ${this.value[1]}`:""}handleDragPress(t){t.originalEvent&&t.originalEvent.preventDefault();const e=t.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)}onHandleDrag(t){this.value=this.value||[this.min,this.min];const e=t.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:e};const s=t.pageXthis.lastHandlePosition.x,r=t.pageY>this.lastHandlePosition.y,a=()=>this.changeValue([ex(t,this.track.nativeElement,this.getProps()),this.value[1]]),l=()=>this.changeValue([this.value[0],ex(t,this.track.nativeElement,this.getProps())]),c=()=>this.changeValue([ex(t,this.track.nativeElement,this.getProps()),ex(t,this.track.nativeElement,this.getProps())]),d=M5(this.draggedHandle),u=this.vertical,h=!u;this.value[0]===this.value[1]?u&&r||(this.reverse?h&&o:h&&s)?d?a():c():d?c():l():d?a():l()}onHandleRelease(t){this.dragging={value:!1,target:t.originalEvent.target},this.draggedHandle=void 0}writeValue(t){OSe(t),this.value=t,this.sizeComponent()}registerOnChange(t){this.ngChange=t}registerOnTouched(t){this.ngTouched=t}changeValue(t){(!this.value||!((n,t)=>_D(n[0],t[0])&&_D(n[1],t[1]))(this.value,t))&&this.ngZone.run(()=>{this.value=t,this.ngChange(t),this.value&&this.valueChange.emit(t),this.sizeComponent()})}sizeComponent(){if(!Ft())return;const t=this.wrapper.nativeElement,e=this.track.nativeElement,i=this.sliderSelection.nativeElement,s=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement;this.resetStyles([e,i,s,o,this.ticks?this.ticksContainer.nativeElement:null,this.hostElement.nativeElement]);const a=this.getProps(),l=new CTt(a,t,e,this.renderer);l.resizeTrack(),this.ticks&&l.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(c=>c.nativeElement)),l.positionHandle(s),l.positionHandle(o),l.positionSelection(s,i),this.fixedTickWidth&&l.resizeWrapper()}get isDisabled(){return this.disabled||this.readonly}isEmpty(){return!1}set focused(t){this.isFocused!==t&&this.hostElement&&(this.isFocused=t)}set dragging(t){if(this.isDragged!==t.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){const e=this.sliderSelection.nativeElement,i=t.target;t.value?(this.renderer.addClass(e,F5),this.renderer.addClass(i,F5)):(this.renderer.removeClass(e,F5),this.renderer.removeClass(i,F5)),this.isDragged=t.value}}getProps(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:dY(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}}attachElementEventHandlers(){const t=this.hostElement.nativeElement;let e=!1,i=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(t,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onFocus.emit(),this.focused=!0})})),this.subscriptions.add(this.renderer.listen(t,"focusout",s=>{!this.isFocused||(e?(s.relatedTarget!==this.draghandleStart.nativeElement&&s.relatedTarget!==this.draghandleEnd.nativeElement&&this.handleBlur(),e=!1):i||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(t,"mouseenter",()=>{i=!0})),this.subscriptions.add(this.renderer.listen(t,"mouseleave",()=>{i=!1})),this.subscriptions.add(this.renderer.listen(t,"keydown",s=>{e=s.keyCode===_e.Tab}))})}};var O5;Vy.\u0275fac=function(t){return new(t||Vy)(g(J),g(Jt),g(Ie),g(ce),g(Be),g($))},Vy.\u0275cmp=K({type:Vy,selectors:[["kendo-rangeslider"]],viewQuery:function(t,e){if(1&t&&(Ae(a1t,7),Ae(l1t,7)),2&t){let i;U(i=W())&&(e.draghandleStart=i.first),U(i=W())&&(e.draghandleEnd=i.first)}},inputs:{value:"value"},exportAs:["kendoRangeSlider"],features:[we([J,{provide:An,useValue:"kendo.rangeslider"},{multi:!0,provide:es,useExisting:He(()=>A5)},{provide:Ds,useExisting:He(()=>A5)}]),N,st],decls:13,vars:33,consts:function(){let n,t;return n=$localize`:kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider.␟4487c64285c2d8cdb336be783b6cb9304ce86007␟1512034289801794423:Drag`,t=$localize`:kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider.␟d6af522570cc1aff06104cee4b7780d6835e01d1␟6915505327582510906:Drag`,[["kendoSliderLocalizedMessages","","dragHandleStart",n,"dragHandleEnd",t],[1,"k-slider-wrap",3,"kendoEventsOutsideAngular"],["wrap",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate",4,"ngIf"],[1,"k-slider-track"],["track",""],[1,"k-slider-selection"],["sliderSelection",""],["role","slider","kendoDraggable","",1,"k-draghandle",3,"id","title","kendoPress","kendoDrag","kendoRelease"],["draghandleStart",""],["draghandleEnd",""],[3,"resize"],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate"],["ticks",""]]},template:function(t,e){1&t&&(_n(0,0),y(1,"div",1,2),A(3,c1t,2,8,"ul",3),y(4,"div",4,5),P(6,"div",6,7),y(8,"a",8,9),se("kendoPress",function(s){return e.ifEnabled(e.handleDragPress,s)})("kendoDrag",function(s){return e.ifEnabled(e.onHandleDrag,s)})("kendoRelease",function(s){return e.ifEnabled(e.onHandleRelease,s)}),_(),y(10,"a",8,10),se("kendoPress",function(s){return e.ifEnabled(e.handleDragPress,s)})("kendoDrag",function(s){return e.ifEnabled(e.onHandleDrag,s)})("kendoRelease",function(s){return e.ifEnabled(e.onHandleRelease,s)}),_(),_(),y(12,"kendo-resize-sensor",11),se("resize",function(){return e.sizeComponent()}),_(),_(),vn()),2&t&&(b(1),he("k-slider-topleft","before"===e.tickPlacement)("k-slider-bottomright","after"===e.tickPlacement),v("kendoEventsOutsideAngular",di(30,CSe,e.onWrapClick,e.onKeyDown)),b(2),v("ngIf","none"!==e.tickPlacement),b(5),yt("touch-action",e.isDisabled?"":"none"),v("id",e.startHandleId)("title",e.textFor("dragHandleStart")),fe("tabindex",e.disabled?void 0:e.tabindex)("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.value?e.value[0]:null)("aria-valuetext",e.valueText)("aria-disabled",!!e.disabled||void 0)("aria-readonly",!!e.readonly||void 0)("aria-orientation",e.vertical?"vertical":"horizontal"),b(2),yt("touch-action",e.isDisabled?"":"none"),v("id",e.endHandleId)("title",e.textFor("dragHandleEnd")),fe("tabindex",e.disabled?void 0:e.tabindex)("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.value?e.value[1]:null)("aria-valuetext",e.valueText)("aria-disabled",!!e.disabled||void 0)("aria-readonly",!!e.readonly||void 0)("aria-orientation",e.vertical?"vertical":"horizontal"))},directives:function(){return[ox,lr,pt,Jc,Kr,KSe]},encapsulation:2}),ne([p(),Y("design:type",Array)],Vy.prototype,"value",void 0),ne([at("draghandleStart",{static:!0}),Y("design:type",$)],Vy.prototype,"draghandleStart",void 0),ne([at("draghandleEnd",{static:!0}),Y("design:type",$)],Vy.prototype,"draghandleEnd",void 0),Vy=A5=ne([Y("design:paramtypes",[J,Jt,Ie,ce,Be,$])],Vy);const NSe="k-state-focused";let gr=O5=class{constructor(t,e,i,s,o,r){this.renderer=t,this.hostElement=e,this.localizationService=i,this.injector=s,this.changeDetector=o,this.ngZone=r,this.focusableId=`k-${cs()}`,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new S,this.onBlur=new S,this.valueChange=new S,this.hostClasses=!0,this.initialized=!1,this._checked=!1,this.ngChange=a=>{},this.ngTouched=()=>{},this.handleFocus=()=>{this.focused=!0,Kt(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,(Kt(this.onBlur)||Xv(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},Ii(Yv),this.direction=i.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}set checked(t){this.setHostClasses(t),this._checked=t}get checked(){return this._checked}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}get ieClass(){return lD&&lD.msie}get ariaDisabled(){return!!this.disabled||void 0}get ariaReadonly(){return this.readonly}get disabledClass(){return this.disabled}get onLabelMessage(){return this.onLabel||this.localizationService.get("on")}get offLabelMessage(){return this.offLabel||this.localizationService.get("off")}get isEnabled(){return!this.disabled&&!this.readonly}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangeSubscription=this.localizationService.changes.pipe(UI(1)).subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr"}),this.control=this.injector.get(Zs,null),this.ngZone.onStable.pipe(jn(1)).subscribe(()=>this.initialized=!0)}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}focus(){!this.wrapper||this.wrapper.nativeElement.focus()}blur(){!this.wrapper||this.wrapper.nativeElement.blur()}setDisabledState(t){this.disabled=t,this.changeDetector.markForCheck()}writeValue(t){this.checked=null!==t&&t,this.changeDetector.markForCheck()}registerOnChange(t){this.ngChange=t}registerOnTouched(t){this.ngTouched=t}keyDownHandler(t){const e=t.keyCode;this.isEnabled&&(e===_e.Space||e===_e.Enter)&&(this.changeValue(!this.checked),t.preventDefault())}clickHandler(){this.isEnabled&&this.changeValue(!this.checked)}isEmpty(){return!1}changeValue(t){this.checked!==t&&this.ngZone.run(()=>{this.checked=t,this.ngChange(t),this.valueChange.emit(t),this.changeDetector.markForCheck()})}set focused(t){if(this.isFocused!==t&&this.hostElement){const e=this.hostElement.nativeElement;t?this.renderer.addClass(e,NSe):this.renderer.removeClass(e,NSe),this.isFocused=t}}setHostClasses(t){t?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))}};var R5;gr.\u0275fac=function(t){return new(t||gr)(g(Ie),g($),g(J),g(Jt),g(Be),g(ce))},gr.\u0275cmp=K({type:gr,selectors:[["kendo-switch"]],viewQuery:function(t,e){if(1&t&&Ae(xSe,7),2&t){let i;U(i=W())&&(e.wrapper=i.first)}},hostVars:9,hostBindings:function(t,e){2&t&&(fe("dir",e.direction)("aria-disabled",e.ariaDisabled)("aria-readonly",e.ariaReadonly),he("k-switch",e.hostClasses)("k-ie",e.ieClass)("k-state-disabled",e.disabledClass))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",checked:"checked",tabIndex:"tabIndex",onLabel:"onLabel",offLabel:"offLabel"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoSwitch"],features:[we([J,{provide:An,useValue:"kendo.switch"},{multi:!0,provide:es,useExisting:He(()=>O5)},{provide:Ds,useExisting:He(()=>O5)}])],decls:8,vars:17,consts:function(){let n,t;return n=$localize`:kendo.switch.on|The **On** label of the Switch.␟155f0a38198ffbf0429c5dbf9765e74f246a8617␟818154782831456441:ON`,t=$localize`:kendo.switch.off|The **Off** label of the Switch.␟79df1a6d2b35c32b2948e3cee56dd3ffe28127bc␟759820891948194060:OFF`,[["kendoSwitchLocalizedMessages","","on",n,"off",t],["role","switch",1,"k-switch-container",3,"id","kendoEventsOutsideAngular"],["wrapper",""],[1,"k-switch-label-on"],[1,"k-switch-label-off"],[1,"k-switch-handle"]]},template:function(t,e){1&t&&(_n(0,0),y(1,"span",1,2),y(3,"span",3),H(4),_(),y(5,"span",4),H(6),_(),P(7,"span",5),_(),vn()),2&t&&(b(1),yt("transition-duration",e.initialized?"200ms":"0ms"),v("id",e.focusableId)("kendoEventsOutsideAngular",kp(12,d1t,e.clickHandler,e.keyDownHandler,e.handleFocus,e.handleBlur)),fe("aria-checked",e.checked)("tabindex",e.disabled?void 0:e.tabIndex),b(2),fe("aria-hidden",!0),b(1),un(e.onLabelMessage),b(1),fe("aria-hidden",!0),b(1),un(e.offLabelMessage),b(1),yt("transition-duration",e.initialized?"200ms":"0ms"))},directives:function(){return[rx,lr]},encapsulation:2}),ne([p(),Y("design:type",String)],gr.prototype,"focusableId",void 0),ne([p(),Y("design:type",String)],gr.prototype,"onLabel",void 0),ne([p(),Y("design:type",String)],gr.prototype,"offLabel",void 0),ne([p(),Y("design:type",Boolean),Y("design:paramtypes",[Boolean])],gr.prototype,"checked",null),ne([p(),Y("design:type",Boolean)],gr.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],gr.prototype,"readonly",void 0),ne([p(),Y("design:type",Number)],gr.prototype,"tabindex",void 0),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],gr.prototype,"tabIndex",null),ne([Q("focus"),Y("design:type",S)],gr.prototype,"onFocus",void 0),ne([Q("blur"),Y("design:type",S)],gr.prototype,"onBlur",void 0),ne([Q(),Y("design:type",S)],gr.prototype,"valueChange",void 0),ne([at("wrapper",{static:!0}),Y("design:type",Object)],gr.prototype,"wrapper",void 0),ne([G("attr.dir"),Y("design:type",String)],gr.prototype,"direction",void 0),ne([G("class.k-ie"),Y("design:type",Boolean),Y("design:paramtypes",[])],gr.prototype,"ieClass",null),ne([G("attr.aria-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],gr.prototype,"ariaDisabled",null),ne([G("attr.aria-readonly"),Y("design:type",Boolean),Y("design:paramtypes",[])],gr.prototype,"ariaReadonly",null),ne([G("class.k-switch"),Y("design:type",Boolean)],gr.prototype,"hostClasses",void 0),ne([G("class.k-state-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],gr.prototype,"disabledClass",null),gr=O5=ne([Y("design:paramtypes",[Ie,$,J,Jt,Be,ce])],gr);let bc=R5=class{constructor(t,e,i,s,o,r){this.renderer=t,this.element=e,this.zone=i,this.changeDetector=s,this.injector=o,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new S,this.autoSize=!1,this.onFocus=new S,this.onBlur=new S,this.onValueChange=new S,this.autoFillStart=new S,this.autoFillEnd=new S,this.listeners=[],this.ngChange=a=>{},this.ngTouched=()=>{},this.direction=r?"rtl":"ltr"}get id(){return this.element.nativeElement.id}set id(t){this.renderer.setAttribute(this.element.nativeElement,"id",t)}writeValue(t){this.elementValue=t,this.resize()}registerOnChange(t){this.ngChange=t}registerOnTouched(t){this.ngTouched=t}setDisabledState(t){this.setElementProperty("disabled",t)}ngOnInit(){const t=this.element.nativeElement;this.zone.runOutsideAngular(()=>{this.listeners=[this.renderer.listen(t,"focus",this.handleFocus.bind(this)),this.renderer.listen(t,"blur",this.handleBlur.bind(this)),this.renderer.listen(t,"animationstart",e=>{"autoFillStart"===e.animationName?this.autoFillStart.emit():"autoFillEnd"===e.animationName&&this.autoFillEnd.emit()})],Ft()&&this.autoSize&&(this.resizeSubscription=Hi(window,"resize").pipe(cg(50)).subscribe(()=>this.resize())),this.inputSubscription=Hi(t,"input").subscribe(this.handleInput.bind(this))}),this.control=this.injector.get(Zs,null)}ngOnChanges(t){const e=this.element.nativeElement;t.value&&(this.elementValue=this.value),t.autoSize&&(this.autoSize?(this.initialHeight=e.offsetHeight,this.renderer.setStyle(e,"resize","none")):(this.renderer.setStyle(e,"overflow-y","auto"),this.renderer.setStyle(e,"resize","both"),e.style.height=`${this.initialHeight}px`)),this.resize()}ngOnDestroy(){this.listeners.forEach(t=>t()),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get elementValue(){return this.element?this.element.nativeElement.value:""}set elementValue(t){this.setElementProperty("value",null==t?"":t)}setElementProperty(t,e){this.element&&this.renderer.setProperty(this.element.nativeElement,t,e)}resize(){if(!this.autoSize)return;const t=this.element.nativeElement;this.renderer.setStyle(t,"overflow-y","hidden"),t.style.height=`${this.initialHeight}px`;const e=t.scrollHeight;e>this.initialHeight&&(t.style.height=`${e}px`)}handleInput(){const t=this.elementValue;this.value=t,(this.control||Kt(this.onValueChange)||Kt(this.valueChange))&&this.zone.run(()=>{this.ngChange(t),this.onValueChange.emit(t),this.valueChange.emit(t),this.changeDetector.markForCheck()}),this.resize()}handleFocus(){Kt(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()})}handleBlur(){(Kt(this.onBlur)||Xv(this.control))&&this.zone.run(()=>{this.ngTouched(),this.onBlur.emit(),this.changeDetector.markForCheck()})}};var gY;bc.\u0275fac=function(t){return new(t||bc)(g(Ie),g($),g(ce),g(Be),g(Jt),g(_l,8))},bc.\u0275dir=R({type:bc,selectors:[["textarea","kendoTextArea",""]],hostVars:5,hostBindings:function(t,e){2&t&&(fe("dir",e.direction),he("k-textarea",e.elementClass)("k-autofill",e.autofillClass))},inputs:{autoSize:"autoSize",value:"value"},outputs:{valueChange:"valueChange"},features:[we([{provide:es,useExisting:He(()=>R5),multi:!0},{provide:Ds,useExisting:He(()=>R5)}]),st]}),ne([G("class.k-textarea"),Y("design:type",Boolean)],bc.prototype,"elementClass",void 0),ne([G("class.k-autofill"),Y("design:type",Boolean)],bc.prototype,"autofillClass",void 0),ne([G("attr.dir"),Y("design:type",String)],bc.prototype,"direction",void 0),ne([Q(),Y("design:type",S)],bc.prototype,"valueChange",void 0),ne([p(),Y("design:type",Boolean)],bc.prototype,"autoSize",void 0),ne([p(),Y("design:type",String)],bc.prototype,"value",void 0),bc=R5=ne([Ao(5,gt()),Ao(5,Rn(_l)),Y("design:paramtypes",[Ie,$,ce,Be,Jt,Boolean])],bc);let Kv=gY=class{constructor(t,e,i){this.renderer=t,this.inputElement=e,this.ngZone=i,this.hostClass=!0,this.onFocus=new S,this.onBlur=new S,this.onValueChange=new S,this.autoFillStart=new S,this.autoFillEnd=new S,this.listeners=[]}set value(t){!this.inputElement||(this.inputElement.nativeElement.value=null==t?"":t,this.onValueChange.emit())}get value(){return this.inputElement.nativeElement.value}get id(){return this.inputElement.nativeElement.id}set id(t){this.renderer.setAttribute(this.inputElement.nativeElement,"id",t)}ngAfterViewInit(){const t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",()=>this.onFocus.emit()),this.renderer.listen(t,"blur",()=>this.onBlur.emit())],this.ngZone.runOutsideAngular(()=>{this.renderer.listen(t,"animationstart",e=>{"autoFillStart"===e.animationName?this.autoFillStart.emit():"autoFillEnd"===e.animationName&&this.autoFillEnd.emit()})})}ngOnDestroy(){this.listeners.forEach(t=>t())}};Kv.\u0275fac=function(t){return new(t||Kv)(g(Ie),g($),g(ce))},Kv.\u0275dir=R({type:Kv,selectors:[["input","kendoTextBox",""]],hostVars:2,hostBindings:function(t,e){2&t&&he("k-textbox",e.hostClass)},inputs:{value:"value"},features:[we([{provide:Ds,useExisting:He(()=>gY)}])]}),ne([G("class.k-textbox"),Y("design:type",Boolean)],Kv.prototype,"hostClass",void 0),ne([p(),Y("design:type",String),Y("design:paramtypes",[String])],Kv.prototype,"value",null),Kv=gY=ne([Y("design:paramtypes",[Ie,$,ce])],Kv);const VSe=/[eE][\-+]?([0-9]+)/,zSe=n=>n>=0?Math.floor(n):Math.ceil(n),tx=n=>{},nx=n=>!isNaN(n)&&null!==n;function HSe(n,t){const e=t-String(n).length;let i=n;if(e>0){const s=new Array(e+1).join("0");i=parseFloat(n+s)}return i}var m2,zy=(()=>(function(n){n[n.Down=-1]="Down",n[n.None=0]="None",n[n.Up=1]="Up"}(zy||(zy={})),zy))();const GSe=["min","max","step","decimals"],RTt={decimals:null,max:null,min:null,step:1},jSe="k-state-focused",$Se="k-formatted-value";let Ki=m2=class{constructor(t,e,i,s,o,r,a){this.intl=t,this.renderer=e,this.localizationService=i,this.injector=s,this.ngZone=o,this.changeDetector=r,this.hostElement=a,this.focusableId=`k-${cs()}`,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.selectOnFocus=!0,this.value=null,this.valueChange=new S,this.onFocus=new S,this.onBlur=new S,this.ArrowDirection=zy,this.arrowDirection=zy.None,this.inputValue="",this.minValidateFn=tx,this.maxValidateFn=tx,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=tx,this.ngTouched=tx,this.ngValidatorChange=tx,this.increasePress=l=>{this.arrowPress(zy.Up,l)},this.decreasePress=l=>{this.arrowPress(zy.Down,l)},this.releaseArrow=()=>{clearTimeout(this.spinTimeout),this.arrowDirection!==zy.None&&(this.arrowDirection=zy.None,this.changeDetector.detectChanges())},this.handlePaste=()=>{this.isPasted=!0},this.handleInput=()=>{const l=this.numericInput.nativeElement;let{selectionStart:c,selectionEnd:d,value:u}=l;if(this.pressedKey===_e.NumpadDecimal&&(u=this.replaceNumpadDotValue()),this.isPasted&&(u=this.formatInputValue(this.intl.parseNumber(u))),!this.isValid(u))return l.value=this.inputValue,void this.setSelection(c-1,d-1);const h=this.intl.parseNumber(u);let f=this.restrictDecimals(h);if(this.autoCorrect){const m=this.limitInputValue(f);f=m.value,c=m.selectionStart,d=m.selectionEnd}h!==f||this.hasTrailingZeros(u)||!this.focused?(this.setInputValue(f),this.setSelection(c,d)):this.inputValue=u,this.isPasted&&(l.value=this.inputValue),this.updateValue(f),this.previousSelection=null,this.isPasted=!1},this.handleDragEnter=()=>{!this.focused&&!this.isDisabled&&this.setInputValue(this.value,!0)},this.handleMouseDown=()=>{this.mouseDown=!0},this.handleFocus=()=>{if(!this.focused&&(this.focused=!0,!this.isDisabled)){const l=this.selectOnFocus||!this.mouseDown;this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{l?this.selectAll():this.selectCaret()},0)})}this.mouseDown=!1,Kt(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.inputValue!==this.elementValue&&this.handleInput(),this.setInputValue(),(Kt(this.onBlur)||Xv(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},this.handleKeyDown=l=>{if(this.isDisabled)return;let c;l.keyCode===_e.ArrowDown?c=-1:l.keyCode===_e.ArrowUp&&(c=1),c&&this.step&&(l.preventDefault(),this.addStep(c));const d=this.numericInput.nativeElement;this.previousSelection={end:d.selectionEnd,start:d.selectionStart},this.pressedKey=l.keyCode},this.handleWheel=l=>{if(this.focused&&!this.isDisabled){l.preventDefault();const c=(n=>{let t=0;return n.wheelDelta?(t=n.wheelDelta/120,t=t>0?Math.ceil(t):Math.floor(t)):n.detail&&(t=Math.round(-n.detail/3)),t})(l);this.addStep(c)}},Ii(Yv),this.direction=i.rtl?"rtl":"ltr"}get format(){const t=this._format;return null!=t?t:"n2"}set format(t){this._format=t}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}get widgetClasses(){return!0}ngOnInit(){this.subscriptions=this.localizationService.changes.subscribe(({rtl:t})=>{this.direction=t?"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(Zs,null)}ngOnChanges(t){Xo(GSe,t,!1)&&this.parseOptions(GSe.filter(e=>t[e])),this.verifySettings(),Xo(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?(n=>t=>!Ji(n)||!Ji(t.value)||t.value>=n?null:{minError:{minValue:n,value:t.value}})(this.min):tx,this.maxValidateFn=this.rangeValidation?(n=>t=>!Ji(n)||!Ji(t.value)||t.value<=n?null:{maxError:{maxValue:n,value:t.value}})(this.max):tx,this.ngValidatorChange()),Xo(["autoCorrect","decimals","min"],t)&&delete this.numericRegex,Xo(["value","format"],t,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)}validate(t){return this.minValidateFn(t)||this.maxValidateFn(t)}registerOnValidatorChange(t){this.ngValidatorChange=t}writeValue(t){this.verifyValue(t);let e=this.restrictModelValue(t);this.value=e,this.setInputValue()}registerOnChange(t){this.ngChange=t}registerOnTouched(t){this.ngTouched=t}setDisabledState(t){this.changeDetector.markForCheck(),this.disabled=t}focus(){Iu(this.numericInput,"focus")}blur(){Iu(this.numericInput,"blur")}notifyValueChange(){this.setInputValue()}get incrementTitle(){return this.localizationService.get("increment")}get decrementTitle(){return this.localizationService.get("decrement")}get decimalSeparator(){return this.intl.numberSymbols().decimal}get elementValue(){return this.numericInput.nativeElement.value}set elementValue(t){this.renderer.setProperty(this.numericInput.nativeElement,"value",t)}get focused(){return this.isFocused}get hasDecimals(){return null!==this.decimals&&this.decimals>=0}set focused(t){if(this.isFocused!==t&&this.numericWrap){const e=this.numericWrap.nativeElement,i=this.numericInput.nativeElement;t?(this.renderer.addClass(e,jSe),this.isDisabled||this.renderer.removeClass(i,$Se)):(this.renderer.removeClass(e,jSe),this.renderer.addClass(i,$Se)),this.isFocused=t}}get isDisabled(){return this.disabled||this.readonly}arrowPress(t,e){e.preventDefault(),!this.isDisabled&&(mwe||(this.focused=!0,this.focus()),this.arrowDirection!==t&&(this.arrowDirection=t,this.changeDetector.detectChanges()),this.step?this.spin(t,500):this.setInputValue())}updateValue(t){_D(this.value,t)||this.ngZone.run(()=>{this.value=t,this.ngChange(t),this.valueChange.emit(t),this.changeDetector.markForCheck()})}replaceNumpadDotValue(){let t=this.inputValue||"";if(this.previousSelection){const e=this.numericInput.nativeElement,{selectionStart:i,selectionEnd:s}=e,{start:o,end:r}=this.previousSelection;e.value=t=t.substring(0,o)+this.decimalSeparator+t.substring(r),this.setSelection(i,s)}return t}isValid(t){return this.numericRegex||(this.numericRegex=(n=>{const{autoCorrect:t,decimals:e,min:i}=n;let r,s=n.separator;return"."===s&&(s="\\"+s),r=0===e?"\\d*":`(?:(?:\\d+(${s}\\d*)?)|(?:${s}\\d*))?`,new RegExp(`^${t&&null!==i&&i>=0?"":"-?"}${r}$`)})({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(t)}spin(t,e){clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(()=>{this.spin(t,50)},e),this.addStep(t)}addStep(t){let e=JC(this.value||0,this.step*t);e=this.limitValue(e),e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)}setSelection(t,e){this.focused&&Iu(this.numericInput,"setSelectionRange",t,e)}limitValue(t){let e=t;return this.isInRange(t)||(nx(this.max)&&t>this.max&&(e=this.max),nx(this.min)&&tc?t>0?f=!0:h=c:u&&t0?h=l:f=!0),h){const C=this.tryPadValue(t,h);C&&zSe(t)!==zSe(h)&&(m=C,r=!0)}else f&&this.inputValue&&e!==s.length&&(m=parseFloat(s.substr(0,e)+s.substr(e+a)));o=this.limitValue(m),r=(r||o!==m)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+a>0}return{selectionEnd:r?String(o).length:i,selectionStart:e,value:o}}tryPadValue(t,e){const i=String(Math.floor(e)).length,s=HSe(t,i),o=HSe(t,i+1);let r;return this.isInRange(s)?r=s:this.isInRange(o)&&(r=o),r}isInRange(t){return!nx(t)||(!nx(this.min)||this.min<=t)&&(!nx(this.max)||t<=this.max)}restrictModelValue(t){let e=this.restrictDecimals(t,!0);return this.autoCorrect&&this.limitValue(e)!==e&&(e=null),e}restrictDecimals(t,e){let i=t;if(t&&this.hasDecimals){const s=this.decimals,o=String(t);if(e||VSe.test(o))i=S5(t,s);else{const r=o.split(".");let a=r[1];a&&a.length>s&&(a=a.substr(0,s),i=parseFloat(`${r[0]}.${a}`))}}return i}formatInputValue(t){let e=String(t);const i=VSe.exec(e);return i&&(e=t.toFixed(TSe(parseInt(i[1],10)))),e.replace(".",this.decimalSeparator)}formatValue(t,e){let i;return i=null!==t&&(n=>void 0!==n)(t)&&""!==t?e&&!this.readonly?this.formatInputValue(t):this.intl.formatNumber(t,this.format):"",i}setInputValue(t=this.value,e=this.focused){const i=this.formatValue(t,e);this.elementValue=i,this.inputValue=i}verifySettings(){if(En()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")}verifyValue(t){if(En()&&t&&"number"!=typeof t)throw new Error(`The NumericTextBox component requires value of type Number and ${JSON.stringify(t)} was set.`)}parseOptions(t){for(let e=0;ethis.decimals&&e.lastIndexOf("0")===e.length-1}}selectAll(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}selectCaret(){const t=(n=>this.numericInput.nativeElement.selectionStart)(),e=this.elementValue,i=e.substring(0,t);if(this.setInputValue(),i.length){const s=((n,t)=>{const e=`${this.decimalSeparator}0123456789-`;return n.split("").reduce((i,s)=>e.includes(s)?++i:i,0)})(i),o=this.adjustSignificantChars(e,s);this.setSelection(o,o)}else this.setSelection(0,0)}numberOfLeadingZeroes(t){const e=t.indexOf(this.decimalSeparator),i=t.match(/^[^1-9]*?(0+)/);if(i){const o=i[1].length;return i[0].length===e?o-1:o}return 0}adjustSignificantChars(t,e){const i=this.numberOfLeadingZeroes(t);return i>0?Math.max(0,e-i):e}};Ki.\u0275fac=function(t){return new(t||Ki)(g(kn),g(Ie),g(J),g(Jt),g(ce),g(Be),g($))},Ki.\u0275cmp=K({type:Ki,selectors:[["kendo-numerictextbox"]],viewQuery:function(t,e){if(1&t&&(Ae(h1t,7),Ae(p1t,7)),2&t){let i;U(i=W())&&(e.numericInput=i.first),U(i=W())&&(e.numericWrap=i.first)}},hostVars:5,hostBindings:function(t,e){2&t&&(fe("dir",e.direction),he("k-widget",e.widgetClasses)("k-numerictextbox",e.widgetClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",decimals:"decimals",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",selectOnFocus:"selectOnFocus",value:"value",format:"format",tabIndex:"tabIndex",max:"max",min:"min",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[we([J,{provide:An,useValue:"kendo.numerictextbox"},{provide:es,useExisting:He(()=>m2),multi:!0},{provide:ir,useExisting:He(()=>m2),multi:!0},{provide:Ds,useExisting:He(()=>m2)}]),st],decls:6,vars:26,consts:function(){let n,t;return n=$localize`:kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox␟0fc68540ffa04fdc246cf6cf8a1fed085f8b19a5␟4467784268438010275:Increase value`,t=$localize`:kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox␟df4751834075bf970c77d0da2c960b4e19a6b0dd␟3960022057994897997:Decrease value`,[["kendoNumericTextBoxLocalizedMessages","","increment",n,"decrement",t],[1,"k-numeric-wrap",3,"kendoEventsOutsideAngular"],["numericWrap",""],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input","k-formatted-value",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-select",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-select",3,"kendoEventsOutsideAngular"],[1,"k-link","k-link-increase",3,"kendoEventsOutsideAngular","title"],[1,"k-icon","k-i-arrow-n"],[1,"k-link","k-link-decrease",3,"kendoEventsOutsideAngular","title"],[1,"k-icon","k-i-arrow-s"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),P(3,"input",3,4),A(5,g1t,5,18,"span",5),_()),2&t&&(b(1),he("k-state-disabled",e.disabled),v("kendoEventsOutsideAngular",di(15,m1t,e.handleWheel,e.handleWheel)),b(2),v("id",e.focusableId)("tabindex",e.tabIndex)("disabled",e.disabled)("readonly",e.readonly)("kendoEventsOutsideAngular",uj(18,y1t,e.handleMouseDown,e.handleDragEnter,e.handleKeyDown,e.handleInput,e.handleFocus,e.handleBlur,e.handlePaste)),fe("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.value)("title",e.title)("placeholder",e.placeholder)("maxLength",e.maxlength),b(2),v("ngIf",e.spinners))},directives:function(){return[ax,lr,pt]},encapsulation:2}),ne([p(),Y("design:type",String)],Ki.prototype,"focusableId",void 0),ne([p(),Y("design:type",Boolean)],Ki.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],Ki.prototype,"readonly",void 0),ne([p(),Y("design:type",String)],Ki.prototype,"title",void 0),ne([p(),Y("design:type",Boolean)],Ki.prototype,"autoCorrect",void 0),ne([p(),Y("design:type",Object),Y("design:paramtypes",[Object])],Ki.prototype,"format",null),ne([p(),Y("design:type",Number)],Ki.prototype,"max",void 0),ne([p(),Y("design:type",Number)],Ki.prototype,"min",void 0),ne([p(),Y("design:type",Number)],Ki.prototype,"decimals",void 0),ne([p(),Y("design:type",String)],Ki.prototype,"placeholder",void 0),ne([p(),Y("design:type",Number)],Ki.prototype,"step",void 0),ne([p(),Y("design:type",Boolean)],Ki.prototype,"spinners",void 0),ne([p(),Y("design:type",Boolean)],Ki.prototype,"rangeValidation",void 0),ne([p(),Y("design:type",Number)],Ki.prototype,"tabindex",void 0),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],Ki.prototype,"tabIndex",null),ne([p(),Y("design:type",Boolean)],Ki.prototype,"selectOnFocus",void 0),ne([p(),Y("design:type",Number)],Ki.prototype,"value",void 0),ne([p(),Y("design:type",Number)],Ki.prototype,"maxlength",void 0),ne([Q(),Y("design:type",S)],Ki.prototype,"valueChange",void 0),ne([Q("focus"),Y("design:type",S)],Ki.prototype,"onFocus",void 0),ne([Q("blur"),Y("design:type",S)],Ki.prototype,"onBlur",void 0),ne([at("numericInput",{static:!0}),Y("design:type",$)],Ki.prototype,"numericInput",void 0),ne([at("numericWrap",{static:!0}),Y("design:type",$)],Ki.prototype,"numericWrap",void 0),ne([G("attr.dir"),Y("design:type",String)],Ki.prototype,"direction",void 0),ne([G("class.k-widget"),G("class.k-numerictextbox"),Y("design:type",Boolean),Y("design:paramtypes",[])],Ki.prototype,"widgetClasses",null),Ki=m2=ne([Y("design:paramtypes",[kn,Ie,J,Jt,ce,Be,$])],Ki);let L5=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{decrement:"decrement",increment:"increment"},features:[N]}),ne([p(),Y("design:type",String)],n.prototype,"decrement",void 0),ne([p(),Y("design:type",String)],n.prototype,"increment",void 0),n})();var mY;let Zv=mY=class extends L5{constructor(t){super(),this.service=t}get override(){return!0}};Zv.\u0275fac=function(t){return new(t||Zv)(g(J))},Zv.\u0275cmp=K({type:Zv,selectors:[["kendo-numerictextbox-messages"]],features:[we([{provide:L5,useExisting:He(()=>mY)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Zv=mY=ne([Y("design:paramtypes",[J])],Zv);var tf=(()=>(function(n){n[n.Literal=0]="Literal",n[n.Mask=1]="Mask",n[n.Undefined=2]="Undefined"}(tf||(tf={})),tf))();class Qr{constructor(t,e,i=tf.Undefined){this.value=t,this.rest=e,this.type=i}map(t){return new Qr(t(this.value),this.rest)}chain(t){return t(this.value,this.rest)}fold(t,e){return t(this.value,this.rest)}concat(t){return this.map((e,i)=>t.chain((s,o)=>e.concat([s])))}toString(){return`Result({ value: '${this.value}', rest: ${this.rest} })`}}class USe{constructor(t=[],e=[]){this.input=t,this.control=e,this.inputCursor=0,this.controlCursor=0}eof(){return this.inputCursor>=this.input.length}next(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}}peek(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}}eat_input(){this.inputCursor++}eat_control(){this.controlCursor++}eat(){this.inputCursor++,this.controlCursor++}}const WSe=n=>(n||"").split("");class Gh{constructor(t){this.parse=t}run(t,e=""){return this.parse(t instanceof USe?t:new USe(WSe(t),WSe(e)))}map(t){return new Gh(e=>this.parse(e).map(t))}chain(t){return new Gh(e=>this.parse(e).chain((i,s)=>t(i).run(s)))}isLiteral(t){return this.run(t).type===tf.Literal}}const N5=(n,t)=>new Gh(e=>{let{char:i}=e.next();const s=n[i];return"\\"===i?(i=e.next().char,new Qr(t.literal(i),e)):new Qr(s?t.mask(s):t.literal(i),e)}),qSe=({prompt:n,promptPlaceholder:t})=>new Gh(e=>{let{char:i}=e.next();return new Qr(i===n?t:i,e)}),XSe=n=>new Gh(t=>{let{char:e}=t.next();return new Qr(n?e:"",t)}),ix=n=>n.reduce((t,e)=>((n,t)=>n.chain(e=>t.map(i=>e.concat([i]))))(t,e),(n=>new Gh(t=>new Qr(n,t)))([])),B5=n=>new Gh(t=>{let e=new Qr([],t);for(;!t.eof();)e=e.concat(n.run(t));return e});let yY=(()=>{let n=class{constructor(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}update({mask:e="",prompt:i="",promptPlaceholder:s=" ",rules:o={},includeLiterals:r=!1}){this.mask=e,this.prompt=i,this.promptPlaceholder=s,this.rules=o,this.includeLiterals=r,this.tokenize()}validationValue(e=""){let i=e;return ix(this.validationTokens).run(e).fold(s=>{i=s.join("")}),i}rawValue(e=""){let i=e;return this.rawTokens.length&&ix(this.rawTokens).run(e).fold(s=>{i=s.join("")}),i}maskRaw(e=""){let i=e;return this.maskTokens.length&&ix(this.maskTokens).run(e).fold(s=>{i=s.join("")}),i}maskInput(e,i,s){return e.length{r=l.concat(d).concat(c).join("")}),{selection:a,value:r}}maskRemoved(e,i,s){let o="",r=s;const a=e.split("").slice(s),l=e.split("").slice(0,s).join("");return ix(this.maskTokens.slice(0,this.maskTokens.length-(e.length-s))).run(l,i).fold(d=>{r=this.adjustPosition(d,r),o=d.concat(a).join("")}),{selection:r,value:o}}adjustPosition(e,i){const s=e[i];return this.maskTokens[i].isLiteral(s)||s===this.prompt?i:i+1}maskInserted(e,i,s){let o="",r=s;const a=e.slice(0,s);return ix(this.unmaskTokens).run(a,i).chain(l=>{r=l.join("").length;const c=i.slice(r);return ix(this.maskTokens).run(l.join("")+c,i)}).fold(l=>{o=l.join("")}),{selection:r,value:o}}get maskTokenCreator(){const{prompt:e,promptPlaceholder:i}=this;return{literal:s=>(n=>new Gh(t=>t.peek().char===n?(t.eat(),new Qr(n,t,tf.Literal)):new Qr(n,t,tf.Literal)))(s),mask:s=>(({prompt:n,promptPlaceholder:t})=>e=>new Gh(i=>{for(;!i.eof();){const{char:s,control:o}=i.peek();if(s===o&&o===n)return i.eat(),new Qr(n,i,tf.Mask);if(e.test(s))return i.eat(),new Qr(s,i,tf.Mask);if(s===t)return i.eat(),new Qr(n,i,tf.Mask);i.eat_input()}return i.eat(),new Qr(n,i,tf.Mask)}))({prompt:e,promptPlaceholder:i})(s)}}get unmaskTokenCreator(){return{literal:e=>(n=>new Gh(t=>{if(t.eof())return new Qr("",t);const{char:e}=t.peek();return e===n&&t.eat(),new Qr(n,t)}))(e),mask:e=>(n=>t=>new Gh(e=>{for(;!e.eof();){const{char:i,control:s}=e.peek();if(i===n&&s===n)return e.eat(),new Qr(i,e);if(t.test(i))return e.eat(),new Qr(i,e);e.eat_input()}return e.eat(),new Qr("",e)}))(this.prompt)(e)}}get rawTokenCreator(){const{prompt:e,promptPlaceholder:i,includeLiterals:s}=this;return{literal:o=>XSe(s),mask:o=>qSe({prompt:e,promptPlaceholder:i})}}get validationTokenCreator(){const{prompt:e}=this;return{literal:i=>XSe(!1),mask:i=>qSe({prompt:e,promptPlaceholder:""})}}tokenize(){B5(N5(this.rules,this.maskTokenCreator)).run(this.mask).fold((e,i)=>{this.maskTokens=e}),B5(N5(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((e,i)=>{this.unmaskTokens=e}),B5(N5(this.rules,this.rawTokenCreator)).run(this.mask).fold((e,i)=>{this.rawTokens=e}),B5(N5(this.rules,this.validationTokenCreator)).run(this.mask).fold((e,i)=>{this.validationTokens=e})}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();var y2;const GTt=Promise.resolve(null),YSe="k-state-focused";let mo=y2=class{constructor(t,e,i,s,o,r,a){this.service=t,this.renderer=e,this.hostElement=i,this.ngZone=s,this.injector=o,this.changeDetector=r,this.focusableId=`k-${cs()}`,this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new S,this.onBlur=new S,this.valueChange=new S,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this.handleFocus=()=>{this.focused=!0,this.maskOnFocus&&this.emptyMask&&(this.updateInput(this.service.maskRaw(this.value)),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.setSelection(0,0)},0)})),Kt(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleClick=()=>{if(this.focused&&!this.focusClick){this.focusClick=!0;const{selectionStart:l,selectionEnd:c}=this.input.nativeElement;l===c&&this.setFocusSelection()}},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.focusClick=!1,this.maskOnFocus&&this.emptyMask&&this.updateInput(this.maskedValue),(Kt(this.onBlur)||Xv(this.control))&&this.ngZone.run(()=>{this.onTouched(),this.onBlur.emit()})},this.onChange=l=>{},this.onTouched=()=>{},Ii(Yv),this.direction=a?"rtl":"ltr",this.updateService()}get hostDisabledClass(){return this.disabled}get rules(){return this._rules||this.defaultRules}set rules(t){this._rules=Object.assign({},this.defaultRules,t)}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Zs,null)}isEmpty(){if(this.input)return!Boolean(this.input.nativeElement.value)}handleDragDrop(){return!1}focus(){!this.input||(this.input.nativeElement.focus(),this.setFocusSelection())}blur(){!this.input||this.input.nativeElement.blur()}pasteHandler(t){const{selectionStart:e,selectionEnd:i}=t.target;i!==e&&(this.isPasted=!0,this.selection=[e,i])}inputHandler(t){const e=t.target.value,[i,s]=this.selection;if(!this.mask)return this.updateValue(e),void(this.isPasted=!1);let o;this.isPasted?(this.isPasted=!1,o=this.service.maskInRange(e.slice(i,e.length-(this.maskedValue.length-s)),this.maskedValue,i,s)):o=this.service.maskInput(e,this.maskedValue,t.target.selectionStart),this.updateInput(o.value,o.selection),this.updateValue(o.value)}ngOnChanges(t){if(t.value&&(this.value=this.normalizeValue()),!this.mask)return void this.updateInput(this.value);const e=this.extractChanges(t);if(this.updateService(e),Io("value",t)){const i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Xo(["promptPlaceholder","includeLiterals"],t)?GTt.then(()=>{this.updateValue(this.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))}writeValue(t){this.value=this.normalizeValue(t),this.updateInput(this.service.maskRaw(this.value))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.changeDetector.markForCheck(),this.disabled=t}validate(t){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null}updateValue(t){this.value=this.mask&&!this.service.validationValue(t)?"":this.service.rawValue(t),this.onChange(this.value),this.valueChange.emit(this.value)}updateInput(t="",e){this.maskedValue=t,this.renderer.setProperty(this.input.nativeElement,"value",this.maskOnFocus&&!this.focused&&this.emptyMask?"":t),void 0!==e&&this.setSelection(e,e)}extractChanges(t){return Object.keys(t).filter(e=>"rules"!==e).reduce((e,i)=>(e[i]=t[i].currentValue,e),{})}updateService(t){const e=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},t);this.service.update(e)}setSelection(t=this.selection[0],e=this.selection[1]){this.focused&&Iu(this.input,"setSelectionRange",t,e)}get emptyMask(){return this.service.maskRaw()===this.maskedValue}setFocusSelection(){const t=this.input.nativeElement.selectionStart,e=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;e>=0&&ey2)},{multi:!0,provide:ir,useExisting:He(()=>y2)},{provide:Ds,useExisting:He(()=>y2)}]),st],decls:2,vars:12,consts:[["type","text","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-textbox",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["input",""]],template:function(t,e){1&t&&P(0,"input",0,1),2&t&&(v("id",e.focusableId)("tabindex",e.tabIndex)("disabled",e.disabled)("readonly",e.readonly)("kendoEventsOutsideAngular",function(n,t,e,i,s,o,r,a){const l=Bc()+n,c=bt(),d=xh(c,l,e,i,s,o);return dc(c,l+4,r)||d?qf(c,l+5,a?t.call(a,e,i,s,o,r):t(e,i,s,o,r)):UE(c,l+5)}(6,_1t,e.handleFocus,e.handleBlur,e.handleClick,e.handleDragDrop,e.handleDragDrop)),fe("title",e.title))},directives:[lr],encapsulation:2}),ne([p(),Y("design:type",String)],mo.prototype,"focusableId",void 0),ne([p(),Y("design:type",Boolean)],mo.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],mo.prototype,"readonly",void 0),ne([p(),Y("design:type",String)],mo.prototype,"title",void 0),ne([G("attr.dir"),Y("design:type",String)],mo.prototype,"direction",void 0),ne([G("class.k-widget"),G("class.k-maskedtextbox"),Y("design:type",Boolean)],mo.prototype,"hostClasses",void 0),ne([G("class.k-state-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],mo.prototype,"hostDisabledClass",null),ne([p(),Y("design:type",String)],mo.prototype,"mask",void 0),ne([p(),Y("design:type",String)],mo.prototype,"value",void 0),ne([p(),Y("design:type",Object),Y("design:paramtypes",[Object])],mo.prototype,"rules",null),ne([p(),Y("design:type",String)],mo.prototype,"prompt",void 0),ne([p(),Y("design:type",String)],mo.prototype,"promptPlaceholder",void 0),ne([p(),Y("design:type",Boolean)],mo.prototype,"includeLiterals",void 0),ne([p(),Y("design:type",Boolean)],mo.prototype,"maskOnFocus",void 0),ne([p(),Y("design:type",Boolean)],mo.prototype,"maskValidation",void 0),ne([p(),Y("design:type",Number)],mo.prototype,"tabindex",void 0),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],mo.prototype,"tabIndex",null),ne([Q("focus"),Y("design:type",S)],mo.prototype,"onFocus",void 0),ne([Q("blur"),Y("design:type",S)],mo.prototype,"onBlur",void 0),ne([Q(),Y("design:type",S)],mo.prototype,"valueChange",void 0),ne([at("input",{static:!0}),Y("design:type",$)],mo.prototype,"input",void 0),ne([Zn("paste",["$event"]),Y("design:type",Function),Y("design:paramtypes",[Object]),Y("design:returntype",void 0)],mo.prototype,"pasteHandler",null),ne([Zn("input",["$event"]),Y("design:type",Function),Y("design:paramtypes",[Object]),Y("design:returntype",void 0)],mo.prototype,"inputHandler",null),mo=y2=ne([Ao(6,gt()),Ao(6,Rn(_l)),Y("design:paramtypes",[yY,Ie,$,ce,Jt,Be,Boolean])],mo);class jTt{constructor(t){this.value=t,this.classes={"k-tick":!0}}}let KSe=(()=>{let n=class{constructor(e){this.rtl=e,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}ngOnChanges(e){this.createTicks()}createTicks(){const e=ASe(this.min,this.max,this.step),i=this.largeStep,s={max:this.max,min:this.min,smallStep:this.step};let o=[];for(let r=0;r0&&(Object.assign(o[0].classes,this.endTickClasses(!0)),Object.assign(o[o.length-1].classes,this.endTickClasses(!1))),this.ticks=o}endTickClasses(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}}};return n.\u0275fac=function(e){return new(e||n)(g(_l,8))},n.\u0275cmp=K({type:n,selectors:[["","kendoSliderTicks",""]],viewQuery:function(e,i){if(1&e&&Ae(v1t,5),2&e){let s;U(s=W())&&(i.tickElements=s)}},hostVars:2,hostBindings:function(e,i){2&e&&ov(i.wrapperClasses)},inputs:{tickTitle:"tickTitle",vertical:"vertical",step:"step",largeStep:"largeStep",min:"min",max:"max",labelTemplate:"labelTemplate"},features:[st],attrs:b1t,decls:3,vars:1,consts:[["role","presentation",3,"ngClass","title",4,"ngFor","ngForOf"],["defaultLabel",""],["role","presentation",3,"ngClass","title"],["tickElement",""],[3,"ngSwitch"],["class","k-label",4,"ngSwitchCase"],[4,"ngSwitchCase"],[1,"k-label"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(A(0,w1t,5,5,"li",0),A(1,S1t,1,1,"ng-template",null,1,Ls)),2&e&&v("ngForOf",i.ticks)},directives:[Wn,Un,Dh,tg,zs],encapsulation:2}),ne([G("class"),Y("design:type",String)],n.prototype,"wrapperClasses",void 0),ne([p(),Y("design:type",Function)],n.prototype,"tickTitle",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"vertical",void 0),ne([p(),Y("design:type",Number)],n.prototype,"step",void 0),ne([p(),Y("design:type",Number)],n.prototype,"largeStep",void 0),ne([p(),Y("design:type",Number)],n.prototype,"min",void 0),ne([p(),Y("design:type",Number)],n.prototype,"max",void 0),ne([p(),Y("design:type",ve)],n.prototype,"labelTemplate",void 0),ne([lc("tickElement"),Y("design:type",wt)],n.prototype,"tickElements",void 0),n=ne([Ao(0,gt()),Ao(0,Rn(_l)),Y("design:paramtypes",[Boolean])],n),n})(),ZSe=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,XA,ha,Du],XA,ha,Du]}),n})(),V5=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{decrement:"decrement",increment:"increment",dragHandle:"dragHandle"},features:[N]}),ne([p(),Y("design:type",String)],n.prototype,"decrement",void 0),ne([p(),Y("design:type",String)],n.prototype,"increment",void 0),ne([p(),Y("design:type",String)],n.prototype,"dragHandle",void 0),n})();var _Y;let sx=_Y=class extends V5{constructor(t){super(),this.service=t}};var vY;sx.\u0275fac=function(t){return new(t||sx)(g(J))},sx.\u0275dir=R({type:sx,selectors:[["","kendoSliderLocalizedMessages",""]],features:[we([{provide:V5,useExisting:He(()=>_Y)}]),N]}),sx=_Y=ne([Y("design:paramtypes",[J])],sx);let bD=vY=class extends V5{constructor(t){super(),this.service=t}get override(){return!0}};bD.\u0275fac=function(t){return new(t||bD)(g(J))},bD.\u0275cmp=K({type:bD,selectors:[["kendo-slider-messages"]],features:[we([{provide:V5,useExisting:He(()=>vY)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),bD=vY=ne([Y("design:paramtypes",[J])],bD);let bY=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ZSe]]}),n})(),z5=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{dragHandleStart:"dragHandleStart",dragHandleEnd:"dragHandleEnd"},features:[N]}),ne([p(),Y("design:type",String)],n.prototype,"dragHandleStart",void 0),ne([p(),Y("design:type",String)],n.prototype,"dragHandleEnd",void 0),n})();var CY;let ox=CY=class extends z5{constructor(t){super(),this.service=t}};var xY;ox.\u0275fac=function(t){return new(t||ox)(g(J))},ox.\u0275dir=R({type:ox,selectors:[["","kendoSliderLocalizedMessages",""]],features:[we([{provide:z5,useExisting:He(()=>CY)}]),N]}),ox=CY=ne([Y("design:paramtypes",[J])],ox);let CD=xY=class extends z5{constructor(t){super(),this.service=t}get override(){return!0}};CD.\u0275fac=function(t){return new(t||CD)(g(J))},CD.\u0275cmp=K({type:CD,selectors:[["kendo-rangeslider-messages"]],features:[we([{provide:z5,useExisting:He(()=>xY)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),CD=xY=ne([Y("design:paramtypes",[J])],CD);let $Tt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ZSe]]}),n})(),H5=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{on:"on",off:"off"},features:[N]}),ne([p(),Y("design:type",String)],n.prototype,"on",void 0),ne([p(),Y("design:type",String)],n.prototype,"off",void 0),n})();var wY;let rx=wY=class extends H5{constructor(t){super(),this.service=t}};var SY;rx.\u0275fac=function(t){return new(t||rx)(g(J))},rx.\u0275dir=R({type:rx,selectors:[["","kendoSwitchLocalizedMessages",""]],features:[we([{provide:H5,useExisting:He(()=>wY)}]),N]}),rx=wY=ne([Y("design:paramtypes",[J])],rx);let xD=SY=class extends H5{constructor(t){super(),this.service=t}get override(){return!0}};xD.\u0275fac=function(t){return new(t||xD)(g(J))},xD.\u0275cmp=K({type:xD,selectors:[["kendo-switch-messages"]],features:[we([{provide:H5,useExisting:He(()=>SY)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),xD=SY=ne([Y("design:paramtypes",[J])],xD);let UTt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ha,Du]]}),n})();var TY;let ax=TY=class extends L5{constructor(t){super(),this.service=t}};ax.\u0275fac=function(t){return new(t||ax)(g(J))},ax.\u0275dir=R({type:ax,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[we([{provide:L5,useExisting:He(()=>TY)}]),N]}),ax=TY=ne([Y("design:paramtypes",[J])],ax);let kY=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ha]]}),n})(),WTt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ha]]}),n})(),DY=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),n=ne([Ao(0,gt()),Y("design:paramtypes",[ve])],n),n})(),G5=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),n=ne([Ao(0,gt()),Y("design:paramtypes",[ve])],n),n})();var j5;const QSe="k-state-focused";let Is=j5=class{constructor(t,e,i,s,o,r){this.localizationService=t,this.ngZone=e,this.changeDetector=i,this.renderer=s,this.injector=o,this.hostElement=r,this.focusableId=`k-${cs()}`,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 S,this.inputFocus=new S,this.inputBlur=new S,this.onFocus=new S,this.onBlur=new S,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),Kt(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),Kt(this.inputFocus)&&(!this.focusChangedProgrammatically||this.focusChangedProgrammatically&&this.clearButtonClicked)&&this.ngZone.run(()=>{this.inputFocus.emit()}),this.ngZone.run(()=>{this.isFocused=!0}))},this.handleInputBlur=()=>{this.changeDetector.markForCheck(),(Kt(this.inputBlur)||Xv(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.handleInput=a=>{this.updateValue(a.target.value)},this.ngChange=a=>{},this.ngTouched=()=>{},Ii(Yv),this.direction=t.rtl?"rtl":"ltr"}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}get disabledClass(){return this.disabled}ngOnInit(){this.control=this.injector.get(Zs,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr"})}ngAfterViewInit(){const t=this.hostElement.nativeElement;let e=!1,i=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(t,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(t,"focusout",s=>{!this.isFocused||(i?(PSe(s.relatedTarget,r=>r===this.hostElement.nativeElement)||this.handleBlur(),i=!1):!e&&!this.clearButtonClicked&&this.handleBlur())})),this.subscriptions.add(this.renderer.listen(t,"mouseenter",()=>{e=!0})),this.subscriptions.add(this.renderer.listen(t,"mouseleave",()=>{e=!1})),this.subscriptions.add(this.renderer.listen(t,"keydown",s=>{i=s.keyCode===_e.Tab}))})}ngOnChanges(t){(t.disabled||t.readonly||t.value)&&this.checkClearButton()}ngOnDestroy(){this.subscriptions.unsubscribe()}focus(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const t=this.hostElement.nativeElement.querySelector(":focus");t&&t.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}clearTitle(){return this.localizationService.get("clear")}checkClearButton(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}clearValue(t){t&&t.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}writeValue(t){this.value=t,this.checkClearButton()}registerOnChange(t){this.ngChange=t}registerOnTouched(t){this.ngTouched=t}setDisabledState(t){this.changeDetector.markForCheck(),this.disabled=t}showErrorsInitial(){if(!this.control)return!1;const{invalid:t,dirty:e,touched:i}=this.control;return t&&(e||i)}showSuccessInitial(){if(!this.control)return!1;const{valid:t,dirty:e,touched:i}=this.control;return t&&(e||i)}get successIconClasses(){return this.successIcon?`k-text-success ${this.successIcon}`:"k-text-success k-icon k-i-check-outline"}get errorIconClasses(){return this.errorIcon?`k-text-error ${this.errorIcon}`:"k-text-error k-icon k-i-warning"}get clearButtonClasses(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-close-circle"}get hasErrors(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}get isSuccessful(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}setSelection(t,e){this.isFocused&&Iu(this.input,"setSelectionRange",t,e)}selectAll(){this.value&&this.setSelection(0,this.value.length)}updateValue(t){_D(this.value,t)||this.ngZone.run(()=>{this.value=t,this.ngChange(t),this.valueChange.emit(t),this.checkClearButton(),this.changeDetector.markForCheck()})}get isFocused(){return this._isFocused}set isFocused(t){if(this._isFocused!==t&&this.hostElement){const e=this.hostElement.nativeElement;t&&!this.disabled?this.renderer.addClass(e,QSe):this.renderer.removeClass(e,QSe),this._isFocused=t}}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}};Is.\u0275fac=function(t){return new(t||Is)(g(J),g(ce),g(Be),g(Ie),g(Jt),g($))},Is.\u0275cmp=K({type:Is,selectors:[["kendo-textbox"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,DY,5),Ce(i,G5,5)),2&t){let s;U(s=W())&&(e.suffixTemplate=s.first),U(s=W())&&(e.prefixTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&Ae(lY,7),2&t){let i;U(i=W())&&(e.input=i.first)}},hostVars:5,hostBindings:function(t,e){2&t&&(fe("dir",e.direction),he("k-textbox",e.hostClass)("k-state-disabled",e.disabledClass))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",tabIndex:"tabIndex",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[we([J,{provide:An,useValue:"kendo.textbox"},{provide:es,useExisting:He(()=>j5),multi:!0},{provide:Ds,useExisting:He(()=>j5)}]),st],decls:10,vars:18,consts:function(){let n;return n=$localize`:kendo.textbox.clear|The title for the **Clear** button in the TextBox.␟e6edd360fd0d3c873c0d94a3aecd3c407d31da5a␟2651889799249671820:Clear`,[["kendoTextBoxLocalizedMessages","","clear",n],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],[1,"k-input-suffix"],[3,"ngClass",4,"ngIf"],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],[3,"ngTemplateOutlet"],[3,"ngClass"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1),A(2,k1t,1,1,void 0,2),_(),P(3,"input",3,4),y(5,"span",5),A(6,D1t,1,1,"span",6),A(7,M1t,1,1,"span",6),A(8,E1t,2,4,"span",7),A(9,A1t,1,1,void 0,2),_()),2&t&&(b(2),v("ngIf",e.prefixTemplate),b(1),v("id",e.focusableId)("disabled",e.disabled)("readonly",e.readonly)("value",e.value)("kendoEventsOutsideAngular",pc(14,SSe,e.handleInputFocus,e.handleInputBlur,e.handleInput)),fe("tabindex",e.disabled?void 0:e.tabindex)("placeholder",e.placeholder)("title",e.title)("maxlength",e.maxlength),b(3),v("ngIf",e.hasErrors),b(1),v("ngIf",e.isSuccessful),b(1),v("ngIf",e.showClearButton),b(1),v("ngIf",e.suffixTemplate))},directives:function(){return[lx,pt,lr,zs,Un]},encapsulation:2}),ne([p(),Y("design:type",String)],Is.prototype,"focusableId",void 0),ne([p(),Y("design:type",String)],Is.prototype,"title",void 0),ne([p(),Y("design:type",Boolean)],Is.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],Is.prototype,"readonly",void 0),ne([p(),Y("design:type",Number)],Is.prototype,"tabindex",void 0),ne([p(),Y("design:type",String)],Is.prototype,"value",void 0),ne([p(),Y("design:type",Boolean)],Is.prototype,"selectOnFocus",void 0),ne([p(),Y("design:type",Object)],Is.prototype,"showSuccessIcon",void 0),ne([p(),Y("design:type",Object)],Is.prototype,"showErrorIcon",void 0),ne([p(),Y("design:type",Boolean)],Is.prototype,"clearButton",void 0),ne([p(),Y("design:type",String)],Is.prototype,"successIcon",void 0),ne([p(),Y("design:type",String)],Is.prototype,"errorIcon",void 0),ne([p(),Y("design:type",String)],Is.prototype,"clearButtonIcon",void 0),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],Is.prototype,"tabIndex",null),ne([p(),Y("design:type",String)],Is.prototype,"placeholder",void 0),ne([p(),Y("design:type",Number)],Is.prototype,"maxlength",void 0),ne([Q(),Y("design:type",S)],Is.prototype,"valueChange",void 0),ne([Q(),Y("design:type",S)],Is.prototype,"inputFocus",void 0),ne([Q(),Y("design:type",S)],Is.prototype,"inputBlur",void 0),ne([Q("focus"),Y("design:type",S)],Is.prototype,"onFocus",void 0),ne([Q("blur"),Y("design:type",S)],Is.prototype,"onBlur",void 0),ne([at("input",{static:!0}),Y("design:type",$)],Is.prototype,"input",void 0),ne([ct(DY,{static:!1}),Y("design:type",DY)],Is.prototype,"suffixTemplate",void 0),ne([ct(G5,{static:!1}),Y("design:type",G5)],Is.prototype,"prefixTemplate",void 0),ne([G("class.k-state-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],Is.prototype,"disabledClass",null),ne([G("class.k-textbox"),Y("design:type",Boolean)],Is.prototype,"hostClass",void 0),ne([G("attr.dir"),Y("design:type",String)],Is.prototype,"direction",void 0),Is=j5=ne([Y("design:paramtypes",[J,ce,Be,Ie,Jt,$])],Is);let $5=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{clear:"clear"},features:[N]}),ne([p(),Y("design:type",String)],n.prototype,"clear",void 0),n})();var MY;let wD=MY=class extends $5{constructor(t){super(),this.service=t}get override(){return!0}};var EY;wD.\u0275fac=function(t){return new(t||wD)(g(J))},wD.\u0275cmp=K({type:wD,selectors:[["kendo-textbox-messages"]],features:[we([{provide:$5,useExisting:He(()=>MY)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),wD=MY=ne([Y("design:paramtypes",[J])],wD);let lx=EY=class extends $5{constructor(t){super(),this.service=t}};lx.\u0275fac=function(t){return new(t||lx)(g(J))},lx.\u0275dir=R({type:lx,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[we([{provide:$5,useExisting:He(()=>EY)}]),N]}),lx=EY=ne([Y("design:paramtypes",[J])],lx);let JSe=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),qTt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ha,JSe],ha]}),n})(),XTt=(()=>{class n{constructor(e,i,s,o,r,a){this.localizationService=e,this.ngZone=i,this.changeDetector=s,this.renderer=o,this.injector=r,this.hostElement=a,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new S,this.inputBlur=new S,this.subscriptions=new Je,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=()=>{this.changeDetector.markForCheck(),(Kt(this.inputBlur)||Xv(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.ngChange=l=>{},this.ngTouched=()=>{}}get disabledClass(){return this.disabled}ngOnDestroy(){this.subscriptions.unsubscribe()}setDisabledState(e){this.changeDetector.markForCheck(),this.disabled=e}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,viewQuery:function(e,i){if(1&e&&Ae(lY,7),2&e){let s;U(s=W())&&(i.input=s.first)}},hostVars:3,hostBindings:function(e,i){2&e&&(fe("dir",i.direction),he("k-state-disabled",i.disabledClass))},inputs:{title:"title",disabled:"disabled",readonly:"readonly",value:"value",selectOnFocus:"selectOnFocus",placeholder:"placeholder"},outputs:{inputFocus:"inputFocus",inputBlur:"inputBlur"}}),ne([p(),Y("design:type",String)],n.prototype,"title",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"readonly",void 0),ne([p(),Y("design:type",String)],n.prototype,"value",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"selectOnFocus",void 0),ne([p(),Y("design:type",String)],n.prototype,"placeholder",void 0),ne([Q(),Y("design:type",S)],n.prototype,"inputFocus",void 0),ne([Q(),Y("design:type",S)],n.prototype,"inputBlur",void 0),ne([at("input",{static:!0}),Y("design:type",$)],n.prototype,"input",void 0),ne([G("class.k-state-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],n.prototype,"disabledClass",null),ne([G("attr.dir"),Y("design:type",String)],n.prototype,"direction",void 0),n})();var U5;const YTt={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},e1e="k-state-focus";let Aa=U5=class extends XTt{constructor(t,e,i,s,o,r){super(t,e,i,s,o,r),this.localizationService=t,this.ngZone=e,this.changeDetector=i,this.renderer=s,this.injector=o,this.hostElement=r,this.focusableId=`k-${cs()}`,this.hostClass=!0,this.flow="vertical",this.tabindex=0,this.resizable="vertical",this.onFocus=new S,this.onBlur=new S,this.valueChange=new S,this.handleInput=a=>{this.updateValue(a.target.value),this.resize()},this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),Kt(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),Kt(this.inputFocus)&&(this.focusChangedProgrammatically||this.ngZone.run(()=>{this.inputFocus.emit()})),this.ngZone.run(()=>{this.isFocused=!0}))},Ii(Yv),this.direction=t.rtl?"rtl":"ltr"}get flowCol(){return"vertical"===this.flow}get flowRow(){return"horizontal"===this.flow}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}ngAfterViewInit(){const t=this.hostElement.nativeElement;let e=!1,i=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(t,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(t,"focusout",s=>{!this.isFocused||(i?(PSe(s.relatedTarget,r=>r===this.hostElement.nativeElement)||this.handleBlur(),i=!1):e||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(t,"mouseenter",()=>{e=!0})),this.subscriptions.add(this.renderer.listen(t,"mouseleave",()=>{e=!1})),this.subscriptions.add(this.renderer.listen(t,"keydown",s=>{i=s.keyCode===_e.Tab}))})}ngOnInit(){this.control=this.injector.get(Zs,null),Ft()&&"auto"===this.resizable&&(this.resizeSubscription=Hi(window,"resize").pipe(cg(50)).subscribe(()=>this.resize())),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr"})}ngOnChanges(t){const e=this.hostElement.nativeElement,i=this.input.nativeElement;t.resizable&&("auto"===this.resizable?this.initialHeight=i.offsetHeight:(this.renderer.setStyle(i,"overflow-y","auto"),this.renderer.setStyle(i,"resize","both"),i.style.height=`${this.initialHeight}px`)),t.cols&&(Ji(t.cols.currentValue)?this.renderer.setStyle(e,"width","auto"):this.renderer.removeStyle(e,"width"))}ngAfterViewChecked(){this.resize()}writeValue(t){this.value=t}registerOnChange(t){this.ngChange=t}registerOnTouched(t){this.ngTouched=t}updateValue(t){_D(this.value,t)||this.ngZone.run(()=>{this.value=t,this.ngChange(t),this.valueChange.emit(t),this.changeDetector.markForCheck()})}ngOnDestroy(){super.ngOnDestroy(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get resizableClass(){return YTt[this.resizable]}focus(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const t=this.hostElement.nativeElement.querySelector(":focus");t&&t.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}resize(){if("auto"!==this.resizable)return;const t=this.input.nativeElement;this.renderer.setStyle(t,"overflow-y","hidden"),this.renderer.setStyle(t,"height",`${this.initialHeight}px`);const e=t.scrollHeight;e>this.initialHeight&&(t.style.height=`${e}px`)}get isFocused(){return this._isFocused}set isFocused(t){if(this._isFocused!==t&&this.hostElement){const e=this.hostElement.nativeElement;t&&!this.disabled?this.renderer.addClass(e,e1e):this.renderer.removeClass(e,e1e),this._isFocused=t}}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}setSelection(t,e){this.isFocused&&Iu(this.input,"setSelectionRange",t,e)}selectAll(){this.value&&this.setSelection(0,this.value.length)}};Aa.\u0275fac=function(t){return new(t||Aa)(g(J),g(ce),g(Be),g(Ie),g(Jt),g($))},Aa.\u0275cmp=K({type:Aa,selectors:[["kendo-textarea"]],hostVars:6,hostBindings:function(t,e){2&t&&he("k-textarea",e.hostClass)("k-flex-col",e.flowCol)("k-flex-row",e.flowRow)},inputs:{focusableId:"focusableId",flow:"flow",tabindex:"tabindex",resizable:"resizable",tabIndex:"tabIndex",rows:"rows",cols:"cols",maxlength:"maxlength"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoTextArea"],features:[we([J,{provide:An,useValue:"kendo.textarea"},{provide:es,useExisting:He(()=>U5),multi:!0},{provide:Ds,useExisting:He(()=>U5)}]),N,st],ngContentSelectors:["kendo-textarea-suffix"],decls:4,vars:19,consts:[[1,"k-input",3,"ngClass","id","value","disabled","readonly","kendoEventsOutsideAngular"],["input",""]],template:function(t,e){1&t&&(Xt(F1t),y(0,"textarea",0,1),H(2," "),_(),mt(3)),2&t&&(v("ngClass",e.resizableClass)("id",e.focusableId)("value",e.value)("disabled",e.disabled)("readonly",e.readonly)("kendoEventsOutsideAngular",pc(15,SSe,e.handleInputFocus,e.handleInputBlur,e.handleInput)),fe("aria-multiline",!0)("aria-disabled",!!e.disabled||void 0)("aria-readonly",!!e.readonly||void 0)("placeholder",e.placeholder)("rows",e.rows)("cols",e.cols)("tabindex",e.tabIndex)("title",e.title)("maxlength",e.maxlength))},directives:[Un,lr],encapsulation:2}),ne([p(),Y("design:type",String)],Aa.prototype,"focusableId",void 0),ne([G("class.k-textarea"),Y("design:type",Boolean)],Aa.prototype,"hostClass",void 0),ne([G("class.k-flex-col"),Y("design:type",Boolean),Y("design:paramtypes",[])],Aa.prototype,"flowCol",null),ne([G("class.k-flex-row"),Y("design:type",Boolean),Y("design:paramtypes",[])],Aa.prototype,"flowRow",null),ne([p(),Y("design:type",String)],Aa.prototype,"flow",void 0),ne([p(),Y("design:type",Number)],Aa.prototype,"rows",void 0),ne([p(),Y("design:type",Number)],Aa.prototype,"cols",void 0),ne([p(),Y("design:type",Number)],Aa.prototype,"maxlength",void 0),ne([p(),Y("design:type",Number)],Aa.prototype,"tabindex",void 0),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],Aa.prototype,"tabIndex",null),ne([p(),Y("design:type",String)],Aa.prototype,"resizable",void 0),ne([Q("focus"),Y("design:type",S)],Aa.prototype,"onFocus",void 0),ne([Q("blur"),Y("design:type",S)],Aa.prototype,"onBlur",void 0),ne([Q(),Y("design:type",S)],Aa.prototype,"valueChange",void 0),Aa=U5=ne([Y("design:paramtypes",[J,ce,Be,Ie,Jt,$])],Aa);let KTt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ha,JSe],ha]}),n})();class ZTt{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class QTt{constructor(t){this.color=t,this.openPrevented=!1}preventOpen(){this.openPrevented=!0}isOpenPrevented(){return this.openPrevented}}const Cc=(n,t,e=!0)=>{if(-1===["hex","rgba","name"].indexOf(t))throw new Error(`Unsupported color output format '${t}'. The available options are 'hex', 'rgba' or 'name'.`);if(!Ji(n))return;if("name"===t)return function(n,t){if(n=n.toLowerCase().trim(),Ji(yD[n]))return n;ef(n,t)&&(n=ef(n,t).toHex());const e=Object.keys(yD).find(i=>yD[i]===n);if(!e&&!t)throw new Error(`The provided color ${n} is not supported for 'format="name"' property.To display ${n} color, the component 'format' property shoud be set to 'hex' or 'rgba' `);return e}(n,e);const s=ef(n.trim(),e);return Ji(s)?"hex"===t?s.toCss():s.toCssRgba():void 0},W5=(n,t=!0)=>{const e=ef(n,t);return Ji(e)?e.toBytes():{}},cx=n=>{const t=Fg(n.h,0,359.9),e=Fg(n.s,0,1),i=Fg(n.v,0,1),s=Fg(n.a,0,1);return Eu.fromHSV(t,e,i,s).toCssRgba()},t1e=n=>cx({h:n,s:1,v:1,a:1}),_2={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}};let Qv=(()=>{let n=class extends J{constructor(e,i,s){super(e,i,s)}};return n.\u0275fac=function(e){return new(e||n)(V(An),V(Gv,8),V(_l,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ne([Ao(0,Rn(An)),Ao(1,gt()),Ao(2,gt()),Ao(2,Rn(_l)),Y("design:paramtypes",[String,Gv,Boolean])],n),n})(),n1e=(()=>{let n=class extends J{constructor(e,i,s,o){super(e,i,s),this.colorPickerLocalization=o}get(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):super.get(e)}};return n.\u0275fac=function(e){return new(e||n)(V(An),V(Gv,8),V(_l,8),V(Qv,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ne([Ao(0,Rn(An)),Ao(1,gt()),Ao(2,gt()),Ao(2,Rn(_l)),Ao(3,gt()),Ao(3,Rn(Qv)),Y("design:paramtypes",[String,Gv,Boolean,Qv])],n),n})(),IY=(()=>{let n=class{constructor(e,i){this.localization=e,this.host=i,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new S,this.colorInputClass=!0,this.rgba={}}get isFocused(){if(!Ft()||!Ji(this.host))return!1;const e=document.activeElement;return this.host.nativeElement.contains(e)}get rgbaInputValid(){return Object.keys(this.rgba).every(e=>Ji(this.rgba[e]))}ngOnChanges(e){Ji(e.value)&&!this.isFocused&&(this.hex=Cc(this.value,"hex"),this.rgba=W5(this.value),this.rgba.a=Cc(this.value,"rgba")?this.rgba.a:1)}handleRgbaValueChange(){const e=(n=>{const t=Fg(n.r,0,255),e=Fg(n.g,0,255),i=Fg(n.b,0,255),s=Fg(n.a,0,1);return Eu.fromBytes(t,e,i,s).toCssRgba()})(this.rgba);!this.rgbaInputValid||e===this.value||(this.value=e,this.rgba=W5(this.value),this.hex=Cc(e,"hex"),this.valueChange.emit(e))}handleHexValueChange(e){this.hex=e;const i=Cc(e,"rgba");!Ji(i)||i===this.value||(this.value=i,this.rgba=W5(i),this.valueChange.emit(i))}handleRgbaInputBlur(){this.rgbaInputValid||(this.rgba=W5(this.value))}handleHexInputBlur(){this.hex=Cc(this.value,"hex")}textFor(e){return this.localization.get(e)}};return n.\u0275fac=function(e){return new(e||n)(g(J),g($))},n.\u0275cmp=K({type:n,selectors:[["kendo-colorinput"]],viewQuery:function(e,i){if(1&e&&Ae(R1t,5,$),2&e){let s;U(s=W())&&(i.opacityInput=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-colorinputs",i.colorInputClass)},inputs:{opacity:"opacity",disabled:"disabled",readonly:"readonly",value:"value"},outputs:{valueChange:"valueChange"},features:[st],decls:17,vars:36,consts:[[1,"k-hbox","k-gradient-values"],[1,"k-textbox","k-hex-value",3,"disabled","readonly","value","placeholder","blur","input"],["hexInput",""],[3,"disabled","readonly","min","max","placeholder","value","autoCorrect","spinners","format","decimals","valueChange","blur"],[3,"disabled","readonly","min","max","placeholder","value","autoCorrect","spinners","step","format","decimals","valueChange","blur",4,"ngIf"],[1,"k-hex-value"],[4,"ngIf"],[3,"disabled","readonly","min","max","placeholder","value","autoCorrect","spinners","step","format","decimals","valueChange","blur"],["opacityInput",""]],template:function(e,i){if(1&e){const s=ht();y(0,"div",0),y(1,"input",1,2),se("blur",function(){return i.handleHexInputBlur()})("input",function(){Le(s);const r=ki(2);return i.handleHexValueChange(r.value)}),_(),y(3,"kendo-numerictextbox",3),se("valueChange",function(r){return i.rgba.r=r})("blur",function(){return i.handleRgbaInputBlur()})("valueChange",function(){return i.handleRgbaValueChange()}),_(),y(4,"kendo-numerictextbox",3),se("valueChange",function(r){return i.rgba.g=r})("blur",function(){return i.handleRgbaInputBlur()})("valueChange",function(){return i.handleRgbaValueChange()}),_(),y(5,"kendo-numerictextbox",3),se("valueChange",function(r){return i.rgba.b=r})("blur",function(){return i.handleRgbaInputBlur()})("valueChange",function(){return i.handleRgbaValueChange()}),_(),A(6,P1t,2,11,"kendo-numerictextbox",4),_(),y(7,"div",0),y(8,"div",5),H(9,"hex"),_(),y(10,"div"),H(11,"r"),_(),y(12,"div"),H(13,"g"),_(),y(14,"div"),H(15,"b"),_(),A(16,L1t,2,0,"div",6),_()}2&e&&(b(1),v("disabled",i.disabled)("readonly",i.readonly)("value",i.hex||"")("placeholder",i.textFor("hexInputPlaceholder")),b(2),v("disabled",i.disabled)("readonly",i.readonly)("min",0)("max",255)("placeholder",i.textFor("redInputPlaceholder"))("value",i.rgba.r)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),b(1),v("disabled",i.disabled)("readonly",i.readonly)("min",0)("max",255)("placeholder",i.textFor("greenInputPlaceholder"))("value",i.rgba.g)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),b(1),v("disabled",i.disabled)("readonly",i.readonly)("min",0)("max",255)("placeholder",i.textFor("blueInputPlaceholder"))("value",i.rgba.b)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),b(1),v("ngIf",i.opacity),b(10),v("ngIf",i.opacity))},directives:[Ki,pt],encapsulation:2}),ne([p(),Y("design:type",String)],n.prototype,"value",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"opacity",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],n.prototype,"readonly",void 0),ne([Q(),Y("design:type",S)],n.prototype,"valueChange",void 0),ne([G("class.k-colorinputs"),Y("design:type",Boolean)],n.prototype,"colorInputClass",void 0),ne([at("opacityInput",{read:$,static:!1}),Y("design:type",$)],n.prototype,"opacityInput",void 0),n=ne([Y("design:paramtypes",[J,$])],n),n})();var q5;let skt=0,yo=q5=class{constructor(t,e,i,s,o){this.host=t,this.ngZone=e,this.renderer=i,this.cdr=s,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+skt++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new S,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.updateValues=new Z,this.notifyNgChanged=()=>{},this.notifyNgTouched=()=>{},this.dynamicRTLSubscription=o.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr"})}get readonlyAttribute(){return this.readonly}get disabledClass(){return this.disabled}get hostTabindex(){return this.tabindex}get gradientId(){return this.id}set value(t){this._value=Cc(t,this.format)}get value(){return this._value}set tabindex(t){const e=Number(t);this._tabindex=isNaN(e)?0:e}get tabindex(){return this.disabled?void 0:this._tabindex}get isFocused(){return!(!Ft()||!Ji(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))}get alphaSliderValue(){if(Ji(this.hsva)&&Ji(this.hsva.a))return 100*this.hsva.a}get gradientRect(){return this.gradientWrapper.nativeElement.getBoundingClientRect()}ngAfterViewInit(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()}ngOnChanges(t){Io("value",t)&&!this.isFocused&&this.updateUI(),Io("delay",t)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.listeners.forEach(t=>t()),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()}focus(){this.disabled||this.host.nativeElement.focus()}reset(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()}handleDragPress(t){this.disabled||this.readonly||!Ji(t.originalEvent)||(this.focus(),t.originalEvent.preventDefault())}onHandleDrag(t){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(t))}onHandleRelease(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(cx(this.hsva)))}onKeyboardAction(t){if(!this.disabled&&!this.readonly&&t.key&&-1!==t.key.indexOf("Arrow")){t.preventDefault();const e=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");let i=0,s=0;switch(t.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":s=-5;break;case"ArrowDown":s=5}const o=parseInt(e.style.top,10)+s,r=parseInt(e.style.left,10)+i;this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${r}px`),this.ngZone.run(()=>this.moveDragHandle(r,o))}}changePosition(t){if(this.disabled||this.readonly)return;this.gradientDragHandle.nativeElement.focus();const e=t.clientX-this.gradientRect.left,i=t.clientY-this.gradientRect.top;this.ngZone.run(()=>this.moveDragHandle(e,i))}handleHueSliderChange(t){this.handleValueChange(cx(this.hsva)),this.backgroundColor=t1e(t),this.setAlphaSliderBackground(this.backgroundColor)}handleAlphaSliderChange(t){this.hsva.a=t/100,this.handleValueChange(cx(this.hsva))}handleInputsValueChange(t){const e=Cc(t,this.format);this.value!==e&&(this.handleValueChange(e),this.updateUI())}writeValue(t){this.value=t,Ji(this.gradientWrapper)&&this.updateUI()}registerOnChange(t){this.notifyNgChanged=t}registerOnTouched(t){this.notifyNgTouched=t}setDisabledState(t){this.cdr.markForCheck(),this.disabled=t}get colorGradientHandleTitle(){return this.localizationService.get("colorGradientHandle")}get colorGradientHandleAriaLabel(){const t=Cc(this.value,this.format);return`${this.value?t:this.localizationService.get("colorGradientHandle")}`}get hueSliderTitle(){return this.localizationService.get("hueSliderHandle")}get opacitySliderTitle(){return this.localizationService.get("opacitySliderHandle")}get clearButtonTitle(){return this.localizationService.get("clearButton")}isEmpty(){return!1}moveDragHandle(t,e){const i=Fg(e,0,this.gradientRect.height),s=Fg(t,0,this.gradientRect.width);this.setDragHandleElementPosition(i,s),this.hsva.s=s/this.gradientRect.width,this.hsva.v=1-i/this.gradientRect.height,this.updateValues.next(cx(this.hsva)),this.setAlphaSliderBackground(cx(Object.assign({},this.hsva,{a:1})))}updateUI(){Ft()&&(this.hsva=this.value?((n,t=!0)=>{const e=ef(this.value,t);return Ji(e)?e.toHSV():{}})():{h:0,s:0,v:1,a:1},this.setDragHandleElementPosition((1-this.hsva.v)*this.gradientRect.height,this.hsva.s*this.gradientRect.width),this.backgroundColor=t1e(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel())}handleValueChange(t){this.value!==t&&(this.value=t,this.valueChange.emit(t),this.notifyNgChanged(t),this.setHostElementAriaLabel())}setDragHandleElementPosition(t,e){const i=this.gradientDragHandle.nativeElement;this.renderer.setStyle(i,"top",`${t}px`),this.renderer.setStyle(i,"left",`${e}px`)}setAlphaSliderBackground(t){Ji(this.alphaSlider)&&this.renderer.setStyle(this.alphaSlider.track.nativeElement,"background",`linear-gradient(to top, transparent, ${t})`)}setHostElementAriaLabel(){const t=Cc(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",`${this.value?t:this.localizationService.get("colorGradientNoColor")}`)}addEventListeners(){this.ngZone.runOutsideAngular(()=>{const t=this.renderer.listen(this.host.nativeElement,"focusout",r=>{!((n,t)=>n&&t&&(n===t||n.contains(t)))(this.host.nativeElement,r.relatedTarget)&&(n=>n&&n.nativeElement&&((n,t)=>Boolean((n=>String(n).trim().split(" "))(n.className).find(e=>e===t)))(n.nativeElement,"ng-untouched"))(this.host)&&this.ngZone.run(()=>this.notifyNgTouched())}),e=this.renderer.listen(this.gradientDragHandle.nativeElement,"keydown",r=>{this.onKeyboardAction(r)}),i=this.renderer.listen(this.gradientDragHandle.nativeElement,"keyup",()=>{this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),!this.readonly&&!this.disabled&&this.ngZone.run(()=>this.handleValueChange(cx(this.hsva)))}),s=this.renderer.listen(this.gradientDragHandle.nativeElement,"focusin",()=>{this.renderer.addClass(this.gradientDragHandle.nativeElement,"k-state-focus")}),o=this.renderer.listen(this.gradientDragHandle.nativeElement,"focusout",()=>{this.renderer.removeClass(this.gradientDragHandle.nativeElement,"k-state-focus")});this.listeners.push(t,e,i,s,o)})}subscribeChanges(){this.changeRequestsSubscription=this.updateValues.pipe(vX(this.delay)).subscribe(t=>{this.handleValueChange(t)})}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}};var Y5;yo.\u0275fac=function(t){return new(t||yo)(g($),g(ce),g(Ie),g(Be),g(J))},yo.\u0275cmp=K({type:yo,selectors:[["kendo-colorgradient"]],viewQuery:function(t,e){if(1&t&&(Ae(N1t,5,$),Ae(B1t,5),Ae(V1t,5),Ae(z1t,5)),2&t){let i;U(i=W())&&(e.gradientDragHandle=i.first),U(i=W())&&(e.inputs=i.first),U(i=W())&&(e.alphaSlider=i.first),U(i=W())&&(e.gradientWrapper=i.first)}},hostVars:10,hostBindings:function(t,e){2&t&&(fe("dir",e.direction)("aria-readonly",e.readonlyAttribute)("tabindex",e.hostTabindex)("id",e.gradientId),he("k-widget",e.hostClasses)("k-flatcolorpicker",e.hostClasses)("k-state-disabled",e.disabledClass))},inputs:{id:"id",opacity:"opacity",disabled:"disabled",readonly:"readonly",clearButton:"clearButton",delay:"delay",format:"format",value:"value",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},features:[we([{multi:!0,provide:es,useExisting:He(()=>q5)},{provide:Ds,useExisting:He(()=>q5)},n1e,{provide:J,useExisting:n1e},{provide:An,useValue:"kendo.colorgradient"}]),st],decls:13,vars:24,consts:function(){let n,t,e,i,s,o,r,a,l,c;return n=$localize`:kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.␟136a6a537523c480df0e58c17cc6d4c2dda8e626␟3796155240301823948:Colorgradient no color chosen`,t=$localize`:kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser.␟462ab46551fd64dca63ba38254e46a52aeb05205␟8537406358423916512:Choose color`,e=$localize`:kendo.colorgradient.clearButton|The title for the clear button.␟6dc40c4a4ff302d1fe29e7bf9eadf1440b4654cf␟7605097752673642325:Clear value`,i=$localize`:kendo.colorgradient.hueSliderHandle|The title for the hue slider handle.␟22a98afddf46223dce8a3e122f4fe84ca76488b9␟8568799441668530127:Set hue`,s=$localize`:kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle.␟ad3087c7bf139a41bf6a7fc454f4e857492c9d22␟2665102430468067218:Set opacity`,o=$localize`:kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input.␟0223abe5dc060383b58df6d9f83dc98b08ba8e2b␟1551996638068326100:HEX Color`,r=$localize`:kendo.colorgradient.redInputPlaceholder|The placeholder for the red color input.␟ec8e6ab816ff2b3686ad6594068d26e3c72e49d3␟865798719701025148:Red`,a=$localize`:kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input.␟50e5480cded07f92356e43143800db6b44dce024␟7119549617208224702:Green`,l=$localize`:kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input.␟f07b6e271e4cb957c512029298715c8f4970eca8␟8925567330503382499:Blue`,c=$localize`:kendo.colorgradient.alphaInputPlaceholder|The placeholder for the alpha input.␟122a5434fa0f1ee3ef735e859c1db1606542c995␟6303797935938211585:Alpha`,[["kendoColorGradientLocalizedMessages","","colorGradientNoColor",n,"colorGradientHandle",t,"clearButton",e,"hueSliderHandle",i,"opacitySliderHandle",s,"hexInputPlaceholder",o,"redInputPlaceholder",r,"greenInputPlaceholder",a,"blueInputPlaceholder",l,"alphaInputPlaceholder",c],[1,"k-hbox","k-hsv-wrap"],[1,"k-hsv-rectangle"],["kendoDraggable","",1,"k-hsv-gradient",3,"click","kendoPress","kendoDrag","kendoRelease"],["gradientWrapper",""],["tabindex","0",1,"k-draghandle"],["gradientDragHandle",""],["class","k-clear-color k-button k-bare k-button-icon","tabindex","0",3,"click","keydown.enter","keydown.space",4,"ngIf"],[1,"k-hue-slider",3,"dragHandleTitle","disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange"],["class","k-alpha-slider",3,"dragHandleTitle","disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange",4,"ngIf"],[3,"opacity","value","disabled","readonly","valueChange"],["inputs",""],["tabindex","0",1,"k-clear-color","k-button","k-bare","k-button-icon",3,"click","keydown.enter","keydown.space"],[1,"k-icon","k-i-reset-color"],[1,"k-alpha-slider",3,"dragHandleTitle","disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange"],["alphaSlider",""]]},template:function(t,e){1&t&&(wn(0,0),y(1,"div",1),y(2,"div",2),y(3,"div",3,4),se("click",function(s){return e.changePosition(s)})("kendoPress",function(s){return e.handleDragPress(s)})("kendoDrag",function(s){return e.onHandleDrag(s)})("kendoRelease",function(){return e.onHandleRelease()}),P(5,"div",5,6),_(),_(),y(7,"div"),A(8,H1t,2,2,"span",7),y(9,"kendo-slider",8),se("valueChange",function(s){return e.hsva.h=s})("valueChange",function(s){return e.handleHueSliderChange(s)}),_(),A(10,G1t,2,11,"kendo-slider",9),_(),_(),y(11,"kendo-colorinput",10,11),se("valueChange",function(s){return e.handleInputsValueChange(s)}),_()),2&t&&(b(2),yt("background-color",e.backgroundColor),b(3),fe("title",e.colorGradientHandleTitle)("aria-label",e.colorGradientHandleAriaLabel),b(2),DT("k-hbox k-sliders-wrap ",e.clearButton?"k-sliders-wrap-clearable":"",""),b(1),v("ngIf",e.clearButton),b(1),v("dragHandleTitle",e.hueSliderTitle)("disabled",e.disabled)("readonly",e.readonly)("showButtons",!1)("tickPlacement","none")("vertical",!0)("min",0)("max",360)("smallStep",5)("largeStep",10)("value",e.hsva.h),b(1),v("ngIf",e.opacity&&"rgba"===e.format),b(1),v("opacity",e.opacity)("value",e.value)("disabled",e.disabled)("readonly",e.readonly))},directives:function(){return[Og,Jc,pt,Ia,IY]},encapsulation:2}),ne([G("class.k-widget"),G("class.k-flatcolorpicker"),Y("design:type",Boolean)],yo.prototype,"hostClasses",void 0),ne([G("attr.aria-readonly"),Y("design:type",Boolean),Y("design:paramtypes",[])],yo.prototype,"readonlyAttribute",null),ne([G("class.k-state-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],yo.prototype,"disabledClass",null),ne([G("attr.tabindex"),Y("design:type",Number),Y("design:paramtypes",[])],yo.prototype,"hostTabindex",null),ne([G("attr.id"),Y("design:type",String),Y("design:paramtypes",[])],yo.prototype,"gradientId",null),ne([p(),Y("design:type",String)],yo.prototype,"id",void 0),ne([G("attr.dir"),Y("design:type",String)],yo.prototype,"direction",void 0),ne([p(),Y("design:type",Boolean)],yo.prototype,"opacity",void 0),ne([p(),Y("design:type",Boolean)],yo.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],yo.prototype,"readonly",void 0),ne([p(),Y("design:type",Boolean)],yo.prototype,"clearButton",void 0),ne([p(),Y("design:type",Number)],yo.prototype,"delay",void 0),ne([p(),Y("design:type",String),Y("design:paramtypes",[String])],yo.prototype,"value",null),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],yo.prototype,"tabindex",null),ne([Q(),Y("design:type",S)],yo.prototype,"valueChange",void 0),ne([p(),Y("design:type",String)],yo.prototype,"format",void 0),ne([at("gradientDragHandle",{read:$,static:!1}),Y("design:type",$)],yo.prototype,"gradientDragHandle",void 0),ne([at("inputs",{static:!1}),Y("design:type",IY)],yo.prototype,"inputs",void 0),ne([at("alphaSlider",{static:!1}),Y("design:type",Ia)],yo.prototype,"alphaSlider",void 0),ne([at("gradientWrapper",{static:!1}),Y("design:type",$)],yo.prototype,"gradientWrapper",void 0),yo=q5=ne([Y("design:paramtypes",[$,ce,Ie,Be,J])],yo);let akt=0,Gs=Y5=class{constructor(t,e,i,s){this.popupService=t,this.cdr=e,this.localizationService=i,this.ngZone=s,this.hostClasses=!0,this.focusableId="k-colorpicker-"+akt++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new S,this.open=new S,this.close=new S,this.onFocus=new S,this.onBlur=new S,this.activeColorClick=new S,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1,delay:0},this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},Ii(Yv),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr"})}set value(t){this._value=Cc(t,this.format)}get value(){return this._value}set popupSettings(t){this._popupSettings=Object.assign(this._popupSettings,t)}get popupSettings(){return this._popupSettings}set paletteSettings(t){this._paletteSettings=Object.assign(this._paletteSettings,t)}get paletteSettings(){return this._paletteSettings}set gradientSettings(t){this._gradientSettings=Object.assign(this._gradientSettings,t)}get gradientSettings(){return this._gradientSettings}set tabindex(t){const e=Number(t);this._tabindex=isNaN(e)?0:e}get tabindex(){return this.disabled?void 0:this._tabindex}get isOpen(){return Ji(this.popupRef)}get iconStyles(){return this.iconClass?this.iconClass:this.icon?`k-icon k-i-${this.icon}`:void 0}ngOnInit(){const e=this._paletteSettings.palette;this._paletteSettings={palette:e||("name"!==this.format?"office":"accessible"),tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||("string"==typeof e&&_2[e]?_2[e].columns:void 0)||10}}ngOnChanges(t){t.format&&"name"===t.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Cc(this.value,this.format))}ngOnDestroy(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}handleWrapperClick(){this.toggleWithEvents(!this.isOpen),this.focus()}handleActiveColorClick(){this.focus();const t=new QTt(this.value);this.activeColorClick.emit(t),(!t.isOpenPrevented()||this.isOpen)&&this.handleWrapperClick()}focus(){this.disabled||this.wrapper.nativeElement.focus()}handleWrapperFocus(){Ji(this.palette)&&this.palette.nativeElement.focus(),!this.isFocused&&(this.isFocused=!0,this.onFocus.emit())}blur(){this.wrapper.nativeElement.blur()}handleWrapperBlur(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())}reset(){!Ji(this.value)||(this._value=void 0,this.notifyNgChanged(void 0))}toggle(t){this.disabled||this.readonly||(this.closePopup(),(t=Ji(t)?t:!this.isOpen)&&this.openPopup())}handleValueChange(t,e){const i=Cc(t,this.format),s=i!==this.value;e&&(this.toggleWithEvents(!1),this.focus()),s&&(this.value=i,this.valueChange.emit(i),this.notifyNgChanged(i))}handlePopupBlur(t){const e=this.popupRef.popupElement.contains(t.relatedTarget);!this.isFocused||t.relatedTarget===this.wrapper.nativeElement||e||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))}writeValue(t){this.value=t}registerOnChange(t){this.notifyNgChanged=t}registerOnTouched(t){this.notifyNgTouched=t}setDisabledState(t){this.cdr.markForCheck(),this.disabled=t}handleWrapperKeyDown(t){(t.keyCode===_e.ArrowDown||t.keyCode===_e.Enter)&&(t.preventDefault(),this.toggleWithEvents(!0))}handlePopupKeyDown(t){if(t.keyCode===_e.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),t.keyCode===_e.Tab){const e=this.colorGradient?this.colorGradient.gradientDragHandle.nativeElement:this.palette.nativeElement,i=this.palette?this.palette.nativeElement:this.colorGradient.inputs.opacityInput.nativeElement.childNodes[1].children[0];if(t.shiftKey){if(t.target===e)return t.preventDefault(),void i.focus()}else if(t.target===i)return t.preventDefault(),void e.focus()}}isEmpty(){return!1}toggleWithEvents(t){if(this.disabled||this.readonly||this.isOpen===t)return;const i=new ZTt;t?this.open.emit(i):this.close.emit(i),i.isDefaultPrevented()||this.toggle(t),t&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.colorGradient&&this.colorGradient.gradientDragHandle.nativeElement.focus()})})}openPopup(){const t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"},popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.toggleWithEvents(!1),this.isOpen||this.wrapper.nativeElement.focus({preventScroll:!0})})}closePopup(){!this.isOpen||(this.popupRef.close(),this.popupRef=null,this.palette=null)}};Gs.\u0275fac=function(t){return new(t||Gs)(g(Oi),g(Be),g(J),g(ce))},Gs.\u0275cmp=K({type:Gs,selectors:[["kendo-colorpicker"]],viewQuery:function(t,e){if(1&t&&(Ae(j1t,5,$),Ae($1t,7,Gt),Ae(xSe,7),Ae(U1t,7),Ae(W1t,5)),2&t){let i;U(i=W())&&(e.palette=i.first),U(i=W())&&(e.container=i.first),U(i=W())&&(e.wrapper=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.colorGradient=i.first)}},hostVars:5,hostBindings:function(t,e){2&t&&(fe("dir",e.direction),he("k-widget",e.hostClasses)("k-colorpicker",e.hostClasses))},inputs:{focusableId:"focusableId",view:"view",readonly:"readonly",disabled:"disabled",format:"format",value:"value",popupSettings:"popupSettings",paletteSettings:"paletteSettings",gradientSettings:"gradientSettings",tabindex:"tabindex",icon:"icon",iconClass:"iconClass"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur",activeColorClick:"activeColorClick"},features:[we([{multi:!0,provide:es,useExisting:He(()=>Y5)},{provide:Ds,useExisting:He(()=>Y5)},Qv,{provide:J,useExisting:Qv},{provide:An,useValue:"kendo.colorpicker"}]),st],decls:11,vars:12,consts:function(){let n,t,e,i,s,o,r,a,l;return n=$localize`:kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.␟8d537502a437254763c963398484bd362820af61␟8067778471922495440:Choose color`,t=$localize`:kendo.colorpicker.clearButton|The title for the clear button.␟aae9caf1dbc689cd51ace5c265cbf45552a580b6␟935472034136733879:Clear value`,e=$localize`:kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.␟7af8ad339d09d41bfa8fa5f4e44d16e326cafd54␟1739045502529621844:Set hue`,i=$localize`:kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.␟21883ee2927bd4cde8071c9cbec41901a0bc4bd2␟1818720388700598438:Set opacity`,s=$localize`:kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input.␟88c518588be223639d20666430d42b88990166c9␟67581802130075115:HEX Color`,o=$localize`:kendo.colorpicker.redInputPlaceholder|The placeholder for the red color input.␟60f46a6db83b89c15885de76451bb26478637d2c␟1242921922786989001:Red`,r=$localize`:kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input.␟0c1eef35af82330d89cacecb2aa482d9da1e3a4b␟564969508273982379:Green`,a=$localize`:kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input.␟c8f1ad22547f56cec39eb563a9a1bfe5a85cc14a␟2815824305218491249:Blue`,l=$localize`:kendo.colorpicker.alphaInputPlaceholder|The placeholder for the alpha input.␟4e4aed4804d59e87f4f96959d0113c5ca292d98c␟7522085117867122625:Alpha`,[["kendoColorPickerLocalizedMessages","","colorGradientNoColor","Colorgradient no color chosen","colorPaletteNoColor","Colorpalette no color chosen","colorGradientHandle",n,"clearButton",t,"hueSliderHandle",e,"opacitySliderHandle",i,"hexInputPlaceholder",s,"redInputPlaceholder",o,"greenInputPlaceholder",r,"blueInputPlaceholder",a,"alphaInputPlaceholder",l],["role","listbox",3,"ngClass","id","focus","blur","mousedown","keydown"],["wrapper",""],["class","k-selected-color",3,"background-color","click",4,"ngIf"],["class","k-tool-icon",3,"ngClass","click",4,"ngIf"],[1,"k-select",3,"click"],[1,"k-icon","k-i-arrow-s"],["popupTemplate",""],["container",""],[1,"k-selected-color",3,"click"],["class","k-icon k-i-line",4,"ngIf"],[1,"k-icon","k-i-line"],[1,"k-tool-icon",3,"ngClass","click"],[1,"k-selected-color"],[3,"value","format","opacity","clearButton","delay","focusout","valueChange","keydown",4,"ngIf"],["kendoFocusOnDomReady","",3,"palette","columns","tileSize","format","value","blur","cellSelection","mousedown","keydown",4,"ngIf"],[3,"value","format","opacity","clearButton","delay","focusout","valueChange","keydown"],["colorGradient",""],["kendoFocusOnDomReady","",3,"palette","columns","tileSize","format","value","blur","cellSelection","mousedown","keydown"],["palette",""]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),se("focus",function(){return e.handleWrapperFocus()})("blur",function(){return e.handleWrapperBlur()})("mousedown",function(s){return s.preventDefault()})("keydown",function(s){return e.handleWrapperKeyDown(s)}),A(3,X1t,2,3,"span",3),A(4,Y1t,2,3,"span",4),y(5,"span",5),se("click",function(){return e.handleWrapperClick()}),P(6,"span",6),_(),_(),A(7,Q1t,2,2,"ng-template",null,7,Ls),wn(9,null,8)),2&t&&(b(1),v("ngClass",di(9,J1t,e.disabled,e.isFocused))("id",e.focusableId),fe("aria-expanded",e.isOpen)("aria-readonly",e.readonly)("aria-disabled",e.disabled)("aria-label",e.value)("tabindex",e.tabindex),b(2),v("ngIf",!e.iconStyles),b(1),v("ngIf",e.iconStyles))},directives:function(){return[Og,Un,pt,yo,To,r1e]},encapsulation:2}),ne([G("class.k-widget"),G("class.k-colorpicker"),Y("design:type",Boolean)],Gs.prototype,"hostClasses",void 0),ne([G("attr.dir"),Y("design:type",String)],Gs.prototype,"direction",void 0),ne([p(),Y("design:type",String)],Gs.prototype,"focusableId",void 0),ne([p(),Y("design:type",String)],Gs.prototype,"view",void 0),ne([p(),Y("design:type",Boolean)],Gs.prototype,"readonly",void 0),ne([p(),Y("design:type",Boolean)],Gs.prototype,"disabled",void 0),ne([p(),Y("design:type",String)],Gs.prototype,"format",void 0),ne([p(),Y("design:type",String),Y("design:paramtypes",[String])],Gs.prototype,"value",null),ne([p(),Y("design:type",Object),Y("design:paramtypes",[Object])],Gs.prototype,"popupSettings",null),ne([p(),Y("design:type",Object),Y("design:paramtypes",[Object])],Gs.prototype,"paletteSettings",null),ne([p(),Y("design:type",Object),Y("design:paramtypes",[Object])],Gs.prototype,"gradientSettings",null),ne([p(),Y("design:type",String)],Gs.prototype,"icon",void 0),ne([p(),Y("design:type",Object)],Gs.prototype,"iconClass",void 0),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],Gs.prototype,"tabindex",null),ne([Q(),Y("design:type",S)],Gs.prototype,"valueChange",void 0),ne([Q(),Y("design:type",S)],Gs.prototype,"open",void 0),ne([Q(),Y("design:type",S)],Gs.prototype,"close",void 0),ne([Q("focus"),Y("design:type",S)],Gs.prototype,"onFocus",void 0),ne([Q("blur"),Y("design:type",S)],Gs.prototype,"onBlur",void 0),ne([Q(),Y("design:type",S)],Gs.prototype,"activeColorClick",void 0),ne([at("container",{read:Gt,static:!0}),Y("design:type",Gt)],Gs.prototype,"container",void 0),ne([at("wrapper",{static:!0}),Y("design:type",$)],Gs.prototype,"wrapper",void 0),ne([at("popupTemplate",{static:!0}),Y("design:type",ve)],Gs.prototype,"popupTemplate",void 0),ne([at("palette",{read:$,static:!1}),Y("design:type",$)],Gs.prototype,"palette",void 0),ne([at("colorGradient",{static:!1}),Y("design:type",yo)],Gs.prototype,"colorGradient",void 0),Gs=Y5=ne([Y("design:paramtypes",[Oi,Be,J,ce])],Gs);let AY=(()=>{let n=class{constructor(){this.colorRows=[]}setColorMatrix(e,i){if(this.colorRows=[],Ji(e)&&e.length){i=i||e.length;for(let s=0;si?i:e}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),i1e=(()=>{let n=class extends J{constructor(e,i,s,o){super(e,i,s),this.colorPickerLocalization=o}get(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):super.get(e)}};return n.\u0275fac=function(e){return new(e||n)(V(An),V(Gv,8),V(_l,8),V(Qv,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ne([Ao(0,Rn(An)),Ao(1,gt()),Ao(2,gt()),Ao(2,Rn(_l)),Ao(3,gt()),Ao(3,Rn(Qv)),Y("design:paramtypes",[String,Gv,Boolean,Qv])],n),n})();var K5;let dkt=0,To=K5=class{constructor(t,e,i,s,o){this.host=t,this.service=e,this.cdr=i,this.renderer=s,this.localizationService=o,this.id="k-colorpalette-"+dkt++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new S,this.valueChange=new S,this.cellSelection=new S,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},this.dynamicRTLSubscription=o.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr"})}get paletteId(){return this.id}set value(t){this._value=Cc(t,this.format)}get value(){return this._value}set columns(t){this._columns=t>1?t:1}get columns(){return this._columns}set palette(t){Ji(t)||(t="office"),"string"==typeof t&&Ji(_2[t])&&(this.columns=this.columns||_2[t].columns,t=_2[t].colors);const e="string"==typeof t?t.split(","):t;this._palette=e.map(i=>Cc(i,this.format,!1))}get palette(){return this._palette}set tabindex(t){const e=Number(t);this._tabindex=isNaN(e)?0:e}get tabindex(){return this.disabled?void 0:this._tabindex}get tileLayout(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}}get colorRows(){return this.service.colorRows}get hostTabindex(){return this.tabindex}get disabledClass(){return this.disabled}get readonlyAttribute(){return this.readonly}ngOnInit(){if(0===this.colorRows.length){const t="name"!==this.format?"office":"accessible";this.palette=this.palette||t,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}}ngAfterViewInit(){this.setHostElementAriaLabel()}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}ngOnChanges(t){(t.palette||t.columns)&&this.setRows(),(t.palette||t.value||t.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())}handleKeydown(t){const e="rtl"===this.direction;switch(t.keyCode){case _e.ArrowDown:this.handleCellNavigation(0,1);break;case _e.ArrowUp:this.handleCellNavigation(0,-1);break;case _e.ArrowRight:this.handleCellNavigation(e?-1:1,0);break;case _e.ArrowLeft:this.handleCellNavigation(e?1:-1,0);break;case _e.Enter:this.handleEnter();break;default:return}t.preventDefault()}handleHostBlur(){this.notifyNgTouched()}handleCellSelection(t,e){if(this.readonly)return;this.focusedCell=e;const i=Cc(t,this.format,!1);this.cellSelection.emit(i),this.value!==i&&(this.value=i,this.valueChange.emit(i),this.notifyNgChanged(i),this.setHostElementAriaLabel()),this.selection!==i&&(this.selection=i,this.selectionChange.emit(i)),e&&(this.activeCellId=`${this.focusedCell.row}${this.focusedCell.col}`)}writeValue(t){this.value=t,this.focusedCell=this.service.getCellCoordsFor(this.value)}registerOnChange(t){this.notifyNgChanged=t}registerOnTouched(t){this.notifyNgTouched=t}setDisabledState(t){this.cdr.markForCheck(),this.disabled=t}isEmpty(){return!1}reset(){this.focusedCell=null,Ji(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))}setRows(){!Ji(this.palette)||(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))}handleCellNavigation(t,e){if(this.readonly)return;this.focusedCell=this.service.getNextCell(this.focusedCell,t,e);const i=this.service.getColorAt(this.focusedCell);this.selection!==i&&(this.selection=i,this.selectionChange.emit(i))}setHostElementAriaLabel(){const t=Cc(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",`${this.value?t:this.localizationService.get("colorPaletteNoColor")}`)}handleEnter(){if(!Ji(this.focusedCell))return;const t=this.service.getColorAt(this.focusedCell);this.handleCellSelection(t,this.focusedCell)}};To.\u0275fac=function(t){return new(t||To)(g($),g(AY),g(Be),g(Ie),g(J))},To.\u0275cmp=K({type:To,selectors:[["kendo-colorpalette"]],hostVars:11,hostBindings:function(t,e){1&t&&se("keydown",function(s){return e.handleKeydown(s)})("blur",function(){return e.handleHostBlur()}),2&t&&(fe("dir",e.direction)("id",e.paletteId)("tabindex",e.hostTabindex)("aria-disabled",e.disabledClass)("aria-readonly",e.readonlyAttribute),he("k-widget",e.hostClasses)("k-colorpalette",e.hostClasses)("k-state-disabled",e.disabledClass))},inputs:{id:"id",format:"format",disabled:"disabled",readonly:"readonly",tileSize:"tileSize",value:"value",columns:"columns",palette:"palette",tabindex:"tabindex"},outputs:{selectionChange:"selectionChange",valueChange:"valueChange",cellSelection:"cellSelection"},features:[we([{multi:!0,provide:es,useExisting:He(()=>K5)},{provide:Ds,useExisting:He(()=>K5)},AY,i1e,{provide:J,useExisting:i1e},{provide:An,useValue:"kendo.colorpalette"}]),st],decls:5,vars:2,consts:function(){let n;return n=$localize`:kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.␟9828bb7d78de6289366052cdc37cf0bc74577313␟4885193165402402447:Colorpalette no color chosen`,[["kendoColorPaletteLocalizedMessages","","colorPaletteNoColor",n],["role","listbox"],[1,"k-palette","k-reset"],[4,"ngFor","ngForOf"],["role","option","class","k-item",3,"k-state-selected","id","ngStyle","click",4,"ngFor","ngForOf"],["role","option",1,"k-item",3,"id","ngStyle","click"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"div",1),y(2,"table",2),y(3,"tbody"),A(4,nTt,2,1,"tr",3),_(),_(),_()),2&t&&(b(1),fe("aria-activedescendant",e.activeCellId),b(3),v("ngForOf",e.colorRows))},directives:function(){return[Og,Wn,zo]},encapsulation:2}),ne([G("attr.dir"),Y("design:type",String)],To.prototype,"direction",void 0),ne([G("attr.id"),Y("design:type",String),Y("design:paramtypes",[])],To.prototype,"paletteId",null),ne([p(),Y("design:type",String)],To.prototype,"id",void 0),ne([p(),Y("design:type",String)],To.prototype,"format",void 0),ne([p(),Y("design:type",String),Y("design:paramtypes",[String])],To.prototype,"value",null),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],To.prototype,"columns",null),ne([p(),Y("design:type",Object),Y("design:paramtypes",[Object])],To.prototype,"palette",null),ne([p(),Y("design:type",Number),Y("design:paramtypes",[Number])],To.prototype,"tabindex",null),ne([p(),Y("design:type",Boolean)],To.prototype,"disabled",void 0),ne([p(),Y("design:type",Boolean)],To.prototype,"readonly",void 0),ne([p(),Y("design:type",Object)],To.prototype,"tileSize",void 0),ne([Q(),Y("design:type",S)],To.prototype,"selectionChange",void 0),ne([Q(),Y("design:type",S)],To.prototype,"valueChange",void 0),ne([Q(),Y("design:type",S)],To.prototype,"cellSelection",void 0),ne([G("attr.tabindex"),Y("design:type",Number),Y("design:paramtypes",[])],To.prototype,"hostTabindex",null),ne([G("class.k-widget"),G("class.k-colorpalette"),Y("design:type",Boolean)],To.prototype,"hostClasses",void 0),ne([G("attr.aria-disabled"),G("class.k-state-disabled"),Y("design:type",Boolean),Y("design:paramtypes",[])],To.prototype,"disabledClass",null),ne([G("attr.aria-readonly"),Y("design:type",Boolean),Y("design:paramtypes",[])],To.prototype,"readonlyAttribute",null),ne([Zn("keydown",["$event"]),Y("design:type",Function),Y("design:paramtypes",[Object]),Y("design:returntype",void 0)],To.prototype,"handleKeydown",null),ne([Zn("blur"),Y("design:type",Function),Y("design:paramtypes",[]),Y("design:returntype",void 0)],To.prototype,"handleHostBlur",null),To=K5=ne([Y("design:paramtypes",[$,AY,Be,Ie,J])],To);let Z5=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{colorPaletteNoColor:"colorPaletteNoColor",colorGradientNoColor:"colorGradientNoColor",colorGradientHandle:"colorGradientHandle",clearButton:"clearButton",hueSliderHandle:"hueSliderHandle",opacitySliderHandle:"opacitySliderHandle",hexInputPlaceholder:"hexInputPlaceholder",redInputPlaceholder:"redInputPlaceholder",greenInputPlaceholder:"greenInputPlaceholder",blueInputPlaceholder:"blueInputPlaceholder",alphaInputPlaceholder:"alphaInputPlaceholder"},features:[N]}),ne([p(),Y("design:type",String)],n.prototype,"colorPaletteNoColor",void 0),ne([p(),Y("design:type",String)],n.prototype,"colorGradientNoColor",void 0),ne([p(),Y("design:type",String)],n.prototype,"colorGradientHandle",void 0),ne([p(),Y("design:type",String)],n.prototype,"clearButton",void 0),ne([p(),Y("design:type",String)],n.prototype,"hueSliderHandle",void 0),ne([p(),Y("design:type",String)],n.prototype,"opacitySliderHandle",void 0),ne([p(),Y("design:type",String)],n.prototype,"hexInputPlaceholder",void 0),ne([p(),Y("design:type",String)],n.prototype,"redInputPlaceholder",void 0),ne([p(),Y("design:type",String)],n.prototype,"greenInputPlaceholder",void 0),ne([p(),Y("design:type",String)],n.prototype,"blueInputPlaceholder",void 0),ne([p(),Y("design:type",String)],n.prototype,"alphaInputPlaceholder",void 0),n})();var FY;let dx=FY=class extends Z5{constructor(t){super(),this.service=t}get override(){return!0}};var OY;dx.\u0275fac=function(t){return new(t||dx)(g(J))},dx.\u0275cmp=K({type:dx,selectors:[["kendo-colorpicker-messages"],["kendo-colorgradient-messages"],["kendo-colorpalette-messages"]],features:[we([{provide:Z5,useExisting:He(()=>FY)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),dx=FY=ne([Y("design:paramtypes",[J])],dx);let Og=OY=class extends Z5{constructor(t){super(),this.service=t}};Og.\u0275fac=function(t){return new(t||Og)(g(J))},Og.\u0275dir=R({type:Og,selectors:[["","kendoColorPickerLocalizedMessages",""],["","kendoColorGradientLocalizedMessages",""],["","kendoColorPaletteLocalizedMessages",""]],features:[we([{provide:Z5,useExisting:He(()=>OY)}]),N]}),Og=OY=ne([Y("design:paramtypes",[J])],Og);let r1e=(()=>{let n=class{constructor(e,i){this.host=e,this.ngZone=i}ngAfterContentInit(){this.focusOnNextTick()}focusOnNextTick(){this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.host.nativeElement.focus()))}};return n.\u0275fac=function(e){return new(e||n)(g($),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoFocusOnDomReady",""]]}),n=ne([Y("design:paramtypes",[$,ce])],n),n})(),ukt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[bY,kY,Ut,ql,XA]]}),n})(),hkt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),pkt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),mkt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),v2=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut],KTt,qTt,bY,$Tt,UTt,kY,WTt,ukt,hkt,pkt,mkt]}),n})();const ykt=["assetsContainer"];function _kt(n,t){1&n&&P(0,"span",6)}function vkt(n,t){if(1&n){const e=ht();y(0,"kendo-textbox",3,4),se("valueChange",function(s){return Le(e),I().filterChange.emit(s)}),A(2,_kt,1,0,"ng-template",5),_()}if(2&n){const e=I();v("value",e.filter)("clearButton",!0)("placeholder",e.filterInputPlaceholder)}}const bkt=["kendoTreeViewGroup",""];function Ckt(n,t){if(1&n){const e=ht();y(0,"span",11),se("click",function(){Le(e);const s=I(),o=s.index,r=s.$implicit,a=I();return a.expandNode(a.nodeIndex(o),r,!a.isExpanded(r,a.nodeIndex(o)))}),_()}if(2&n){const e=I(),i=e.$implicit,s=e.index,o=I();he("k-i-collapse",o.isExpanded(i,o.nodeIndex(s)))("k-i-expand",!o.isExpanded(i,o.nodeIndex(s))),v("kendoTreeViewLoading",o.nodeIndex(s))}}function xkt(n,t){if(1&n){const e=ht();y(0,"kendo-checkbox",12),se("checkStateChange",function(){Le(e);const s=I().index,o=I();return o.checkNode(o.nodeIndex(s))}),_()}if(2&n){const e=I(),i=e.$implicit,s=e.index,o=I();v("node",i)("index",o.nodeIndex(s))("isChecked",o.isChecked)}}function wkt(n,t){}const Skt=function(n,t){return{$implicit:n,index:t}};function Tkt(n,t){if(1&n&&(_n(0),A(1,wkt,0,0,"ng-template",13),vn()),2&n){const e=I(),i=e.$implicit,s=e.index,o=I();b(1),v("ngTemplateOutlet",o.nodeTemplateRef)("ngTemplateOutletContext",di(2,Skt,i,o.nodeIndex(s)))}}function kkt(n,t){if(1&n&&(_n(0),H(1),vn()),2&n){const e=I().$implicit,i=I();b(1),_t(" ",i.nodeText(e)," ")}}function Dkt(n,t){if(1&n&&P(0,"ul",14),2&n){const e=I(),i=e.$implicit,s=e.index,o=I();v("nodes",o.fetchChildren)("loadOnDemand",o.loadOnDemand)("checkboxes",o.checkboxes)("expandIcons",o.expandIcons)("selectable",o.selectable)("touchActions",o.touchActions)("children",o.children)("hasChildren",o.hasChildren)("isChecked",o.isChecked)("isDisabled",o.isDisabled)("disabled",o.disabled||o.isDisabled(i,o.nodeIndex(s)))("isExpanded",o.isExpanded)("isSelected",o.isSelected)("isVisible",o.isVisible)("nodeTemplateRef",o.nodeTemplateRef)("loadMoreButtonTemplateRef",o.loadMoreButtonTemplateRef)("parentIndex",o.nodeIndex(s))("parentDataItem",i)("textField",o.nextFields)("loadMoreService",o.loadMoreService)("@toggle",!0)("trackBy",o.trackBy)}}function Mkt(n,t){if(1&n&&(y(0,"li",2),y(1,"div",3),A(2,Ckt,1,5,"span",4),A(3,xkt,1,3,"kendo-checkbox",5),y(4,"span",6),_n(5,7),A(6,Tkt,2,5,"ng-container",8),A(7,kkt,2,1,"ng-container",9),vn(),_(),_(),A(8,Dkt,1,22,"ul",10),_()),2&n){const e=t.$implicit,i=t.index,s=I();he("k-display-none",!s.isVisible(e,s.nodeIndex(i))),v("dataItem",e)("index",s.nodeIndex(i))("parentDataItem",s.parentDataItem)("parentIndex",s.parentIndex)("loadOnDemand",s.loadOnDemand)("checkable",s.checkboxes)("isChecked",s.isChecked(e,s.nodeIndex(i)))("isDisabled",s.disabled||s.isDisabled(e,s.nodeIndex(i)))("isVisible",s.isVisible(e,s.nodeIndex(i)))("expandable",s.expandIcons&&s.hasChildren(e))("isExpanded",s.isExpanded(e,s.nodeIndex(i)))("selectable",s.selectable)("isSelected",s.isSelected(e,s.nodeIndex(i))),fe("aria-setsize",s.totalNodesCount)("data-treeindex",s.nodeIndex(i)),b(2),v("ngIf",s.expandIcons&&s.hasChildren(e)),b(1),v("ngIf",s.checkboxes),b(1),yt("touch-action",s.touchActions?"":"none"),v("dataItem",e)("index",s.nodeIndex(i))("initialSelection",s.isSelected(e,s.nodeIndex(i)))("isSelected",s.isSelected),fe("data-treeindex",s.nodeIndex(i)),b(1),v("ngSwitch",s.hasTemplate),b(1),v("ngSwitchCase",!0),b(2),v("ngIf",s.isExpanded(e,s.nodeIndex(i))&&s.hasChildren(e))}}function Ekt(n,t){1&n&&P(0,"span",19)}function Ikt(n,t){}const Akt=function(n){return{index:n}};function Fkt(n,t){if(1&n&&A(0,Ikt,0,0,"ng-template",13),2&n){const e=I(2);v("ngTemplateOutlet",e.loadMoreButtonTemplateRef)("ngTemplateOutletContext",Yt(2,Akt,e.loadMoreButtonIndex))}}function Okt(n,t){1&n&&(_n(0),H(1," Load more "),vn())}function Rkt(n,t){if(1&n&&(y(0,"li",15),y(1,"div",3),A(2,Ekt,1,0,"span",16),y(3,"span",17),A(4,Fkt,1,4,void 0,18),A(5,Okt,2,0,"ng-container",18),_(),_(),_()),2&n){const e=I();he("k-treeview-load-more-checkboxes-container",e.checkboxes),v("selectable",!1)("checkable",!1)("expandable",!1)("index",e.loadMoreButtonIndex)("parentDataItem",e.parentDataItem)("parentIndex",e.parentIndex),fe("data-treeindex",e.loadMoreButtonIndex),b(2),v("ngIf",e.loadingMoreNodes),b(1),v("index",e.loadMoreButtonIndex),fe("data-treeindex",e.loadMoreButtonIndex),b(1),v("ngIf",e.loadMoreButtonTemplateRef),b(1),v("ngIf",!e.loadMoreButtonTemplateRef)}}const $kt={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1626259226,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"};let b2=(()=>{class n{constructor(){this.changes=new S}notify(){this.changes.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const Ukt=()=>!1,qkt=()=>"none",Xkt=()=>!1,Ykt=()=>!0,c1e=()=>!1,d1e=()=>!0,Kkt=(n,t)=>t;let Hy=(()=>{let n=class{constructor(){this.changes=new Z}expand(e,i){this.changes.next({dataItem:i,index:e,expand:!0})}collapse(e,i){this.changes.next({dataItem:i,index:e,expand:!1})}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),Jv=(()=>{let n=class{constructor(){this.INDEX_SEPARATOR="_"}nodeIndex(e="",i=""){return`${i}${i?this.INDEX_SEPARATOR:""}${e}`}indexForLevel(e,i){return e.split(this.INDEX_SEPARATOR).slice(0,i).join(this.INDEX_SEPARATOR)}lastLevelIndex(e=""){const i=e.split(this.INDEX_SEPARATOR);return i.length?parseInt(i[i.length-1],10):NaN}level(e){return e.split(this.INDEX_SEPARATOR).length}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),C2=(()=>{let n=class{constructor(){this.changes=new Z}notifyLoaded(e){this.changes.next(e)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const Zkt=/^(?:a|input|select|option|textarea|button|object)$/i,ux=(n,t)=>{const e=n.matches||n.msMatchesSelector||n.webkitMatchesSelector;return!!e&&e.call(n,t)},SD=(n,t)=>{if(!document.documentElement.contains(n))return null;let e=n;for(;null!==e&&1===e.nodeType;){if(ux(e,t))return e;e=e.parentElement||e.parentNode}return null},u1e=()=>{},vt=n=>null!=n,p1e=n=>Array.isArray(n),TD=n=>{const t="li.k-treeview-item";return Ft()?n.closest?n.closest(t):SD(n,t):null},f1e=n=>{if(n.tagName){const t=n.tagName.toLowerCase(),e=n.getAttribute("tabIndex"),i="-1"===e;let s=null!==e&&!i;return Zkt.test(t)&&(s=!n.disabled&&!i),s}return!1},g1e=n=>vt(SD(n,".k-in.k-treeview-load-more-button")),LY=(n,t)=>Boolean(((n,t)=>{for(;n&&!t(n);)n=n.parentNode;return n})(n,e=>e===t)),m1e=n=>n.nativeElement.querySelector('li[tabindex="0"]'),NY=n=>n?n.getAttribute("data-treeindex"):"",Rg=n=>(n||{}).index,x2=(n,t)=>[n,t].filter(e=>vt(e)).join("_"),BY=n=>n||{},VY=n=>BY(n).children||[],zY=n=>{if(!Array.isArray(n)||0===n.length)return null;for(let i=n.length-1;i>=0;i-=1){const s=n[i];if(s.visible)return s}return null};class oDt{constructor(){this.ib=new Jv,this.nodes=[]}firstVisibleNode(){return(this.nodes||[]).find(t=>t.visible)}lastVisibleNode(){let t=zY(this.nodes);for(;vt(t)&&VY(t).length>0;){const e=VY(t),i=zY(e);if(!vt(i))return t;t=i}return t}closestNode(t){const{prev:e}=BY(this.findNode(t)),i=e||this.firstVisibleNode();return BY(i).index===t?this.visibleSibling(i,1):i}firstFocusableNode(){return this.nodes.find(t=>!t.disabled&&t.visible)}findNode(t){return this.find(t,this.nodes)}findParent(t){const e=this.ib.level(t)-1;return this.findNode(this.ib.indexForLevel(t,e))}findVisibleChild(t){const e=this.findNode(t);return VY(e).find(s=>s.visible)}findVisiblePrev(t){const e=t.index,i=this.findParent(e),s=this.ib.lastLevelIndex(e),r=this.container(i).slice(0,s).every(c=>!c.visible);if(0===s||r)return i;const a=this.findNode(e);let l=this.visibleSibling(a,-1);if(l){let c=this.container(l);for(;c.length>0&&c.some(d=>d.visible);)l=zY(c),c=this.container(l)}return l}findVisibleNext(t){const e=this.container(t),i=e.some(s=>s.visible);return 0!==e.length&&i?e.find(s=>s.visible):this.visibleSibling(t,1)}registerItem(t,e,i,s=!1,o=!0){const r=[],a=this.ib.level(e),l=this.findParent(e);(l||1===a)&&this.insert({id:t,children:r,index:e,parent:l,disabled:i,loadMoreButton:s,visible:o},l)}unregisterItem(t,e){const i=this.find(e,this.nodes);if(!i||i.id!==t)return;const s=this.container(i.parent);s.splice(s.indexOf(i),1)}childLevel(t){const e=t.filter(i=>vt(i));return e&&e.length?this.ib.level(e[0].index):1}container(t){return t?t.children:this.nodes}find(t,e){const i=this.childLevel(e),s=this.ib.indexForLevel(t,i),o=i===this.ib.level(t),r=e.find(a=>a&&a.index===s);return r?o?r:this.find(t,r.children):null}insert(t,e){this.container(e).splice(this.ib.lastLevelIndex(t.index),0,t)}visibleSibling(t,e){if(!t)return null;const i=this.findParent(t.index),s=this.container(i);let o=s.indexOf(t)+e,r=s[o];for(;vt(r);){if(r.visible)return r;o+=e,r=s[o]}return this.visibleSibling(i,e)}}let Gy=(()=>{let n=class{constructor(e){this.localization=e,this.expands=new Z,this.moves=new Z,this.checks=new Z,this.selects=new Z,this.loadMore=new Z,this.navigable=!0,this.actions={[_e.ArrowUp]:()=>this.activate(this.model.findVisiblePrev(this.focusableItem)),[_e.ArrowDown]:()=>this.activate(this.model.findVisibleNext(this.focusableItem)),[_e.ArrowLeft]:()=>!this.isLoadMoreButton&&this.expand({expand:this.localization.rtl,intercept:this.localization.rtl?this.moveToFirstVisibleChild:this.moveToParent}),[_e.ArrowRight]:()=>!this.isLoadMoreButton&&this.expand({expand:!this.localization.rtl,intercept:this.localization.rtl?this.moveToParent:this.moveToFirstVisibleChild}),[_e.Home]:()=>this.activate(this.model.firstVisibleNode()),[_e.End]:()=>this.activate(this.model.lastVisibleNode()),[_e.Enter]:()=>this.handleEnter(),[_e.Space]:()=>this.handleSpace()},this.isFocused=!1,this._model=new oDt,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}get model(){return this._model}set model(e){this._model=e}get activeIndex(){return Rg(this.activeItem)||null}get isActiveExpanded(){return this.activeItem&&this.activeItem.children.length>0}get isLoadMoreButton(){return this.activeItem&&this.activeItem.loadMoreButton}get focusableItem(){return this.activeItem||this.model.firstFocusableNode()}activate(e){!this.navigable||!e||this.isActive(Rg(e))||(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())}activateParent(e){this.activate(this.model.findParent(e))}activateIndex(e){!e||this.activate(this.model.findNode(e))}activateClosest(e){!e||Rg(this.focusableItem)!==e||(this.activeItem=this.model.closestNode(e),this.notifyMove())}activateFocusable(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}deactivate(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}checkIndex(e){this.isDisabled(e)||this.checks.next(e)}selectIndex(e){this.isDisabled(e)||this.selects.next(e)}notifyLoadMore(e){!vt(e)||this.loadMore.next(e)}isActive(e){return!!e&&this.isFocused&&this.activeIndex===e}isFocusable(e){return Rg(this.focusableItem)===e}isDisabled(e){return this.model.findNode(e).disabled}registerItem(e,i,s,o=!1,r=!0){const a=this.model.findNode(i);vt(a)&&(this.model.unregisterItem(a.id,a.index),this.isActive(i)&&this.deactivate()),this.model.registerItem(e,i,s,o,r)}unregisterItem(e,i){this.isActive(i)&&this.activateParent(i),this.model.unregisterItem(e,i)}move(e){if(!this.navigable)return;const i=this.actions[e.keyCode];!i||(i(),e.preventDefault())}expand({expand:e,intercept:i}){const s=Rg(this.activeItem);!s||i(s)||this.notifyExpand(e)}moveToParent(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(Rg(this.activeItem))),!0)}moveToFirstVisibleChild(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(Rg(this.activeItem))),!0)}notifyExpand(e){this.expands.next(this.navigationState(e))}notifyMove(){this.moves.next(this.navigationState())}navigationState(e=!1){return{expand:e,index:this.activeIndex,isFocused:this.isFocused}}handleEnter(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))}handleSpace(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}};return n.\u0275fac=function(e){return new(e||n)(V(J))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=$e([Oe("design:paramtypes",[J])],n),n})(),w2=(()=>{let n=class{constructor(){this.changes=new Z}childrenLoaded(e,i){this.changes.next({item:e,children:i})}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),hx=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoTreeViewNodeTemplate",""]]}),n=$e([cD(0,gt()),Oe("design:paramtypes",[ve])],n),n})(),px=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),n=$e([cD(0,gt()),Oe("design:paramtypes",[ve])],n),n})(),td=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),fx=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),gx=(()=>{let n=class{constructor(){this.changes=new Z}isFirstSelected(e){return this.firstIndex===e}setFirstSelected(e,i){this.firstIndex===e&&!1===i?this.firstIndex=null:!this.firstIndex&&i&&(this.firstIndex=e)}select(e,i){this.changes.next({dataItem:i,index:e})}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const rDt=/\d+$/;let mx=(()=>{let n=class{constructor(){this.map=new Map}reset(){this.map.clear()}registerItem(e,i){const s={children:[],item:e,parent:this.item(Rg(i))};this.map.set(e.index,s)}registerChildren(e,i){const s=this.item(e);!s||(s.children=i)}unregisterItem(e,i){const s=this.item(e);s&&s.item.dataItem===i&&(this.map.delete(e),s.parent&&s.parent.children&&(s.parent.children=s.parent.children.filter(o=>o.dataItem!==i)))}replaceItem(e,i,s){!i||(this.unregisterItem(e,i.dataItem),this.registerItem(i,s),this.addToParent(i,s))}itemLookup(e){const i=this.item(e);return i?{children:this.mapChildren(i.children),item:i.item,parent:i.parent}:null}hasItem(e){return this.map.has(e)}item(e){return this.map.get(e)||null}addToParent(e,i){if(i){const s=this.item(i.index),o=parseInt(rDt.exec(e.index)[0],10);s.children=s.children||[],s.children.splice(o,0,e)}}mapChildren(e=[]){return e.map(i=>{const{item:s,parent:o,children:r}=this.item(i.index);return{children:this.mapChildren(r),item:s,parent:o}})}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const lDt=[Hy,Jv,mx,C2,w2,Gy,gx,b2,J,{provide:An,useValue:"kendo.treeview"},{provide:td,useExisting:He(()=>mr)},{provide:fx,useExisting:He(()=>mr)}];let mr=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d,u,h){this.element=e,this.changeDetectorRef=i,this.expandService=s,this.navigationService=o,this.nodeChildrenService=r,this.selectionService=a,this.treeViewLookupService=l,this.ngZone=c,this.renderer=d,this.dataChangeNotification=u,this.localization=h,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=()=>this.data,this.childrenLoaded=new S,this.onBlur=new S,this.onFocus=new S,this.expand=new S,this.collapse=new S,this.nodeDragStart=new S,this.nodeDrag=new S,this.filterStateChange=new S,this.nodeDrop=new S,this.nodeDragEnd=new S,this.addItem=new S,this.removeItem=new S,this.checkedChange=new S,this.selectionChange=new S,this.filterChange=new S,this.nodeClick=new S,this.nodeDblClick=new S,this.trackBy=Kkt,this.isDisabled=Xkt,this.isVisible=d1e,this.navigable=!0,this.children=()=>Vt([]),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 Hs([]),this._animate=!0,this.subscriptions=new Je,this.domSubscriptions=[],Ii($kt)}get direction(){return this.localization.rtl?"rtl":"ltr"}set animate(e){this._animate=e}get animate(){return!this._animate}set nodeTemplateRef(e){this.nodeTemplate=e}set loadMoreButtonTemplateRef(e){this.loadMoreButtonTemplate=e}set nodes(e){this.dataChangeNotification.notify(),this.data.next(e)}get nodes(){return this.data.value}get hasChildren(){return this._hasChildren||Ukt}set hasChildren(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isChecked(){return this._isChecked||qkt}set isChecked(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)}get isExpanded(){return this._isExpanded||Ykt}set isExpanded(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isSelected(){return this._isSelected||c1e}set isSelected(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)}ngOnChanges(e){this.navigationService.navigable=Boolean(this.navigable),Xo(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(e=>e())}ngOnInit(){this.subscriptions.add(this.nodeChildrenService.changes.subscribe(e=>this.childrenLoaded.emit(e))),this.subscriptions.add(this.expandService.changes.subscribe(({index:e,dataItem:i,expand:s})=>s?this.expand.emit({index:e,dataItem:i}):this.collapse.emit({index:e,dataItem:i}))),this.subscriptions.add(this.navigationService.checks.subscribe(e=>this.checkedChange.emit(this.treeViewLookupService.itemLookup(e)))),this.subscriptions.add(this.selectionService.changes.subscribe(e=>{Kt(this.selectionChange)&&this.ngZone.run(()=>{this.selectionChange.emit(e)})})),this.element&&this.ngZone.runOutsideAngular(()=>{this.attachDomHandlers()})}blur(){if(!Ft())return;const e=m1e(this.element);document.activeElement===e&&e.blur()}focus(e){const i=e||Rg(this.navigationService.focusableItem);this.navigationService.activateIndex(i);const s=m1e(this.element);s&&s.focus()}itemLookup(e){return this.treeViewLookupService.itemLookup(e)}rebindChildren(){this.dataChangeNotification.notify()}expandNode(e,i){this.expandService.expand(i,e)}collapseNode(e,i){this.expandService.collapse(i,e)}getNodePageSize(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)}setNodePageSize(e,i){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,i)}preloadChildNodes(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}attachDomHandlers(){const 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)))}focusHandler(e){let i;ux(e.target,".k-treeview-item")?i=e.target:f1e(e.target)||(i=TD(e.target)),i&&(this.navigationService.activateIndex(NY(e.target)),!this.isActive&&Kt(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()}),this.isActive=!0)}blurHandler(e){this.isActive&&ux(e.target,".k-treeview-item")&&(!e.relatedTarget||!ux(e.relatedTarget,".k-treeview-item")||!LY(e.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,Kt(this.onBlur)&&this.ngZone.run(()=>{this.onBlur.emit()}))}clickHandler(e){const i=e.target;if("contextmenu"===e.type&&!Kt(this.nodeClick)||"click"===e.type&&!Kt(this.nodeClick)&&!Kt(this.selectionChange)&&!g1e(i)||"dblclick"===e.type&&!Kt(this.nodeDblClick)||f1e(i)||!(n=>{if(!Ft())return null;let e=n;for(;e&&!ux(e,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)e=e.parentNode;return e?ux(e,".k-in:not(.k-treeview-load-more-button)"):void 0})(i)&&!g1e(i)||!LY(i,this.element.nativeElement))return;const s=NY(TD(i));!s||this.navigationService.isDisabled(s)||this.ngZone.run(()=>{const o=this.treeViewLookupService.itemLookup(s);if("click"===e.type){if(this.navigationService.model.findNode(s).loadMoreButton)return void this.navigationService.notifyLoadMore(s);this.navigationService.selectIndex(s)}("dblclick"===e.type?this.nodeDblClick:this.nodeClick).emit({item:o.item,originalEvent:e,type:e.type})})}keydownHandler(e){this.isActive&&this.navigable&&this.ngZone.run(()=>{this.navigationService.move(e)})}verifyLoadMoreService(){if(En()&&!vt(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")}registerLookupItems(e,i=null){if(!vt(e)||0===e.length)return;const s=Rg(i),o=e.map((r,a)=>((n,t,e)=>vt(n)?{dataItem:n,index:x2(e,t)}:null)(r,a,s));vt(i)&&this.treeViewLookupService.registerChildren(s,o),o.forEach(r=>{this.treeViewLookupService.registerItem(r,i),this.hasChildren(r.dataItem)&&this.children(r.dataItem).subscribe(a=>this.registerLookupItems(a,r))})}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Be),g(Hy),g(Gy),g(w2),g(gx),g(mx),g(ce),g(Ie),g(b2),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-treeview"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,hx,7),Ce(s,px,7)),2&e){let o;U(o=W())&&(i.nodeTemplate=o.first),U(o=W())&&(i.loadMoreButtonTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&Ae(ykt,7,Gt),2&e){let s;U(s=W())&&(i.assetsContainer=s.first)}},hostVars:7,hostBindings:function(e,i){2&e&&(fe("role",i.role)("dir",i.direction),XE("@.disabled",i.animate),he("k-widget",i.classNames)("k-treeview",i.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",trackBy:"trackBy",isDisabled:"isDisabled",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],nodes:"nodes",hasChildren:"hasChildren",isChecked:"isChecked",isExpanded:"isExpanded",isSelected:"isSelected",textField:"textField"},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:[we(lDt),st],decls:4,vars:19,consts:[[3,"value","clearButton","placeholder","valueChange",4,"ngIf"],["kendoTreeViewGroup","","role","group",1,"k-treeview-lines",3,"loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy"],["assetsContainer",""],[3,"value","clearButton","placeholder","valueChange"],["filterInput",""],["kendoTextBoxPrefixTemplate",""],[1,"k-icon","k-i-search"]],template:function(e,i){1&e&&(A(0,vkt,3,3,"kendo-textbox",0),P(1,"ul",1),wn(2,null,2)),2&e&&(v("ngIf",i.filterable),b(1),v("loadOnDemand",i.loadOnDemand)("checkboxes",i.checkboxes)("expandIcons",i.expandIcons)("selectable",i.selectable)("touchActions",i.touchActions)("children",i.children)("hasChildren",i.hasChildren)("isChecked",i.isChecked)("isDisabled",i.isDisabled)("isExpanded",i.isExpanded)("isSelected",i.isSelected)("isVisible",i.isVisible)("nodeTemplateRef",null==i.nodeTemplate?null:i.nodeTemplate.templateRef)("loadMoreButtonTemplateRef",null==i.loadMoreButtonTemplate?null:i.loadMoreButtonTemplate.templateRef)("textField",i.textField)("nodes",i.fetchNodes)("loadMoreService",i.loadMoreService)("trackBy",i.trackBy))},directives:function(){return[pt,x1e,Is,G5]},encapsulation:2}),$e([G("class.k-widget"),G("class.k-treeview"),Oe("design:type",Boolean)],n.prototype,"classNames",void 0),$e([G("attr.role"),Oe("design:type",String)],n.prototype,"role",void 0),$e([G("attr.dir"),Oe("design:type",String),Oe("design:paramtypes",[])],n.prototype,"direction",null),$e([at("assetsContainer",{read:Gt,static:!0}),Oe("design:type",Gt)],n.prototype,"assetsContainer",void 0),$e([p(),Oe("design:type",String)],n.prototype,"filterInputPlaceholder",void 0),$e([p(),G("@.disabled"),Oe("design:type",Boolean),Oe("design:paramtypes",[Boolean])],n.prototype,"animate",null),$e([Q(),Oe("design:type",S)],n.prototype,"childrenLoaded",void 0),$e([Q("blur"),Oe("design:type",S)],n.prototype,"onBlur",void 0),$e([Q("focus"),Oe("design:type",S)],n.prototype,"onFocus",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"expand",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"collapse",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"nodeDragStart",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"nodeDrag",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"filterStateChange",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"nodeDrop",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"nodeDragEnd",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"addItem",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"removeItem",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"checkedChange",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"selectionChange",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"filterChange",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"nodeClick",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"nodeDblClick",void 0),$e([ct(hx,{static:!0}),Oe("design:type",hx)],n.prototype,"nodeTemplate",void 0),$e([p("nodeTemplate"),Oe("design:type",hx),Oe("design:paramtypes",[hx])],n.prototype,"nodeTemplateRef",null),$e([ct(px,{static:!0}),Oe("design:type",px)],n.prototype,"loadMoreButtonTemplate",void 0),$e([p("loadMoreButtonTemplate"),Oe("design:type",px),Oe("design:paramtypes",[px])],n.prototype,"loadMoreButtonTemplateRef",null),$e([p(),Oe("design:type",Function)],n.prototype,"trackBy",void 0),$e([p(),Oe("design:type",Array),Oe("design:paramtypes",[Array])],n.prototype,"nodes",null),$e([p(),Oe("design:type",Object)],n.prototype,"textField",void 0),$e([p(),Oe("design:type",Function),Oe("design:paramtypes",[Function])],n.prototype,"hasChildren",null),$e([p(),Oe("design:type",Function),Oe("design:paramtypes",[Function])],n.prototype,"isChecked",null),$e([p(),Oe("design:type",Function)],n.prototype,"isDisabled",void 0),$e([p(),Oe("design:type",Function),Oe("design:paramtypes",[Function])],n.prototype,"isExpanded",null),$e([p(),Oe("design:type",Function),Oe("design:paramtypes",[Function])],n.prototype,"isSelected",null),$e([p(),Oe("design:type",Function)],n.prototype,"isVisible",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"navigable",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"children",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"loadOnDemand",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"filterable",void 0),$e([p(),Oe("design:type",String)],n.prototype,"filter",void 0),n=$e([Oe("design:paramtypes",[$,Be,Hy,Gy,w2,gx,mx,ce,Ie,b2,J])],n),n})(),x1e=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c){this.expandService=e,this.loadingService=i,this.indexBuilder=s,this.treeViewLookupService=o,this.navigationService=r,this.nodeChildrenService=a,this.dataChangeNotification=l,this.changeDetectorRef=c,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new Je,this.isChecked=()=>"none",this.isDisabled=()=>!1,this.isExpanded=()=>!1,this.isVisible=()=>!0,this.isSelected=()=>!1,this.children=()=>Vt([]),this.hasChildren=()=>!1}get moreNodesAvailable(){return!!vt(this.loadMoreService)&&this.pageSize0?this.pageSize:0):this._data}set data(e){this._data=e,this.registerLoadedNodes(this.data)}get loadMoreButtonIndex(){return this.loadMoreService?this.nodeIndex(this.data.length):null}get totalNodesCount(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}get hasTemplate(){return vt(this.nodeTemplateRef)}expandNode(e,i,s){s?this.expandService.expand(e,i):this.expandService.collapse(e,i)}checkNode(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)}nodeIndex(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)}nodeText(e){return pa(p1e(this.textField)?this.textField[0]:this.textField)(e)}ngOnDestroy(){vt(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),vt(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}ngOnInit(){this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(dt(e=>e===this.loadMoreButtonIndex)).subscribe(this.loadMoreNodes.bind(this)))}ngOnChanges(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}fetchChildren(e,i){return this.children(e).pipe(fl(()=>(this.loadingService.notifyLoaded(i),Op)),lt(()=>this.loadingService.notifyLoaded(i)))}get nextFields(){return p1e(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}loadMoreNodes(){vt(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}loadMoreLocalNodes(){const e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)}fetchMoreNodes(){this.loadingMoreNodes||(this.loadingMoreNodes=!0,vt(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(y$(()=>this.loadingMoreNodes=!1)).subscribe(e=>{if(!(Array.isArray(e)&&e.length>0))return;const i=this.loadMoreButtonIndex;this.pageSize+=e.length,this.data=this.data.concat(e),this.navigationService.isActive(i)&&(this.changeDetectorRef.detectChanges(),this.reselectItemAt(i))}))}setNodeChildren(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)}mapToTreeItem(e){return this.parentIndex?e.map((i,s)=>({dataItem:i,index:this.nodeIndex(s)})):[]}emitChildrenLoaded(e){if(!this.parentIndex)return;const i=e.filter(s=>s.dataItem);this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},i)}subscribeToNodesChange(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(e=>{this.data=e,this.initialNodesLoaded=!0})}reselectItemAt(e){!vt(e)||(this.navigationService.deactivate(),this.navigationService.activateIndex(e))}registerLoadedNodes(e=[]){const i=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(i),this.emitChildrenLoaded(i)}};return n.\u0275fac=function(e){return new(e||n)(g(Hy),g(C2),g(Jv),g(mx),g(Gy),g(w2),g(b2),g(Be))},n.\u0275cmp=K({type:n,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(e,i){2&e&&(fe("role",i.role),he("k-group",i.kGroupClass))},inputs:{loadOnDemand:"loadOnDemand",textField:"textField",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren",checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",trackBy:"trackBy",nodes:"nodes",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService"},features:[st],attrs:bkt,decls:2,vars:3,consts:[["class","k-item 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-item k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-item","k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[1,"k-mid"],["class","k-icon",3,"k-i-collapse","k-i-expand","kendoTreeViewLoading","click",4,"ngIf"],["tabindex","-1",3,"node","index","isChecked","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-in",3,"dataItem","index","initialSelection","isSelected"],[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-icon",3,"kendoTreeViewLoading","click"],["tabindex","-1",3,"node","index","isChecked","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-item","k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],["class","k-icon k-i-loading k-i-expand",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-in","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading","k-i-expand"]],template:function(e,i){1&e&&(A(0,Mkt,9,29,"li",0),A(1,Rkt,6,14,"li",1)),2&e&&(v("ngForOf",i.data)("ngForTrackBy",i.trackBy),b(1),v("ngIf",i.initialNodesLoaded&&i.moreNodesAvailable))},directives:function(){return[Wn,pt,$1e,U1e,Dh,tg,pL,z1e,W1e,zs,n]},encapsulation:2,data:{animation:[fc("toggle",[Go("void => *",[zt({height:0}),Xi("0.1s ease-in",zt({height:"*"}))]),Go("* => void",[zt({height:"*"}),Xi("0.1s ease-in",zt({height:0}))])])]}}),$e([G("class.k-group"),Oe("design:type",Boolean)],n.prototype,"kGroupClass",void 0),$e([G("attr.role"),Oe("design:type",String)],n.prototype,"role",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"checkboxes",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"expandIcons",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"disabled",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"selectable",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"touchActions",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"loadOnDemand",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"trackBy",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"nodes",void 0),$e([p(),Oe("design:type",Object)],n.prototype,"textField",void 0),$e([p(),Oe("design:type",Object)],n.prototype,"parentDataItem",void 0),$e([p(),Oe("design:type",String)],n.prototype,"parentIndex",void 0),$e([p(),Oe("design:type",ve)],n.prototype,"nodeTemplateRef",void 0),$e([p(),Oe("design:type",ve)],n.prototype,"loadMoreButtonTemplateRef",void 0),$e([p(),Oe("design:type",Object)],n.prototype,"loadMoreService",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"isChecked",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"isDisabled",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"isExpanded",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"isVisible",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"isSelected",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"children",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"hasChildren",void 0),n=$e([Oe("design:paramtypes",[Hy,C2,Jv,mx,Gy,w2,b2,Be])],n),n})(),GY=(()=>{let n=class{constructor(e){this.treeView=e,this.selectedKeysChange=new S,this.subscriptions=new Je,this.selectActions={multiple:i=>this.selectMultiple(i),single:i=>this.selectSingle(i)},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=(i,s)=>this.selectedKeys.indexOf(this.itemKey({dataItem:i,index:s}))>-1}set isSelected(e){this.treeView.isSelected=e}get selectedKeys(){return this._selectedKeys}set selectedKeys(e){this._selectedKeys=e}get getAriaMultiselectable(){return"multiple"===this.options.mode}get options(){const e={enabled:!0,mode:"single"};if(!vt(this.selection)||"string"==typeof this.selection)return e;const i=(n=>"boolean"==typeof n)(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,i)}ngOnDestroy(){this.subscriptions.unsubscribe()}itemKey(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index}select(e){const{enabled:i,mode:s}=this.options;!i||(this.selectActions[s]||u1e)(e)}selectSingle(e){const i=this.itemKey(e);this.selectedKeys[0]!==i&&(this.selectedKeys=[i],this.notify())}selectMultiple(e){const i=this.itemKey(e),s=this.selectedKeys.indexOf(i),o=s>-1;!vt(i)||(o?this.selectedKeys.splice(s,1):this.selectedKeys.push(i),this.notify())}notify(){this.selectedKeysChange.emit(this.selectedKeys.slice())}};return n.\u0275fac=function(e){return new(e||n)(g(mr))},n.\u0275dir=R({type:n,selectors:[["","kendoTreeViewSelectable",""]],hostVars:1,hostBindings:function(e,i){2&e&&fe("aria-multiselectable",i.getAriaMultiselectable)},inputs:{isSelected:"isSelected",selectedKeys:"selectedKeys",selectKey:["selectBy","selectKey"],selection:["kendoTreeViewSelectable","selection"]},outputs:{selectedKeysChange:"selectedKeysChange"}}),$e([p(),Oe("design:type",Function),Oe("design:paramtypes",[Function])],n.prototype,"isSelected",null),$e([p("selectBy"),Oe("design:type",Object)],n.prototype,"selectKey",void 0),$e([p("kendoTreeViewSelectable"),Oe("design:type",Object)],n.prototype,"selection",void 0),$e([p(),Oe("design:type",Array),Oe("design:paramtypes",[Array])],n.prototype,"selectedKeys",null),$e([Q(),Oe("design:type",S)],n.prototype,"selectedKeysChange",void 0),$e([G("attr.aria-multiselectable"),Oe("design:type",Boolean),Oe("design:paramtypes",[])],n.prototype,"getAriaMultiselectable",null),n=$e([Oe("design:paramtypes",[mr])],n),n})();new RegExp("(auto|scroll)"),new Jv;let z1e=(()=>{let n=class{constructor(e,i,s){this.expandService=e,this.loadingService=i,this.cd=s,this._loading=!1}get loading(){return this._loading}set loading(e){this._loading=e,this.cd.markForCheck()}ngOnInit(){const e=this.loadingService.changes.pipe(dt(i=>i===this.index));this.subscription=this.expandService.changes.pipe(dt(({index:i})=>i===this.index),lt(({expand:i})=>{!i&&this.loading&&(this.loading=!1)}),dt(({expand:i})=>i),ls(i=>Vt(i).pipe(my(100),et(e)))).subscribe(()=>this.loading=!0),this.subscription.add(e.subscribe(()=>this.loading=!1))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}};return n.\u0275fac=function(e){return new(e||n)(g(Hy),g(C2),g(Be))},n.\u0275dir=R({type:n,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-i-loading",i.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),$e([G("class.k-i-loading"),Oe("design:type",Boolean),Oe("design:paramtypes",[Boolean])],n.prototype,"loading",null),$e([p("kendoTreeViewLoading"),Oe("design:type",String)],n.prototype,"index",void 0),n=$e([Oe("design:paramtypes",[Hy,C2,Be])],n),n})();new Jv;const j1e=(n,t)=>({dataItem:t,index:n});let IDt=0,$1e=(()=>{let n=class{constructor(e,i,s,o,r,a,l){this.element=e,this.expandService=i,this.navigationService=s,this.selectionService=o,this.lookupService=r,this.renderer=a,this.ib=l,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=IDt++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}set isChecked(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"}get isExpanded(){return this._isExpanded||!1}set isExpanded(e){this._isExpanded=e}get isSelected(){return this._isSelected||!1}set isSelected(e){this._isSelected=e}get isButton(){return"button"===this.role}get treeItem(){return j1e(this.index,this.dataItem)}get parentTreeItem(){return this.parentDataItem?j1e(this.parentIndex,this.parentDataItem):null}ngOnInit(){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()}ngOnChanges(e){const{index:i,isDisabled:s}=e;Xo(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),s&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(i),Xo(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()}ngOnDestroy(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((e,i)=>(i.unsubscribe(),e),[])}subscribe(){this.subscriptions=[this.navigationService.moves.subscribe(()=>{this.updateTabIndex(),this.focusItem()}),this.navigationService.expands.pipe(dt(({index:e})=>e===this.index&&!this.isDisabled)).subscribe(({expand:e})=>this.expand(e))]}registerNavigationItem(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}activateItem(){if(this.isDisabled)return;const e=this.navigationService,i=this.selectionService,s=this.index;i.setFirstSelected(s,this.isSelected),!e.isActive(s)&&i.isFirstSelected(s)&&e.activateIndex(s)}expand(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)}isFocusable(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}focusItem(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()}moveLookupItem(e={}){const{dataItem:i,index:s,parentDataItem:o,parentIndex:r}=e;s&&s.firstChange||!(i||s||o||r)||this.lookupService.replaceItem((s||{}).previousValue||this.index,this.treeItem,this.parentTreeItem)}moveNavigationItem(e={}){const{currentValue:i,firstChange:s,previousValue:o}=e;!s&&vt(i)&&vt(o)&&(this.navigationService.unregisterItem(this.id,o),this.navigationService.registerItem(this.id,i,this.isDisabled,this.isButton))}updateNodeAvailability(){const 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)}setAriaAttributes(){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)}setDisabledClass(){this.setClass("k-state-disabled",this.isDisabled)}setClass(e,i){this.renderer[i?"addClass":"removeClass"](this.element.nativeElement,e)}updateTabIndex(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}setAttribute(e,i){vt(i)?this.renderer.setAttribute(this.element.nativeElement,e,i):this.renderer.removeAttribute(this.element.nativeElement,e)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Hy),g(Gy),g(gx),g(mx),g(Ie),g(Jv))},n.\u0275dir=R({type:n,selectors:[["","kendoTreeViewItem",""]],inputs:{role:"role",loadOnDemand:"loadOnDemand",isDisabled:"isDisabled",isVisible:"isVisible",isChecked:"isChecked",isExpanded:"isExpanded",isSelected:"isSelected",dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",checkable:"checkable",selectable:"selectable",expandable:"expandable"},features:[st]}),$e([p(),Oe("design:type",Object)],n.prototype,"dataItem",void 0),$e([p(),Oe("design:type",String)],n.prototype,"index",void 0),$e([p(),Oe("design:type",Object)],n.prototype,"parentDataItem",void 0),$e([p(),Oe("design:type",String)],n.prototype,"parentIndex",void 0),$e([p(),Oe("design:type",String)],n.prototype,"role",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"loadOnDemand",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"checkable",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"selectable",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"expandable",void 0),$e([p(),Oe("design:type",String),Oe("design:paramtypes",[String])],n.prototype,"isChecked",null),$e([p(),Oe("design:type",Boolean)],n.prototype,"isDisabled",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"isVisible",void 0),$e([p(),Oe("design:type",Boolean),Oe("design:paramtypes",[Boolean])],n.prototype,"isExpanded",null),$e([p(),Oe("design:type",Boolean),Oe("design:paramtypes",[Boolean])],n.prototype,"isSelected",null),n=$e([Oe("design:paramtypes",[$,Hy,Gy,gx,mx,Ie,Jv])],n),n})(),U1e=(()=>{let n=class{constructor(e,i,s,o){this.element=e,this.navigationService=i,this.selectionService=s,this.renderer=o,this.initialSelection=!1,this.isSelected=c1e,this.subscriptions=new Je,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(dt(r=>r===this.index)).subscribe(r=>this.selectionService.select(r,this.dataItem))),this.subscriptions.add(this.selectionService.changes.subscribe(()=>{this.updateSelectionClass(this.isSelected(this.dataItem,this.index))}))}ngOnChanges(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()}ngOnDestroy(){this.subscriptions.unsubscribe()}updateFocusClass(){this.render(this.navigationService.isActive(this.index),"k-state-focused")}updateSelectionClass(e){this.render(e,"k-state-selected")}render(e,i){this.renderer[e?"addClass":"removeClass"](this.element.nativeElement,i)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Gy),g(gx),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","kendoTreeViewItemContent",""]],inputs:{initialSelection:"initialSelection",isSelected:"isSelected",dataItem:"dataItem",index:"index"},features:[st]}),$e([p(),Oe("design:type",Object)],n.prototype,"dataItem",void 0),$e([p(),Oe("design:type",String)],n.prototype,"index",void 0),$e([p(),Oe("design:type",Boolean)],n.prototype,"initialSelection",void 0),$e([p(),Oe("design:type",Function)],n.prototype,"isSelected",void 0),n=$e([Oe("design:paramtypes",[$,Gy,gx,Ie])],n),n})(),W1e=(()=>{let n=class{constructor(e,i,s){this.element=e,this.renderer=i,this.changeDetector=s,this.id=`_${cs()}`,this.tabindex=0,this.checkStateChange=new S,this.checkState="none"}get classWrapper(){return!0}get indeterminate(){return"indeterminate"===this.checkState}get checked(){return"checked"===this.checkState}ngOnInit(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}ngDoCheck(){this.checkState=this.isChecked(this.node,this.index)}handleChange(e){const i=e.target.checked?"checked":"none";this.checkState=i,this.changeDetector.detectChanges(),this.checkStateChange.emit(i)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-checkbox-wrapper",i.classWrapper)},inputs:{id:"id",tabindex:"tabindex",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:6,consts:[["type","checkbox",1,"k-checkbox",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(e,i){1&e&&(y(0,"input",0),se("change",function(o){return i.handleChange(o)}),_(),y(1,"label",1),H(2),_()),2&e&&(v("id",i.id)("checked",i.checked)("indeterminate",i.indeterminate)("tabindex",i.tabindex),b(1),v("for",i.id),b(1),un(i.labelText))},encapsulation:2}),$e([G("class.k-checkbox-wrapper"),Oe("design:type",Boolean),Oe("design:paramtypes",[])],n.prototype,"classWrapper",null),$e([p(),Oe("design:type",String)],n.prototype,"id",void 0),$e([p(),Oe("design:type",Object)],n.prototype,"isChecked",void 0),$e([p(),Oe("design:type",Object)],n.prototype,"node",void 0),$e([p(),Oe("design:type",String)],n.prototype,"index",void 0),$e([p(),Oe("design:type",String)],n.prototype,"labelText",void 0),$e([p(),Oe("design:type",Number)],n.prototype,"tabindex",void 0),$e([Q(),Oe("design:type",S)],n.prototype,"checkStateChange",void 0),n=$e([Oe("design:paramtypes",[$,Ie,Be])],n),n})(),ODt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),RDt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ODt,v2]]}),n})(),PDt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[RDt]]}),n})();function LDt(n,t){function e(){return!e.pred.apply(e.thisArg,arguments)}return e.pred=n,e.thisArg=t,e}function Y1e(n){return t=>t.lift(new BDt(n))}class BDt{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new VDt(t,this.predicate))}}class VDt extends In{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}const zDt=["input"],nV=function(n,t){return{focus:n,blur:t}},HDt=["content"],GDt=["list"],jDt=["virtualContainer"];function $Dt(n,t){}const Pg=function(n,t){return{templateRef:n,$implicit:t}};function UDt(n,t){if(1&n&&A(0,$Dt,0,0,"ng-template",10),2&n){const e=I(2);v("templateContext",di(1,Pg,e.fixedGroupTemplate.templateRef,e.currentGroup))}}function WDt(n,t){if(1&n&&(y(0,"strong"),H(1),_()),2&n){const e=I(2);b(1),un(e.currentGroup)}}const K1e=function(n){return{"k-virtual-item":n}},Z1e=function(n,t,e){return{"height.px":n,"minHeight.px":t,boxSizing:e}};function qDt(n,t){if(1&n&&(y(0,"div",8),A(1,UDt,1,4,void 0,5),A(2,WDt,2,1,"ng-template",9),_()),2&n){const e=I();v("ngClass",Yt(4,K1e,e.virtual))("ngStyle",pc(6,Z1e,null==e.virtual?null:e.virtual.itemHeight,null==e.virtual?null:e.virtual.itemHeight,e.virtual?"border-box":"inherit")),b(1),v("ngIf",e.fixedGroupTemplate),b(1),v("ngIf",!e.fixedGroupTemplate)}}function XDt(n,t){if(1&n){const e=ht();y(0,"input",15),se("change",function(s){Le(e);const o=I().index;return I(2).onCheckedChange(s,o)}),_()}if(2&n){const e=I().index;v("checked",I(2).isChecked(e))}}function YDt(n,t){}function KDt(n,t){if(1&n&&A(0,YDt,0,0,"ng-template",10),2&n){const e=I().$implicit,i=I(2);v("templateContext",di(1,Pg,i.template.templateRef,e))}}function ZDt(n,t){if(1&n&&H(0),2&n){const e=I().$implicit;un(I(2).getText(e))}}const Q1e=function(n,t){return{"k-virtual-item":n,"k-state-disabled":t}};function QDt(n,t){if(1&n&&(y(0,"li",12),y(1,"label",13),A(2,XDt,1,1,"input",14),_(),A(3,KDt,1,4,void 0,5),A(4,ZDt,1,1,"ng-template",9),_()),2&n){const e=t.$implicit,i=t.index,s=I(2);v("checkboxes",s.checkboxes)("height",null==s.virtual?null:s.virtual.itemHeight)("index",i+s.startFrom)("multipleSelection",s.multipleSelection)("ngClass",di(10,Q1e,s.virtual,s.isDisabled(i))),fe("id",s.optionPrefix+"-"+s.getValue(e))("tabIndex",-1),b(2),v("ngIf",s.checkboxes.enabled),b(1),v("ngIf",s.template),b(1),v("ngIf",!s.template)}}function JDt(n,t){1&n&&A(0,QDt,5,13,"ng-template",11),2&n&&v("ngForOf",I().data)}function eMt(n,t){}function tMt(n,t){if(1&n&&A(0,eMt,0,0,"ng-template",10),2&n){const e=I(2).$implicit,i=I(2);v("templateContext",di(1,Pg,i.groupTemplate.templateRef,e.value))}}function nMt(n,t){if(1&n&&(y(0,"strong"),H(1),_()),2&n){const e=I(2).$implicit;b(1),_t(" ",e.value,"")}}function iMt(n,t){if(1&n&&(y(0,"li",18),A(1,tMt,1,4,void 0,5),A(2,nMt,2,1,"ng-template",9),_()),2&n){const e=I().$implicit,i=I(2);v("ngClass",Yt(7,K1e,i.virtual))("ngStyle",pc(9,Z1e,null==i.virtual?null:i.virtual.itemHeight,null==i.virtual?null:i.virtual.itemHeight,i.virtual?"border-box":"inherit")),fe("group-index",e.index)("id",i.optionPrefix+"-"+i.getValue(e.value))("tabIndex",-1),b(1),v("ngIf",i.groupTemplate),b(1),v("ngIf",!i.groupTemplate)}}function sMt(n,t){}function oMt(n,t){if(1&n&&A(0,sMt,0,0,"ng-template",10),2&n){const e=I(2).$implicit,i=I(2);v("templateContext",di(1,Pg,i.template.templateRef,e.value))}}function rMt(n,t){if(1&n&&H(0),2&n){const e=I(2).$implicit;un(I(2).getText(e.value))}}function aMt(n,t){if(1&n&&(y(0,"li",19),A(1,oMt,1,4,void 0,5),A(2,rMt,1,1,"ng-template",9),_()),2&n){const e=I().$implicit,i=I(2);v("height",null==i.virtual?null:i.virtual.itemHeight)("index",e.offsetIndex)("multipleSelection",i.multipleSelection)("ngClass",di(9,Q1e,i.virtual,i.isDisabled(e.offsetIndex))),fe("absolute-index",e.index)("id",i.optionPrefix+"-"+i.getValue(e.value))("tabIndex",-1),b(1),v("ngIf",i.template),b(1),v("ngIf",!i.template)}}function lMt(n,t){if(1&n&&(A(0,iMt,3,13,"li",16),A(1,aMt,3,12,"li",17)),2&n){const e=t.$implicit;v("ngIf",e.header&&e.index>0),b(1),v("ngIf",!e.header)}}function cMt(n,t){1&n&&A(0,lMt,2,2,"ng-template",11),2&n&&v("ngForOf",I().data)}function dMt(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",20),se("resize",function(){return Le(e),I().listResize.emit()}),_()}}function uMt(n,t){if(1&n){const e=ht();y(0,"div",21,22),y(2,"div"),y(3,"kendo-resize-sensor",20),se("resize",function(){return Le(e),I().listResize.emit()}),_(),_(),_()}if(2&n){const e=I();b(2),yt("height",e.scrollHeight,"px")}}const hMt=function(n,t){return{"k-virtual-content":n,"k-list-scroller":t}},pMt=function(n){return{"k-virtual-list":n}},DD=["container"],MD=["popupTemplate"],iV=["optionsList"];function fMt(n,t){if(1&n){const e=ht();y(0,"span",8),se("click",function(s){return Le(e),I().clearValue(s)})("mousedown",function(s){return s.preventDefault()}),_()}if(2&n){const e=I();yt("visibility",e.clearButtonVisiblity),fe("title",e.clearTitle)}}function gMt(n,t){1&n&&P(0,"span",9)}function mMt(n,t){}const Jr=function(n){return{templateRef:n}};function yMt(n,t){if(1&n&&A(0,mMt,0,0,"ng-template",14),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.headerTemplate.templateRef))}}function _Mt(n,t){}function vMt(n,t){if(1&n&&(y(0,"div"),H(1),_()),2&n){const e=I(3);b(1),un(e.noDataText)}}function bMt(n,t){if(1&n&&(y(0,"div",15),A(1,_Mt,0,0,"ng-template",16),A(2,vMt,2,1,"ng-template",6),_()),2&n){const e=I(2);b(1),v("ngIf",e.noDataTemplate)("templateContext",Yt(3,Jr,null==e.noDataTemplate?null:e.noDataTemplate.templateRef)),b(1),v("ngIf",!e.noDataTemplate)}}function CMt(n,t){}function xMt(n,t){if(1&n&&A(0,CMt,0,0,"ng-template",14),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.footerTemplate.templateRef))}}function wMt(n,t){if(1&n){const e=ht();A(0,yMt,1,3,void 0,10),y(1,"kendo-list",11,12),se("pageChange",function(s){return Le(e),I().pageChange(s)}),_(),A(3,bMt,3,5,"div",13),A(4,xMt,1,3,void 0,10)}if(2&n){const e=I();v("ngIf",e.headerTemplate),b(1),v("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),b(2),v("ngIf",0===e.data.length),b(1),v("ngIf",e.footerTemplate)}}function SMt(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",17),se("resize",function(){return Le(e),I().onResize()}),_()}}const k2=["wrapper"],TMt=["select"],sV=function(n){return{mousedown:n}};function kMt(n,t){if(1&n){const e=ht();y(0,"span",12),se("click",function(s){return Le(e),I().clearValue(s)}),_()}if(2&n){const e=I();yt("visibility",e.clearButtonVisiblity),v("kendoEventsOutsideAngular",Yt(4,sV,e.preventEventDefault)),fe("title",e.clearTitle)}}function DMt(n,t){}function MMt(n,t){if(1&n&&A(0,DMt,0,0,"ng-template",17),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.headerTemplate.templateRef))}}function EMt(n,t){}function IMt(n,t){if(1&n&&(y(0,"div"),H(1),_()),2&n){const e=I(3);b(1),un(e.noDataText)}}function AMt(n,t){if(1&n&&(y(0,"div",18),A(1,EMt,0,0,"ng-template",19),A(2,IMt,2,1,"ng-template",10),_()),2&n){const e=I(2);b(1),v("ngIf",e.noDataTemplate)("templateContext",Yt(3,Jr,e.noDataTemplate?e.noDataTemplate.templateRef:void 0)),b(1),v("ngIf",!e.noDataTemplate)}}function FMt(n,t){}function OMt(n,t){if(1&n&&A(0,FMt,0,0,"ng-template",17),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.footerTemplate.templateRef))}}function RMt(n,t){if(1&n){const e=ht();A(0,MMt,1,3,void 0,13),y(1,"kendo-list",14,15),se("pageChange",function(s){return Le(e),I().pageChange(s)}),_(),A(3,AMt,3,5,"div",16),A(4,OMt,1,3,void 0,13)}if(2&n){const e=I();v("ngIf",e.headerTemplate),b(1),v("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),b(2),v("ngIf",0===e.data.length),b(1),v("ngIf",e.footerTemplate)}}function PMt(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",20),se("resize",function(){return Le(e),I().onResize()}),_()}}const qY=function(n){return{"k-state-disabled":n}};function LMt(n,t){}function NMt(n,t){if(1&n&&A(0,LMt,0,0,"ng-template",10),2&n){const e=I();v("templateContext",di(1,Pg,e.valueTemplate.templateRef,e.dataItem))}}function BMt(n,t){1&n&&H(0),2&n&&un(I().getText())}function VMt(n,t){if(1&n){const e=ht();y(0,"span",14),se("click",function(s){return s.stopImmediatePropagation()}),y(1,"input",15),se("ngModelChange",function(s){return Le(e),I(2).filterText=s})("keydown",function(s){return Le(e),I(2).keydown(s)})("input",function(s){return Le(e),I(2).handleFilter(s)})("focus",function(){return Le(e),I(2).onFilterFocus()})("blur",function(){return Le(e),I(2).blurFilterInput()}),_(),P(2,"span",16),_()}if(2&n){const e=I(2);b(1),v("filterInput",e.isFocused&&!e.touchEnabled)("dir",e.direction)("ngModel",e.filterText),fe("aria-owns",e.ariaOwns)("aria-activedescendant",e.ariaActivedescendant)("aria-label",e.noDataLabel)}}function zMt(n,t){if(1&n&&(y(0,"div",17),H(1),_()),2&n){const e=I(2);v("ngClass",Yt(3,qY,e.isDisabledDefaultItem))("index",-1),b(1),_t(" ",e.getDefaultItemText()," ")}}function HMt(n,t){}function GMt(n,t){if(1&n&&(y(0,"div",17),A(1,HMt,0,0,"ng-template",10),_()),2&n){const e=I(2);v("ngClass",Yt(3,qY,e.isDisabledDefaultItem))("index",-1),b(1),v("templateContext",di(5,Pg,e.itemTemplate.templateRef,e.defaultItem))}}function jMt(n,t){}function $Mt(n,t){if(1&n&&A(0,jMt,0,0,"ng-template",10),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.headerTemplate.templateRef))}}function UMt(n,t){}function WMt(n,t){if(1&n&&(y(0,"div"),H(1),_()),2&n){const e=I(3);b(1),un(e.noDataText)}}function qMt(n,t){if(1&n&&(y(0,"div",18),A(1,UMt,0,0,"ng-template",19),A(2,WMt,2,1,"ng-template",5),_()),2&n){const e=I(2);b(1),v("ngIf",e.noDataTemplate)("templateContext",Yt(3,Jr,e.noDataTemplate?e.noDataTemplate.templateRef:void 0)),b(1),v("ngIf",!e.noDataTemplate)}}function XMt(n,t){}function YMt(n,t){if(1&n&&A(0,XMt,0,0,"ng-template",10),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.footerTemplate.templateRef))}}function KMt(n,t){if(1&n){const e=ht();A(0,VMt,3,6,"ng-template",5),A(1,zMt,2,5,"ng-template",5),A(2,GMt,2,8,"ng-template",5),A(3,$Mt,1,3,void 0,4),y(4,"kendo-list",11,12),se("pageChange",function(s){return Le(e),I().pageChange(s)}),_(),A(6,qMt,3,5,"div",13),A(7,YMt,1,3,void 0,4)}if(2&n){const e=I();v("ngIf",e.filterable),b(1),v("ngIf",e.defaultItem&&!e.itemTemplate),b(1),v("ngIf",e.defaultItem&&e.itemTemplate),b(1),v("ngIf",e.headerTemplate),b(1),v("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),b(2),v("ngIf",0===e.data.length),b(1),v("ngIf",e.footerTemplate)}}function ZMt(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",20),se("resize",function(){return Le(e),I().onResize()}),_()}}const J1e=function(n){return{"k-dropdown-wrap":!0,"k-state-disabled":n}};function QMt(n,t){if(1&n){const e=ht();y(0,"span",11),se("mousedown",function(s){return Le(e),I().clearAll(s)}),_()}if(2&n){const e=I();yt("visibility",e.clearButtonVisiblity),fe("title",e.clearTitle)}}function JMt(n,t){1&n&&P(0,"span",12)}function eEt(n,t){}function tEt(n,t){if(1&n&&A(0,eEt,0,0,"ng-template",18),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.headerTemplate.templateRef))}}function nEt(n,t){}function iEt(n,t){if(1&n&&A(0,nEt,0,0,"ng-template",18),2&n){const e=I(3);v("templateContext",di(1,Pg,e.customItemTemplate.templateRef,e.text))}}function sEt(n,t){1&n&&H(0),2&n&&un(I(3).text)}function oEt(n,t){if(1&n&&(y(0,"div",19),y(1,"div",20),A(2,iEt,1,4,void 0,21),A(3,sEt,1,1,"ng-template",null,22,Ls),P(5,"span",23),_(),_()),2&n){const e=ki(4),i=I(2);b(1),v("multipleSelection",!0)("index",-1),b(1),v("ngIf",i.customItemTemplate)("ngIfElse",e)}}function rEt(n,t){}function aEt(n,t){if(1&n&&(y(0,"div"),H(1),_()),2&n){const e=I(3);b(1),un(e.noDataText)}}function lEt(n,t){if(1&n&&(y(0,"div",24),A(1,rEt,0,0,"ng-template",25),A(2,aEt,2,1,"ng-template",9),_()),2&n){const e=I(2);b(1),v("ngIf",e.noDataTemplate)("templateContext",Yt(3,Jr,e.noDataTemplate?e.noDataTemplate.templateRef:void 0)),b(1),v("ngIf",!e.noDataTemplate)}}function cEt(n,t){}function dEt(n,t){if(1&n&&A(0,cEt,0,0,"ng-template",18),2&n){const e=I(2);v("templateContext",Yt(1,Jr,e.footerTemplate.templateRef))}}function uEt(n,t){if(1&n){const e=ht();A(0,tEt,1,3,void 0,13),A(1,oEt,6,4,"div",14),y(2,"kendo-list",15,16),se("pageChange",function(s){return Le(e),I().pageChange(s)}),_(),A(4,lEt,3,5,"div",17),A(5,dEt,1,3,void 0,13)}if(2&n){const e=I();v("ngIf",e.headerTemplate),b(1),v("ngIf",e.allowCustom&&e.text),b(1),v("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),b(2),v("ngIf",0===e.data.length),b(1),v("ngIf",e.footerTemplate)}}function hEt(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",26),se("resize",function(){return Le(e),I().onResize()}),_()}}const pEt=["header"];function fEt(n,t){if(1&n){const e=ht();y(0,"span",12),se("click",function(s){return Le(e),I().clearValue(s)}),_()}if(2&n){const e=I();yt("visibility",e.clearButtonVisiblity),v("kendoEventsOutsideAngular",Yt(4,sV,e.preventEventDefault)),fe("title",e.clearTitle)}}function gEt(n,t){}function mEt(n,t){if(1&n&&A(0,gEt,0,0,"ng-template",23),2&n){const e=I(2);v("templateContext",Yt(1,Jr,null==e.headerTemplate?null:e.headerTemplate.templateRef))}}function yEt(n,t){1&n&&P(0,"col"),2&n&&yt("width",I().$implicit.width,"px")}function _Et(n,t){if(1&n&&(_n(0),A(1,yEt,1,2,"col",24),vn()),2&n){const e=t.$implicit;b(1),v("ngIf",!e.hidden&&e.matchesMedia)}}function vEt(n,t){if(1&n&&(_n(0),H(1),vn()),2&n){const e=I(2).$implicit;b(1),_t(" ",e.title||e.field," ")}}function bEt(n,t){}const CEt=function(n,t,e){return{templateRef:n,$implicit:t,column:e}};function xEt(n,t){if(1&n&&A(0,bEt,0,0,"ng-template",23),2&n){const e=I(2).$implicit;v("templateContext",pc(1,CEt,null==e.headerTemplate?null:e.headerTemplate.templateRef,e,e))}}function wEt(n,t){if(1&n&&(y(0,"th",26),A(1,vEt,2,1,"ng-container",13),A(2,xEt,1,5,void 0,13),_()),2&n){const e=I().$implicit;v("ngStyle",e.headerStyle)("ngClass",e.headerClass),b(1),v("ngIf",!e.headerTemplate),b(1),v("ngIf",e.headerTemplate)}}function SEt(n,t){if(1&n&&(_n(0),A(1,wEt,3,4,"th",25),vn()),2&n){const e=t.$implicit;b(1),v("ngIf",!e.hidden&&e.matchesMedia)}}function TEt(n,t){if(1&n&&(_n(0),H(1),vn()),2&n){const e=I(2).$implicit,i=I().$implicit,s=I(2);b(1),_t(" ",s.textFrom(i,e.field)," ")}}function kEt(n,t){}const DEt=function(n,t,e,i){return{templateRef:n,$implicit:t,dataItem:e,column:i}};function MEt(n,t){if(1&n&&A(0,kEt,0,0,"ng-template",23),2&n){const e=I(2).$implicit,i=I().$implicit;v("templateContext",kp(1,DEt,null==e.cellTemplate?null:e.cellTemplate.templateRef,i,i,e))}}function EEt(n,t){if(1&n&&(y(0,"span",28),A(1,TEt,2,1,"ng-container",13),A(2,MEt,1,6,void 0,13),_()),2&n){const e=I().$implicit;yt("width",e.width,"px"),v("ngClass",e.class)("ngStyle",e.style),b(1),v("ngIf",!e.cellTemplate),b(1),v("ngIf",e.cellTemplate)}}function IEt(n,t){if(1&n&&(_n(0),A(1,EEt,3,6,"span",27),vn()),2&n){const e=t.$implicit;b(1),v("ngIf",!e.hidden&&e.matchesMedia)}}function AEt(n,t){1&n&&A(0,IEt,2,1,"ng-container",18),2&n&&v("ngForOf",I(2).columns)}function FEt(n,t){}function OEt(n,t){if(1&n&&(y(0,"div"),H(1),_()),2&n){const e=I(3);b(1),un(e.noDataText)}}function REt(n,t){if(1&n&&(y(0,"div",29),A(1,FEt,0,0,"ng-template",30),A(2,OEt,2,1,"ng-template",31),_()),2&n){const e=I(2);b(1),v("ngIf",e.noDataTemplate)("templateContext",Yt(3,Jr,null==e.noDataTemplate?null:e.noDataTemplate.templateRef)),b(1),v("ngIf",!e.noDataTemplate)}}function PEt(n,t){}function LEt(n,t){if(1&n&&(_n(0),y(1,"div",32),A(2,PEt,0,0,"ng-template",23),_(),vn()),2&n){const e=I(2);b(2),v("templateContext",Yt(1,Jr,e.footerTemplate.templateRef))}}function NEt(n,t){if(1&n){const e=ht();A(0,mEt,1,3,void 0,13),y(1,"div",14,15),y(3,"div",16),y(4,"table",17),y(5,"colgroup"),A(6,_Et,2,1,"ng-container",18),_(),y(7,"tbody"),y(8,"tr"),A(9,SEt,2,1,"ng-container",18),_(),_(),_(),_(),_(),A(10,AEt,1,1,"ng-template",null,19,Ls),y(12,"kendo-list",20,21),se("pageChange",function(s){return Le(e),I().pageChange(s)})("listResize",function(){Le(e);const s=ki(2);return I().updateHeaderPadding(s)}),_(),A(14,REt,3,5,"div",22),A(15,LEt,3,3,"ng-container",13)}if(2&n){const e=ki(11),i=I();v("ngIf",i.headerTemplate),b(6),v("ngForOf",i.columns),b(3),v("ngForOf",i.columns),b(3),v("id",i.listBoxId)("optionPrefix",i.optionPrefix)("data",i.data)("textField",i.textField)("valueField",i.valueField)("template",Yt(17,Jr,e))("groupTemplate",i.groupTemplate)("fixedGroupTemplate",i.fixedGroupTemplate)("height",i.listHeight)("show",i.isOpen)("virtual",i.virtual)("listClass","k-reset k-grid-list"),b(2),v("ngIf",0===i.data.length),b(1),v("ngIf",i.footerTemplate)}}function BEt(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",33),se("resize",function(){return Le(e),I().onResize()}),_()}}const eTe=["treeview"],VEt=["filterInput"];function zEt(n,t){}function HEt(n,t){if(1&n&&A(0,zEt,0,0,"ng-template",11),2&n){const e=I();v("templateContext",di(1,Pg,e.valueTemplate.templateRef,e.dataItem))}}function GEt(n,t){if(1&n&&H(0),2&n){const e=I();_t(" ",e.text||e.placeholder," ")}}function jEt(n,t){if(1&n){const e=ht();y(0,"span",12),se("click",function(s){return Le(e),I().clearValue(s)}),_()}if(2&n){const e=I();yt("visibility",e.clearButtonVisiblity),fe("title",e.messageFor("clearTitle"))}}const $Et=function(n){return{blur:n}};function UEt(n,t){if(1&n){const e=ht();y(0,"span",16),y(1,"input",17,18),se("input",function(s){return Le(e),I(2).handleFilterInputChange(s.target.value)})("keydown.arrowdown",function(s){return Le(e),I(2).handleKeydown(s)})("ngModelChange",function(s){return Le(e),I(2).filter=s}),_(),P(3,"span",19),_()}if(2&n){const e=I(2);b(1),v("filterInput",e.filterable&&!e.touchEnabled)("ngModel",e.filter)("kendoEventsOutsideAngular",Yt(4,$Et,e.handleBlur))("scope",e)}}function WEt(n,t){}function qEt(n,t){if(1&n&&A(0,WEt,0,0,"ng-template",11),2&n){const e=I(2);v("templateContext",Yt(1,Jr,null==e.headerTemplate?null:e.headerTemplate.templateRef))}}function XEt(n,t){if(1&n){const e=ht();y(0,"kendo-treeview",20,21),se("selectedKeysChange",function(s){return Le(e),I(2).selectedKeys=s})("focusout",function(s){return Le(e),I(2).handleBlur(s)})("keydown",function(s){return Le(e),I(2).handleKeydown(s)})("selectionChange",function(s){return Le(e),I(2).onSelectionChange(s)})("expand",function(s){return Le(e),I(2).nodeExpand.emit(s)})("collapse",function(s){return Le(e),I(2).nodeCollapse.emit(s)}),_()}if(2&n){const e=I(2);yt("max-height",e.listHeight,"px"),v("nodes",e.data)("animate",!1)("selectedKeys",e.selectedKeys)("selectBy",e.selectBy)("textField",e.textField)("children",e.children)("hasChildren",e.hasChildren)("loadOnDemand",e.loadOnDemand)("isExpanded",e.isNodeExpanded)("isDisabled",e.itemDisabled)("nodeTemplate",e.nodeTemplate)("filter",e.filter)("isVisible",e.isNodeVisible)}}function YEt(n,t){}function KEt(n,t){if(1&n&&A(0,YEt,0,0,"ng-template",11),2&n){const e=I(2);v("templateContext",Yt(1,Jr,null==e.footerTemplate?null:e.footerTemplate.templateRef))}}function ZEt(n,t){}function QEt(n,t){if(1&n&&(y(0,"div"),H(1),_()),2&n){const e=I(3);b(1),un(e.messageFor("noDataText"))}}function JEt(n,t){if(1&n&&(y(0,"div",22),A(1,ZEt,0,0,"ng-template",23),A(2,QEt,2,1,"ng-template",5),_()),2&n){const e=I(2);b(1),v("ngIf",e.noDataTemplate)("templateContext",Yt(3,Jr,null==e.noDataTemplate?null:e.noDataTemplate.templateRef)),b(1),v("ngIf",!e.noDataTemplate)}}function eIt(n,t){if(1&n&&(A(0,UEt,4,6,"span",13),A(1,qEt,1,3,void 0,4),A(2,XEt,2,15,"kendo-treeview",14),A(3,KEt,1,3,void 0,4),A(4,JEt,3,5,"div",15)),2&n){const e=I();v("ngIf",e.filterable),b(1),v("ngIf",e.headerTemplate),b(1),v("ngIf",0!==e.data.length&&!e.allNodesHidden),b(1),v("ngIf",e.footerTemplate),b(1),v("ngIf",0===e.data.length||e.allNodesHidden)}}function tIt(n,t){if(1&n&&(y(0,"span",9),H(1),_()),2&n){const e=I();b(1),_t(" ",e.placeholder," ")}}function nIt(n,t){if(1&n){const e=ht();y(0,"span",10),se("mousedown",function(s){return Le(e),I().clearAll(s)}),_()}2&n&&fe("title",I().messageFor("clearTitle"))}function iIt(n,t){1&n&&P(0,"span",11)}function sIt(n,t){}function oIt(n,t){if(1&n&&A(0,sIt,0,0,"ng-template",16),2&n){const e=I(2);v("templateContext",Yt(1,Jr,null==e.headerTemplate?null:e.headerTemplate.templateRef))}}function rIt(n,t){}function aIt(n,t){if(1&n&&A(0,rIt,0,0,"ng-template",16),2&n){const e=I(2);v("templateContext",Yt(1,Jr,null==e.footerTemplate?null:e.footerTemplate.templateRef))}}function lIt(n,t){}function cIt(n,t){if(1&n&&(y(0,"div"),H(1),_()),2&n){const e=I(3);b(1),un(e.messageFor("noDataText"))}}function dIt(n,t){if(1&n&&(y(0,"div",17),A(1,lIt,0,0,"ng-template",18),A(2,cIt,2,1,"ng-template",19),_()),2&n){const e=I(2);b(1),v("ngIf",e.noDataTemplate)("templateContext",Yt(3,Jr,null==e.noDataTemplate?null:e.noDataTemplate.templateRef)),b(1),v("ngIf",!e.noDataTemplate)}}const uIt=function(n){return{focusout:n}};function hIt(n,t){if(1&n){const e=ht();A(0,oIt,1,3,void 0,12),y(1,"kendo-treeview",13,14),se("keydown",function(s){return Le(e),I().handleKeydown(s)})("nodeClick",function(s){return Le(e),I().handleNodeClick(s)})("expand",function(s){return Le(e),I().nodeExpand.emit(s)})("collapse",function(s){return Le(e),I().nodeCollapse.emit(s)})("checkedItemsChange",function(s){return Le(e),I().handleCheckedItemsChange(s)}),_(),A(3,aIt,1,3,void 0,12),A(4,dIt,3,5,"div",15)}if(2&n){const e=I();v("ngIf",e.headerTemplate),b(1),yt("max-height",e.listHeight,"px"),v("nodes",e.data)("animate",!1)("checkable",e.checkableSettings)("checkedItems",e.checkedItems)("valueField",e.valueField)("textField",e.textField)("children",e.children)("hasChildren",e.hasChildren)("isExpanded",e.isNodeExpanded)("isDisabled",e.itemDisabled)("nodeTemplate",e.nodeTemplate)("loadOnDemand",e.loadOnDemand)("kendoEventsOutsideAngular",Yt(19,uIt,e.handleBlur))("scope",e),b(2),v("ngIf",e.footerTemplate),b(1),v("ngIf",0===(null==e.data?null:e.data.length))}}const pIt=function(n){return{"k-multiselect-wrap":!0,"k-floatwrap":!0,"k-state-disabled":n}};function fIt(n,t){}function gIt(n,t){1&n&&A(0,fIt,0,0,"ng-template")}function mIt(n,t){}function yIt(n,t){if(1&n&&A(0,mIt,0,0,"ng-template",10),2&n){const e=I(2).$implicit,i=I();v("templateContext",di(1,Pg,i.groupTemplate.templateRef,e))}}function _It(n,t){if(1&n&&H(0),2&n){const e=I(2).$implicit;ty("",e.length," ",1===e.length?"item":"items"," selected")}}function vIt(n,t){if(1&n&&(y(0,"span"),A(1,yIt,1,4,void 0,8),A(2,_It,1,2,"ng-template",9),_()),2&n){const e=I(2);b(1),v("ngIf",e.groupTemplate),b(1),v("ngIf",!e.groupTemplate)}}function bIt(n,t){}function CIt(n,t){if(1&n&&A(0,bIt,0,0,"ng-template",10),2&n){const e=I(2).$implicit,i=I();v("templateContext",di(1,Pg,i.template.templateRef,e))}}function xIt(n,t){if(1&n&&H(0),2&n){const e=I(2),i=e.$implicit,s=e.index,o=I();un(o.tagProp(i,o.textField,s))}}function wIt(n,t){if(1&n&&(y(0,"span"),A(1,CIt,1,4,void 0,8),A(2,xIt,1,1,"ng-template",9),_()),2&n){const e=I(2);b(1),v("ngIf",e.template),b(1),v("ngIf",!e.template)}}const SIt=function(n,t){return{"k-state-focused":n,"k-state-disabled":t}};function TIt(n,t){if(1&n){const e=ht();y(0,"li",2),A(1,gIt,1,0,void 0,3),A(2,vIt,3,2,"ng-template",null,4,Ls),A(4,wIt,3,2,"ng-template",null,5,Ls),y(6,"span",6),y(7,"span",7),se("mousedown",function(s){const o=Le(e),r=o.$implicit,a=o.index;return I().deleteTag(s,r,a)}),_(),_(),_()}if(2&n){const e=t.$implicit,i=t.index,s=ki(3),o=ki(5),r=I();v("ngClass",di(8,SIt,i===r.focused,r.isTagDisabled(e,i))),fe("id",r.itemId(e,i))("aria-hidden",r.tagAriaHidden(i))("aria-setsize",null==r.tags?null:r.tags.length),b(1),v("ngIf",r.isGroupTag(e))("ngIfThen",s)("ngIfElse",o),b(5),fe("aria-hidden",i!==r.focused)}}const oV={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620747584,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"},je=n=>null!=n,id=()=>{let t,e,n="";for(t=0;t<32;t++)e=16*Math.random()|0,(8===t||12===t||16===t||20===t)&&(n+="-"),n+=(12===t?4:16===t?3&e|8:e).toString(16);return n},xc=n=>Array.isArray(n),vx=n=>je(n)&&"object"==typeof n,tTe=n=>"string"==typeof n&&0===n.length,rV=n=>xc(n)&&n.every(t=>vx(t)),nTe=(n,t,e)=>{const i=t.map(s=>je(s)&&je(Qt(s,e))?Qt(s,e):s);return n.reduce((s,o)=>{const r=je(o)&&je(Qt(o,e))?Qt(o,e):o,a=i.indexOf(r);return-1!==a&&s.push(a),s},[])},Qt=(n,t)=>je(n)?je(t)&&vx(n)?pa(t)(n):n:null,iTe=(n,t,e)=>{if(!je(n))return!1;let i=String(n);return e&&(i=i.toLowerCase()),0===i.indexOf(t)},sTe=(n,t)=>!!je(n)&&t.every(e=>n.hasOwnProperty(e)),ED=n=>n.className.includes("ng-untouched"),bx=n=>{},OIt=(n,t)=>{const e=n.matches||n.msMatchesSelector||n.webkitMatchesSelector;return!!e&&e.call(n,t)},aV=(n,t=0)=>{const e=Number(n);return isNaN(e)?t:e},D2=(n,t,e)=>n.nativeElement.contains(t)||e&&e.popupElement.contains(t),XY=n=>(n||"").split("_").length-1,oTe=(n,t)=>{if(!je(n)||0===n.children.length)return[];let e=n.children;return je(t)&&(e=e.filter(i=>t(i.item))),e.forEach(i=>e=e.concat(oTe(i,t))),e},eb=({dataItem:n,index:t,level:e},i)=>{const s=Array.isArray(i)?i:[i],o=je(e)?e:XY(t);return pa(s[Math.min(o,s.length-1)])(n)};let Hd=(()=>{let n=class{constructor(e,i){this.localization=e,this.valueChange=new S,this.onBlur=new S,this.onFocus=new S,this.onClick=new S,this.onNavigate=new S,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=e.rtl?"rtl":"ltr",this.renderer=i}get userInput(){return this._userInput}set userInput(e){this._userInput=e||""}get value(){return this.input.nativeElement.value}set placeholder(e){this._placeholder=e||"",this.setInputSize()}get placeholder(){return this._placeholder}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:e})=>this.direction=e?"rtl":"ltr")}ngOnChanges(e){let i;if(this.input&&(e.userInput||e.suggestedText)){i=e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue;const s=this.input.nativeElement.selectionStart,o=i.length===s;this.writeInputValue(this.suggestedText?((n,t)=>n.concat(t.substr(t.toLowerCase().indexOf(n.toLowerCase())+n.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(s,s),this._previousValue=this.userInput}}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}writeInputValue(e){Ft()&&this.renderer.setProperty(this.input.nativeElement,"value",e)}setInputSelection(e,i){if(Ft()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,i)}catch(s){}}handleInput(e){const i=e.target.value;i!==this.userInput&&(this._previousValue=i,this.valueChange.emit(i))}handleFocus(e){this.onFocus.emit(e)}handleBlur(e){this.onBlur.emit(e)}handleKeydown(e){[_e.ArrowUp,_e.ArrowDown,_e.ArrowLeft,_e.ArrowRight,_e.Enter,_e.Escape,_e.Delete,_e.Backspace,_e.Home,_e.End].indexOf(e.keyCode)>-1&&this.onNavigate.emit(e)}focus(){Ft()&&this.input.nativeElement.focus()}blur(){Ft()&&this.input.nativeElement.blur()}setInputSize(){const e=a=>a?a.length:0,i=this.input.nativeElement,s=e(this.placeholder),o=e(this.value),r=Math.max(s,o,1);this.renderer.setAttribute(i,"size",r.toString())}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Ie))},n.\u0275cmp=K({type:n,selectors:[["kendo-searchbar"]],viewQuery:function(e,i){if(1&e&&Ae(zDt,7),2&e){let s;U(s=W())&&(i.input=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-searchbar",i.searchBarClass)},inputs:{userInput:"userInput",placeholder:"placeholder",id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",noDataLabel:"noDataLabel",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",suggestedText:"suggestedText"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[st],decls:2,vars:21,consts:[["autocomplete","off","aria-haspopup","listbox",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(e,i){1&e&&(y(0,"input",0,1),se("input",function(o){return i.handleInput(o)})("keydown",function(o){return i.handleKeydown(o)}),_()),2&e&&(ov("k-input"),v("id",i.id)("disabled",i.disabled)("readonly",i.readonly)("placeholder",i.placeholder)("kendoEventsOutsideAngular",di(18,nV,i.handleFocus,i.handleBlur))("scope",i),fe("tabIndex",i.tabIndex)("dir",i.direction)("role",i.role)("aria-disabled",i.disabled)("aria-readonly",i.readonly)("aria-expanded",i.popupOpen)("aria-owns",i.listId)("aria-describedby",i.tagListId)("aria-activedescendant",i.activeDescendant)("aria-label",i.noDataLabel))},directives:[lr],encapsulation:2}),X([p(),B("design:type",String)],n.prototype,"id",void 0),X([p(),B("design:type",String)],n.prototype,"listId",void 0),X([p(),B("design:type",String)],n.prototype,"tagListId",void 0),X([p(),B("design:type",String)],n.prototype,"activeDescendant",void 0),X([p(),B("design:type",String)],n.prototype,"noDataLabel",void 0),X([p(),B("design:type",Boolean)],n.prototype,"disabled",void 0),X([p(),B("design:type",Boolean)],n.prototype,"readonly",void 0),X([p(),B("design:type",Number)],n.prototype,"tabIndex",void 0),X([p(),B("design:type",Boolean)],n.prototype,"popupOpen",void 0),X([p(),B("design:type",String)],n.prototype,"role",void 0),X([p(),B("design:type",String),B("design:paramtypes",[String])],n.prototype,"userInput",null),X([p(),B("design:type",String)],n.prototype,"suggestedText",void 0),X([Q(),B("design:type",S)],n.prototype,"valueChange",void 0),X([Q(),B("design:type",S)],n.prototype,"onBlur",void 0),X([Q(),B("design:type",S)],n.prototype,"onFocus",void 0),X([Q(),B("design:type",S)],n.prototype,"onClick",void 0),X([Q(),B("design:type",S)],n.prototype,"onNavigate",void 0),X([at("input",{static:!0}),B("design:type",$)],n.prototype,"input",void 0),X([G("class.k-searchbar"),B("design:type",Boolean)],n.prototype,"searchBarClass",void 0),X([p(),B("design:type",String),B("design:paramtypes",[String])],n.prototype,"placeholder",null),n=X([B("design:paramtypes",[J,Ie])],n),n})(),Gd=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),Ya=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),Ka=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),jd=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),$d=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),Rr=(()=>{let n=class{constructor(){this.onSelect=new S,this.onChange=new S,this.onFocus=new S,this.total=0,this.selectedIndices=[]}getTotal(){return this.total}isSelected(e){return je(this.selectedIndices.find(i=>i===e))}isFocused(e){return e===this.focused}focus(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}select(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:je(e)}))}add(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))}unselect(e){if(!this.isSelected(e))return;const i=this.selectedIndices.indexOf(e);this.selectedIndices.splice(i,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}change(e){const i=je(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:i})}resetSelection(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]}get selected(){return this.selectedIndices.slice()}get focused(){return this.focusedIndex}set focused(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();var Si=(()=>(function(n){n[n.Undefined=0]="Undefined",n[n.Open=1]="Open",n[n.Close=2]="Close",n[n.Enter=3]="Enter",n[n.Tab=4]="Tab",n[n.Esc=5]="Esc",n[n.Delete=6]="Delete",n[n.Backspace=7]="Backspace",n[n.Home=8]="Home",n[n.End=9]="End",n[n.Up=10]="Up",n[n.Down=11]="Down",n[n.Left=12]="Left",n[n.Right=13]="Right"}(Si||(Si={})),Si))();let fa=(()=>{let n=class{constructor(){this.grouped=!1,this.groupIndices=[]}set data(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))}get data(){return this.grouped?this._flatData:this._data}get itemsCount(){return je(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(i=>!i.header):this.data).length:0}isGrouped(e){return je(e)&&0!==e.length&&je(e[0])&&sTe(e[0],["aggregates","field","items","value"])}getGroupIndices(e){let i=[];for(let s=0;s<=e.length-1;s++)i[s]=(i[s-1]||0)+e[s].items.length;return i}filter(e){let i=[];if(this.isGrouped(this.data))for(let s=0;s<=this.groupIndices.length-1;s++){const o=this.data[s].items.filter(e);o&&(i=i.concat(o))}else i=this.data.filter(e);return i}indexOf(e,i=0){let s=o=>o===e;return this.grouped&&(s=o=>o.value===e),this.findIndex(s,i)}findIndex(e,i=0){let s=-1;if(this.grouped){const o=this._flatData.filter(r=>!r.header&&r.offsetIndex>=i);s=o.findIndex(e),s=o[s]?o[s].offsetIndex:-1}else{const r=this.data.slice(i).findIndex(e);s=-1!==r?r+i:-1}return s}closestGroup(e){for(let i=e;i>=0;i--)if(this._flatData[i].header)return this._flatData[i]}find(e){const i=this.findIndex(e);return this.itemAt(i)}flatIndex(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;{const i=this._flatData.find(s=>!s.header&&s.offsetIndex===e);if(i)return i.index}return-1}itemAt(e){let i;if(0===this.itemsCount)return i;if(this.grouped){const s=this._flatData.find(o=>!o.header&&o.offsetIndex===e);s&&(i=s.value)}else i=this.data[e];return i}groupAt(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(i=>i.header&&i.index===e)}groupField(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}itemGroup(e){if(!e||0===this.itemsCount||!this.isGrouped)return;const i=this.groupField();return i?Qt(e,i):void 0}flatten(e,i,s=0,o=0){let r=[];je(i)&&r.push({header:!0,index:o+s,offsetIndex:o,value:i});for(let a=0;a{let n=class{constructor(e){this.dataService=e,this.itemDisabled=null}isIndexDisabled(e){if(this.itemDisabled){const i=this.dataService.itemAt(e);if(je(i))return this.itemDisabled({dataItem:i,index:e});if(je(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}isItemDisabled(e){if(this.itemDisabled){const i=this.dataService.indexOf(e);if(-1!==i)return this.itemDisabled({dataItem:e,index:i});if(je(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}};return n.\u0275fac=function(e){return new(e||n)(V(fa))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=X([B("design:paramtypes",[fa])],n),n})();class aTe{constructor(t,e){this.index=t,this.originalEvent=e}}let ma=(()=>{let n=class{constructor(e,i){this.disabledItemsService=e,this.selectionService=i,this.open=new S,this.close=new S,this.enter=new S,this.tab=new S,this.esc=new S,this.up=new S,this.right=new S,this.down=new S,this.left=new S,this.delete=new S,this.backspace=new S,this.home=new S,this.end=new S}process(e){const i=e.originalEvent.keyCode,s=e.originalEvent.altKey;let o,r=Si.Undefined;s&&i===_e.ArrowDown?r=Si.Open:s&&i===_e.ArrowUp?r=Si.Close:i===_e.Enter?r=Si.Enter:i===_e.Escape?r=Si.Esc:i===_e.Tab?r=Si.Tab:i===_e.ArrowUp?(o=this.next({current:e.current,start:e.min,end:e.max,step:-1}),r=Si.Up):i===_e.ArrowLeft?(o=this.next({current:e.current,start:e.min,end:e.max,step:-1}),r=Si.Left):i===_e.ArrowDown?(o=this.next({current:e.current,start:e.min,end:e.max,step:1}),r=Si.Down):i===_e.ArrowRight?(o=this.next({current:e.current,start:e.min,end:e.max,step:1}),r=Si.Right):i===_e.Home?(o=this.isDisabled(0)?e.current:0,r=Si.Home):i===_e.End?(o=this.isDisabled(e.max)?e.current:e.max,r=Si.End):i===_e.Delete?r=Si.Delete:i===_e.Backspace&&(r=Si.Backspace);const a=new aTe(o,e.originalEvent);return r!==Si.Undefined&&this[Si[r].toLowerCase()].emit(a),r}next(e){const{current:i,start:s,end:o,step:r}=e,a=je(i)?this.clampIndex(i+r,s,o):s,l=this.firstFocusableIndex(a,s,o,r);return je(l)?l:this.selectionService.isSelected(i)&&i>=s?i:this.firstFocusableIndex(a,s,o,-1*r)}clampIndex(e,i,s){return!je(e)||es?s:e}firstFocusableIndex(e,i,s,o){for(;i<=e&&e<=s;){if(!this.isDisabled(e))return e;e+=o}}isDisabled(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)}};return n.\u0275fac=function(e){return new(e||n)(V(ga),V(Rr))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=X([B("design:paramtypes",[ga,Rr])],n),n})(),Za=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})();class Cx{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class xx{}let M2=(()=>{let n=class{constructor(e){this.element=e}};return n.\u0275fac=function(e){return new(e||n)(g($))},n.\u0275dir=R({type:n,selectors:[["li","role","option"],["li","role","group"]]}),n=X([B("design:paramtypes",[$])],n),n})(),Lg=(()=>{let n=class{constructor(e,i,s,o,r,a,l){this.dataService=e,this.wrapper=i,this.selectionService=s,this.disabledItemsService=o,this.cdr=r,this.zone=a,this.renderer=l,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},this.onClick=new S,this.pageChange=new S,this.listResize=new S,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this.selectSubscription=ii(this.selectionService.onSelect.pipe(xe(c=>c.indices[0])),this.selectionService.onFocus).pipe(ls(c=>this.zone.onStable.pipe(jn(1),xe(()=>c)))).subscribe(this.scrollToItem.bind(this))}set data(e){this._data=e[0]&&e[0].header?e.slice(0):e}get data(){return this._data}get pageSize(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}get scrollHeight(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}get overflowY(){if(je(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}ngOnChanges(e){Io("data",e,!1)&&this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.scrollSubscription=Hi(this.content.nativeElement,"scroll").pipe(Bp(100),lt(this.prefetchData.bind(this)),lt(this.findCurrentGroup.bind(this))).subscribe(()=>{this.lastScrollTop=this.content.nativeElement.scrollTop})})}ngAfterViewChecked(){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()}ngOnDestroy(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}onCheckedChange(e,i){const s=e.target.checked;s&&!this.selectionService.isSelected(i)&&this.selectionService.add(i),!s&&this.selectionService.isSelected(i)&&this.selectionService.unselect(i)}isChecked(e){return this.selectionService.isSelected(e)}firstVisibleItem(){const e=this.content.nativeElement,i=e.getBoundingClientRect(),s=Array.prototype.slice.call(e.querySelectorAll(".k-state-disabled"));s.forEach(r=>this.renderer.setStyle(r,"pointer-events","auto"));const o=document.elementFromPoint(i.left+1,i.top+1);return s.forEach(r=>this.renderer.setStyle(r,"pointer-events","none")),((n,t)=>{let e=n;for(;null!==e&&1===e.nodeType;){if(OIt(e,"li"))return e;e=e.parentElement||e.parentNode}return null})(o)}findCurrentGroup(){if(!this.dataService.grouped)return void(this.currentGroup=void 0);const e=this.firstVisibleItem();if(e){let i;"group"===e.getAttribute("role")?(i=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(i).value):(i=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(i)))}else this.currentGroup=void 0;this.cdr.detectChanges()}prefetchData(){if(!this.virtual)return;const e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),i=this.content.nativeElement.scrollTop,s=Math.trunc(i/this.virtual.itemHeight),o=i>this.lastScrollTop,l=this.lastLoaded-this.pageSize+e>=s-(this.pageSize-(this.lastLoaded-this.startFrom));o&&s+e>=this.lastLoaded&&this.lastLoaded{let i=this.pageSize+e;i>this.virtual.total&&(e--,i=this.virtual.total),e<0&&(e=0),this.startFrom=e,this.lastLoaded=i,this.pageChange.emit({skip:e,take:this.pageSize})})}index(e,i){return e>0?this.dataService.groupIndices[e-1]+i:i}getText(e){return Qt(e,this.textField)}getValue(e){return Qt(e,this.valueField)}isDisabled(e){return je(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)}scrollToItem(e){let i=e;if(this.dataService.grouped&&(i=this.dataService.flatIndex(e),i+=this.firstGroupHeaderInTargetedPage(i)?-1:0),this.virtual&&i>-1)return void this.scrollToIndex(i);const s=this.items.toArray();je(s[i])&&-1!==i&&this.scroll(s[i].element)}scrollToIndex(e){let i=this.content.nativeElement,s=i.scrollTop;const o=e*this.virtual.itemHeight,a=i.clientHeight,l=o+this.virtual.itemHeight;s>o?s=o:l>s+a&&(s=l-a),i.scrollTop=s}scroll(e){if(!e)return;const i=e.nativeElement;let s=this.content.nativeElement,o=i.offsetTop,a=s.scrollTop,l=s.clientHeight,c=o+i.offsetHeight;a>o?a=o:c>a+l&&(a=c-l),s.scrollTop=a}hasScrollbar(){return!!(je(this.items)&&this.items.length&&je(this.list)&&je(this.content))&&(je(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}hasVirtualScrollbar(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}positionItems(){this.items.forEach((e,i)=>{this.renderer.setStyle(e.element.nativeElement,"transform",`translateY(${(i+this.startFrom)*this.virtual.itemHeight}px`)})}firstGroupHeaderInTargetedPage(e){return!je(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e}};return n.\u0275fac=function(e){return new(e||n)(g(fa),g($),g(Rr),g(ga),g(Be),g(ce),g(Ie))},n.\u0275cmp=K({type:n,selectors:[["kendo-list"]],viewQuery:function(e,i){if(1&e&&(Ae(HDt,7),Ae(GDt,7),Ae(jDt,5),Ae(M2,5)),2&e){let s;U(s=W())&&(i.content=s.first),U(s=W())&&(i.list=s.first),U(s=W())&&(i.virtualContainer=s.first),U(s=W())&&(i.items=s)}},inputs:{selected:"selected",focused:"focused",show:"show",multipleSelection:"multipleSelection",listClass:"listClass",checkboxes:"checkboxes",data:"data",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",id:"id",optionPrefix:"optionPrefix",virtual:"virtual"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[st],decls:9,vars:20,consts:[["class","k-outer-group-header k-first",3,"ngClass","ngStyle",4,"ngIf"],["unselectable","on",3,"ngClass"],["content",""],["role","listbox",3,"ngClass"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[1,"k-outer-group-header","k-first",3,"ngClass","ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",1,"k-item",3,"checkboxes","height","index","multipleSelection","ngClass"],[1,"k-checkbox-label"],["type","checkbox","class","k-checkbox",3,"checked","change",4,"ngIf"],["type","checkbox",1,"k-checkbox",3,"checked","change"],["role","group","class","k-outer-group-header",3,"ngClass","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","","class","k-item",3,"height","index","multipleSelection","ngClass",4,"ngIf"],["role","group",1,"k-outer-group-header",3,"ngClass","ngStyle"],["role","option","kendoDropDownsSelectable","",1,"k-item",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(e,i){1&e&&(A(0,qDt,3,10,"div",0),y(1,"div",1,2),y(3,"ul",3,4),A(5,JDt,1,1,void 0,5),A(6,cMt,1,1,void 0,5),A(7,dMt,1,0,"kendo-resize-sensor",6),_(),A(8,uMt,4,2,"div",7),_()),2&e&&(v("ngIf",i.dataService.grouped),b(1),yt("max-height",i.height,"px")("overflow-y",i.overflowY),v("ngClass",di(15,hMt,i.virtual,!i.virtual)),b(2),ov(i.listClass),v("ngClass",Yt(18,pMt,i.virtual)),fe("id",i.id)("aria-hidden",!i.show),b(2),v("ngIf",!i.dataService.grouped&&i.show),b(1),v("ngIf",i.dataService.grouped),b(1),v("ngIf",!i.virtual),b(1),v("ngIf",i.virtual))},directives:function(){return[pt,Un,zo,Vg,Wn,M2,CV,Kr]},encapsulation:2}),X([p(),B("design:type",Array)],n.prototype,"selected",void 0),X([p(),B("design:type",Number)],n.prototype,"focused",void 0),X([p(),B("design:type",String)],n.prototype,"textField",void 0),X([p(),B("design:type",String)],n.prototype,"valueField",void 0),X([p(),B("design:type",Number)],n.prototype,"height",void 0),X([p(),B("design:type",Gd)],n.prototype,"template",void 0),X([p(),B("design:type",jd)],n.prototype,"groupTemplate",void 0),X([p(),B("design:type",$d)],n.prototype,"fixedGroupTemplate",void 0),X([p(),B("design:type",Boolean)],n.prototype,"show",void 0),X([p(),B("design:type",String)],n.prototype,"id",void 0),X([p(),B("design:type",String)],n.prototype,"optionPrefix",void 0),X([p(),B("design:type",Boolean)],n.prototype,"multipleSelection",void 0),X([p(),B("design:type",Object)],n.prototype,"virtual",void 0),X([p(),B("design:type",String)],n.prototype,"listClass",void 0),X([p(),B("design:type",Object)],n.prototype,"checkboxes",void 0),X([p(),B("design:type",Array),B("design:paramtypes",[Array])],n.prototype,"data",null),X([Q(),B("design:type",S)],n.prototype,"onClick",void 0),X([Q(),B("design:type",S)],n.prototype,"pageChange",void 0),X([Q(),B("design:type",S)],n.prototype,"listResize",void 0),X([lc(M2),B("design:type",wt)],n.prototype,"items",void 0),X([at("content",{static:!0}),B("design:type",$)],n.prototype,"content",void 0),X([at("list",{static:!0}),B("design:type",$)],n.prototype,"list",void 0),X([at("virtualContainer",{static:!1}),B("design:type",$)],n.prototype,"virtualContainer",void 0),n=X([B("design:paramtypes",[fa,$,Rr,ga,Be,ce,Ie])],n),n})();const lTe={pageSize:50,itemHeight:28},lV=(n,t)=>{const e=Object.assign({},lTe,t);return!0===n?e:n?Object.assign({pageSize:lTe.pageSize},n):null},Ud=new ot("dropdowns-touch-enabled");var cV;const PIt={multi:!0,provide:es,useExisting:He(()=>mi)};let mi=cV=class{constructor(t,e,i,s,o,r,a,l,c,d,u){this.localization=t,this.dataService=e,this.popupService=i,this.selectionService=s,this.navigationService=o,this.disabledItemsService=r,this._zone=a,this.cdr=l,this.renderer=c,this.hostElement=d,this.touchEnabled=u,this.highlightFirst=!0,this.focusableId=`k-${id()}`,this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new S,this.filterChange=new S,this.open=new S,this.opened=new S,this.close=new S,this.closed=new S,this.onFocus=new S,this.onBlur=new S,this.widgetClasses=!0,this.listBoxId=id(),this.optionPrefix=id(),this.onChangeCallback=bx,this.onTouchedCallback=bx,this.popupMouseDownHandler=h=>h.preventDefault(),this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new Z,this._isFocused=!1,Ii(oV),this.direction=t.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}get width(){let t=0;Ft()&&(t=this.wrapper.offsetWidth);const e=this.popupSettings.width||t;return{min:isNaN(t)?t:`${t}px`,max:isNaN(e)?e:`${e}px`}}get height(){const t=this.popupSettings.height;return je(t)?`${t}px`:"auto"}get listContainerClasses(){const t=["k-list-container","k-reset"];return this.popupSettings.popupClass&&t.push(this.popupSettings.popupClass),t}get suggestion(){if(!this.text||!this.suggestedText)return void(this.suggestedText=void 0);const t=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&t?this.suggestedText:void 0}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}toggle(t){Promise.resolve(null).then(()=>{const e=je(t)?t:!this._open;this._toggle(e)})}get isOpen(){return this._open}togglePopup(t){this.disabled||this.readonly||this.isOpen===t||this.triggerPopupEvents(t)||this._toggle(t)}get activeDescendant(){if(!this.isOpen||!je(this.selectionService.focused)||-1===this.selectionService.focused)return null;const t=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+Qt(t,this.valueField)}get noDataLabel(){if(0===this.data.length)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}set data(t){this.dataService.data=t||[],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=Qt(this.dataService.itemAt(0),this.valueField))}get data(){const t=this.virtual;if(t){const e=t.skip||0,i=e+t.pageSize;return t.total=this.dataService.data.length,this.dataService.data.slice(e,i)}return this.dataService.data}set value(t){this.verifySettings(t),this._value=t||"",this.text=this.value,this.cdr.markForCheck()}get value(){return this._value||""}set popupSettings(t){this._popupSettings=Object.assign({animate:!0},t)}get popupSettings(){return this._popupSettings}set itemDisabled(t){if("function"!=typeof t)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(t)}.`);this.disabledItemsService.itemDisabled=t}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set virtual(t){this._virtualSettings=lV(t)}get virtual(){return this._virtualSettings}get isFocused(){return this._isFocused}set isFocused(t){this.renderer[t?"addClass":"removeClass"](this.wrapper,"k-state-focused"),this._isFocused=t}get isDisabled(){return this.disabled}get dir(){return this.direction}ngOnInit(){this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.setMessages()}),this.setMessages()}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}ngOnChanges(t){const e=this.virtual;e&&t.data&&t.data.isFirstChange()&&this.pageChange({skip:0,take:e.pageSize})}reset(){this.value=""}clearValue(t){t.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}writeValue(t){this.value=t}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t}focusItemAt(t){const e=t>=0&&t=0)i=Qt(this.dataService.itemAt(e),this.valueField);else{const s=this.suggest&&this.suggestedText&&this.data.length&&Qt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();i=this.isOpen&&s?this.suggestedText:this.searchbar.value}this.change(i)}handleEscape(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null}searchBarChange(t){const e=je(this.text)?this.text.length:0;this.backspacePressed=t.length0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(t):this.highlightFirst&&this.search(t)}handleFocus(){this.isFocused=!0,Kt(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})}handleBlur(){const t=this.filterable?this.selectionService.focused:-1;let e,i;this.searchbar.input.nativeElement.scrollLeft=0,-1!==t?(e=this.dataService.itemAt(t),i=Qt(e,this.valueField)||""):i=this.searchbar.value;const s=i===this.searchbar.value,o=i.toLowerCase()===this.searchbar.value.toLowerCase();!s&&o&&this.selectionService.resetSelection([]),this.isFocused=!1;const r=this.value!==this.text;Kt(this.onBlur)||Kt(this.close)||ED(this.wrapper)||r?this._zone.run(()=>{r&&this.change(this.searchbar.value),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}pageChange(t){this.virtual.skip=t.skip}change(t){this.togglePopup(!1),this.valueChangeSubject.next(t)}subscribeEvents(){!Ft()||(this.valueChangeSubscription=this.valueChangeSubject.subscribe(t=>{const e=this.value!==t;this.value=t,this.text=t,e&&this.emitChange(t)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=ii(this.navigationService.up,this.navigationService.down).subscribe(t=>this.navigate(t.index)),this.closeSubscription=this.navigationService.close.subscribe(()=>this.togglePopup(!1)),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))}subscribeTouchEvents(){!Ft()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",t=>{this.isFocused&&!D2(this.hostElement,t.target,this.popupRef)&&this._zone.run(()=>this.blur())}))}unsubscribeEvents(){!Ft()||(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())}handleItemChange(t){const e=t.indices.length?t.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),!je(e))return;let i=Qt(this.dataService.itemAt(e),this.valueField);this.change(i)}handleItemFocus(t){const e=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&e>=0)&&(this.suggestedText=Qt(this.dataService.itemAt(e),this.valueField))}createPopup(){this.virtual&&(this.virtual.skip=0);const t="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:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"}});const s=this.popupRef.popupElement,{min:o,max:r}=this.width;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=o,s.style.width=r,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}_toggle(t){this._open=t,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(t){const e=new Cx;return t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()}firstFocusableIndex(t){const e=this.data.length-1;return this.disabledItemsService.isIndexDisabled(t)?t{let i=Qt(e.value,this.valueField);return i=je(i)?i.toString().toLowerCase():"",i.startsWith(t.toLowerCase())}:e=>{let i=Qt(e,this.valueField);return i=je(i)?i.toString().toLowerCase():"",i.startsWith(t.toLowerCase())}}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}};mi.\u0275fac=function(t){return new(t||mi)(g(J),g(fa),g(Oi),g(Rr),g(ma),g(ga),g(ce),g(Be),g(Ie),g($),g(Ud,8))},mi.\u0275cmp=K({type:mi,selectors:[["kendo-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Gd,5),Ce(i,Ya,5),Ce(i,Ka,5),Ce(i,Za,5),Ce(i,jd,5),Ce(i,$d,5)),2&t){let s;U(s=W())&&(e.template=s.first),U(s=W())&&(e.headerTemplate=s.first),U(s=W())&&(e.footerTemplate=s.first),U(s=W())&&(e.noDataTemplate=s.first),U(s=W())&&(e.groupTemplate=s.first),U(s=W())&&(e.fixedGroupTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(DD,7,Gt),Ae(MD,7),Ae(Hd,7),Ae(iV,5)),2&t){let i;U(i=W())&&(e.container=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.searchbar=i.first),U(i=W())&&(e.optionsList=i.first)}},hostVars:7,hostBindings:function(t,e){2&t&&(fe("dir",e.dir),he("k-widget",e.widgetClasses)("k-autocomplete",e.widgetClasses)("k-state-disabled",e.isDisabled))},inputs:{highlightFirst:"highlightFirst",focusableId:"focusableId",placeholder:"placeholder",listHeight:"listHeight",clearButton:"clearButton",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",filterable:"filterable",data:"data",value:"value",popupSettings:"popupSettings",itemDisabled:"itemDisabled",tabIndex:"tabIndex",virtual:"virtual",valueField:"valueField",loading:"loading",suggest:"suggest"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoAutoComplete"],features:[we([PIt,fa,Rr,ma,ga,J,{provide:An,useValue:"kendo.autocomplete"},{provide:xx,useExisting:He(()=>cV)},{provide:Ds,useExisting:He(()=>cV)}]),st],decls:10,vars:15,consts:function(){let n,t;return n=$localize`:kendo.autocomplete.noDataText|The text displayed in the popup when there are no items␟4e9993e088a293543eb0c2801343518c115b6f20␟2690656529626907484:NO DATA FOUND`,t=$localize`:kendo.autocomplete.clearTitle|The title of the clear button␟7cf49cc2d50eebd29f8d61564512383caaaac7a6␟4821453594854847070:clear`,[["kendoAutoCompleteLocalizedMessages","","noDataText",n,"clearTitle",t],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"visibility","click","mousedown",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],[3,"ngIf"],["container",""],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"click","mousedown"],[1,"k-icon","k-i-loading"],[4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"kendo-searchbar",1,2),se("onNavigate",function(s){return e.handleNavigate(s)})("valueChange",function(s){return e.searchBarChange(s)})("onBlur",function(){return e.handleBlur()})("onFocus",function(){return e.handleFocus()}),_(),A(3,fMt,1,3,"span",3),A(4,gMt,1,0,"span",4),A(5,wMt,5,14,"ng-template",null,5,Ls),A(7,SMt,1,0,"ng-template",6),wn(8,null,7)),2&t&&(b(1),v("role","combobox")("id",e.focusableId)("listId",e.listBoxId)("activeDescendant",e.activeDescendant)("noDataLabel",e.noDataLabel)("userInput",e.text)("suggestedText",e.suggestion)("disabled",e.disabled)("readonly",e.readonly)("tabIndex",e.tabIndex)("popupOpen",e.isOpen)("placeholder",e.placeholder),b(2),v("ngIf",!e.loading&&!e.readonly&&e.clearButton&&(null==e.text?null:e.text.length)),b(1),v("ngIf",e.loading),b(3),v("ngIf",e.isOpen))},directives:function(){return[Wd,Hd,pt,Lg,Vg,Kr]},encapsulation:2}),X([p(),B("design:type",Boolean)],mi.prototype,"highlightFirst",void 0),X([p(),B("design:type",String)],mi.prototype,"focusableId",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],mi.prototype,"data",null),X([p(),B("design:type",String),B("design:paramtypes",[String])],mi.prototype,"value",null),X([p(),B("design:type",String)],mi.prototype,"valueField",void 0),X([p(),B("design:type",String)],mi.prototype,"placeholder",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],mi.prototype,"popupSettings",null),X([p(),B("design:type",Number)],mi.prototype,"listHeight",void 0),X([p(),B("design:type",Boolean)],mi.prototype,"loading",void 0),X([p(),B("design:type",Boolean)],mi.prototype,"clearButton",void 0),X([p(),B("design:type",Boolean)],mi.prototype,"suggest",void 0),X([p(),B("design:type",Boolean)],mi.prototype,"disabled",void 0),X([p(),B("design:type",Function),B("design:paramtypes",[Function])],mi.prototype,"itemDisabled",null),X([p(),B("design:type",Boolean)],mi.prototype,"readonly",void 0),X([p(),B("design:type",Number)],mi.prototype,"tabindex",void 0),X([p("tabIndex"),B("design:type",Number),B("design:paramtypes",[Number])],mi.prototype,"tabIndex",null),X([p(),B("design:type",Boolean)],mi.prototype,"filterable",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],mi.prototype,"virtual",null),X([Q(),B("design:type",S)],mi.prototype,"valueChange",void 0),X([Q(),B("design:type",S)],mi.prototype,"filterChange",void 0),X([Q(),B("design:type",S)],mi.prototype,"open",void 0),X([Q(),B("design:type",S)],mi.prototype,"opened",void 0),X([Q(),B("design:type",S)],mi.prototype,"close",void 0),X([Q(),B("design:type",S)],mi.prototype,"closed",void 0),X([Q("focus"),B("design:type",S)],mi.prototype,"onFocus",void 0),X([Q("blur"),B("design:type",S)],mi.prototype,"onBlur",void 0),X([ct(Gd,{static:!1}),B("design:type",Gd)],mi.prototype,"template",void 0),X([ct(Ya,{static:!1}),B("design:type",Ya)],mi.prototype,"headerTemplate",void 0),X([ct(Ka,{static:!1}),B("design:type",Ka)],mi.prototype,"footerTemplate",void 0),X([ct(Za,{static:!1}),B("design:type",Za)],mi.prototype,"noDataTemplate",void 0),X([ct(jd,{static:!1}),B("design:type",jd)],mi.prototype,"groupTemplate",void 0),X([ct($d,{static:!1}),B("design:type",$d)],mi.prototype,"fixedGroupTemplate",void 0),X([at("container",{read:Gt,static:!0}),B("design:type",Gt)],mi.prototype,"container",void 0),X([at("popupTemplate",{static:!0}),B("design:type",ve)],mi.prototype,"popupTemplate",void 0),X([at(Hd,{static:!0}),B("design:type",Hd)],mi.prototype,"searchbar",void 0),X([at("optionsList",{static:!1}),B("design:type",Lg)],mi.prototype,"optionsList",void 0),X([G("class.k-widget"),G("class.k-autocomplete"),B("design:type",Boolean)],mi.prototype,"widgetClasses",void 0),X([G("class.k-state-disabled"),B("design:type",Boolean),B("design:paramtypes",[])],mi.prototype,"isDisabled",null),X([G("attr.dir"),B("design:type",Object),B("design:paramtypes",[])],mi.prototype,"dir",null),mi=cV=X([Qp(10,gt()),Qp(10,Rn(Ud)),B("design:paramtypes",[J,fa,Oi,Rr,ma,ga,ce,Be,Ie,$,Boolean])],mi);const Ng_dataItems="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",Ng_valueDepth="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth";var fV;const LIt={multi:!0,provide:es,useExisting:He(()=>Xn)};let Xn=fV=class{constructor(t,e,i,s,o,r,a,l,c,d,u){this.localization=t,this.popupService=e,this.selectionService=i,this.navigationService=s,this.disabledItemsService=o,this.dataService=r,this.zone=a,this.cdr=l,this.renderer=c,this.hostElement=d,this.touchEnabled=u,this.selected=[],this.focusableId=`k-${id()}`,this.allowCustom=!1,this.valueNormalizer=h=>h.pipe(xe(f=>f)),this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new S,this.selectionChange=new S,this.filterChange=new S,this.open=new S,this.opened=new S,this.close=new S,this.closed=new S,this.onFocus=new S,this.onBlur=new S,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=id(),this.optionPrefix=id(),this.onChangeCallback=h=>{},this.onTouchedCallback=h=>{},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=h=>h.preventDefault(),this.customValueSubject=new Z,this.valueSubject=new Z,this.clearValueSubject=new Z,this.subs=new Je,Ii(oV),this.direction=t.rtl?"rtl":"ltr",this.data=[]}set text(t){this._text=je(t)?t.toString():""}get text(){return this._text}togglePopup(t){this.disabled||this.readonly||this.isOpen===t||this.triggerPopupEvents(t)||this._toggle(t)}get activeDescendant(){if(!this.isOpen||!je(this.selectionService.focused)||-1===this.selectionService.focused)return null;const t=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(t?Qt(t,this.valueField):"")}get noDataLabel(){if(0===this.data.length)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}set data(t){if(this.dataService.data=t||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){const i=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=i}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=Qt(this.dataService.itemAt(0),this.textField))}get data(){const t=this.virtual;if(t){const e=t.skip||0,i=e+t.pageSize;return t.total=this.dataService.data.length,this.dataService.data.slice(e,i)}return this.dataService.data}set value(t){this._value=t,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set valuePrimitive(t){this._valuePrimitive=t}get valuePrimitive(){return je(this._valuePrimitive)?this._valuePrimitive:!je(this.valueField)}set popupSettings(t){this._popupSettings=Object.assign({animate:!0},t)}get popupSettings(){return this._popupSettings}set itemDisabled(t){if("function"!=typeof t)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(t)}.`);this.disabledItemsService.itemDisabled=t}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set virtual(t){this._virtualSettings=lV(t,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}get virtual(){return this._virtualSettings}get clearable(){return this.clearButton}get dir(){return this.direction}get isFocused(){return this._isFocused}set isFocused(t){this.renderer[t?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=t}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get popupWidth(){let t=0;Ft()&&(t=this.wrapper.nativeElement.offsetWidth);const e=this.popupSettings.width||t;return{min:isNaN(t)?t:`${t}px`,max:isNaN(e)?e:`${e}px`}}get popupHeight(){const t=this.popupSettings.height;return je(t)?`${t}px`:"auto"}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()}createValueStream(){const t=this.valueSubject.pipe(dt(a=>{const l=Qt(this.value,this.valueField),c=Qt(a,this.valueField);let d=Qt(a,this.textField);return!(!je(this.value)&&!je(c)||(je(d)&&(d=d.toString()),l===c&&this.text===d&&(this.clearFilter(),1)))}),xe(a=>{const l=Qt(a,this.valueField);return{dataItem:a,text:Qt(a,this.textField),value:this.valuePrimitive?l:a}})),e=function(n,t){return e=>[dt(n,t)(e),dt(LDt(n,t))(e)]}(()=>this.allowCustom)(this.customValueSubject.pipe(vX(300))),i=e[0].pipe(lt(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),dt(()=>{const a=this.text!==Qt(this.value,this.valueField);return this.loading=a,this.disabled=a,a||this.clearFilter(),a}),this.valueNormalizer,xe(a=>({custom:!0,dataItem:a,text:this.text,value:a}))),s=e[1].pipe(xe(()=>({custom:!0,dataItem:void 0,text:void 0,value:void 0}))),o=this.clearValueSubject.pipe(xe(()=>({dataItem:void 0,text:void 0,value:void 0})));this.valueSubscription&&this.valueSubscription.unsubscribe();const r=ii(t,i,s,o);this.valueSubscription=r.pipe(fl(()=>{const a=void 0!==Qt(this.dataItem,this.valueField);return this.dataItem=void 0,this.value=void 0,this.text=void 0,this.loading=!1,this.disabled=!1,a&&this.selectionChange.emit(void 0),this.emitValueChange(),this.createValueStream(),Vt(null)})).subscribe(a=>{const l=Qt(this.dataItem,this.valueField)!==Qt(a.dataItem,this.valueField);this.dataItem=a.dataItem,this.value=a.value,this.text=a.text,this.loading=!1,this.disabled=!1,this.clearFilter(),a.custom&&(this.selectionService.focused=-1),l&&this.selectionChange.emit(a.custom?void 0:this.dataItem),this.emitValueChange()})}attachStreams(){!Ft()||(this.subs.add(this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.setMessages()})),this.subs.add(ii(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(dt(t=>je(t.index))).subscribe(t=>this.navigate(t.index))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(lt(t=>{this.isOpen&&t.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(ii(this.selectionService.onChange,this.selectionService.onSelect.pipe(dt(t=>!this.isOpen))).pipe(lt(t=>{this._filtering=!1,this.togglePopup(!1)}),xe(t=>this.dataService.itemAt(t.indices[0]))).subscribe(t=>{this.change(t)})),this.subs.add(this.selectionService.onSelect.pipe(dt(t=>this.isOpen),lt(t=>this._filtering=!1),xe(t=>this.dataService.itemAt(t.indices[0]))).subscribe(t=>{const e=Qt(t,this.valueField)!==Qt(this.dataItem,this.valueField);this.updateState({dataItem:t}),e&&this.selectionChange.emit(t)})))}ngOnDestroy(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),je(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}ngOnChanges(t){const e=this.virtual;e&&t.data&&t.data.isFirstChange()&&this.pageChange({skip:0,take:e.pageSize}),Io("valueNormalizer",t)&&this.createValueStream(),Xo(["textField","valueField","valuePrimitive"],t,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(t){const e=t>=0&&t{const e=je(t)?t:!this._open;this._toggle(e),this.cdr.markForCheck()})}get isOpen(){return this._open}reset(){this.value=void 0,this.clearState(),this.resetSelection()}isEmpty(){const t=!je(this.text)||tTe(this.text),e=!je(this.value)||tTe(this.value);return t&&e}clearValue(t){t.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1}writeValue(t){this.value=null===t?void 0:t}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t}get buttonClasses(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"}onResize(){if(this.isOpen){const t=this.popupRef.popupElement,{min:e,max:i}=this.popupWidth;t.style.minWidth=e,t.style.width=i}}verifySettings(){if(En()){if(!0===this.valuePrimitive&&je(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!1===this.valuePrimitive&&je(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!je(this.valueField)!=!je(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data");if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error("Expected virtual.itemHeight of type number.")}}setState(){if(this._filtering)return;const t=this.value,i=this.findDataItem({valueField:this.valueField,value:t});je(i.index)&&-1!==i.index?(this.updateState({dataItem:i.dataItem,confirm:!0}),this.resetSelection(i.index)):je(t)&&this.allowCustom?(this.updateState({dataItem:t}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}updateState({dataItem:t,confirm:e=!1}){this.dataItem=t,this.text=Qt(t,this.textField),e&&(this._previousDataItem=t)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(t){const e=!je(t)||t<0;this.selectionService.resetSelection(e?[]:[t]),this.selectionService.focused=t}firstFocusableIndex(t){const e=this.data.length-1;return this.disabledItemsService.isIndexDisabled(t)?t{let i=Qt(e.value,this.textField);return i=je(i)?i.toString().toLowerCase():"",i.startsWith(t.toLowerCase())}:e=>{let i=Qt(e,this.textField);return i=je(i)?i.toString().toLowerCase():"",i.startsWith(t.toLowerCase())}}findDataItem({valueField:t,value:e}){const i={dataItem:null,index:-1},o=this.dataService.findIndex(r=>Qt(this.dataService.grouped?r.value:r,t)===Qt(e,t));return i.dataItem=this.dataService.itemAt(o),i.index=o,i}search(t,e=0){let i;i=t.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(t),e):-1,this.disabledItemsService.isIndexDisabled(i)?i+1{s&&(je(this.focusedItemText)&&this.focusedItemText.toLowerCase()===e.toLowerCase()||t?this.selectionService.change(this.selectionService.focused):this.change(e,!0)),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}handleEscape(){this.togglePopup(!1),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)}handleNavigationOpen(){this.restoreItemFocus(),this.togglePopup(!0)}searchBarChange(t){this.backspacePressed=t.length<(this.text?this.text.length:0),this.text=t,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==t?(this.filterText=t,this.filterChange.emit(t)):this.search(t)}handleFocus(){this.isFocused=!0,Kt(this.onFocus)&&this.zone.run(()=>this.onFocus.emit())}pageChange(t){this.virtual.skip=t.skip}change(t,e=!1){e?this.customValueSubject.next(t):this.valueSubject.next(t)}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}selectClick(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}get listContainerClasses(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}preventEventDefault(t){t.preventDefault()}get focusedItemText(){const t=this.selectionService.focused;if(!je(t)||-1===t)return null;const e=Qt(this.dataService.itemAt(t),this.textField);return je(e)?e.toString():""}restoreItemFocus(){!(je(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}useSuggestion(){if(!this.suggest||!je(this.searchbar.value))return!1;const t=this.dataService.itemAt(this.selectionService.focused),e=Qt(t,this.textField);return!!je(e)&&this.searchbar.value.toLowerCase()===e.toLowerCase()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){this.virtual&&(this.virtual.skip=0);const t="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:t,vertical:"bottom"},popupAlign:{horizontal:t,vertical:"top"}});const s=this.popupRef.popupElement,{min:o,max:r}=this.popupWidth;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=o,s.style.width=r,s.style.height=this.popupHeight,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}_toggle(t){this._open=t,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(t){const e=new Cx;return t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()}clearFilter(){!this.filterable||!this.filterText||(this.filterText="",this.filterChange.emit(this.filterText))}setMessages(){this.zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}subscribeTouchEvents(){!Ft()||!this.touchEnabled||this.zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",t=>{const i=D2(this.hostElement,t.target,this.popupRef);this.isFocused&&!i?this.zone.run(()=>this.blur()):this.isOpen&&!i&&this.zone.run(()=>this.togglePopup(!1))}))}attachSelectClickHandler(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,ywe?"pointerdown":"click",this.selectClick.bind(this))}};Xn.\u0275fac=function(t){return new(t||Xn)(g(J),g(Oi),g(Rr),g(ma),g(ga),g(fa),g(ce),g(Be),g(Ie),g($),g(Ud,8))},Xn.\u0275cmp=K({type:Xn,selectors:[["kendo-combobox"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Gd,5),Ce(i,Ya,5),Ce(i,Ka,5),Ce(i,Za,5),Ce(i,jd,5),Ce(i,$d,5)),2&t){let s;U(s=W())&&(e.template=s.first),U(s=W())&&(e.headerTemplate=s.first),U(s=W())&&(e.footerTemplate=s.first),U(s=W())&&(e.noDataTemplate=s.first),U(s=W())&&(e.groupTemplate=s.first),U(s=W())&&(e.fixedGroupTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(DD,7,Gt),Ae(MD,7),Ae(Hd,7),Ae(iV,5),Ae(k2,7),Ae(TMt,7)),2&t){let i;U(i=W())&&(e.container=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.searchbar=i.first),U(i=W())&&(e.optionsList=i.first),U(i=W())&&(e.wrapper=i.first),U(i=W())&&(e.select=i.first)}},hostVars:7,hostBindings:function(t,e){2&t&&(fe("dir",e.dir),he("k-widget",e.widgetClasses)("k-combobox",e.widgetClasses)("k-combobox-clearable",e.clearable))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer",placeholder:"placeholder",listHeight:"listHeight",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",filterable:"filterable",data:"data",value:"value",valuePrimitive:"valuePrimitive",popupSettings:"popupSettings",itemDisabled:"itemDisabled",tabIndex:"tabIndex",virtual:"virtual",loading:"loading",textField:"textField",valueField:"valueField",iconClass:"iconClass"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[we([LIt,fa,Rr,ma,ga,J,{provide:An,useValue:"kendo.combobox"},{provide:xx,useExisting:He(()=>fV)},{provide:Ds,useExisting:He(()=>fV)}]),st],decls:14,vars:21,consts:function(){let n,t;return n=$localize`:kendo.combobox.noDataText|The text displayed in the popup when there are no items␟2b6e00c74a6d9c98c03a6274d0224e9bd457ff89␟7708502966028483300:NO DATA FOUND`,t=$localize`:kendo.combobox.clearTitle|The title of the clear button␟069e8fae80677e3e785861123bef446b3ff41ab4␟2025597431468961462:clear`,[["kendoComboBoxLocalizedMessages","","noDataText",n,"clearTitle",t],["unselectable","on",1,"k-dropdown-wrap",3,"ngClass"],["wrapper",""],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["aria-hidden","true","unselectable","on",1,"k-select",3,"kendoEventsOutsideAngular"],["select",""],[1,"k-icon",3,"ngClass"],["popupTemplate",""],[3,"ngIf"],["container",""],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"kendoEventsOutsideAngular","click"],[4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),y(3,"kendo-searchbar",3,4),se("onNavigate",function(s){return e.handleNavigate(s)})("valueChange",function(s){return e.searchBarChange(s)})("onBlur",function(){return e.handleBlur()})("onFocus",function(){return e.handleFocus()}),_(),A(5,kMt,1,6,"span",5),y(6,"span",6,7),P(8,"span",8),_(),A(9,RMt,5,14,"ng-template",null,9,Ls),_(),A(11,PMt,1,0,"ng-template",10),wn(12,null,11)),2&t&&(b(1),v("ngClass",Yt(17,qY,e.disabled)),b(2),v("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),b(2),v("ngIf",e.clearButton&&!e.loading&&!e.disabled&&!e.readonly&&(null==e.text?null:e.text.length)),b(1),v("kendoEventsOutsideAngular",Yt(19,sV,e.preventEventDefault)),b(2),v("ngClass",e.buttonClasses),b(3),v("ngIf",e.isOpen))},directives:function(){return[Wd,Un,Hd,pt,lr,Lg,Vg,Kr]},encapsulation:2}),X([p(),B("design:type",String)],Xn.prototype,"focusableId",void 0),X([p(),B("design:type",Boolean)],Xn.prototype,"allowCustom",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Xn.prototype,"data",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Xn.prototype,"value",null),X([p(),B("design:type",String)],Xn.prototype,"textField",void 0),X([p(),B("design:type",String)],Xn.prototype,"valueField",void 0),X([p(),B("design:type",Boolean),B("design:paramtypes",[Boolean])],Xn.prototype,"valuePrimitive",null),X([p(),B("design:type",Function)],Xn.prototype,"valueNormalizer",void 0),X([p(),B("design:type",String)],Xn.prototype,"placeholder",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Xn.prototype,"popupSettings",null),X([p(),B("design:type",Number)],Xn.prototype,"listHeight",void 0),X([p(),B("design:type",String)],Xn.prototype,"iconClass",void 0),X([p(),B("design:type",Boolean)],Xn.prototype,"loading",void 0),X([p(),B("design:type",Boolean)],Xn.prototype,"suggest",void 0),X([p(),B("design:type",Boolean)],Xn.prototype,"clearButton",void 0),X([p(),B("design:type",Boolean)],Xn.prototype,"disabled",void 0),X([p(),B("design:type",Function),B("design:paramtypes",[Function])],Xn.prototype,"itemDisabled",null),X([p(),B("design:type",Boolean)],Xn.prototype,"readonly",void 0),X([p(),B("design:type",Number)],Xn.prototype,"tabindex",void 0),X([p("tabIndex"),B("design:type",Number),B("design:paramtypes",[Number])],Xn.prototype,"tabIndex",null),X([p(),B("design:type",Boolean)],Xn.prototype,"filterable",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Xn.prototype,"virtual",null),X([Q(),B("design:type",S)],Xn.prototype,"valueChange",void 0),X([Q(),B("design:type",S)],Xn.prototype,"selectionChange",void 0),X([Q(),B("design:type",S)],Xn.prototype,"filterChange",void 0),X([Q(),B("design:type",S)],Xn.prototype,"open",void 0),X([Q(),B("design:type",S)],Xn.prototype,"opened",void 0),X([Q(),B("design:type",S)],Xn.prototype,"close",void 0),X([Q(),B("design:type",S)],Xn.prototype,"closed",void 0),X([Q("focus"),B("design:type",S)],Xn.prototype,"onFocus",void 0),X([Q("blur"),B("design:type",S)],Xn.prototype,"onBlur",void 0),X([ct(Gd,{static:!1}),B("design:type",Gd)],Xn.prototype,"template",void 0),X([ct(Ya,{static:!1}),B("design:type",Ya)],Xn.prototype,"headerTemplate",void 0),X([ct(Ka,{static:!1}),B("design:type",Ka)],Xn.prototype,"footerTemplate",void 0),X([ct(Za,{static:!1}),B("design:type",Za)],Xn.prototype,"noDataTemplate",void 0),X([ct(jd,{static:!1}),B("design:type",jd)],Xn.prototype,"groupTemplate",void 0),X([ct($d,{static:!1}),B("design:type",$d)],Xn.prototype,"fixedGroupTemplate",void 0),X([at("container",{read:Gt,static:!0}),B("design:type",Gt)],Xn.prototype,"container",void 0),X([at("popupTemplate",{static:!0}),B("design:type",ve)],Xn.prototype,"popupTemplate",void 0),X([at(Hd,{static:!0}),B("design:type",Hd)],Xn.prototype,"searchbar",void 0),X([at("optionsList",{static:!1}),B("design:type",Lg)],Xn.prototype,"optionsList",void 0),X([at("wrapper",{static:!0}),B("design:type",$)],Xn.prototype,"wrapper",void 0),X([at("select",{static:!0}),B("design:type",$)],Xn.prototype,"select",void 0),X([G("class.k-widget"),G("class.k-combobox"),B("design:type",Boolean)],Xn.prototype,"widgetClasses",void 0),X([G("class.k-combobox-clearable"),B("design:type",Boolean),B("design:paramtypes",[])],Xn.prototype,"clearable",null),X([G("attr.dir"),B("design:type",Object),B("design:paramtypes",[])],Xn.prototype,"dir",null),Xn=fV=X([Qp(10,gt()),Qp(10,Rn(Ud)),B("design:paramtypes",[J,Oi,Rr,ma,ga,fa,ce,Be,Ie,$,Boolean])],Xn);let wx=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})();var gV;const NIt={multi:!0,provide:es,useExisting:He(()=>bn)};let bn=gV=class{constructor(t,e,i,s,o,r,a,l,c,d,u){this.localization=t,this.popupService=e,this.selectionService=i,this.navigationService=s,this.disabledItemsService=o,this.dataService=r,this._zone=a,this.renderer=l,this.hostElement=c,this.cdr=d,this.touchEnabled=u,this.focusableId=`k-${id()}`,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new S,this.filterChange=new S,this.selectionChange=new S,this.open=new S,this.opened=new S,this.close=new S,this.closed=new S,this.onFocus=new S,this.onBlur=new S,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=id(),this.optionPrefix=id(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=h=>{},this.onChangeCallback=h=>{},this.word="",this.last="",this.filterFocused=new S,this.filterBlurred=new S,this.wrapperFocused=new S,this.wrapperBlurred=new S,this.selectionSubscription=new Je,this._open=!1,this._popupSettings={animate:!0},Ii(oV),this.direction=t.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}get width(){const t=Ft()?this.wrapper.nativeElement.offsetWidth:0,e=this.popupSettings.width||t;return{min:isNaN(t)?t:`${t}px`,max:isNaN(e)?e:`${e}px`}}get height(){const t=this.popupSettings.height;return je(t)?`${t}px`:"auto"}get widgetTabIndex(){if(this.disabled)return;const t=Number(this.tabIndex);return isNaN(t)?0:t}get ariaExpanded(){return this.isOpen}get ariaOwns(){if(this.isOpen)return this.listBoxId}get ariaActivedescendant(){if(je(this.dataItem))return this.optionPrefix+"-"+Qt(this.dataItem,this.valueField)}get noDataLabel(){if(0===this.dataService.itemsCount)return this.noDataText}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}set data(t){this.dataService.data=t||[],this.virtual&&(this.virtual.skip=0),this.setState()}get data(){const t=this.virtual;if(t){const e=t.skip||0,i=e+t.pageSize;return t.total=this.dataService.data.length,this.dataService.data.slice(e,i)}return this.dataService.data}set value(t){je(t)||(this._previousDataItem=void 0),this._value=t,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set popupSettings(t){this._popupSettings=Object.assign({animate:!0},t)}get popupSettings(){return this._popupSettings}set itemDisabled(t){if("function"!=typeof t)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(t)}.`);this.disabledItemsService.itemDisabled=t}set virtual(t){this._virtualSettings=lV(t)}get virtual(){return this._virtualSettings}set valuePrimitive(t){this._valuePrimitive=t}get valuePrimitive(){return je(this._valuePrimitive)?this._valuePrimitive:!je(this.valueField)}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}blurComponent(){this.wrapperBlurred.emit()}blurFilterInput(){this.filterBlurred.emit()}focusComponent(){this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,Kt(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}keydown(t){const e=je(this.defaultItem)?-1:0;let i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(e):this.selectionService.focused,s=0;if(this.disabled||this.readonly)return;if(this.filterable&&this.isFocused&&this.isOpen&&(t.keyCode===_e.Home||t.keyCode===_e.End))return;const a=je(this.selectionService.selected[0]),l=je(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!a||l)&&(t.keyCode===_e.ArrowDown||t.keyCode===_e.ArrowRight?s=-1:(t.keyCode===_e.ArrowUp||t.keyCode===_e.ArrowLeft)&&(s=1));const c=t,d=this.navigationService.process({current:i+s,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:c});d!==Si.Undefined&&d!==Si.Tab&&d!==Si.Backspace&&d!==Si.Delete&&(d!==Si.Left&&d!==Si.Right||!this.filterable)&&d!==Si.Enter&&c.preventDefault()}keypress(t){this.disabled||this.readonly||this.filterable||this.onKeyPress(t)}click(t){t.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)}onResize(){if(this._open){const t=this.popupRef.popupElement,{min:e,max:i}=this.width;t.style.minWidth=e,t.style.width=i}}get dir(){return this.direction}set isFocused(t){this.renderer[t?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=t}get isFocused(){return this._isFocused}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.setMessages()}),this.setMessages(),this.assignAriaDescribedBy()}isEmpty(){const t=this.value;return!(0===t||!1===t||t||this.defaultItem)}onFilterFocus(){this.filterFocused.emit()}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}ngOnChanges(t){const e=this.virtual;e&&t.data&&t.data.isFirstChange()&&this.pageChange({skip:0,take:e.pageSize}),Io("defaultItem",t,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Xo(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],t,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(t){const i=(je(this.defaultItem)?-1:0)<=t&&t{const e=je(t)?t:!this._open;this._toggle(e)})}_toggle(t){this._open=t,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(t){const e=new Cx;return t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()}togglePopup(t){this.disabled||this.readonly||this.isOpen===t||this.triggerPopupEvents(t)||(!t&&this.filterable&&this.isFocused&&this.focus(),this._toggle(t))}get isOpen(){return this._open}reset(){this.value=void 0}writeValue(t){this.value=null===t?void 0:t}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t}get buttonClasses(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"}get listContainerClasses(){const t=["k-list-container","k-reset"];return this.popupSettings.popupClass&&t.push(this.popupSettings.popupClass),t}get isDisabledDefaultItem(){return this.disabledItemsService.isItemDisabled(this.defaultItem)}getText(){return this.text}getDefaultItemText(){return Qt(this.defaultItem,this.textField)}createPopup(){this.virtual&&(this.virtual.skip=0);const t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const s=this.popupRef.popupElement,{min:o,max:r}=this.width;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=o,s.style.width=r,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}updateState({dataItem:t,confirm:e=!1}){this.dataItem=t,this.text=Qt(t,this.textField),e&&(this._previousDataItem=t)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(t){const e=!je(t);this.selectionService.resetSelection(e?[]:[t]),this.selectionService.focused=e?this.firstFocusableIndex(0):t}onSelectionChange({dataItem:t}){this.updateState({dataItem:t}),this.selectionChange.emit(t),this.assignAriaDescribedBy()}subscribeEvents(){!Ft()||(this.selectionSubscription.add(this.selectionService.onSelect.pipe(dt(t=>this.isOpen),xe(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(ii(this.selectionService.onSelect.pipe(dt(t=>!this.isOpen)),this.selectionService.onChange).pipe(xe(this.itemFromEvent.bind(this)),lt(t=>this.togglePopup(!1))).subscribe(({dataItem:t,value:e,newSelection:i})=>{i&&this.onSelectionChange({dataItem:t});const s=!je(t)&&this._previousDataItem,o=e!==Qt(this.value,this.valueField);s?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):o&&(this.value=this.valuePrimitive?e:t,this._previousDataItem=t,this.emitChange(this.value)),this.clearFilter()})),this.navigationSubscription=ii(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(Y1e(()=>this.filterable)),this.navigationService.right.pipe(Y1e(()=>this.filterable)),this.navigationService.home,this.navigationService.end).pipe(dt(t=>!isNaN(t.index))).subscribe(t=>this.selectionService.select(t.index)),this.openSubscription=this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.closeSubscription=this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()}),this.enterSubscription=this.navigationService.enter.pipe(lt(t=>t.originalEvent.preventDefault())).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(ly(()=>t2(10).pipe(jn(1),et(this.wrapperFocused)))).subscribe(()=>{this.wrapperBlurred.emit()}),this._zone.runOutsideAngular(()=>{this.componentBlurredSubscription=ii(this.wrapperBlurred.pipe(ly(()=>t2(10).pipe(jn(1),et(this.filterFocused)))),this.navigationService.tab).pipe(lt(t=>t instanceof aTe&&this.focus()),dt(()=>this.isFocused)).subscribe(()=>this.componentBlur())}))}subscribeTouchEvents(){!Ft()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",t=>{this.isFocused&&!D2(this.hostElement,t.target,this.popupRef)&&this._zone.run(()=>{this.filterFocused&&this.togglePopup(!1),this.blur()})}))}unsubscribeEvents(){!Ft()||(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())}itemFromEvent(t){const e=t.indices[0];let i=this.dataService.itemAt(e);i=je(i)?i:this.currentOrDefault(e);const s=Qt(i,this.valueField);return{dataItem:i,index:e,newSelection:t.newSelection,value:s}}currentOrDefault(t){return je(this.dataItem)&&-1!==t?this.dataItem:this.defaultItem}firstFocusableIndex(t){const e=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(t)?t{e&&this.selectionService.change(this.selectionService.selected[0]),this.togglePopup(!1),this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1)}onMouseDown(t){"input"!==t.target.tagName.toLowerCase()&&t.preventDefault()}onKeyPress(t){if(0===t.which||t.keyCode===_e.Enter)return;let e=String.fromCharCode(t.charCode||t.keyCode);this.ignoreCase&&(e=e.toLowerCase())," "===e&&t.preventDefault(),this.word+=e,this.last=e,this.search()}search(){clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(()=>{this.word=""},this.delay),this.selectNext())}selectNext(){let t=this.dataService.filter(c=>je(c)&&!c.header&&!this.disabledItemsService.isItemDisabled(c)).map(c=>this.dataService.grouped?{item:c.value,itemIndex:c.offsetIndex}:{item:c,itemIndex:this.dataService.indexOf(c)});const e=((n,t)=>{for(let e=0;e{let i=n;return e&&(i=[e].concat(i)),i.slice(t).concat(i.slice(0,t))})(t,o,l),a=0;aQt(a,t);let o;o=this.dataService.grouped?a=>s(a.value)===s(e):a=>s(a)===s(e);const r=this.dataService.findIndex(o);return i.dataItem=this.dataService.itemAt(r),i.index=r,i}setState(){const t=this.value,e=this.valueField,i=this.textField,s=this.valuePrimitive;if(this.defaultItem){const a=Qt(this.defaultItem,e),l=Qt(t,e);if(!je(t)||l===a)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}const o=this.findDataItem({valueField:e,value:t}),r=!(s&&i);o.dataItem?(this.updateState({dataItem:o.dataItem,confirm:!0}),this.resetSelection(o.index)):je(t)&&r?(this.updateState({dataItem:t}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())}handleFilter(t){this.filterChange.emit(t.target.value)}pageChange(t){this.virtual.skip=t.skip}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}assignAriaDescribedBy(){const e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=id();const i=`${this.valueLabelId} ${e}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",i)}};bn.\u0275fac=function(t){return new(t||bn)(g(J),g(Oi),g(Rr),g(ma),g(ga),g(fa),g(ce),g(Ie),g($),g(Be),g(Ud,8))},bn.\u0275cmp=K({type:bn,selectors:[["kendo-dropdownlist"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Gd,5),Ce(i,jd,5),Ce(i,$d,5),Ce(i,wx,5),Ce(i,Ya,5),Ce(i,Ka,5),Ce(i,Za,5)),2&t){let s;U(s=W())&&(e.itemTemplate=s.first),U(s=W())&&(e.groupTemplate=s.first),U(s=W())&&(e.fixedGroupTemplate=s.first),U(s=W())&&(e.valueTemplate=s.first),U(s=W())&&(e.headerTemplate=s.first),U(s=W())&&(e.footerTemplate=s.first),U(s=W())&&(e.noDataTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(DD,7,Gt),Ae(MD,7),Ae(k2,7),Ae(iV,5)),2&t){let i;U(i=W())&&(e.container=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.wrapper=i.first),U(i=W())&&(e.optionsList=i.first)}},hostVars:5,hostBindings:function(t,e){2&t&&(fe("dir",e.dir),he("k-widget",e.widgetClasses)("k-dropdown",e.widgetClasses))},inputs:{focusableId:"focusableId",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",filterable:"filterable",ignoreCase:"ignoreCase",delay:"delay",tabindex:"tabindex",data:"data",value:"value",popupSettings:"popupSettings",itemDisabled:"itemDisabled",virtual:"virtual",valuePrimitive:"valuePrimitive",tabIndex:"tabIndex",iconClass:"iconClass",loading:"loading",textField:"textField",valueField:"valueField",defaultItem:"defaultItem"},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownList"],features:[we([NIt,fa,Rr,ma,ga,J,{provide:An,useValue:"kendo.dropdownlist"},{provide:xx,useExisting:He(()=>gV)},{provide:Ds,useExisting:He(()=>gV)}]),st],decls:13,vars:23,consts:function(){let n;return n=$localize`:kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items␟4fc2f70c9c8cf7b18affd6b938105996d6ac3306␟8289552890585138350:NO DATA FOUND`,[["kendoDropDownListLocalizedMessages","","noDataText",n],["unselectable","on","role","listbox","aria-haspopup","listbox",3,"id","ngClass","kendoEventsOutsideAngular","scope","keydown","keypress","click"],["wrapper",""],["unselectable","on",1,"k-input",3,"id"],[4,"ngIf"],[3,"ngIf"],["unselectable","on",1,"k-select"],["unselectable","on",1,"k-icon",3,"ngClass"],["popupTemplate",""],["container",""],[3,"templateContext"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[1,"k-list-filter",3,"click"],["tabindex","-1",1,"k-textbox",3,"filterInput","dir","ngModel","ngModelChange","keydown","input","focus","blur"],["unselectable","on",1,"k-icon","k-i-search"],["kendoDropDownsSelectable","",1,"k-list-optionlabel",3,"ngClass","index"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),se("keydown",function(s){return e.keydown(s)})("keypress",function(s){return e.keypress(s)})("click",function(s){return e.click(s)}),y(3,"span",3),A(4,NMt,1,4,void 0,4),A(5,BMt,1,1,"ng-template",5),_(),y(6,"span",6),P(7,"span",7),_(),A(8,KMt,8,17,"ng-template",null,8,Ls),_(),A(10,ZMt,1,0,"ng-template",5),wn(11,null,9)),2&t&&(b(1),v("id",e.focusableId)("ngClass",Yt(18,J1e,e.disabled))("kendoEventsOutsideAngular",di(20,nV,e.focusComponent,e.blurComponent))("scope",e),fe("dir",e.direction)("readonly",e.readonly)("tabindex",e.widgetTabIndex)("aria-disabled",e.disabled)("aria-readonly",e.readonly)("aria-expanded",e.ariaExpanded)("aria-owns",e.ariaOwns)("aria-activedescendant",e.ariaActivedescendant)("aria-label",e.noDataLabel),b(2),v("id",e.valueLabelId),b(1),v("ngIf",e.valueTemplate),b(1),v("ngIf",!e.valueTemplate),b(2),v("ngClass",e.buttonClasses),b(3),v("ngIf",e.isOpen))},directives:function(){return[Wd,Un,lr,pt,Vg,Lg,pg,tK,Xc,zp,CV,Kr]},encapsulation:2}),X([p(),B("design:type",String)],bn.prototype,"focusableId",void 0),X([p(),B("design:type",String)],bn.prototype,"iconClass",void 0),X([p(),B("design:type",Boolean)],bn.prototype,"loading",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],bn.prototype,"data",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],bn.prototype,"value",null),X([p(),B("design:type",String)],bn.prototype,"textField",void 0),X([p(),B("design:type",String)],bn.prototype,"valueField",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],bn.prototype,"popupSettings",null),X([p(),B("design:type",Number)],bn.prototype,"listHeight",void 0),X([p(),B("design:type",Object)],bn.prototype,"defaultItem",void 0),X([p(),B("design:type",Boolean)],bn.prototype,"disabled",void 0),X([p(),B("design:type",Function),B("design:paramtypes",[Function])],bn.prototype,"itemDisabled",null),X([p(),B("design:type",Boolean)],bn.prototype,"readonly",void 0),X([p(),B("design:type",Boolean)],bn.prototype,"filterable",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],bn.prototype,"virtual",null),X([p(),B("design:type",Boolean)],bn.prototype,"ignoreCase",void 0),X([p(),B("design:type",Number)],bn.prototype,"delay",void 0),X([p(),B("design:type",Boolean),B("design:paramtypes",[Boolean])],bn.prototype,"valuePrimitive",null),X([p(),B("design:type",Number)],bn.prototype,"tabindex",void 0),X([p("tabIndex"),B("design:type",Number),B("design:paramtypes",[Number])],bn.prototype,"tabIndex",null),X([Q(),B("design:type",S)],bn.prototype,"valueChange",void 0),X([Q(),B("design:type",S)],bn.prototype,"filterChange",void 0),X([Q(),B("design:type",S)],bn.prototype,"selectionChange",void 0),X([Q(),B("design:type",S)],bn.prototype,"open",void 0),X([Q(),B("design:type",S)],bn.prototype,"opened",void 0),X([Q(),B("design:type",S)],bn.prototype,"close",void 0),X([Q(),B("design:type",S)],bn.prototype,"closed",void 0),X([Q("focus"),B("design:type",S)],bn.prototype,"onFocus",void 0),X([Q("blur"),B("design:type",S)],bn.prototype,"onBlur",void 0),X([ct(Gd,{static:!1}),B("design:type",Gd)],bn.prototype,"itemTemplate",void 0),X([ct(jd,{static:!1}),B("design:type",jd)],bn.prototype,"groupTemplate",void 0),X([ct($d,{static:!1}),B("design:type",$d)],bn.prototype,"fixedGroupTemplate",void 0),X([ct(wx,{static:!1}),B("design:type",wx)],bn.prototype,"valueTemplate",void 0),X([ct(Ya,{static:!1}),B("design:type",Ya)],bn.prototype,"headerTemplate",void 0),X([ct(Ka,{static:!1}),B("design:type",Ka)],bn.prototype,"footerTemplate",void 0),X([ct(Za,{static:!1}),B("design:type",Za)],bn.prototype,"noDataTemplate",void 0),X([at("container",{read:Gt,static:!0}),B("design:type",Gt)],bn.prototype,"container",void 0),X([at("popupTemplate",{static:!0}),B("design:type",ve)],bn.prototype,"popupTemplate",void 0),X([at("wrapper",{static:!0}),B("design:type",$)],bn.prototype,"wrapper",void 0),X([at("optionsList",{static:!1}),B("design:type",Lg)],bn.prototype,"optionsList",void 0),X([G("class.k-widget"),G("class.k-dropdown"),B("design:type",Boolean)],bn.prototype,"widgetClasses",void 0),X([G("attr.dir"),B("design:type",String),B("design:paramtypes",[])],bn.prototype,"dir",null),bn=gV=X([Qp(10,gt()),Qp(10,Rn(Ud)),B("design:paramtypes",[J,Oi,Rr,ma,ga,fa,ce,Ie,$,Be,Boolean])],bn);let mV=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoMultiSelectCustomItemTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),tb=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoMultiSelectTagTemplate",""],["","kendoMultiSelectTreeTagTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),nb=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoMultiSelectGroupTagTemplate",""],["","kendoMultiSelectTreeGroupTagTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})();class dTe extends Cx{constructor(t){super(),this.dataItem=t}}var yV;const VIt={multi:!0,provide:es,useExisting:He(()=>Fn)};let Fn=yV=class{constructor(t,e,i,s,o,r,a,l,c,d,u,h){this.localization=t,this.popupService=e,this.dataService=i,this.selectionService=s,this.navigationService=o,this.disabledItemsService=r,this.cdr=a,this.differs=l,this.renderer=c,this.hostElement=d,this._zone=u,this.touchEnabled=h,this.listBoxId=id(),this.tagListId=id(),this.tagPrefix="tag-"+id(),this.optionPrefix="option-"+id(),this.focusedTagIndex=void 0,this.focusableId=`k-${id()}`,this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=f=>f||[],this.allowCustom=!1,this.valueNormalizer=f=>f.pipe(xe(m=>{const C=E=>"string"==typeof E&&m.toLowerCase()===E.toLowerCase(),k=this.value.find(C);return k||(this.dataService.find(C)||m)})),this.filterChange=new S,this.valueChange=new S,this.open=new S,this.opened=new S,this.close=new S,this.closed=new S,this.onFocus=new S,this.onBlur=new S,this.removeTag=new S,this.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=f=>{},this.onTouchedCallback=f=>{},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new Z,this.observableSubscriptions=new Je,Ii(oV),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}focusItemAt(t){const i=(this.allowCustom?-1:0)<=0&&t{this.onFocus.emit()}))}blur(){this.disabled||this.searchbar.blur()}onSearchBarBlur(){!this.isFocused||(this.isFocused=!1,Kt(this.onBlur)||Kt(this.filterChange)||Kt(this.close)||ED(this.hostElement.nativeElement)?this._zone.run(()=>{this.closePopup(),this.isOpen&&this.allowCustom||this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))}wrapperMousedown(t){if(0===t.button){if(this.isFocused&&this.isOpen&&t.target===this.searchbar.input.nativeElement)return;(!this.touchEnabled||this.touchEnabled&&"SPAN"!==t.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),t.preventDefault()}}onMouseDown(t){t.preventDefault()}onResize(){if(this._open){const t=this.popupRef.popupElement,{min:e,max:i}=this.width;t.style.minWidth=e,t.style.width=i}}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}set data(t){this.dataService.data=t||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)}get data(){const t=this.virtual;if(t){const e=t.skip||0,i=e+t.pageSize;return t.total=this.dataService.data.length,this.dataService.data.slice(e,i)}return this.dataService.data}set value(t){this._value=t||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)}get value(){return this._value}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set placeholder(t){this._placeholder=t||""}get placeholder(){return this.selectedDataItems.length?"":this._placeholder}set itemDisabled(t){if("function"!=typeof t)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(t)}.`);this.disabledItemsService.itemDisabled=t}set checkboxes(t){this._checkboxes=(n=>vx(n)?Object.assign({},{enabled:!0,checkOnClick:!0},n):{enabled:Boolean(n),checkOnClick:!0})(t)}get checkboxes(){return this._checkboxes}set virtual(t){this._virtualSettings=lV(t)}get virtual(){return this._virtualSettings}set popupSettings(t){this._popupSettings=Object.assign({animate:!0},t)}get popupSettings(){return this._popupSettings}set valuePrimitive(t){this._valuePrimitive=t}get valuePrimitive(){return je(this._valuePrimitive)?this._valuePrimitive:!je(this.valueField)}get dir(){return this.direction}get disabledClass(){return this.disabled}get listContainerClasses(){const t=["k-list-container","k-reset"];return this.popupSettings.popupClass&&t.push(this.popupSettings.popupClass),t}get width(){let t=0;Ft()&&(t=this.wrapper.nativeElement.offsetWidth);const e=this.popupSettings.width||t;return{min:isNaN(t)?t:`${t}px`,max:isNaN(e)?e:`${e}px`}}get height(){const t=this.popupSettings.height;return je(t)?`${t}px`:"auto"}get activeDescendant(){const t=this.focusedTagIndex,e=this.selectionService.focused;let i,s;if(je(t)&&!this.isOpen)s=this.tags[t],i=this.tagPrefix;else{if(!je(e)||-1===e||!this.isOpen)return null;s=this.dataService.itemAt(e),i=this.optionPrefix}return i+"-"+Qt(s,this.valueField)}get noDataLabel(){if(0===this.dataService.itemsCount)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}verifySettings(){if(En()&&0!==this.value.length){if(!xc(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!0===this.valuePrimitive&&rV(this.value))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!1===this.valuePrimitive&&!rV(this.value))throw new Error("Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!je(this.valueField)!=!je(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data")}}change(t){if(!je(t.added)&&!je(t.removed)||-1!==t.added&&-1!==t.removed){if(je(t.added)){const i=this.dataService.itemAt(t.added),s=this.valuePrimitive&&je(i)&&je(i[this.valueField])?i[this.valueField]:i;this.value=[...this.value,s]}if(je(t.removed)){const i=this.dataService.itemAt(t.removed);this.value=this.value.filter(o=>Qt(o,this.valueField)!==Qt(i,this.valueField)),this.selectionService.focused=t.removed,this.cdr.detectChanges()}this.emitValueChange()}else this.addCustomValue(this.text)}setState(t){let e=this.dataService.data;this.dataService.grouped&&(e=e.filter(s=>!s.header).map(s=>s.value));const i=nTe(this.value,e,this.valueField);this.selectionService.resetSelection(i),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=t.slice()),(rV(t)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=((n,t,e)=>{const i=((n,t)=>xc(n)&&n.filter(e=>vx(e)&&je(Qt(e,t))))(n,e)||[];return(((n,t=[],e)=>n.map(i=>t.find(s=>Qt(s,e)===i)).filter(i=>void 0!==i))(n,t,e)||[]).concat(i)})(t,e,this.valueField)),this.selectedDataItems.length{const o=this.selectedDataItems.find(r=>Qt(r,this.valueField)===Qt(s,this.valueField));return je(o)?o:this.resolveDataItemFromTags(s)}).filter(s=>je(s))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()}handleFilter(t){this.text=t,t&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(t):this.searchTextAndFocus(t),this.searchbar.setInputSize()}pageChange(t){this.virtual.skip=t.skip}clearFilter(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()}handleNavigate(t){const e=this.text&&t.keyCode!==_e.ArrowDown&&t.keyCode!==_e.ArrowUp,i=this.text&&t.keyCode===_e.Enter||t.keyCode===_e.Escape;if(!this.text&&t.keyCode===_e.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||e&&!i)return;const o=t,r=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,a=this.navigationService.process({current:r,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:o});a!==Si.Undefined&&(a===Si.Enter&&this.isOpen||a!==Si.Enter)&&t.preventDefault()}handleRemoveTag({tag:t}){const e=new dTe(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(e),!e.isDefaultPrevented()&&(t instanceof Array?this.removeGroupTag(t):this.removeSingleTag(t),this.cdr.detectChanges()))}clearAll(t){t.stopImmediatePropagation(),t.preventDefault(),this.focus(),this.clearFilter();const e=this.selectionService.selected;this.value=this.value.filter((i,s)=>this.disabledItemsService.isIndexDisabled(e[s])),this.emitValueChange()}addCustomValue(t){this.customValueSubject.next(t)}ngAfterContentChecked(){this.verifySettings()}ngDoCheck(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.setMessages()}),this.setMessages(),this.setState(this.value),this.initialized=!0}ngOnChanges(t){const e=this.virtual;e&&t.data&&t.data.isFirstChange()&&this.pageChange({skip:0,take:e.pageSize}),Io("valueNormalizer",t)&&this.createCustomValueStream(),Xo(["textField","valueField","valuePrimitive"],t)&&this.setState(this.value)}ngAfterViewInit(){this.searchbar.setInputSize()}ngOnDestroy(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)}toggle(t){Promise.resolve(null).then(()=>{const e=je(t)?t:!this._open;this._toggle(e),this.cdr.markForCheck()})}get isOpen(){return this._open}reset(){this.text="",this.value=[]}writeValue(t){this.value=t||[]}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t}onTagMapperChange(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}set isFocused(t){this.renderer[t?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=t}get isFocused(){return this._isFocused}subscribeEvents(){if(!Ft())return;const t=()=>this.isOpen,e=()=>!this.isOpen,i=()=>!this.isOpen&&void 0!==this.focusedTagIndex;[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(dt(t)).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(dt(t)).subscribe(s=>this.handleUp(s.index)),this.navigationService.home.pipe(dt(()=>e)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(dt(()=>e)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(dt(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(dt(i)).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(s=>this.handleDownKey(s.index))].forEach(s=>this.observableSubscriptions.add(s))}subscribeTouchEvents(){!Ft()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",t=>{(this.isFocused||this.isOpen)&&!D2(this.hostElement,t.target,this.popupRef)&&this._zone.run(()=>{this.blur(),this.isOpen&&this.togglePopup(!1)})}))}unsubscribeEvents(){!Ft()||(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}removeGroupTag(t){let e=this.dataService.data;this.dataService.grouped&&(e=e.filter(s=>!s.header).map(s=>s.value));const i=new Set(t.map(s=>Qt(s,this.valueField)));this.value=this.value.filter(s=>!i.has(Qt(s,this.valueField))),this.emitValueChange()}removeSingleTag(t){let e=this.dataService.data;this.dataService.grouped&&(e=e.filter(s=>!s.header).map(s=>s.value));const i=nTe([t],e,this.valueField)[0];(n=>!isNaN(n))(i)?(this.selectionService.unselect(i),this.selectionService.focused=i,this.togglePopup(!1)):(this.value=this.value.filter(o=>Qt(o,this.valueField)!==Qt(t,this.valueField)),this.emitValueChange())}disabledItemsMapper(){const{selected:t}=this.selectionService;return new Set(this.selectedDataItems.reduce((e,i,s)=>(this.disabledItemsService.isIndexDisabled(t[s])&&e.push(s),e),[]))}createCustomValueStream(){this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(lt(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),this.valueNormalizer,fl(()=>(this.loading=!1,this.disabled=!1,this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()}),this.createCustomValueStream(),Vt(null)))).subscribe(t=>{if(this.loading=!1,this.disabled=!1,je(t)){const e=this.valuePrimitive?Qt(t,this.valueField):t,i=this.dataService.indexOf(e),s=-1===i;-1===this.value.indexOf(e)?(this.tags=this.tagMapper([...this.selectedDataItems,t]),s?this.value=[...this.value,e]:this.selectionService.add(i)):!s&&this.selectionService.isSelected(i)?(this.selectionService.unselect(i),this.selectionService.focused=i):this.value=this.value.filter(o=>Qt(o,this.valueField)!==e),this.emitValueChange()}this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()})})}handleItemChange(t){this.change(t),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}handleEnter(t){const e=this.selectionService,i=this.selectionService.focused;this.isOpen&&t.originalEvent.preventDefault(),-1!==i?(e.isSelected(i)?(e.unselect(i),e.focused=i):e.add(i),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}handleClose(){this.closePopup(),this.searchbar.focus()}handleEnd(){this.focusedTagIndex=this.tags.length-1}handleHome(){this.focusedTagIndex=0}handleUp(t){this.selectionService.focused=t}handleBackspace(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}handleDelete(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}handleLeftKey(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}handleDownKey(t){this.isOpen?this.selectionService.focused=t||this.firstFocusableIndex(0):this.openPopup()}handleRightKey(){const t=this.tags.length-1;this.focusedTagIndex===t?this.focusedTagIndex=void 0:this.focusedTagIndex(i=Qt(this.dataService.grouped?o.value:o,this.textField),i=je(i)?i.toString().toLowerCase():"",t&&i.startsWith(t)),e);return this.disabledItemsService.isIndexDisabled(s)?s+1>this.dataService.itemsCount?-1:this.findIndex(t,s+1):s}searchTextAndFocus(t){const e=this.findIndex(t);this.selectionService.focused=e}closePopup(){this.togglePopup(!1),this.focusedTagIndex=void 0}openPopup(){this.togglePopup(!0),this.focusedTagIndex=void 0}togglePopup(t){this.disabled||this.readonly||this.isOpen===t||this.triggerPopupEvents(t)||this._toggle(t)}triggerPopupEvents(t){const e=new Cx;return t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()}_toggle(t){this._open=t,this.destroyPopup(),this._open&&this.createPopup()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){this.virtual&&(this.virtual.skip=0);const t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const s=this.popupRef.popupElement,{min:o,max:r}=this.width;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=o,s.style.width=r,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.togglePopup(!1)})}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}resolveDataItemFromTags(t){return this.tags&&this.tags.length&&je(t)?this.tags.reduce((i,s)=>{const o=xc(s)?s:[s];return i.push(...o),i},[]).find(i=>Qt(i,this.valueField)===Qt(t,this.valueField)):void 0}firstFocusableIndex(t){const e=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(t)){const i=t+1;return i{setTimeout(()=>this._zone.run(t))})}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}};Fn.\u0275fac=function(t){return new(t||Fn)(g(J),g(Oi),g(fa),g(Rr),g(ma),g(ga),g(Be),g(Zf),g(Ie),g($),g(ce),g(Ud,8))},Fn.\u0275cmp=K({type:Fn,selectors:[["kendo-multiselect"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Gd,5),Ce(i,mV,5),Ce(i,jd,5),Ce(i,$d,5),Ce(i,Ya,5),Ce(i,Ka,5),Ce(i,tb,5),Ce(i,nb,5),Ce(i,Za,5)),2&t){let s;U(s=W())&&(e.template=s.first),U(s=W())&&(e.customItemTemplate=s.first),U(s=W())&&(e.groupTemplate=s.first),U(s=W())&&(e.fixedGroupTemplate=s.first),U(s=W())&&(e.headerTemplate=s.first),U(s=W())&&(e.footerTemplate=s.first),U(s=W())&&(e.tagTemplate=s.first),U(s=W())&&(e.groupTagTemplate=s.first),U(s=W())&&(e.noDataTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(DD,7,Gt),Ae(Hd,7),Ae(MD,7),Ae(k2,7),Ae(iV,5)),2&t){let i;U(i=W())&&(e.container=i.first),U(i=W())&&(e.searchbar=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.wrapper=i.first),U(i=W())&&(e.optionsList=i.first)}},hostVars:7,hostBindings:function(t,e){2&t&&(fe("dir",e.dir),he("k-widget",e.widgetClasses)("k-multiselect",e.widgetClasses)("k-state-disabled",e.disabledClass))},inputs:{focusableId:"focusableId",autoClose:"autoClose",tabindex:"tabindex",disabled:"disabled",readonly:"readonly",filterable:"filterable",listHeight:"listHeight",clearButton:"clearButton",tagMapper:"tagMapper",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer",data:"data",value:"value",tabIndex:"tabIndex",placeholder:"placeholder",itemDisabled:"itemDisabled",checkboxes:"checkboxes",virtual:"virtual",popupSettings:"popupSettings",valuePrimitive:"valuePrimitive",loading:"loading",valueField:"valueField",textField:"textField"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",removeTag:"removeTag"},exportAs:["kendoMultiSelect"],features:[we([VIt,fa,Rr,ma,ga,J,{provide:An,useValue:"kendo.multiselect"},{provide:xx,useExisting:He(()=>yV)},{provide:Ds,useExisting:He(()=>yV)}]),st],decls:13,vars:24,consts:function(){let n,t;return n=$localize`:kendo.multiselect.noDataText|The text displayed in the popup when there are no items␟3cc1323f79a5fe012960578e513f8a35b2af1e96␟1450213984397806503:NO DATA FOUND`,t=$localize`:kendo.combobox.clearTitle|The title of the clear button␟069e8fae80677e3e785861123bef446b3ff41ab4␟2025597431468961462:clear`,[["kendoMultiSelectLocalizedMessages","","noDataText",n,"clearTitle",t],[1,"k-multiselect-wrap","k-floatwrap",3,"mousedown"],["wrapper",""],[3,"id","tags","textField","valueField","focused","disabled","template","groupTemplate","tagPrefix","disabledIndices","removeTag"],[3,"id","role","tagListId","activeDescendant","noDataLabel","userInput","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"visibility","mousedown",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],[3,"ngIf"],["container",""],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"mousedown"],[1,"k-icon","k-i-loading"],[4,"ngIf"],["class","k-list",4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","multipleSelection","virtual","checkboxes","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-list"],["kendoDropDownsSelectable","",1,"k-item","k-custom-item",3,"multipleSelection","index"],[4,"ngIf","ngIfElse"],["default_custom_item_template",""],[1,"k-icon","k-i-plus",2,"float","right"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"div",1,2),se("mousedown",function(s){return e.wrapperMousedown(s)}),y(3,"kendo-taglist",3),se("removeTag",function(s){return e.handleRemoveTag(s)}),_(),y(4,"kendo-searchbar",4,5),se("onNavigate",function(s){return e.handleNavigate(s)})("valueChange",function(s){return e.handleFilter(s)})("onBlur",function(){return e.onSearchBarBlur()})("onFocus",function(){return e.onSearchBarFocus()}),_(),A(6,QMt,1,3,"span",6),A(7,JMt,1,0,"span",7),_(),A(8,uEt,6,17,"ng-template",null,8,Ls),A(10,hEt,1,0,"ng-template",9),wn(11,null,10)),2&t&&(b(3),v("id",e.tagListId)("tags",e.tags)("textField",e.textField)("valueField",e.valueField)("focused",e.focusedTagIndex)("disabled",e.disabled)("template",e.tagTemplate)("groupTemplate",e.groupTagTemplate)("tagPrefix",e.tagPrefix)("disabledIndices",e.disabledIndices),b(1),v("id",e.focusableId)("role","listbox")("tagListId",e.tagListId)("activeDescendant",e.activeDescendant)("noDataLabel",e.noDataLabel)("userInput",e.text)("disabled",e.disabled)("readonly",e.readonly)("tabIndex",e.tabIndex)("popupOpen",e.isOpen)("placeholder",e.placeholder),b(2),v("ngIf",!e.loading&&!e.readonly&&e.clearButton&&((null==e.tags?null:e.tags.length)||(null==e.text?null:e.text.length))),b(1),v("ngIf",e.loading),b(3),v("ngIf",e.isOpen))},directives:function(){return[Wd,QY,Hd,pt,Lg,Vg,CV,Kr]},encapsulation:2}),X([p(),B("design:type",String)],Fn.prototype,"focusableId",void 0),X([p(),B("design:type",Boolean)],Fn.prototype,"autoClose",void 0),X([p(),B("design:type",Boolean)],Fn.prototype,"loading",void 0),X([p(),B("design:type",Array),B("design:paramtypes",[Array])],Fn.prototype,"data",null),X([p(),B("design:type",Array),B("design:paramtypes",[Array])],Fn.prototype,"value",null),X([p(),B("design:type",String)],Fn.prototype,"valueField",void 0),X([p(),B("design:type",String)],Fn.prototype,"textField",void 0),X([p(),B("design:type",Number)],Fn.prototype,"tabindex",void 0),X([p("tabIndex"),B("design:type",Number),B("design:paramtypes",[Number])],Fn.prototype,"tabIndex",null),X([p(),B("design:type",String),B("design:paramtypes",[String])],Fn.prototype,"placeholder",null),X([p(),B("design:type",Boolean)],Fn.prototype,"disabled",void 0),X([p(),B("design:type",Function),B("design:paramtypes",[Function])],Fn.prototype,"itemDisabled",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Fn.prototype,"checkboxes",null),X([p(),B("design:type",Boolean)],Fn.prototype,"readonly",void 0),X([p(),B("design:type",Boolean)],Fn.prototype,"filterable",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Fn.prototype,"virtual",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Fn.prototype,"popupSettings",null),X([p(),B("design:type",Number)],Fn.prototype,"listHeight",void 0),X([p(),B("design:type",Boolean),B("design:paramtypes",[Boolean])],Fn.prototype,"valuePrimitive",null),X([p(),B("design:type",Boolean)],Fn.prototype,"clearButton",void 0),X([p(),B("design:type",Object)],Fn.prototype,"tagMapper",void 0),X([p(),B("design:type",Boolean)],Fn.prototype,"allowCustom",void 0),X([p(),B("design:type",Function)],Fn.prototype,"valueNormalizer",void 0),X([Q(),B("design:type",S)],Fn.prototype,"filterChange",void 0),X([Q(),B("design:type",S)],Fn.prototype,"valueChange",void 0),X([Q(),B("design:type",S)],Fn.prototype,"open",void 0),X([Q(),B("design:type",S)],Fn.prototype,"opened",void 0),X([Q(),B("design:type",S)],Fn.prototype,"close",void 0),X([Q(),B("design:type",S)],Fn.prototype,"closed",void 0),X([Q("focus"),B("design:type",S)],Fn.prototype,"onFocus",void 0),X([Q("blur"),B("design:type",S)],Fn.prototype,"onBlur",void 0),X([Q(),B("design:type",S)],Fn.prototype,"removeTag",void 0),X([at("container",{read:Gt,static:!0}),B("design:type",Gt)],Fn.prototype,"container",void 0),X([at(Hd,{static:!0}),B("design:type",Hd)],Fn.prototype,"searchbar",void 0),X([at("popupTemplate",{static:!0}),B("design:type",ve)],Fn.prototype,"popupTemplate",void 0),X([at("wrapper",{static:!0}),B("design:type",$)],Fn.prototype,"wrapper",void 0),X([at("optionsList",{static:!1}),B("design:type",Lg)],Fn.prototype,"optionsList",void 0),X([ct(Gd,{static:!1}),B("design:type",Gd)],Fn.prototype,"template",void 0),X([ct(mV,{static:!1}),B("design:type",mV)],Fn.prototype,"customItemTemplate",void 0),X([ct(jd,{static:!1}),B("design:type",jd)],Fn.prototype,"groupTemplate",void 0),X([ct($d,{static:!1}),B("design:type",$d)],Fn.prototype,"fixedGroupTemplate",void 0),X([ct(Ya,{static:!1}),B("design:type",Ya)],Fn.prototype,"headerTemplate",void 0),X([ct(Ka,{static:!1}),B("design:type",Ka)],Fn.prototype,"footerTemplate",void 0),X([ct(tb,{static:!1}),B("design:type",tb)],Fn.prototype,"tagTemplate",void 0),X([ct(nb,{static:!1}),B("design:type",nb)],Fn.prototype,"groupTagTemplate",void 0),X([ct(Za,{static:!1}),B("design:type",Za)],Fn.prototype,"noDataTemplate",void 0),X([G("class.k-widget"),G("class.k-multiselect"),B("design:type",Boolean)],Fn.prototype,"widgetClasses",void 0),X([G("attr.dir"),B("design:type",String),B("design:paramtypes",[])],Fn.prototype,"dir",null),X([G("class.k-state-disabled"),B("design:type",Boolean),B("design:paramtypes",[])],Fn.prototype,"disabledClass",null),Fn=yV=X([Qp(11,gt()),Qp(11,Rn(Ud)),B("design:paramtypes",[J,Oi,fa,Rr,ma,ga,Be,Zf,Ie,$,ce,Boolean])],Fn);let KY,_V=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoMultiColumnComboBoxColumnCellTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),vV=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoMultiColumnComboBoxColumnHeaderTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})(),YY=(()=>{let n=class{constructor(){this.hidden=!1,this.matchesMedia=!0}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["kendo-combobox-column"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,_V,5),Ce(s,vV,5)),2&e){let o;U(o=W())&&(i.cellTemplate=o.first),U(o=W())&&(i.headerTemplate=o.first)}},inputs:{hidden:"hidden",field:"field",title:"title",width:"width",style:"style",headerStyle:"headerStyle",class:"class",headerClass:"headerClass",media:"media"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),X([ct(_V,{static:!1}),B("design:type",_V)],n.prototype,"cellTemplate",void 0),X([ct(vV,{static:!1}),B("design:type",vV)],n.prototype,"headerTemplate",void 0),X([p(),B("design:type",String)],n.prototype,"field",void 0),X([p(),B("design:type",String)],n.prototype,"title",void 0),X([p(),B("design:type",Number)],n.prototype,"width",void 0),X([p(),B("design:type",Boolean)],n.prototype,"hidden",void 0),X([p(),B("design:type",Object)],n.prototype,"style",void 0),X([p(),B("design:type",Object)],n.prototype,"headerStyle",void 0),X([p(),B("design:type",Object)],n.prototype,"class",void 0),X([p(),B("design:type",Object)],n.prototype,"headerClass",void 0),X([p(),B("design:type",String)],n.prototype,"media",void 0),n})();const ZY=()=>{if(isNaN(KY)){const n=document.createElement("div");n.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",n.innerHTML=" ",document.body.appendChild(n),KY=n.offsetWidth-n.scrollWidth,document.body.removeChild(n)}return KY};var I2;let Bg=I2=class extends Xn{constructor(t,e,i,s,o,r,a,l,c,d,u){super(t,e,i,s,o,r,a,l,c,d,u),this.hostClasses=!0,this.removeWindowResizeListener=bx,this.defaultVirtualItemHeight=36,this.defaultVirtualPageSize=30}set header(t){this.updateHeaderPadding(t&&t.nativeElement)}get popupWidth(){const t=this.wrapper.nativeElement.offsetWidth,e=`${t}px`,i=this.popupSettings.width||(n=>{if(!(n=>!(!je(n)||0===n.length)&&n.toArray().every(t=>!isNaN(t.width)&&t.width>0))(n))return null;const e=ZY()+2;return n.reduce((i,s)=>(!s.hidden&&s.matchesMedia&&(i+=parseInt(s.width,10)),i),e)})(this.columns)||t;return{min:e,max:isNaN(i)?i:`${i}px`}}get listContainerClasses(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])}ngAfterViewInit(){this.updateColumnsMediaState(),this.addWindowResizeListener()}ngOnDestroy(){super.ngOnDestroy(),this.removeWindowResizeListener()}textFrom(t,e){return Qt(t,e)}updateHeaderPadding(t){if(!je(t))return;const e=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&ZY()>0?this.renderer.setStyle(t,e,`${ZY()}px`):this.renderer.removeStyle(t,e)}verifySettings(){if(En()){if(je(this.data)&&this.data.length>0&&this.data.some(t=>!vx(t)))throw new Error("Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/");if(!je(this.valueField)||!je(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration");super.verifySettings()}}addWindowResizeListener(){!Ft()||this.zone.runOutsideAngular(()=>this.removeWindowResizeListener=this.renderer.listen(window,"resize",this.updateColumnsMediaState.bind(this)))}updateColumnsMediaState(){!je(this.columns)||!Ft()||this.columns.forEach(t=>{const e=!t.media||window.matchMedia(t.media).matches;t.matchesMedia!==e&&(t.matchesMedia=e,this.isOpen&&this.zone.run(()=>this.popupRef.popupElement.style.width=this.popupWidth.max))})}};Bg.\u0275fac=function(t){return new(t||Bg)(g(J),g(Oi),g(Rr),g(ma),g(ga),g(fa),g(ce),g(Be),g(Ie),g($),g(Ud))},Bg.\u0275cmp=K({type:Bg,selectors:[["kendo-multicolumncombobox"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,YY,4),2&t){let s;U(s=W())&&(e.columns=s)}},viewQuery:function(t,e){if(1&t&&Ae(pEt,5),2&t){let i;U(i=W())&&(e.header=i.first)}},hostVars:2,hostBindings:function(t,e){2&t&&he("k-dropdowngrid",e.hostClasses)},features:[we([Rr,fa,ma,ga,J,{provide:An,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:es,useExisting:He(()=>I2)},{provide:Ds,useExisting:He(()=>I2)},{provide:xx,useExisting:He(()=>I2)}]),N],decls:14,vars:20,consts:function(){let n,t;return n=$localize`:kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items␟23a18095f2c16d40a04251fa2fb15d3927e7a79a␟3227251500690942605:NO DATA FOUND`,t=$localize`:kendo.multicolumncombobox.clearTitle|The title of the clear button␟6b371962a2564e2e50986f7ec238e513b466d553␟326603149056291198:clear`,[["kendoMultiColumnComboBoxLocalizedMessages","","noDataText",n,"clearTitle",t],["unselectable","on",1,"k-dropdown-wrap"],["wrapper",""],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["aria-hidden","true","unselectable","on",1,"k-select",3,"kendoEventsOutsideAngular"],["select",""],[1,"k-icon",3,"ngClass"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"kendoEventsOutsideAngular","click"],[4,"ngIf"],[1,"k-grid-header"],["header",""],[1,"k-grid-header-wrap"],["role","presentation"],[4,"ngFor","ngForOf"],["rowTemplate",""],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","listClass","pageChange","listResize"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[3,"width",4,"ngIf"],["class","k-header",3,"ngStyle","ngClass",4,"ngIf"],[1,"k-header",3,"ngStyle","ngClass"],["class","k-cell",3,"ngClass","width","ngStyle",4,"ngIf"],[1,"k-cell",3,"ngClass","ngStyle"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"ngIf"],[1,"k-footer"],[3,"resize"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),y(3,"kendo-searchbar",3,4),se("onNavigate",function(s){return e.handleNavigate(s)})("valueChange",function(s){return e.searchBarChange(s)})("onBlur",function(){return e.handleBlur()})("onFocus",function(){return e.handleFocus()}),_(),A(5,fEt,1,6,"span",5),y(6,"span",6,7),P(8,"span",8),_(),_(),A(9,NEt,16,19,"ng-template",null,9,Ls),A(11,BEt,1,0,"kendo-resize-sensor",10),wn(12,null,11)),2&t&&(b(1),he("k-state-disabled",e.disabled),b(2),v("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),b(2),v("ngIf",e.clearButton&&!e.loading&&!e.disabled&&!e.readonly&&(null==e.text?null:e.text.length)),b(1),v("kendoEventsOutsideAngular",Yt(18,sV,e.preventEventDefault)),b(2),v("ngClass",e.buttonClasses),b(3),v("ngIf",e.isOpen))},directives:function(){return[Wd,Hd,pt,lr,Un,Wn,Lg,Vg,zo,Kr]},encapsulation:2}),X([G("class.k-dropdowngrid"),B("design:type",Boolean)],Bg.prototype,"hostClasses",void 0),X([fi(YY),B("design:type",wt)],Bg.prototype,"columns",void 0),X([at("header",{static:!1}),B("design:type",$),B("design:paramtypes",[$])],Bg.prototype,"header",null),Bg=I2=X([Qp(10,Rn(Ud)),B("design:paramtypes",[J,Oi,Rr,ma,ga,fa,ce,Be,Ie,$,Boolean])],Bg);let Sx=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownTreeNodeTemplate",""],["","kendoMultiSelectTreeNodeTemplate",""]]}),n=X([B("design:paramtypes",[ve])],n),n})();var ID;const uTe={animate:!0},GIt=()=>!1,jIt=()=>Vt([]);let Qn=ID=class{constructor(t,e,i,s,o,r,a,l){this.popupService=t,this.navigationService=e,this.renderer=i,this.hostElement=s,this._zone=o,this.cdr=r,this.localization=a,this.touchEnabled=l,this.hostClasses=!0,this.open=new S,this.opened=new S,this.close=new S,this.closed=new S,this.nodeExpand=new S,this.nodeCollapse=new S,this.onFocus=new S,this.onBlur=new S,this.valueChange=new S,this.filterChange=new S,this.clearButton=!0,this.hasChildren=GIt,this.fetchChildren=jIt,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=()=>!1,this.isNodeVisible=()=>!0,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId=`k-${cs()}`,this.selectedKeys=[],this.allNodesHidden=!1,this.valueLabelId=`k-${cs()}`,this._popupSettings=uTe,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=bx,this.onChangeCallback=bx,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}get clearable(){return this.clearButton}set treeview(t){t&&((this.isFocused&&!this.filterable||this.touchEnabled)&&t.focus(),t.animate=!0,this._treeview=t)}get treeview(){return this._treeview}set data(t){this._nodes=t,this.setState()}get data(){return this._nodes}set value(t){this._value=t,this.setState()}get value(){return this._value}set popupSettings(t){this._popupSettings=Object.assign({},uTe,t)}get popupSettings(){return this._popupSettings}set dataItem(t){this._dataItem=t,this.setState()}get dataItem(){return this._dataItem?this._dataItem:this.value}set tabindex(t){const e=Number(t);this._tabindex=isNaN(e)?0:e}get tabindex(){return this.disabled?-1:this._tabindex}set isFocused(t){this.renderer[t?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=t}get isFocused(){return this._isFocused}get width(){const t=this.wrapper.nativeElement.offsetWidth,e=this.popupSettings.width||t;return{min:isNaN(t)?t:`${t}px`,max:isNaN(e)?e:`${e}px`}}get height(){const t=this.popupSettings.height;return je(t)?`${t}px`:"auto"}get isOpen(){return je(this.popupRef)}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}set isExpanded(t){this.isNodeExpanded=t}get isExpanded(){return this.isNodeExpanded}get expand(){return this.nodeExpand}get collapse(){return this.nodeCollapse}set nodes(t){this.data=t}get nodes(){return this.data}set children(t){this.fetchChildren=t}get children(){return this.fetchChildren}set isVisible(t){this.isNodeVisible=t}get isVisible(){return this.isNodeVisible}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.cdr.markForCheck()}))}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents()}ngOnChanges(t){Xo(["textField","valueField","valuePrimitive"],t,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}isEmpty(){return!this.text&&!this.placeholder}togglePopup(t){this.disabled||this.readonly||this.isOpen===t||this.triggerPopupEvents(t)||(t?this.createPopup():this.destroyPopup())}handleFocus(){this.isFocused||(this.isFocused=!0,Kt(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}handleBlur(t){const e=t&&t.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,Kt(this.onBlur)||ED(this.hostElement.nativeElement)?this._zone.run(()=>{this.togglePopup(!1),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1))}handleKeydown(t){this.disabled||this.readonly||this.navigationService.process({originalEvent:t})}handleClick(){this.togglePopup(!this.isOpen)}focusItemAt(t){if(this.treeview){const e=this.treeview.itemLookup(t);!je(e)||this.treeview.isDisabled(e.item.dataItem,e.item.index)||this.treeview.focus(t)}}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}reset(){this.value=void 0,this.dataItem=void 0}toggle(t){Promise.resolve(null).then(()=>{const e=je(t)?t:!je(this.popupRef);this.destroyPopup(),e&&this.createPopup()})}get popupContainerClasses(){const t=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&t.push(this.popupSettings.popupClass),t}onSelectionChange({dataItem:t,index:e}){this.valueDepth=e.split("_").length-1;const i=this.getField(this.valueField,t),s=this.valuePrimitive?pa(i)(t):t;s!==this.value&&(this.dataItem=t,this.value=s,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()}messageFor(t){return this.localization.get(t)}clearValue(t){t.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}preventEventDefault(t){t.preventDefault()}writeValue(t){!je(t)&&je(this.value)&&(this.dataItem=null),this.value=null===t?void 0:t}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}handleFilterInputChange(t){this.filterChange.next(t),this.allNodesHidden=this.nodes.every((e,i)=>!this.isVisible(e,String(i)))}verifySettings(){if(En()){if(!0===this.valuePrimitive&&je(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values");if(!0===this.valuePrimitive&&je(this.value)&&"object"!=typeof this.dataItem)throw new Error("Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem");if(!1===this.valuePrimitive&&je(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values");if(!je(this.valueField)||!je(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding");if((xc(this.valueField)||xc(this.textField))&&je(this.value)&&!je(this.valueDepth))throw new Error("Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth")}}emitValueChange(t){this.onChangeCallback(t),this.valueChange.emit(t)}getText(t,e){return je(e)&&je(t)?pa(this.getField(t,e))(e):null}getField(t,e){const i=t.length-1;return"string"==typeof t?t:je(this.valueDepth)?is in e)}triggerPopupEvents(t){const e=new Cx;return t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()}createPopup(){const t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});const s=this.popupRef.popupElement,{min:o,max:r}=this.width;s.style.minWidth=o,s.style.width=r,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Kt(this.filterChange)&&this._zone.run(()=>{this.filterChange.emit("")})))}handleEscape(){this.togglePopup(!1),this.focus()}setState(){if(je(this.value)&&je(this.dataItem)&&je(this.valueField)){this.text=this.getText(this.textField,this.dataItem);const t=this.getField(this.valueField,this.dataItem);this.selectBy=t,this.selectedKeys=[pa(t)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()}clearState(){this.text=void 0,this.valueDepth=void 0,this.selectedKeys=[]}subscribeEvents(){this.subscriptions.push(this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()}),this.navigationService.enter.pipe(lt(t=>t.originalEvent.preventDefault())).subscribe(()=>this.togglePopup(!0)),this.navigationService.esc.subscribe(()=>this.handleEscape()),this.navigationService.tab.subscribe(()=>this.focus()),this.navigationService.down.subscribe(t=>{!this.treeview||(t.originalEvent.preventDefault(),this.treeview.isActive||this.treeview.focus())}),this.navigationService.up.subscribe(t=>{!this.treeview||(t.originalEvent.preventDefault(),this.filterable&&"0"===this.treeview.navigationService.activeIndex&&this.filterInput.nativeElement.focus())}))}subscribeTouchEvents(){!Ft()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",t=>{this.isFocused&&!D2(this.hostElement,t.target,this.popupRef)&&this._zone.run(()=>{this.isOpen&&this.treeview.blur(),this.blur()})}))}unsubscribeEvents(){this.subscriptions.forEach(t=>t.unsubscribe()),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}assignAriaDescribedBy(){const t=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",e=`${this.valueLabelId} ${t.trim()}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)}};var AD;Qn.\u0275fac=function(t){return new(t||Qn)(g(Oi),g(ma),g(Ie),g($),g(ce),g(Be),g(J),g(Ud,8))},Qn.\u0275cmp=K({type:Qn,selectors:[["kendo-dropdowntree"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Za,5),Ce(i,Ya,5),Ce(i,Ka,5),Ce(i,Sx,5),Ce(i,wx,5)),2&t){let s;U(s=W())&&(e.noDataTemplate=s.first),U(s=W())&&(e.headerTemplate=s.first),U(s=W())&&(e.footerTemplate=s.first),U(s=W())&&(e.nodeTemplate=s.first),U(s=W())&&(e.valueTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(eTe,5),Ae(MD,7),Ae(k2,7),Ae(DD,7,Gt),Ae(VEt,5)),2&t){let i;U(i=W())&&(e.treeview=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.wrapper=i.first),U(i=W())&&(e.container=i.first),U(i=W())&&(e.filterInput=i.first)}},hostVars:7,hostBindings:function(t,e){2&t&&(fe("dir",e.direction),he("k-widget",e.hostClasses)("k-dropdowntree",e.hostClasses)("k-dropdowntree-clearable",e.clearable))},inputs:{clearButton:"clearButton",hasChildren:"hasChildren",fetchChildren:"fetchChildren",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",itemDisabled:"itemDisabled",isNodeVisible:"isNodeVisible",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",focusableId:"focusableId",data:"data",value:"value",popupSettings:"popupSettings",dataItem:"dataItem",tabindex:"tabindex",isNodeExpanded:"isNodeExpanded",valueDepth:"valueDepth",loading:"loading",textField:"textField",valueField:"valueField"},outputs:{open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",onFocus:"focus",onBlur:"blur",valueChange:"valueChange",filterChange:"filterChange"},exportAs:["kendoDropDownTree"],features:[we([fa,Rr,ma,ga,J,{provide:An,useValue:"kendo.dropdowntree"},{multi:!0,provide:es,useExisting:He(()=>ID)},{provide:Ds,useExisting:He(()=>ID)},{provide:td,useExisting:He(()=>ID)},{provide:fx,useExisting:He(()=>ID)}]),st],decls:13,vars:17,consts:function(){let n,t;return n=$localize`:kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items␟b5507b240a829a596159da3600ea1c73810d8708␟8377764809518564323:NO DATA FOUND`,t=$localize`:kendo.dropdowntree.clearTitle|The title of the clear button␟549a21c02a5be9711c5297a917390d5f4c06448b␟5091538317194981642:clear`,[["kendoDropDownTreeLocalizedMessages","","noDataText",n,"clearTitle",t],["role","listbox","aria-haspopup","tree",3,"ngClass","kendoEventsOutsideAngular","scope","click","keydown"],["wrapper",""],[1,"k-input"],[4,"ngIf"],[3,"ngIf"],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","click",4,"ngIf"],["aria-hidden","true",1,"k-select"],[1,"k-icon","k-i-arrow-60-down"],["popupTemplate",""],["container",""],[3,"templateContext"],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"click"],["class","k-list-filter",4,"ngIf"],["kendoTreeViewSelectable","",3,"nodes","maxHeight","animate","selectedKeys","selectBy","textField","children","hasChildren","loadOnDemand","isExpanded","isDisabled","nodeTemplate","filter","isVisible","selectedKeysChange","focusout","keydown","selectionChange","expand","collapse",4,"ngIf"],["class","k-nodata",4,"ngIf"],[1,"k-list-filter"],["role","textbox","aria-haspopup","true","aria-expanded","false","tabindex","0","aria-disabled","false","aria-readonly","false",1,"k-textbox",3,"filterInput","ngModel","kendoEventsOutsideAngular","scope","input","keydown.arrowdown","ngModelChange"],["filterInput",""],[1,"k-icon","k-i-zoom"],["kendoTreeViewSelectable","",3,"nodes","animate","selectedKeys","selectBy","textField","children","hasChildren","loadOnDemand","isExpanded","isDisabled","nodeTemplate","filter","isVisible","selectedKeysChange","focusout","keydown","selectionChange","expand","collapse"],["treeview",""],[1,"k-nodata"],[3,"ngIf","templateContext"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),se("click",function(){return e.handleClick()})("keydown",function(s){return e.handleKeydown(s)}),y(3,"span",3),A(4,HEt,1,4,void 0,4),A(5,GEt,1,1,"ng-template",5),_(),A(6,jEt,1,3,"span",6),y(7,"span",7),P(8,"span",8),_(),_(),A(9,eIt,5,5,"ng-template",null,9,Ls),wn(11,null,10)),2&t&&(b(1),v("ngClass",Yt(12,J1e,e.disabled))("kendoEventsOutsideAngular",di(14,nV,e.handleFocus,e.handleBlur))("scope",e),fe("id",e.focusableId)("aria-expanded",e.isOpen)("aria-readonly",e.readonly)("tabindex",e.tabindex)("dir",e.direction),b(2),fe("id",e.valueLabelId),b(1),v("ngIf",e.valueTemplate),b(1),v("ngIf",!e.valueTemplate),b(1),v("ngIf",!e.loading&&!e.readonly&&e.clearButton&&(null==e.text?null:e.text.length)))},directives:function(){return[Wd,Un,lr,pt,Vg,pg,tK,Xc,zp,mr,GY]},encapsulation:2,changeDetection:0}),X([G("class.k-widget"),G("class.k-dropdowntree"),G("class.k-dropdowntree-clearable"),B("design:type",Boolean)],Qn.prototype,"hostClasses",void 0),X([G("attr.dir"),B("design:type",String)],Qn.prototype,"direction",void 0),X([G("class.k-dropdowntree-clearable"),B("design:type",Boolean),B("design:paramtypes",[])],Qn.prototype,"clearable",null),X([ct(Za,{static:!1}),B("design:type",Za)],Qn.prototype,"noDataTemplate",void 0),X([ct(Ya,{static:!1}),B("design:type",Ya)],Qn.prototype,"headerTemplate",void 0),X([ct(Ka,{static:!1}),B("design:type",Ka)],Qn.prototype,"footerTemplate",void 0),X([ct(Sx,{static:!1}),B("design:type",Sx)],Qn.prototype,"nodeTemplate",void 0),X([ct(wx,{static:!1}),B("design:type",wx)],Qn.prototype,"valueTemplate",void 0),X([at("popupTemplate",{static:!0}),B("design:type",ve)],Qn.prototype,"popupTemplate",void 0),X([at("wrapper",{static:!0}),B("design:type",$)],Qn.prototype,"wrapper",void 0),X([at("container",{read:Gt,static:!0}),B("design:type",Gt)],Qn.prototype,"container",void 0),X([at("treeview",{static:!1}),B("design:type",mr),B("design:paramtypes",[mr])],Qn.prototype,"treeview",null),X([at("filterInput",{static:!1}),B("design:type",$)],Qn.prototype,"filterInput",void 0),X([Q(),B("design:type",S)],Qn.prototype,"open",void 0),X([Q(),B("design:type",S)],Qn.prototype,"opened",void 0),X([Q(),B("design:type",S)],Qn.prototype,"close",void 0),X([Q(),B("design:type",S)],Qn.prototype,"closed",void 0),X([Q(),B("design:type",S)],Qn.prototype,"nodeExpand",void 0),X([Q(),B("design:type",S)],Qn.prototype,"nodeCollapse",void 0),X([Q("focus"),B("design:type",S)],Qn.prototype,"onFocus",void 0),X([Q("blur"),B("design:type",S)],Qn.prototype,"onBlur",void 0),X([Q(),B("design:type",S)],Qn.prototype,"valueChange",void 0),X([Q(),B("design:type",S)],Qn.prototype,"filterChange",void 0),X([p(),B("design:type",Boolean)],Qn.prototype,"loading",void 0),X([p(),B("design:type",Boolean)],Qn.prototype,"clearButton",void 0),X([p(),B("design:type",Array),B("design:paramtypes",[Array])],Qn.prototype,"data",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Qn.prototype,"value",null),X([p(),B("design:type",Object)],Qn.prototype,"textField",void 0),X([p(),B("design:type",Object)],Qn.prototype,"valueField",void 0),X([p(),B("design:type",Number)],Qn.prototype,"valueDepth",void 0),X([p(),B("design:type",Function)],Qn.prototype,"hasChildren",void 0),X([p(),B("design:type",Function)],Qn.prototype,"fetchChildren",void 0),X([p(),B("design:type",String)],Qn.prototype,"placeholder",void 0),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Qn.prototype,"popupSettings",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Qn.prototype,"dataItem",null),X([p(),B("design:type",Number)],Qn.prototype,"listHeight",void 0),X([p(),B("design:type",Boolean)],Qn.prototype,"disabled",void 0),X([p(),B("design:type",Boolean)],Qn.prototype,"readonly",void 0),X([p(),B("design:type",Boolean)],Qn.prototype,"valuePrimitive",void 0),X([p(),B("design:type",Number),B("design:paramtypes",[Number])],Qn.prototype,"tabindex",null),X([p(),B("design:type",Function)],Qn.prototype,"itemDisabled",void 0),X([p(),B("design:type",Function)],Qn.prototype,"isNodeExpanded",void 0),X([p(),B("design:type",Function)],Qn.prototype,"isNodeVisible",void 0),X([p(),B("design:type",Boolean)],Qn.prototype,"loadOnDemand",void 0),X([p(),B("design:type",Boolean)],Qn.prototype,"filterable",void 0),X([p(),B("design:type",String)],Qn.prototype,"filter",void 0),X([p(),B("design:type",String)],Qn.prototype,"focusableId",void 0),Qn=ID=X([Qp(7,gt()),Qp(7,Rn(Ud)),B("design:paramtypes",[Oi,ma,Ie,$,ce,Be,J,Boolean])],Qn);const hTe={animate:!0},pTe={checkChildren:!0,checkOnClick:!0},$It=()=>!1,UIt=()=>Vt([]),WIt=()=>!1;let Jn=AD=class{constructor(t,e,i,s,o,r,a){this.popupService=t,this.renderer=e,this.hostElement=i,this.navigationService=s,this._zone=o,this.localization=r,this.cdr=a,this.hostClasses=!0,this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId=`k-${cs()}`,this.clearButton=!0,this.hasChildren=$It,this.fetchChildren=UIt,this.itemDisabled=WIt,this.tagMapper=l=>l||[],this.onFocus=new S,this.onBlur=new S,this.open=new S,this.opened=new S,this.close=new S,this.closed=new S,this.nodeExpand=new S,this.nodeCollapse=new S,this.valueChange=new S,this.removeTag=new S,this.checkedItems=[],this.checkBy=l=>l,this.showAfter=0,this.filterChange=new S,this.tagListId=cs(),this.tagPrefix="tag-"+cs(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=hTe,this._checkableSettings=pTe,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=bx,this.onChangeCallback=bx,this.direction=r.rtl?"rtl":"ltr",this.subscribeEvents()}set treeview(t){this._treeview=t,t&&(t.focus(),Promise.resolve(null).then(()=>this.treeview.animate=!0))}get treeview(){return this._treeview}set tabindex(t){const e=aV(t);this._tabindex=isNaN(e)?0:e}get tabindex(){return this.disabled?-1:this._tabindex}set popupSettings(t){this._popupSettings=Object.assign({},hTe,t),this.cdr.detectChanges()}get popupSettings(){return this._popupSettings}set checkableSettings(t){this._checkableSettings=Object.assign({},pTe,t)}get checkableSettings(){return this._checkableSettings}set data(t){this._nodes=t,this.setState()}get data(){return this._nodes}set value(t){this._value=t||[],this.setState()}get value(){return this._value}set dataItems(t){this._dataItems=(t||[]).map((e,i)=>sTe(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:this.valueDepth[i]||0}),this.setState()}get dataItems(){return this._dataItems||this.value.map((t,e)=>({dataItem:t,index:null,level:this.valueDepth[e]||0}))}get focusedTagId(){return!je(this.focusedTagIndex)||this.isOpen?null:`${this.tagPrefix}-${eb({dataItem:this.tags[this.focusedTagIndex]},this.valueField)}`}set isFocused(t){this.renderer[t?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=t}get isFocused(){return this._isFocused}get isOpen(){return je(this.popupRef)}get width(){const t=this.wrapper.nativeElement.offsetWidth,e=this.popupSettings.width||t;return{min:isNaN(t)?t:`${t}px`,max:isNaN(e)?e:`${e}px`}}get height(){const t=this.popupSettings.height;return je(t)?`${t}px`:"auto"}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}get popupContainerClasses(){const t=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&t.push(this.popupSettings.popupClass),t}set nodes(t){this.data=t}get nodes(){return this.data}set children(t){this.fetchChildren=t}get children(){return this.fetchChildren}get expand(){return this.nodeExpand}get collapse(){return this.nodeCollapse}set isExpanded(t){this.isNodeExpanded=t}get isExpanded(){return this.isNodeExpanded}get isTagFocused(){return!this.isOpen&&void 0!==this.focusedTagIndex}get isTreeViewActive(){return this.treeview&&this.treeview.isActive}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.cdr.markForCheck()}))}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents()}ngOnChanges(t){Xo(["textField","valueField","valuePrimitive"],t,!1)&&this.setState(),Xo(["valueDepth","value","dataItems"],t,!1)&&(this.dataItems=!t.value||t.dataItems||this.valuePrimitive?this.dataItems.map((e,i)=>Object.assign({},e,{level:this.valueDepth[i]||0})):this.value)}ngAfterContentChecked(){this.verifySettings()}isEmpty(){return!(Boolean(this.placeholder)||je(this.value)&&0!==this.value.length)}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}focusItemAt(t){if(this.treeview){const e=this.treeview.itemLookup(t);!je(e)||this.treeview.isDisabled(e.item.dataItem,e.item.index)||this.treeview.focus(t)}}reset(){this.value=[],this.dataItems=[],this.valueDepth=[]}toggle(t){Promise.resolve(null).then(()=>{const e=je(t)?t:!je(this.popupRef);this.destroyPopup(),e&&this.createPopup()})}handleFocus(){this.isFocused||(this.isFocused=!0,Kt(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))}handleBlur(t){const e=t&&t.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(Kt(this.onBlur)||ED(this.hostElement.nativeElement))&&this._zone.run(()=>{this.onBlur.emit(),this.onTouchedCallback()}))}handleClick(){this.togglePopup(!this.isOpen)}handleKeydown(t){if(!this.isTreeViewActive&&t.keyCode===_e.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||this.readonly)return;const i=t;this.navigationService.process({originalEvent:i})===Si.Open&&i.preventDefault()}handleNodeClick(t){this.isFocused||(this.lastNodeOnFocus=t.originalEvent.target.parentElement.parentElement,this.focus())}togglePopup(t){this.disabled||this.readonly||this.isOpen===t||(this.triggerPopupEvents(t)?this.removeTreeViewFromTabOrder():(this.focusedTagIndex=void 0,t?this.createPopup():this.destroyPopup()))}messageFor(t){return this.localization.get(t)}handleCheckedItemsChange(t){this.valueDepth=t.map(e=>e.level),this.dataItems=t.slice(),this.updateValue(this.dataItems)}handleRemoveTag({tag:t,index:e}){if(this.disabled||this.readonly)return;const i=new dTe(t);this.removeTag.emit(i),!i.isDefaultPrevented()&&(t instanceof Array?(this.dataItems=this.dataItems.filter((s,o)=>ooo!==e),this.valueDepth=this.valueDepth.filter((s,o)=>o!==e)),this.updateValue(this.dataItems),this.isFocused||this.focus())}handleTagMapperChange(t){this.showAfter=aV(t),this.setTags()}clearAll(t){t.stopImmediatePropagation(),t.preventDefault(),this.focus(),this.value=this.value.filter((e,i)=>this.disabledIndices.has(i)),this.dataItems=this.dataItems.filter((e,i)=>this.disabledIndices.has(i)),this.valueDepth=this.valueDepth.filter((e,i)=>this.disabledIndices.has(i)),this.emitValueChange()}writeValue(t){this.value=t||[],this.valuePrimitive||(this.dataItems=this.value)}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}verifySettings(){if(En()){if(!je(this.valueField)||!je(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding");if(!xc(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection");if(this.value.length>0){if(this.valuePrimitive&&this.value.some(e=>vx(e)))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values");const t=this.dataItems.every(e=>vx(e.dataItem));if(this.valuePrimitive&&!xc(this.dataItems))throw new Error(Ng_dataItems);if(this.valuePrimitive&&!t)throw new Error(Ng_dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error("Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems");if(!this.valuePrimitive&&!rV(this.value))throw new Error("Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values");if((xc(this.valueField)||xc(this.textField))&&!xc(this.valueDepth))throw new Error(Ng_valueDepth);if((xc(this.valueField)||xc(this.textField))&&0===this.valueDepth.length)throw new Error(Ng_valueDepth);if((xc(this.valueField)||xc(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error("Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth")}}}emitValueChange(t){this.onChangeCallback(t),this.valueChange.emit(t)}triggerPopupEvents(t){const e=new Cx;return t?this.open.emit(e):this.close.emit(e),e.isDefaultPrevented()}createPopup(){const t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});const s=this.popupRef.popupElement,{min:o,max:r}=this.width;s.style.minWidth=o,s.style.width=r,s.style.height=this.height,this.renderer.setAttribute(s,"dir",this.direction),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","true"),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","false"))}subscribeEvents(){this.subscriptions.push(this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.navigationService.enter.pipe(lt(t=>t.originalEvent.preventDefault())).subscribe(()=>this.togglePopup(!0)),ii(this.navigationService.close,this.navigationService.esc).subscribe(()=>{this.focus(),this.togglePopup(!1)}),this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),this.navigationService.up.subscribe(this.handleUpKey.bind(this)),this.navigationService.down.subscribe(this.handleDownKey.bind(this)),this.navigationService.left.pipe(dt(()=>!this.isTreeViewActive)).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe(dt(()=>!this.isTreeViewActive)).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe(dt(()=>!this.isOpen)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(dt(()=>!this.isOpen)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(dt(()=>this.isTagFocused)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(dt(()=>this.isTagFocused)).subscribe(this.handleDelete.bind(this)))}handleTabKey(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())}handleUpKey(t){!this.treeview||(t.originalEvent.preventDefault(),"0"===this.treeview.navigationService.activeIndex&&this.focus())}handleDownKey(t){!this.treeview||(t.originalEvent.preventDefault(),this.treeview.isActive||(this.treeview.focus(),this.focusedTagIndex=void 0))}handleRightKey(t){t.originalEvent.preventDefault();const e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndext.unsubscribe())}removeTreeViewFromTabOrder(){this.treeview.element.nativeElement.querySelectorAll("li").forEach(e=>{"0"===e.getAttribute("tabindex")&&(this.lastNodeOnFocus=e,this.lastNodeOnFocus.setAttribute("tabindex","-1"))})}setState(){je(this.dataItems)&&je(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()}setTags(){const t=this.dataItems.map(e=>e.dataItem);this.tags=this.tagMapper(t),this.disabledIndices=this.disabledItemsMapper()}updateValue(t){const e=t.map(this.valuePrimitive?i=>eb(i,this.valueField):i=>i.dataItem);this.value=e,this.emitValueChange(this.value)}disabledItemsMapper(){return new Set(this.dataItems.reduce((t,e,i)=>(this.itemDisabled(e.dataItem,e.index)&&t.push(i),t),[]))}};Jn.\u0275fac=function(t){return new(t||Jn)(g(Oi),g(Ie),g($),g(ma),g(ce),g(J),g(Be))},Jn.\u0275cmp=K({type:Jn,selectors:[["kendo-multiselecttree"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Ya,5),Ce(i,Ka,5),Ce(i,Sx,5),Ce(i,Za,5),Ce(i,tb,5),Ce(i,nb,5)),2&t){let s;U(s=W())&&(e.headerTemplate=s.first),U(s=W())&&(e.footerTemplate=s.first),U(s=W())&&(e.nodeTemplate=s.first),U(s=W())&&(e.noDataTemplate=s.first),U(s=W())&&(e.tagTemplate=s.first),U(s=W())&&(e.groupTagTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(eTe,5),Ae(MD,7),Ae(k2,7),Ae(DD,7,Gt)),2&t){let i;U(i=W())&&(e.treeview=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.wrapper=i.first),U(i=W())&&(e.container=i.first)}},hostVars:5,hostBindings:function(t,e){2&t&&(fe("dir",e.direction),he("k-widget",e.hostClasses)("k-dropdowntree",e.hostClasses))},inputs:{valueDepth:"valueDepth",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",loadOnDemand:"loadOnDemand",focusableId:"focusableId",clearButton:"clearButton",hasChildren:"hasChildren",fetchChildren:"fetchChildren",itemDisabled:"itemDisabled",tagMapper:"tagMapper",tabindex:"tabindex",popupSettings:"popupSettings",checkableSettings:"checkableSettings",data:"data",value:"value",dataItems:"dataItems",isNodeExpanded:"isNodeExpanded",textField:"textField",valueField:"valueField",loading:"loading"},outputs:{onFocus:"focus",onBlur:"blur",open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",valueChange:"valueChange",removeTag:"removeTag"},exportAs:["kendoMultiSelectTree"],features:[we([J,ma,fa,ga,Rr,{provide:An,useValue:"kendo.multiselecttree"},{multi:!0,provide:es,useExisting:He(()=>AD)},{provide:td,useExisting:He(()=>AD)},{provide:fx,useExisting:He(()=>AD)},{provide:Ds,useExisting:He(()=>AD)}]),st],decls:11,vars:28,consts:function(){let n,t;return n=$localize`:kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items␟1689309191709bbbb071c889072707cb3f12dc93␟5589893825114548617:NO DATA FOUND`,t=$localize`:kendo.multiselecttree.clearTitle|The title of the clear button␟f99cf5ed2ae05c7d1df8dc97f56176a4934c8db9␟7268188619735862842:clear`,[["kendoMultiSelectTreeLocalizedMessages","","noDataText",n,"clearTitle",t],["role","listbox","aria-haspopup","tree",3,"ngClass","kendoEventsOutsideAngular","scope","click","keydown"],["wrapper",""],[3,"id","tags","focused","textField","valueField","valueDepth","disabled","tagPrefix","template","groupTemplate","disabledIndices","removeTag"],["class","k-input k-readonly",4,"ngIf"],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"mousedown",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],["container",""],[1,"k-input","k-readonly"],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"mousedown"],[1,"k-icon","k-i-loading"],[4,"ngIf"],["kendoMultiSelectTreeCheckable","",3,"nodes","animate","checkable","checkedItems","valueField","textField","children","hasChildren","isExpanded","isDisabled","nodeTemplate","loadOnDemand","kendoEventsOutsideAngular","scope","keydown","nodeClick","expand","collapse","checkedItemsChange"],["treeview",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"div",1,2),se("click",function(){return e.handleClick()})("keydown",function(s){return e.handleKeydown(s)}),y(3,"kendo-taglist",3),se("removeTag",function(s){return e.handleRemoveTag(s)}),_(),A(4,tIt,2,1,"span",4),A(5,nIt,1,1,"span",5),A(6,iIt,1,0,"span",6),_(),A(7,hIt,5,21,"ng-template",null,7,Ls),wn(9,null,8)),2&t&&(b(1),v("ngClass",Yt(23,pIt,e.disabled))("kendoEventsOutsideAngular",di(25,nV,e.handleFocus,e.handleBlur))("scope",e),fe("aria-describedby",e.tagListId)("aria-readonly",e.readonly)("aria-activedescendant",e.focusedTagId)("tabindex",e.tabindex)("id",e.focusableId)("dir",e.direction),b(2),v("id",e.tagListId)("tags",e.tags)("focused",e.focusedTagIndex)("textField",e.textField)("valueField",e.valueField)("valueDepth",e.valueDepth)("disabled",e.disabled)("tagPrefix",e.tagPrefix)("template",e.tagTemplate)("groupTemplate",e.groupTagTemplate)("disabledIndices",e.disabledIndices),b(1),v("ngIf",!e.tags||!e.tags.length),b(1),v("ngIf",!e.disabled&&!e.loading&&!e.readonly&&e.clearButton&&(null==e.tags?null:e.tags.length)),b(1),v("ngIf",e.loading))},directives:function(){return[Wd,Un,lr,QY,pt,mr,gTe,Vg]},encapsulation:2,changeDetection:0}),X([G("class.k-widget"),G("class.k-dropdowntree"),B("design:type",Boolean)],Jn.prototype,"hostClasses",void 0),X([G("attr.dir"),B("design:type",String)],Jn.prototype,"direction",void 0),X([ct(Ya,{static:!1}),B("design:type",Ya)],Jn.prototype,"headerTemplate",void 0),X([ct(Ka,{static:!1}),B("design:type",Ka)],Jn.prototype,"footerTemplate",void 0),X([ct(Sx,{static:!1}),B("design:type",Sx)],Jn.prototype,"nodeTemplate",void 0),X([ct(Za,{static:!1}),B("design:type",Za)],Jn.prototype,"noDataTemplate",void 0),X([ct(tb,{static:!1}),B("design:type",tb)],Jn.prototype,"tagTemplate",void 0),X([ct(nb,{static:!1}),B("design:type",nb)],Jn.prototype,"groupTagTemplate",void 0),X([at("popupTemplate",{static:!0}),B("design:type",ve)],Jn.prototype,"popupTemplate",void 0),X([at("wrapper",{static:!0}),B("design:type",$)],Jn.prototype,"wrapper",void 0),X([at("container",{read:Gt,static:!0}),B("design:type",Gt)],Jn.prototype,"container",void 0),X([at("treeview",{static:!1}),B("design:type",mr),B("design:paramtypes",[mr])],Jn.prototype,"treeview",null),X([p(),B("design:type",Number),B("design:paramtypes",[Number])],Jn.prototype,"tabindex",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Jn.prototype,"popupSettings",null),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],Jn.prototype,"checkableSettings",null),X([p(),B("design:type",Array),B("design:paramtypes",[Array])],Jn.prototype,"data",null),X([p(),B("design:type",Array),B("design:paramtypes",[Array])],Jn.prototype,"value",null),X([p(),B("design:type",Array),B("design:paramtypes",[Array])],Jn.prototype,"dataItems",null),X([p(),B("design:type",Object)],Jn.prototype,"textField",void 0),X([p(),B("design:type",Object)],Jn.prototype,"valueField",void 0),X([p(),B("design:type",Array)],Jn.prototype,"valueDepth",void 0),X([p(),B("design:type",Boolean)],Jn.prototype,"loading",void 0),X([p(),B("design:type",String)],Jn.prototype,"placeholder",void 0),X([p(),B("design:type",Number)],Jn.prototype,"listHeight",void 0),X([p(),B("design:type",Boolean)],Jn.prototype,"disabled",void 0),X([p(),B("design:type",Boolean)],Jn.prototype,"readonly",void 0),X([p(),B("design:type",Boolean)],Jn.prototype,"valuePrimitive",void 0),X([p(),B("design:type",Boolean)],Jn.prototype,"loadOnDemand",void 0),X([p(),B("design:type",String)],Jn.prototype,"focusableId",void 0),X([p(),B("design:type",Boolean)],Jn.prototype,"clearButton",void 0),X([p(),B("design:type",Function)],Jn.prototype,"hasChildren",void 0),X([p(),B("design:type",Function)],Jn.prototype,"fetchChildren",void 0),X([p(),B("design:type",Function)],Jn.prototype,"isNodeExpanded",void 0),X([p(),B("design:type",Function)],Jn.prototype,"itemDisabled",void 0),X([p(),B("design:type",Object)],Jn.prototype,"tagMapper",void 0),X([Q("focus"),B("design:type",S)],Jn.prototype,"onFocus",void 0),X([Q("blur"),B("design:type",S)],Jn.prototype,"onBlur",void 0),X([Q(),B("design:type",S)],Jn.prototype,"open",void 0),X([Q(),B("design:type",S)],Jn.prototype,"opened",void 0),X([Q(),B("design:type",S)],Jn.prototype,"close",void 0),X([Q(),B("design:type",S)],Jn.prototype,"closed",void 0),X([Q(),B("design:type",S)],Jn.prototype,"nodeExpand",void 0),X([Q(),B("design:type",S)],Jn.prototype,"nodeCollapse",void 0),X([Q(),B("design:type",S)],Jn.prototype,"valueChange",void 0),X([Q(),B("design:type",S)],Jn.prototype,"removeTag",void 0),Jn=AD=X([B("design:paramtypes",[Oi,Ie,$,ma,ce,J,Be])],Jn);let QY=(()=>{let n=class{constructor(){this.disabledIndices=new Set,this.removeTag=new S}tagProp(e,i,s){const o=i&&this.getPropField(e,i,s);return Qt(e,o)}isTagDisabled(e,i){return this.isGroupTag(e)?e.every((s,o)=>this.disabledIndices.has(o+i)):this.disabledIndices.has(i)}deleteTag(e,i,s){e.preventDefault(),e.stopImmediatePropagation(),!this.disabled&&1===e.which&&this.removeTag.emit({tag:i,index:s})}itemId(e,i){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,i)}isGroupTag(e){return e instanceof Array}tagAriaHidden(e){return je(this.focused)&&this.focused!==e}getPropField(e,i,s){const o=i.length-1;if("string"==typeof i)return i;if(this.valueDepth){const r=this.valueDepth[s];return or in e)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["kendo-taglist"]],inputs:{disabledIndices:"disabledIndices",tags:"tags",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",focused:"focused",template:"template",groupTemplate:"groupTemplate",disabled:"disabled",tagPrefix:"tagPrefix",id:"id"},outputs:{removeTag:"removeTag"},decls:2,vars:2,consts:[[1,"k-reset"],["role","option","aria-selected","true","class","k-button",3,"ngClass",4,"ngFor","ngForOf"],["role","option","aria-selected","true",1,"k-button",3,"ngClass"],[4,"ngIf","ngIfThen","ngIfElse"],["groupTag",""],["singleTag",""],["aria-label","delete",1,"k-select"],[1,"k-icon","k-i-close",3,"mousedown"],[4,"ngIf"],[3,"ngIf"],[3,"templateContext"]],template:function(e,i){1&e&&(y(0,"ul",0),A(1,TIt,8,11,"li",1),_()),2&e&&(fe("id",i.id),b(1),v("ngForOf",i.tags))},directives:function(){return[Wn,M2,Un,pt,Vg]},encapsulation:2}),X([p(),B("design:type",Array)],n.prototype,"tags",void 0),X([p(),B("design:type",Object)],n.prototype,"textField",void 0),X([p(),B("design:type",String)],n.prototype,"valueField",void 0),X([p(),B("design:type",Array)],n.prototype,"valueDepth",void 0),X([p(),B("design:type",Number)],n.prototype,"focused",void 0),X([p(),B("design:type",tb)],n.prototype,"template",void 0),X([p(),B("design:type",nb)],n.prototype,"groupTemplate",void 0),X([p(),B("design:type",Boolean)],n.prototype,"disabled",void 0),X([p(),B("design:type",String)],n.prototype,"tagPrefix",void 0),X([p(),B("design:type",String)],n.prototype,"id",void 0),X([p(),B("design:type",Set)],n.prototype,"disabledIndices",void 0),X([Q(),B("design:type",S)],n.prototype,"removeTag",void 0),n})(),bV=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{noDataText:"noDataText",clearTitle:"clearTitle"},features:[N]}),X([p(),B("design:type",String)],n.prototype,"noDataText",void 0),X([p(),B("design:type",String)],n.prototype,"clearTitle",void 0),n})();var JY;let Wd=JY=class extends bV{constructor(t){super(),this.service=t}};var eK;Wd.\u0275fac=function(t){return new(t||Wd)(g(J))},Wd.\u0275dir=R({type:Wd,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[we([{provide:bV,useExisting:He(()=>JY)}]),N]}),Wd=JY=X([B("design:paramtypes",[J])],Wd);let Tx=eK=class extends bV{constructor(t){super(),this.service=t}get override(){return!0}};Tx.\u0275fac=function(t){return new(t||Tx)(g(J))},Tx.\u0275cmp=K({type:Tx,selectors:[["kendo-dropdownlist-messages"],["kendo-combobox-messages"],["kendo-multicolumncombobox-messages"],["kendo-autocomplete-messages"],["kendo-multiselect-messages"],["kendo-dropdowntree-messages"],["kendo-multiselecttree-messages"]],features:[we([{provide:bV,useExisting:He(()=>eK)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Tx=eK=X([B("design:paramtypes",[J])],Tx);let tK=(()=>{let n=class{constructor(e,i){this.element=e,this.zone=i}ngOnChanges(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(e){this.zone.runOutsideAngular(()=>setTimeout(e))}};return n.\u0275fac=function(e){return new(e||n)(g($),g(ce))},n.\u0275dir=R({type:n,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[st]}),X([p("filterInput"),B("design:type",Boolean)],n.prototype,"focused",void 0),n=X([B("design:paramtypes",[$,ce])],n),n})(),kx=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),CV=(()=>{let n=class{constructor(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}get focusedClassName(){return this.selectionService.isFocused(this.index)}get selectedClassName(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}onClick(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))}};return n.\u0275fac=function(e){return new(e||n)(g(Rr))},n.\u0275dir=R({type:n,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(e,i){1&e&&se("click",function(o){return i.onClick(o)}),2&e&&(fe("index",i.index),yt("height",i.height,"px")("min-height",i.height,"px"),he("k-state-focused",i.focusedClassName)("k-state-selected",i.selectedClassName))},inputs:{checkboxes:"checkboxes",multipleSelection:"multipleSelection",index:"index",height:"height"}}),X([G("attr.index"),p(),B("design:type",Number)],n.prototype,"index",void 0),X([p(),B("design:type",Object)],n.prototype,"checkboxes",void 0),X([G("style.height.px"),G("style.minHeight.px"),p(),B("design:type",Number)],n.prototype,"height",void 0),X([p(),B("design:type",Boolean)],n.prototype,"multipleSelection",void 0),X([G("class.k-state-focused"),B("design:type",Boolean),B("design:paramtypes",[])],n.prototype,"focusedClassName",null),X([G("class.k-state-selected"),B("design:type",Boolean),B("design:paramtypes",[])],n.prototype,"selectedClassName",null),X([Zn("click",["$event"]),B("design:type",Function),B("design:paramtypes",[Object]),B("design:returntype",void 0)],n.prototype,"onClick",null),n=X([B("design:paramtypes",[Rr])],n),n})(),Vg=(()=>{let n=class{constructor(e){this.viewContainerRef=e}set templateContext(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))}};return n.\u0275fac=function(e){return new(e||n)(g(Gt))},n.\u0275dir=R({type:n,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),X([p(),B("design:type",Object),B("design:paramtypes",[Object])],n.prototype,"templateContext",null),n=X([B("design:paramtypes",[Gt])],n),n})(),gTe=(()=>{let n=class{constructor(e){this.treeView=e,this.checkedItemsChange=new S,this.checkedKeys=new Set,this.subscriptions=new Je,this.subscriptions.add(this.treeView.checkedChange.subscribe(this.handleCheckedChange.bind(this))),this.treeView.isChecked=this.getCheckedState.bind(this)}ngOnChanges(e){je(e.checkable)&&this.toggleCheckOnClick(),je(e.checkedItems)&&(this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(i=>eb(i,this.valueField))))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.unsubscribeClick()}getCheckedState(e,i){return this.isItemChecked({dataItem:e,index:i})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(i))?"indeterminate":"none"}handleCheckedChange(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())}toggleCheckOnClick(){this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(dt(e=>"click"===e.type)).subscribe(e=>{const i=this.treeView.itemLookup(e.item.index);this.handleCheckedChange(i)}))}unsubscribeClick(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)}checkNode(e){if(this.treeView.isDisabled(e.item.dataItem,e.item.index))return;const i=e.item,s=[i];this.checkable.checkChildren&&oTe(e,a=>this.treeView.isVisible(a.dataItem,a.index)&&!this.treeView.isDisabled(a.dataItem,a.index)).forEach(a=>s.push(a.item));const o=!this.isItemChecked(i);s.forEach(r=>{o?this.addItem(r):this.removeItem(r)})}checkParents(e){let i=e;for(;i;)i.children.every(o=>this.isItemChecked(o))?this.addItem(i.item):this.removeItem(i.item),i=i.parent}addItem(e){if(this.isItemChecked(e))return;const i=XY(e.index),s=Object.assign({},e,{level:i});this.checkedItems.push(s),this.checkedKeys.add(eb(s,this.valueField))}removeItem(e){if(!this.isItemChecked(e))return;const i=XY(e.index),s=Object.assign({},e,{level:i});this.checkedItems=this.checkedItems.filter(o=>eb(o,this.valueField)!==eb(s,this.valueField)),this.checkedKeys.delete(eb(s,this.valueField))}isItemChecked(e){return this.checkedKeys.has(eb(e,this.valueField))}isItemIndeterminate(e){const i=e.children;if(!Array.isArray(i)||0===i.length)return!1;let s=0,o=i[s];for(;je(o);){if(this.isItemChecked(o.item)||this.isItemIndeterminate(o))return!0;s+=1,o=i[s]}return!1}};return n.\u0275fac=function(e){return new(e||n)(g(mr))},n.\u0275dir=R({type:n,selectors:[["","kendoMultiSelectTreeCheckable",""]],inputs:{checkedItems:"checkedItems",checkable:"checkable",valueField:"valueField"},outputs:{checkedItemsChange:"checkedItemsChange"},features:[st]}),X([p(),B("design:type",Object)],n.prototype,"checkable",void 0),X([p(),B("design:type",Object)],n.prototype,"valueField",void 0),X([p(),B("design:type",Array)],n.prototype,"checkedItems",void 0),X([Q(),B("design:type",S)],n.prototype,"checkedItemsChange",void 0),n=X([B("design:paramtypes",[mr])],n),n})(),A2=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,PC,ql,Du,kx,ha],Ut,PC,ql,Du,kx,ha]}),n})(),JIt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[A2,PDt],kx]}),n})(),nK=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[A2],kx]}),n})();const tAt=a2;let nAt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[{provide:Ud,useValue:tAt}],imports:[[A2],kx]}),n})(),iK=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[A2],kx]}),n})();const iAt=a2;let sAt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[{provide:Ud,useValue:iAt}],imports:[[A2],kx]}),n})(),mTe=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[nK,nAt,iK,sAt,JIt]}),n})();function L(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function jh(n,t){return function(e,i){t(e,i,n)}}function F(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}const It=n=>n?new Date(n.getTime()):null,F2=(n,t)=>{const e=It(n);return 0===t&&23===e.getHours()&&e.setHours(e.getHours()+2),e},Au=(n,t)=>{const e=It(n);return e.setDate(e.getDate()+t),F2(e,n.getHours())},qd=(n,t,e,i=0,s=0,o=0,r=0)=>{const a=new Date(n,t,e,i,s,o,r);return n>-1&&n<100&&a.setFullYear(a.getFullYear()-1900),F2(a,i)},Yo=n=>qd(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0),ko=(n,t)=>!n&&!t||n&&t&&n.getTime()===t.getTime(),Dx=n=>{const t=qd(n.getFullYear(),n.getMonth()+1,1,n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());return Au(t,-1)},Qa=(n,t)=>{const e=It(n),s=(12+(e.getMonth()+t)%12)%12;return e.setMonth(e.getMonth()+t),((n,t)=>n.getMonth()!==t?Dx(Qa(n,-1)):n)(F2(e,n.getHours()),s)},vTe=(n,t)=>{const e=n.getMonth(),i=qd(t,e,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());return i.getMonth()===e?i:Dx(Qa(i,-1))},Xd=(n,t)=>F2(vTe(n,n.getFullYear()+t),n.getHours()),$h=(n,t)=>Xd(n,10*t),O2=(n,t)=>Xd(n,100*t),wV=(n,t)=>vTe(n,t(n.getFullYear())),Mx=n=>wV(n,t=>t-t%100),rK=n=>wV(n,t=>t-t%100+90),sd=n=>wV(n,t=>t-t%10),bTe=(n,t)=>(Mx(t).getFullYear()-Mx(n).getFullYear())/100,aK=n=>wV(n,t=>t-t%10+9),CTe=(n,t)=>(sd(t).getFullYear()-sd(n).getFullYear())/10,xTe=(n,t)=>Au(n,7*t),wTe=n=>qd(n.getFullYear(),n.getMonth(),1,n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());var R2=(()=>(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"}(R2||(R2={})),R2))();const STe=(n,t,e=R2.Forward)=>{const i=It(n),s=(t-i.getDay()+7*e)%7;return i.setDate(i.getDate()+s),F2(i,n.getHours())},TTe=(n,t)=>12*(t.getFullYear()-n.getFullYear())+(t.getMonth()-n.getMonth()),kTe=(n,t)=>{const e=n.getDate(),i=qd(n.getFullYear(),t,e,n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds());return i.getDate()===e?i:Dx(Qa(i,-1))},DTe=n=>kTe(n,0),MTe=n=>kTe(n,11),ETe=(n,t)=>t.getFullYear()-n.getFullYear();var P2=(()=>(function(n){n[n.Sunday=0]="Sunday",n[n.Monday=1]="Monday",n[n.Tuesday=2]="Tuesday",n[n.Wednesday=3]="Wednesday",n[n.Thursday=4]="Thursday",n[n.Friday=5]="Friday",n[n.Saturday=6]="Saturday"}(P2||(P2={})),P2))();const lK=(n,t)=>{const e=qd(n.getFullYear(),0,1,-6),s=((n,t)=>t!==P2.Monday?Au(((n,t)=>STe(n,t,R2.Backward))(n,t),4):Au(n,4-(n.getDay()||7)))(n,t).getTime()-e.getTime(),o=Math.floor(s/864e5);return 1+Math.floor(o/7)},ITe=(n,t=P2.Monday)=>{n=Yo(n);const e=Au(n,-7),i=Au(n,7),s=lK(n,t);return 0===s?lK(e,t)+1:53===s&&lK(i,t)>1?1:s},ATe=["*"],FTe=["list"];function dAt(n,t){if(1&n&&H(0),2&n){const e=I().$implicit;un(I().service.navigationTitle(e))}}function uAt(n,t){}const OTe=function(n,t,e){return{$implicit:n,activeView:t,date:e}};function hAt(n,t){if(1&n&&(y(0,"li"),y(1,"span"),A(2,dAt,1,1,"ng-template",5),A(3,uAt,0,0,"ng-template",6),_(),_()),2&n){const e=t.$implicit,i=t.index,s=I();fe("data-date-index",i),b(1),he("k-calendar-navigation-marker",s.service.isRangeStart(e)),b(1),v("ngIf",!s.templateRef),b(1),v("ngIf",s.templateRef)("ngTemplateOutlet",s.templateRef)("ngTemplateOutletContext",pc(7,OTe,s.service.navigationTitle(e),s.activeViewValue,e))}}const ib=function(n){return{click:n}};function pAt(n,t){if(1&n&&(y(0,"th",11),H(1),_()),2&n){const e=t.$implicit;yt("width",I(2).colWidth,"%"),b(1),un(e)}}function fAt(n,t){if(1&n&&(y(0,"table",7),y(1,"thead",8),y(2,"tr",9),A(3,pAt,2,3,"th",10),_(),_(),_()),2&n){const e=I();b(3),v("ngForOf",e.weekNames)}}function gAt(n,t){1&n&&P(0,"col")}function mAt(n,t){if(1&n){const e=ht();y(0,"tbody",12),se("cellClick",function(s){return Le(e),I().cellClick.emit(s)})("weekNumberCellClick",function(s){return Le(e),I().weekNumberCellClick.emit(s)}),_()}if(2&n){const e=t.$implicit,i=I();v("activeView",i.activeView)("isActive",i.isActive)("min",i.min)("max",i.max)("cellUID",i.cellUID)("focusedDate",i.focusedDate)("selectedDates",i.selectedDates)("weekNumber",i.weekNumber)("templateRef",i.cellTemplateRef)("weekNumberTemplateRef",i.weekNumberTemplateRef)("viewDate",e)}}function yAt(n,t){if(1&n){const e=ht();y(0,"kendo-calendar-navigation",5),se("valueChange",function(s){return Le(e),I(2).handleNavigation(s)})("pageChange",function(){return Le(e),I(2).onPageChange()}),_()}if(2&n){const e=I(2);v("activeView",e.activeViewEnum)("focusedDate",e.focusedDate)("min",e.min)("max",e.max)("templateRef",null==e.navigationItemTemplate?null:e.navigationItemTemplate.templateRef)}}function _At(n,t){if(1&n){const e=ht();_n(0),A(1,yAt,1,5,"kendo-calendar-navigation",2),y(2,"kendo-calendar-viewlist",3),se("todayButtonClick",function(s){return Le(e),I().handleDateChange({selectedDates:[s],focusedDate:s})})("cellClick",function(s){return Le(e),I().handleCellClick(s)})("weekNumberCellClick",function(s){return Le(e),I().handleWeekNumberClick(s)})("activeDateChange",function(s){Le(e);const o=I();return o.emitEvent(o.activeViewDateChange,s)})("pageChange",function(){return Le(e),I().onPageChange()}),_(),y(3,"kendo-resize-sensor",4),se("resize",function(){return Le(e),I().onResize()}),_(),vn()}if(2&n){const e=I();let i;b(1),v("ngIf",e.navigation),b(1),v("activeView",e.activeViewEnum)("isActive",e.isActive)("cellTemplateRef",null==(i=e.activeCellTemplate())?null:i.templateRef)("headerTitleTemplateRef",null==e.headerTitleTemplate?null:e.headerTitleTemplate.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplate?null:e.weekNumberTemplate.templateRef)("cellUID",e.cellUID)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("weekNumber",e.weekNumber)("selectedDates",e.selectedDates)}}function vAt(n,t){if(1&n){const e=ht();_n(0),y(1,"kendo-multiviewcalendar",6,7),se("activeViewChange",function(s){return Le(e),I().handleActiveViewChange(s)})("valueChange",function(s){Le(e);const o=ki(2);return I().handleMultiViewCalendarValueChange(s,o.focusedDate)}),P(3,"kendo-multiviewcalendar-messages",8),_(),vn()}if(2&n){const e=I();b(1),v("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.monthCellTemplate)("yearCellTemplate",e.yearCellTemplate)("decadeCellTemplate",e.decadeCellTemplate)("centuryCellTemplate",e.centuryCellTemplate)("headerTitleTemplate",e.headerTitleTemplate)("weekNumberTemplate",e.weekNumberTemplate)("focusedDate",e.focusedDate)("selection",e.selection)("value",e.value)("disabledDates",e.disabledDates),b(2),v("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}const bAt=["dateInput"],CAt=["wrap"];function xAt(n,t){if(1&n){const e=ht();y(0,"span",6),se("mousedown",function(s){return s.preventDefault()}),y(1,"span",7),se("mousedown",function(){Le(e);const s=I();return s.arrowDirection=s.arrow.Up})("mouseleave",function(){Le(e);const s=I();return s.arrowDirection=s.arrow.None})("click",function(){return Le(e),I().handleButtonClick(1)}),P(2,"span",8),_(),y(3,"span",9),se("click",function(){return Le(e),I().handleButtonClick(-1)})("mousedown",function(){Le(e);const s=I();return s.arrowDirection=s.arrow.Down})("mouseleave",function(){Le(e);const s=I();return s.arrowDirection=s.arrow.None}),P(4,"span",10),_(),_()}if(2&n){const e=I();b(1),he("k-state-active",e.arrowDirection===e.arrow.Up),v("title",e.localization.get("increment")),fe("aria-label",e.localization.get("increment")),b(2),he("k-state-active",e.arrowDirection===e.arrow.Down),v("title",e.localization.get("decrement")),fe("aria-label",e.localization.get("decrement"))}}const wAt=function(n,t,e,i,s,o,r){return{click:n,focus:t,mousedown:e,touchstart:i,dragstart:s,drop:o,blur:r}},SV=["container"],cK=["popupTemplate"],dK=["wrapper"];function SAt(n,t){}const RTe=function(n){return{keydown:n}};function TAt(n,t){if(1&n){const e=ht();y(0,"kendo-calendar",9,10),se("valueChange",function(s){Le(e);const o=I();return o.handleChange(o.mergeTime(s))}),P(2,"kendo-calendar-messages",11),_(),A(3,SAt,0,0,"ng-template")}if(2&n){const e=I();v("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",Yt(25,RTe,e.handleKeydown))("scope",e)("disabledDates",e.disabledDates),b(2),v("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}const PTe=function(n,t){return{click:n,mousedown:t}},kAt=function(n,t){return{keydown:n,mousedown:t}};function DAt(n,t){if(1&n){const e=ht();y(0,"kendo-timeselector",9,10),se("valueChange",function(s){return Le(e),I().handleChange(s)})("valueReject",function(){return Le(e),I().handleReject()}),P(2,"kendo-timeselector-messages",11),_()}if(2&n){const e=I();v("cancelButton",e.cancelButton)("nowButton",e.nowButton)("format",e.format)("min",e.min)("max",e.max)("steps",e.steps)("value",e.value)("kendoEventsOutsideAngular",di(15,kAt,e.handleKeydown,e.handleMousedown))("scope",e),b(2),v("acceptLabel",e.localization.get("acceptLabel"))("accept",e.localization.get("accept"))("cancelLabel",e.localization.get("cancelLabel"))("cancel",e.localization.get("cancel"))("nowLabel",e.localization.get("nowLabel"))("now",e.localization.get("now"))}}function MAt(n,t){if(1&n&&(y(0,"button",25),H(1),_()),2&n){const e=I(2);v("kendoEventsOutsideAngular",Yt(5,ib,e.handleCancel))("scope",e),fe("title",e.localization.get("cancelLabel"))("aria-label",e.localization.get("cancelLabel")),b(1),_t(" ",e.localization.get("cancel")," ")}}const EAt=function(n,t){return{mousedown:n,keydown:t}},IAt=function(n,t){return{focusin:n,focusout:t}},AAt=function(n,t){return{click:n,keydown:t}},FAt=function(n){return{transitionend:n}},OAt=function(n,t,e){return{keydown:n,focusin:t,focusout:e}};function RAt(n,t){if(1&n){const e=ht();y(0,"div",9),y(1,"div",10),y(2,"div",11),y(3,"button",12),H(4),_(),y(5,"button",13),H(6),_(),_(),_(),y(7,"div",14,15),y(9,"div",16),y(10,"kendo-calendar",17),se("valueChange",function(s){return Le(e),I().calendarValue=s})("valueChange",function(){return Le(e),I().handleCalendarValueChange()}),P(11,"kendo-calendar-messages",18),_(),_(),y(12,"div",19),y(13,"kendo-timeselector",20),P(14,"kendo-timeselector-messages",21),_(),_(),_(),y(15,"div",22),A(16,MAt,2,7,"button",23),y(17,"button",24),H(18),_(),_(),_()}if(2&n){const e=ki(8),i=I();DT("k-datetime-wrap k-",i.activeTab,"-tab"),v("kendoEventsOutsideAngular",di(62,EAt,i.preventMouseDown,i.handleKeyDown))("scope",i),b(1),v("kendoEventsOutsideAngular",di(65,IAt,i.handleFocus,i.handleBlur))("scope",i),b(2),he("k-state-active","date"===i.activeTab),v("kendoEventsOutsideAngular",di(68,AAt,i.changeActiveTab.bind(i,"date"),i.handleBackTabOut))("scope",i),fe("title",i.localization.get("dateTabLabel"))("aria-label",i.localization.get("dateTabLabel")),b(1),_t(" ",i.localization.get("dateTab")," "),b(1),he("k-state-active","time"===i.activeTab),v("kendoEventsOutsideAngular",Yt(71,ib,i.changeActiveTab.bind(i,"time"))),fe("title",i.localization.get("timeTabLabel"))("aria-label",i.localization.get("timeTabLabel")),b(1),_t(" ",i.localization.get("timeTab")," "),b(1),yt("transition",i.tabSwitchTransition),v("kendoEventsOutsideAngular",Yt(73,FAt,i.handleTabChangeTransitionEnd.bind(i,e))),b(3),v("value",i.calendarValue)("type",i.calendarType)("min",i.calendarMin)("max",i.calendarMax)("focusedDate",i.focusedDate)("weekNumber",i.weekNumber)("navigation",!1)("animateNavigation",i.animateCalendarNavigation)("cellTemplate",i.cellTemplate)("monthCellTemplate",i.monthCellTemplate)("yearCellTemplate",i.yearCellTemplate)("decadeCellTemplate",i.decadeCellTemplate)("centuryCellTemplate",i.centuryCellTemplate)("weekNumberTemplate",i.weekNumberTemplate)("headerTitleTemplate",i.headerTitleTemplate)("disabled",i.disableCalendar)("disabledDates",i.disabledDates),b(1),v("today",i.localization.get("today"))("prevButtonTitle",i.localization.get("prevButtonTitle"))("nextButtonTitle",i.localization.get("nextButtonTitle")),b(2),v("value",i.value)("format",i.timeSelectorFormat)("min",i.timeSelectorMin)("max",i.timeSelectorMax)("setButton",!1)("cancelButton",!1)("steps",i.steps)("disabled",i.disableTimeSelector),b(1),v("now",i.localization.get("now"))("nowLabel",i.localization.get("nowLabel")),b(1),v("kendoEventsOutsideAngular",pc(75,OAt,i.handleTabOut,i.handleFocus,i.handleBlur))("scope",i),b(1),v("ngIf",i.cancelButton),b(1),v("disabled",!i.calendarValue)("kendoEventsOutsideAngular",Yt(79,ib,i.handleAccept))("scope",i),fe("title",i.localization.get("acceptLabel"))("aria-label",i.localization.get("acceptLabel")),b(1),_t(" ",i.localization.get("accept")," ")}}const PAt=function(n,t){return{mousedown:n,click:t}};function LAt(n,t){if(1&n&&(y(0,"caption",7),H(1),_()),2&n){const e=I().date,i=I();v("ngClass",i.getCaptionClass()),b(1),un(i.getCaptionTitle(e))}}function NAt(n,t){if(1&n&&(y(0,"th",11),H(1),_()),2&n){const e=t.$implicit;b(1),un(e)}}function BAt(n,t){if(1&n&&(y(0,"thead",8),y(1,"tr",9),A(2,NAt,2,1,"th",10),_(),_()),2&n){const e=I(2);b(2),v("ngForOf",e.weekNames)}}function VAt(n,t){if(1&n){const e=ht();y(0,"table",3),A(1,LAt,2,2,"caption",4),A(2,BAt,3,1,"thead",5),y(3,"tbody",6),se("cellClick",function(s){return Le(e),I().cellClick.emit(s)})("weekNumberCellClick",function(s){return Le(e),I().weekNumberCellClick.emit(s)})("cellEnter",function(s){return Le(e),I().cellEnter.emit(s)})("cellLeave",function(s){return Le(e),I().cellLeave.emit(s)}),_(),_()}if(2&n){const e=t.date,i=t.className,s=I();v("ngClass",i),b(1),v("ngIf",s.showViewHeader),b(1),v("ngIf",s.isMonthView()),b(1),v("activeView",s.activeView)("isActive",s.isActive)("min",s.min)("max",s.max)("cellUID",s.cellUID)("focusedDate",s.focusedDate)("selectedDates",s.selectedDates)("selectionRange",s.selectionRange)("activeRangeEnd",s.activeRangeEnd)("weekNumber",s.weekNumber)("templateRef",s.cellTemplateRef)("weekNumberTemplateRef",s.weekNumberTemplateRef)("viewDate",e)}}function zAt(n,t){}const LTe=function(n){return{date:n,className:"k-pointer-events-none"}};function HAt(n,t){if(1&n&&A(0,zAt,0,0,"ng-template",12),2&n){const e=I();v("ngTemplateOutlet",ki(1))("ngTemplateOutletContext",Yt(2,LTe,e.nextAnimationDate))}}function GAt(n,t){}const jAt=function(n){return{date:n}};function $At(n,t){if(1&n&&A(0,GAt,0,0,"ng-template",12),2&n){const e=t.$implicit;I(),v("ngTemplateOutlet",ki(1))("ngTemplateOutletContext",Yt(2,jAt,e))}}function UAt(n,t){}function WAt(n,t){if(1&n&&A(0,UAt,0,0,"ng-template",12),2&n){const e=I();v("ngTemplateOutlet",ki(1))("ngTemplateOutletContext",Yt(2,LTe,e.prevAnimationDate))}}function KAt(n,t){1&n&&H(0),2&n&&un(I().title)}function ZAt(n,t){}function QAt(n,t){if(1&n){const e=ht();y(0,"button",7),se("click",function(){return Le(e),I().prevButtonClick.emit()}),P(1,"span",8),_()}if(2&n){const e=I();v("disabled",e.isPrevDisabled)("title",e.prevButtonTitle),fe("aria-disabled",e.isPrevDisabled)}}function JAt(n,t){if(1&n){const e=ht();y(0,"button",9),se("click",function(){return Le(e),I().nextButtonClick.emit()}),P(1,"span",10),_()}if(2&n){const e=I();v("disabled",e.isNextDisabled)("title",e.nextButtonTitle),fe("aria-disabled",e.isNextDisabled)}}const e2t=["kendoCalendarView",""];function t2t(n,t){1&n&&(y(0,"td",3),H(1,"\xa0"),_())}function n2t(n,t){if(1&n&&(y(0,"tr",4),y(1,"th",5),H(2),_(),_()),2&n){const e=I();b(1),v("colSpan",e.colSpan),b(1),un(e.title)}}function i2t(n,t){if(1&n&&H(0),2&n){const e=I(3).$implicit,i=I();_t(" ",i.getWeekNumber(i.firstDate(e))," ")}}function s2t(n,t){}const NTe=function(n,t){return{$implicit:n,cellContext:t}};function o2t(n,t){if(1&n&&(y(0,"td",9),A(1,i2t,1,1,"ng-template",6),A(2,s2t,0,0,"ng-template",10),_()),2&n){const e=I(2).$implicit,i=I();v("kendoEventsOutsideAngular",Yt(5,ib,i.handleWeekNumberClick.bind(i,e))),b(1),v("ngIf",!i.weekNumberTemplateRef),b(1),v("ngIf",i.weekNumberTemplateRef)("ngTemplateOutlet",i.weekNumberTemplateRef)("ngTemplateOutletContext",di(7,NTe,i.firstDate(e),i.getWeekNumberContext(e)))}}function r2t(n,t){if(1&n&&A(0,o2t,3,10,"td",8),2&n){const e=I().$implicit,i=I(),s=ki(1);v("ngIf",i.firstDate(e))("ngIfElse",s)}}function a2t(n,t){1&n&&H(0),2&n&&un(I(2).$implicit.formattedValue)}function l2t(n,t){}function c2t(n,t){if(1&n&&A(0,l2t,0,0,"ng-template",15),2&n){const e=I(2).$implicit;v("ngTemplateOutlet",I(2).templateRef)("ngTemplateOutletContext",di(2,NTe,e.value,e))}}function d2t(n,t){if(1&n&&(y(0,"td",12),y(1,"span",13),A(2,a2t,1,1,"ng-template",6),A(3,c2t,1,5,void 0,14),_(),_()),2&n){const e=I(),i=e.$implicit,s=e.index,o=I().index,r=I();v("ngClass",r.getStyles(i))("title",i.title),fe("id",i.id)("data-cell-index",r.tableCellIndex(o,s))("aria-selected",i.isSelected||i.isRangeStart||i.isRangeMid||i.isRangeEnd)("aria-disabled",i.isDisabled),b(2),v("ngIf",!r.templateRef),b(1),v("ngIf",r.templateRef)}}function u2t(n,t){if(1&n&&(_n(0),A(1,d2t,4,8,"td",11),vn()),2&n){const e=t.$implicit,i=I(2),s=ki(1);b(1),v("ngIf",i.shouldRenderCellContent(e))("ngIfElse",s)}}function h2t(n,t){if(1&n&&(y(0,"tr",4),A(1,r2t,1,2,"ng-template",6),A(2,u2t,2,2,"ng-container",7),_()),2&n){const e=t.$implicit,i=I();b(1),v("ngIf",i.weekNumber),b(1),v("kForOf",e)}}function p2t(n,t){if(1&n&&(y(0,"li",3),y(1,"span"),H(2),_(),_()),2&n){const e=t.$implicit;fe("data-timelist-item-index",t.index),b(2),un(e.text)}}const f2t=["accept"],g2t=["cancel"],m2t=["now"],y2t=["listWrapper"],uK=function(n,t,e){return{click:n,focus:t,blur:e}};function _2t(n,t){if(1&n&&(y(0,"button",8,9),H(2),_()),2&n){const e=I();v("kendoEventsOutsideAngular",pc(6,uK,e.handleNow,e.handleFocus,e.handleBlur))("scope",e)("disabled",e.disabled),fe("title",e.localization.get("nowLabel"))("aria-label",e.localization.get("nowLabel")),b(2),un(e.localization.get("now"))}}const v2t=function(n,t){return{focus:n,blur:t}};function b2t(n,t){if(1&n){const e=ht();y(0,"div",12,13),y(2,"span",2),H(3),_(),y(4,"kendo-timelist",14),se("valueChange",function(s){return Le(e),I(2).current=s}),_(),_()}if(2&n){const e=I(),i=e.$implicit,s=e.index,o=I();b(3),un(o.intl.dateFieldName(i)),b(1),v("min",o.min)("max",o.max)("part",i)("step",o.partStep(i))("disabled",o.disabled)("value",o.current)("kendoEventsOutsideAngular",di(10,v2t,o.handleListFocus,o.handleBlur))("scope",o),fe("data-timelist-index",s)}}function C2t(n,t){if(1&n&&(y(0,"div",15),H(1),_()),2&n){const e=I().$implicit;b(1),_t(" ",e.pattern," ")}}function x2t(n,t){if(1&n&&(A(0,b2t,5,13,"div",10),A(1,C2t,2,1,"div",11)),2&n){const e=t.$implicit;v("ngIf","literal"!==e.type),b(1),v("ngIf","literal"===e.type)}}function w2t(n,t){if(1&n&&(y(0,"button",19,20),H(2),_()),2&n){const e=I(2);v("kendoEventsOutsideAngular",pc(6,uK,e.handleReject,e.handleFocus,e.handleBlur))("scope",e)("disabled",e.disabled),fe("title",e.localization.get("cancelLabel"))("aria-label",e.localization.get("cancelLabel")),b(2),un(e.localization.get("cancel"))}}function S2t(n,t){if(1&n&&(y(0,"button",21,22),H(2),_()),2&n){const e=I(2);v("kendoEventsOutsideAngular",pc(6,uK,e.handleAccept,e.handleFocus,e.handleBlur))("scope",e)("disabled",e.disabled),fe("title",e.localization.get("acceptLabel"))("aria-label",e.localization.get("acceptLabel")),b(2),un(e.localization.get("accept"))}}function T2t(n,t){if(1&n&&(y(0,"div",16),A(1,w2t,3,10,"button",17),A(2,S2t,3,10,"button",18),_()),2&n){const e=I();b(1),v("ngIf",e.cancelButton),b(1),v("ngIf",e.setButton)}}const FD={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1625569505,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"};var ri=(()=>(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right",n[n.Up=2]="Up",n[n.Down=3]="Down",n[n.PrevView=4]="PrevView",n[n.NextView=5]="NextView",n[n.FirstInView=6]="FirstInView",n[n.LastInView=7]="LastInView",n[n.LowerView=8]="LowerView",n[n.UpperView=9]="UpperView"}(ri||(ri={})),ri))();const od={start:null,end:null},zg=new Date(1980,0,1),nf=new Date(1900,0,1),sf=new Date(2099,11,31),OD=new Date(1980,0,1),Ex=new Date(1980,0,1,23,59,59),TV=n=>n&&(!n.touched||n.control&&"blur"===n.control.updateOn),k2t=n=>n.preventDefault(),hK=n=>n.relatedTarget||document.activeElement,Nn=n=>null!=n,BTe=n=>null!=n,L2=n=>(t,e)=>{const i=It(t);return i[n](e),i},Hg=(n,t)=>{const e=It(n);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},VTe=(n,t,e)=>({candidateValue:Hg(zg,n),maxValue:Au(Hg(zg,e),t.getHours(){const i=[];for(let s=n;s!n||!(t&&t>n||e&&e{if(!n||!t||!e)return!0;const{candidateValue:i,minValue:s,maxValue:o}=VTe(n,t,e);return s<=i&&i<=o},pK=(n,t)=>!BTe(n)||!BTe(t)||n<=t,Gg=(n,t,e)=>n&&(t&&ne?It(e):n),fK=()=>new Date,rf=()=>Yo(new Date),ei=n=>{},IV=()=>"undefined"!=typeof window,HTe=(n,t)=>n.slice(t).concat(n.slice(0,t)),Uh=n=>(t,e="",i={})=>{const s=document.createElement(n);return s.className=e,Object.keys(i).map(o=>s.style[o]=i[o]),"string"==typeof t?s.innerHTML=t||"":(t||[]).forEach(o=>o&&s.appendChild(o)),s},sb=(n,t)=>void 0!==n[t],GTe=(n,t)=>n[t]&&null!=n[t].currentValue,ob=(n=[])=>n&&n[n.length-1],AV=(n,t)=>{const{start:e,end:i}=t||od;return!(!e||!i)&&e(n=n||[]).length===(t=t||[]).length&&n.every((e,i)=>ko(e,t[i])),mK=(n,t)=>n&&t?new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null,$Te=n=>n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59,999):null,L2t=n=>Array(n.match(/S+(\1)/)[0].length).join("0"),V2t=[[]],$2t={[ri.Left]:n=>$h(n,-1),[ri.Up]:n=>$h(n,-5),[ri.Right]:n=>$h(n,1),[ri.Down]:n=>$h(n,5),[ri.PrevView]:n=>O2(n,-1),[ri.NextView]:n=>O2(n,1),[ri.FirstInView]:n=>Mx(n),[ri.LastInView]:n=>rK(n)};let yK=(()=>{let n=class{constructor(){this.dateRange=(e,i)=>{if(!Nn(e)||!Nn(i))return[];const s=[];let o=e;for(;o<=i;)s.push(o),o=$h(o,1);return s}}addToDate(e,i){return O2(e,i)}datesList(e,i){return wc(0,i).map(s=>O2(e,s))}data(e){const{cellUID:i,focusedDate:s,isActiveView:o,max:r,min:a,selectedDates:l,selectionRange:c=od,viewDate:d,direction:u}=e;if(!d)return V2t;const h=this.rowLength({direction:u}),f="horizontal"===u?3:2,m=wc(0,h),C=Mx(d),k=rK(d),D=rf();return wc(0,f).map(E=>{const O=$h(C,E*h);return m.map(z=>{const q=this.normalize($h(O,z),a,r),re=q.getFullYear()>k.getFullYear();if(!this.isInRange(q,a,r)||re)return null;const ie=this.isEqual(q,c.start),Se=this.isEqual(q,c.end),Ee=!ie&&!Se&&AV(q,c);return{formattedValue:this.value(q),id:`${i}${q.getTime()}`,isFocused:this.isEqual(q,s),isSelected:o&&l.some(be=>this.isEqual(q,be)),isWeekend:!1,isRangeStart:ie,isRangeMid:Ee,isRangeEnd:Se,isRangeSplitEnd:Ee&&this.isEqual(q,k),isRangeSplitStart:Ee&&this.isEqual(q,C),isToday:this.isEqual(q,D),title:this.cellTitle(q),value:q}})})}isEqual(e,i){return!(!e||!i)&&sd(e).getFullYear()===sd(i).getFullYear()}isInArray(e,i){if(!i.length)return!1;const s=e.getFullYear();return i[0].getFullYear()<=s&&s<=i[i.length-1].getFullYear()+99}isInRange(e,i,s){const o=sd(e).getFullYear(),r=!i||sd(i).getFullYear()<=o,a=!s||o<=sd(s).getFullYear();return r&&a}beginningOfPeriod(e){if(!e)return e;const i=sd(Mx(e));return qd(i.getFullYear(),0,1)}isRangeStart(e){return e.getFullYear()%1e3==0}move(e,i){const s=$2t[i];return s?s(e):e}cellTitle(e){return sd(e).getFullYear().toString()}navigationTitle(e){return e?Mx(e).getFullYear().toString():""}title(e){return e?`${Mx(e).getFullYear()} - ${rK(e).getFullYear()}`:""}rowLength(e={}){return"horizontal"===e.direction?4:5}skip(e,i){return bTe(i,e)}total(e,i){return bTe(e,i)+1}value(e){return e?sd(e).getFullYear().toString():""}viewDate(e,i,s=1){const o=this.total(e,i);return os&&this.isEqual(e,s)?It(s):e}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const U2t=[[]],K2t={[ri.Left]:n=>Xd(n,-1),[ri.Up]:n=>Xd(n,-5),[ri.Right]:n=>Xd(n,1),[ri.Down]:n=>Xd(n,5),[ri.PrevView]:n=>$h(n,-1),[ri.NextView]:n=>$h(n,1),[ri.FirstInView]:n=>sd(n),[ri.LastInView]:n=>aK(n)};let _K=(()=>{let n=class{constructor(){this.dateRange=(e,i)=>{if(!Nn(e)||!Nn(i))return[];const s=[];let o=e;for(;o<=i;)s.push(o),o=Xd(o,1);return s}}addToDate(e,i){return $h(e,i)}datesList(e,i){return wc(0,i).map(s=>$h(e,s))}data(e){const{cellUID:i,focusedDate:s,isActiveView:o,max:r,min:a,selectedDates:l,selectionRange:c=od,viewDate:d,direction:u}=e;if(!d)return U2t;const h=this.rowLength({direction:u}),f="horizontal"===u?3:2,m=wc(0,h),C=sd(d),k=aK(d),D=rf();return wc(0,f).map(E=>{const O=Xd(C,E*h);return m.map(z=>{const q=this.normalize(Xd(O,z),a,r),re=q.getFullYear()>k.getFullYear();if(!this.isInRange(q,a,r)||re)return null;const ie=this.isEqual(q,c.start),Se=this.isEqual(q,c.end),Ee=!ie&&!Se&&AV(q,c);return{formattedValue:this.value(q),id:`${i}${q.getTime()}`,isFocused:this.isEqual(q,s),isSelected:o&&l.some(be=>this.isEqual(q,be)),isWeekend:!1,isRangeStart:ie,isRangeMid:Ee,isRangeEnd:Se,isRangeSplitEnd:Ee&&this.isEqual(q,k),isRangeSplitStart:Ee&&this.isEqual(q,C),isToday:this.isEqual(q,D),title:this.cellTitle(q),value:q}})})}isEqual(e,i){return!(!e||!i)&&e.getFullYear()===i.getFullYear()}isInArray(e,i){if(!i.length)return!1;const s=e.getFullYear();return i[0].getFullYear()<=s&&s<=i[i.length-1].getFullYear()+9}isInRange(e,i,s){const o=e.getFullYear(),r=!i||i.getFullYear()<=o,a=!s||o<=s.getFullYear();return r&&a}beginningOfPeriod(e){if(!e)return e;const i=sd(e);return qd(i.getFullYear(),0,1)}isRangeStart(e){return e.getFullYear()%100==0}move(e,i){const s=K2t[i];return s?s(e):e}cellTitle(e){return e.getFullYear().toString()}navigationTitle(e){return e?sd(e).getFullYear().toString():""}title(e){return e?`${sd(e).getFullYear()} - ${aK(e).getFullYear()}`:""}rowLength(e={}){return"horizontal"===e.direction?4:5}skip(e,i){return CTe(i,e)}total(e,i){return CTe(e,i)+1}value(e){return e?e.getFullYear().toString():""}viewDate(e,i,s=1){const o=this.total(e,i);return os&&this.isEqual(e,s)?It(s):e}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const Z2t=[[]],J2t={[ri.Left]:n=>Au(n,-1),[ri.Up]:n=>xTe(n,-1),[ri.Right]:n=>Au(n,1),[ri.Down]:n=>xTe(n,1),[ri.PrevView]:n=>Qa(n,-1),[ri.NextView]:n=>Qa(n,1),[ri.FirstInView]:n=>wTe(n),[ri.LastInView]:n=>Dx(n)};let bK=(()=>{let n=class{constructor(e){this._intlService=e,this.dateRange=(i,s)=>{if(!Nn(i)||!Nn(s))return[];const o=[];let r=i;for(;r<=s;)o.push(r),r=Au(r,1);return o}}addToDate(e,i){return Qa(e,i)}datesList(e,i){return wc(0,i).map(s=>Qa(e,s))}data(e){const{cellUID:i,focusedDate:s,isActiveView:o,max:r,min:a,selectedDates:l,selectionRange:c=od,viewDate:d,isDateDisabled:u=(()=>!1)}=e;if(!d)return Z2t;const h=wTe(d),f=Yo(h),m=Dx(d),C=Yo(m),D=STe(h,this._intlService.firstDay(),-1),E=wc(0,7),O=rf();return wc(0,6).map(z=>{const q=Au(D,7*z);return E.map(re=>{const ie=this.normalize(Au(q,re),a,r),Se=Yo(ie),Te=SeC;if(ier)return null;const be=this.isEqual(ie,c.start),Ke=this.isEqual(ie,c.end),Qe=!be&&!Ke&&AV(ie,c);return{formattedValue:this.value(ie),id:`${i}${ie.getTime()}`,isFocused:this.isEqual(ie,s),isSelected:o&&l.some(Ze=>this.isEqual(ie,Ze)),isWeekend:this.isWeekend(ie),isRangeStart:be,isRangeMid:Qe,isRangeEnd:Ke,isRangeSplitStart:Qe&&this.isEqual(ie,h),isRangeSplitEnd:Qe&&this.isEqual(ie,m),isToday:this.isEqual(ie,O),title:this.cellTitle(ie),value:ie,isDisabled:u(ie),isOtherMonth:Te}})})}isEqual(e,i){return!(!e||!i)&&Yo(e).getTime()===Yo(i).getTime()}isInArray(e,i){if(0===i.length)return!1;const s=this.beginningOfPeriod(i[0]),o=this.beginningOfPeriod(Qa(i[i.length-1],1));return s<=e&&es&&this.isEqual(e,s)?It(s):e}wideMonthNames(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})();const eFt=[[]],rFt={[ri.Left]:n=>Qa(n,-1),[ri.Up]:n=>Qa(n,(n=>n>4?-5:n<2?-2:-7)(n.getMonth())),[ri.Right]:n=>Qa(n,1),[ri.Down]:n=>Qa(n,(n=>n<7?5:n<10?7:2)(n.getMonth())),[ri.PrevView]:n=>Xd(n,-1),[ri.NextView]:n=>Xd(n,1),[ri.FirstInView]:n=>DTe(n),[ri.LastInView]:n=>MTe(n)};let CK=(()=>{let n=class{constructor(e){this._intlService=e,this.dateRange=(i,s)=>{if(!Nn(i)||!Nn(s))return[];const o=[];let r=i;for(;r<=s;)o.push(r),r=Qa(r,1);return o}}addToDate(e,i){return Xd(e,i)}datesList(e,i){return wc(0,i).map(s=>Xd(e,s))}data(e){const{cellUID:i,focusedDate:s,isActiveView:o,max:r,min:a,selectedDates:l,selectionRange:c=od,viewDate:d,direction:u}=e;if(!d)return eFt;const h=this.rowLength({direction:u}),f=this.abbrMonthNames(),m=DTe(d),C=MTe(d),k=m.getFullYear(),D=wc(0,h),E=rf();return wc(0,3).map(O=>{const z=Qa(m,O*h);return D.map(q=>{const re=this.normalize(Qa(z,q),a,r),ie=kthis.isEqual(re,Ke)),isWeekend:!1,isRangeStart:Se,isRangeMid:be,isRangeEnd:Te,isRangeSplitEnd:be&&this.isEqual(re,C),isRangeSplitStart:be&&this.isEqual(re,m),isToday:this.isEqual(re,E),title:this.cellTitle(re),value:re}})})}isEqual(e,i){return!(!e||!i)&&e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()}isInArray(e,i){if(!i.length)return!1;const s=e.getFullYear();return i[0].getFullYear()<=s&&s<=i[i.length-1].getFullYear()}isInRange(e,i,s){const o=qd(e.getFullYear(),e.getMonth(),1),r=!i||qd(i.getFullYear(),i.getMonth(),1)<=o,a=!s||o<=qd(s.getFullYear(),s.getMonth(),1);return r&&a}beginningOfPeriod(e){return e&&qd(e.getFullYear(),0,1)}isRangeStart(e){return e.getFullYear()%10==0}move(e,i){const s=rFt[i];return s?s(e):e}cellTitle(e){return`${e.getFullYear()} ${this.value(e)}`}navigationTitle(e){return this.title(e)}title(e){return e?e.getFullYear().toString():""}rowLength(e={}){return"horizontal"===e.direction?4:5}skip(e,i){return ETe(i,e)}total(e,i){return ETe(e,i)+1}value(e){return e?this.abbrMonthNames()[e.getMonth()]:""}viewDate(e,i,s=1){const o=this.total(e,i);return os&&this.isEqual(e,s)?It(s):e}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})();var mn=(()=>(function(n){n[n.month=0]="month",n[n.year=1]="year",n[n.decade=2]="decade",n[n.century=3]="century"}(mn||(mn={})),mn))();const aFt={[mn.month]:bK,[mn.year]:CK,[mn.decade]:_K,[mn.century]:yK};let Fa=(()=>{let n=class{constructor(e){this.injector=e,this.viewChanged=new S,this.bottom=mn.month,this.top=mn.century}configure(e,i){this.bottom=e,this.top=i}service(e){const i=aFt[e];return i?this.injector.get(i):null}moveDown(e){this.move(e,-1)}moveUp(e){this.move(e,1)}moveToBottom(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})}canMoveDown(e){return this.bottomthis.top?this.top:e}move(e,i){const s=this.clamp(((n,t)=>{const e=mn[mn[n+t]];return void 0!==e?e:n})(e,i));s!==e&&this.viewChanged.emit({view:s})}};return n.\u0275fac=function(e){return new(e||n)(V(Jt))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[Jt])],n),n})();const RV=Uh("div"),cFt=Uh("ul"),dFt=Uh("li"),uFt=Uh("td"),UTe=Uh("th"),xK=Uh("tr"),hFt=Uh("tbody"),pFt=Uh("thead"),WTe=Uh("table"),qTe=(n,t)=>new Array(n).fill("1").map(t),XTe=n=>RV(n,"k-content k-calendar-content k-scrollable"),_Ft=(()=>{let n;return()=>Ft?(n||(n=RV([XTe([cFt([dFt("FEB")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),n):null})(),wK=({cells:n,rows:t},e,i)=>{let s;return()=>Ft?(s||(s=((n,t,e)=>RV([RV('\n March 2017\n \n TODAY\n \n ',"k-calendar-header"),e?WTe([pFt([xK([UTe("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,XTe([n,n])],t,{left:"-10000px",position:"absolute"}))(((n,t=1)=>WTe([hFt([xK([UTe("1","k-calendar-th")],"k-calendar-tr")].concat(qTe(n,()=>xK(qTe(t,e=>uFt(`${e}`,"k-calendar-td")),"k-calendar-tr"))),"k-calendar-tbody")],"k-calendar-table"))(t,n),e,i)),s):null},PV=n=>n.querySelector(".k-scrollable"),SK=n=>(PV(n).classList.add("k-scrollable-horizontal"),n),YTe=wK({cells:7,rows:6},"k-calendar-view k-calendar-monthview",!0),KTe=wK({cells:5,rows:3},"k-calendar-view k-calendar-yearview",!1),ZTe=wK({cells:5,rows:2},"k-calendar-view k-calendar-decadeview",!1),rb=n=>parseFloat(window.getComputedStyle(n).height)||n.offsetHeight,N2=n=>{const t=window.getComputedStyle(n);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||n.offsetWidth},RD=n=>n.querySelector("tbody");let jy=(()=>{let n=class{ensureHeights(){void 0===this.calendarHeight&&this.calculateHeights()}calculateHeights(e){!Ft()||(this.hostContainer=e,this.batch(YTe(),i=>{const s=RD(i);this.calendarHeight=rb(i),this.monthViewHeight=rb(s),this.headerHeight=rb(s.children[0]),this.scrollableContentHeight=rb(PV(i))}),this.batch(SK(YTe()),i=>{const s=RD(i);this.calendarWidth=N2(i),this.monthViewWidth=N2(s),this.scrollableContentWidth=N2(PV(i))}),this.batch(KTe(),i=>{this.yearViewHeight=rb(RD(i)),this.scrollableYearContentHeight=rb(PV(i))}),this.batch(SK(KTe()),i=>{this.yearViewWidth=N2(RD(i))}),this.batch(ZTe(),i=>{this.decadeViewHeight=rb(RD(i)),this.centuryViewHeight=this.decadeViewHeight}),this.batch(SK(ZTe()),i=>{this.decadeViewWidth=N2(RD(i)),this.centuryViewWidth=this.decadeViewWidth}),this.batch(_Ft(),i=>{this.navigationItemHeight=rb(i.querySelector("li"))}))}viewHeight(e){return this.viewDimension(e,"height")}viewWidth(e){return this.viewDimension(e,"width")}viewDimension(e,i){const s="height"===i?"ViewHeight":"ViewWidth";switch(e){case mn.month:return this[`month${s}`];case mn.year:return this[`year${s}`];case mn.decade:return this[`decade${s}`];case mn.century:return this[`century${s}`];default:return 1}}batch(e,i){if(!Nn(this.hostContainer))return;const s=this.hostContainer.cloneNode();document.body.appendChild(s);try{i(s.appendChild(e))}catch(o){throw o}finally{document.body.removeChild(s)}}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();class wFt{constructor(t=0,e,i){this.total=t,this.rowHeight=e,this.detailRowHeight=i,this.offsets=[],this.heights=[];let s=0;for(let o=0;othis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}index(t){if(t<0)return;const e=this.offsets.reduce((i,s,o)=>void 0!==i?i:s===t?o:s>t?o-1:void 0,void 0);return void 0===e?this.total-1:e}offset(t){return this.offsets[t]}totalHeight(){return this.heights.reduce((t,e)=>t+e,0)}updateRowHeight(t,e){this.heights[t]+=e,this.offsets=((n,t,e)=>[...n.slice(0,t+1),...n.slice(t+1).map(i=>i+e)])(this.offsets,t,e)}}const LV=n=>Math.max(n,0);class TK{constructor(t){this.offset=t}}class NV{constructor(t){this.skip=t}}class SFt{constructor(t){this.scrollObservable=t,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}create(t,e,i,s,o=0,r=0,a="vertical"){this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+i,this.take=i,this.total=s,this.lastScroll=0,this.topOffset=o,this.bottomOffset=r,this.direction=a;const l=new GT(2),c=this.rowsForHeight(o),d=LV(e-c);return l.next(new TK(this.rowOffset(d))),c&&l.next(new NV(d)),this.subscription=new an(u=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(h=>this.onScroll(h,u))}).subscribe(u=>l.next(u)),l}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollLeft:t,scrollTop:e,offsetHeight:i,offsetWidth:s},o){const r="vertical"===this.direction?e:t,a="vertical"===this.direction?i:s;if(this.lastScroll===r)return;const l=this.lastScroll>=r;this.lastScroll=r;const c=this.rowHeightService.index(LV(r-this.topOffset)),d=this.rowHeightService.index(LV(r+a-this.bottomOffset));if(!l&&d>=this.lastLoaded&&this.lastLoaded(function(n){n[n.Backward=0]="Backward",n[n.Forward=1]="Forward"}(Wh||(Wh={})),Wh))();const DFt={[Wh.Forward]:n=>t=>t+n,[Wh.Backward]:n=>t=>t-n},MFt={[Wh.Forward]:n=>t=>Math.min(t,n),[Wh.Backward]:n=>t=>Math.max(t,n)},EFt={[Wh.Forward]:n=>t=>tt=>t>n};let Fu=(()=>{let n=class{constructor(e,i,s,o){this.container=i,this.renderer=s,this.zone=o,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 S,this.pageChange=new S,this.scrollChange=new S,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Z,this.scroller=e(this.dispatcher)}get horizontalClass(){return"horizontal"===this.direction}get totalVertexLength(){const e=`${this.totalSize}px`;return"vertical"===this.direction?{height:e}:{width:e}}get containerOffsetSize(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}ngOnChanges(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}ngOnInit(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.containerScrollSubscription=this.scroll$().pipe(xe(e=>e.target)).subscribe(e=>{this.dispatcher.next(e),this.emitActiveIndex()})})}ngOnDestroy(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}getContainerProperty(e){return this.container.nativeElement[e]}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(e){return this.rowHeightService.index(e)}itemOffset(e){return this.rowHeightService.offset(e)}isIndexVisible(e){if(!this.rowHeightService)return!1;const i=this.containerScrollPosition,s=i+this.containerOffsetSize,o=this.rowHeightService.offset(e),r=o+this.rowHeightService.height(e);return o>=i&&r<=s}isListScrolled(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)}scrollTo(e){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",e)}scrollToIndex(e){this.zone.runOutsideAngular(()=>{this.resolvedPromise.then(()=>{this.scrollTo(this.rowHeightService.offset(e))})})}scrollToBottom(){this.scrollTo(this.totalSize)}animateToIndex(e){this.animationSubscription&&this.animationSubscription.unsubscribe();const i=this.rowHeightService.offset(e),s=this.getContainerScrollDirection(i),{start:o,end:r}=this.scrollRange(i,s);if(o===r)return;const a=this.scrollStep(o,r),l=DFt[s](a),c=MFt[s](r),d=EFt[s](l(r));this.zone.runOutsideAngular(()=>{this.animationSubscription=nN(Vt(o),t2(0,Wfe)).pipe(xe(u=>u[0]),g$(l),Zfe(d),xe(c)).subscribe(u=>this.scrollTo(u))})}scrollRange(e,i){const s=this.containerScrollPosition;if(parseInt(e,10)===parseInt(s,10))return{start:e,end:e};const o=this.containerMaxScroll(),r=i===Wh.Backward?1:-1,a=((n,t,e)=>Math.min(Math.abs(t-n),e))(s,e,this.maxScrollDifference),l=Math.min(e,o);return{start:Math.min(Math.max(l+r*a,0),o),end:l}}scrollStep(e,i){return Math.abs(i-e)/(this.scrollDuration/17)}scroll$(){return Ft()?Hi(this.container.nativeElement,"scroll"):Op}initServices(){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(e=>{e instanceof NV?this.pageChange.emit(e):this.scrollChange.emit(e)})}createRowHeightService(){return new wFt(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}emitActiveIndex(){const e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))}containerMaxScroll(){return this.containerScrollSize-this.containerOffsetSize}getContainerScrollDirection(e){return e{for(;n&&n!==e&&!t(n);)n=n.parentNode;if(n!==e)return n},MK=(n,t)=>{for(;n&&!t(n);)n=n.parentNode;return n};let BV=(()=>{let n=class{constructor(e,i,s,o,r){this.bus=e,this.dom=i,this.intl=s,this.cdr=o,this.renderer=r,this.min=new Date(nf),this.max=new Date(sf),this.focusedDate=new Date,this.valueChange=new S,this.pageChange=new S,this.dates=[],this.take=30,this.indexToScroll=-1}get getComponentClass(){return!0}ngOnInit(){this.dom.ensureHeights();const 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))}ngOnChanges(e){if(this.service=this.bus.service(this.activeView),!this.service)return;this.activeViewValue=mn[this.activeView];const i=Gg(this.focusedDate,this.min,this.max),s=this.service.total(this.min,this.max),o=this.total&&this.total!==s;this.skip=this.service.skip(i,this.min),this.total=s,(o||!this.service.isInArray(i,this.dates))&&(this.dates=this.service.datesList(i,this.getTake(this.skip))),(e.focusedDate||o)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}onPageChange({skip:e}){this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()}scrollChange({offset:e}){const i=this.list.nativeElement,s=`translateY(${e}px)`;this.renderer.setStyle(i,"transform",s),this.renderer.setStyle(i,"-ms-transform",s)}handleDateChange(e){const i=DK(e.target,s=>s.hasAttribute("data-date-index"),this.list.nativeElement);if(i){const s=parseInt(i.getAttribute("data-date-index"),10);this.valueChange.emit(It(this.dates[s]))}}getTake(e){return Math.min(this.total-e,this.take)}intlChange(){this.activeView===mn.month&&this.cdr.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(Fa),g(jy),g(kn),g(Be),g(Ie))},n.\u0275cmp=K({type:n,selectors:[["kendo-calendar-navigation"]],viewQuery:function(e,i){if(1&e&&(Ae(Fu,5),Ae(FTe,7)),2&e){let s;U(s=W())&&(i.virtualization=s.first),U(s=W())&&(i.list=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-calendar-navigation",i.getComponentClass)},inputs:{min:"min",max:"max",focusedDate:"focusedDate",activeView:"activeView",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[st],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(e,i){1&e&&(P(0,"span",0),y(1,"kendo-virtualization",1),se("pageChange",function(o){return i.onPageChange(o)})("scrollChange",function(o){return i.scrollChange(o)}),y(2,"ul",2,3),A(4,hAt,4,11,"li",4),_(),_()),2&e&&(b(1),v("skip",i.skip)("take",i.take)("total",i.total)("itemHeight",i.itemHeight)("topOffset",i.topOffset)("bottomOffset",i.bottomOffset)("maxScrollDifference",i.maxViewHeight),b(1),v("kendoEventsOutsideAngular",Yt(10,ib,i.handleDateChange))("scope",i),b(2),v("kForOf",i.dates))},directives:function(){return[Fu,lr,WV,pt,zs]},encapsulation:2,changeDetection:0}),L([p(),F("design:type",Number)],n.prototype,"activeView",void 0),L([p(),F("design:type",Date)],n.prototype,"min",void 0),L([p(),F("design:type",Date)],n.prototype,"max",void 0),L([p(),F("design:type",Date)],n.prototype,"focusedDate",void 0),L([p(),F("design:type",ve)],n.prototype,"templateRef",void 0),L([Q(),F("design:type",S)],n.prototype,"valueChange",void 0),L([Q(),F("design:type",S)],n.prototype,"pageChange",void 0),L([at(Fu,{static:!1}),F("design:type",Fu)],n.prototype,"virtualization",void 0),L([at("list",{static:!0}),F("design:type",$)],n.prototype,"list",void 0),L([G("class.k-calendar-navigation"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"getComponentClass",null),n=L([F("design:paramtypes",[Fa,jy,kn,Be,Ie])],n),n})(),VV=(()=>{let n=class{constructor(e,i,s,o,r){this.bus=e,this.cdr=i,this.intl=s,this.dom=o,this.renderer=r,this.isActive=!0,this.min=new Date(nf),this.max=new Date(sf),this.selectedDates=[],this.cellClick=new S,this.weekNumberCellClick=new S,this.activeDateChange=new S,this.todayButtonClick=new S,this.pageChange=new S,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(e){this.showWeekNumbers=e}get getComponentClass(){return!0}get getComponentMonthClass(){return this.activeView===mn.month}get getComponentYearClass(){return this.activeView===mn.year}get getComponentDecadeClass(){return this.activeView===mn.decade}get getComponentCenturyClass(){return this.activeView===mn.century}ngOnInit(){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))}ngOnChanges(e){if(this.service=this.bus.service(this.activeView),!this.service)return;this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber,direction:"vertical"})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=sb(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;const i=sb(e,"activeView"),s=this.focusedDate,o=Gg(this.service.viewDate(s,this.max,this.minViewsToRender),this.min,this.max),r=this.service.total(this.min,this.max),l=this.total&&this.total!==r||!this.service.isInArray(s,this.dates);this.skip=this.service.skip(o,this.min),this.total=r,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),l&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),((n,t)=>n&&t&&n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth())(this.activeDate,s)||(this.activeDate=It(s));const c=sb(e,"focusedDate")||i;(l||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(s,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}onPageChange({skip:e}){this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()}scrollChange({offset:e}){const i=this.list.nativeElement,s=`translateY(${e}px)`;this.renderer.setStyle(i,"transform",s),this.renderer.setStyle(i,"-ms-transform",s)}setActiveDate(e){const i=this.service.addToDate(this.min,e);ko(this.activeDate,i)||(this.activeDate=i,this.activeDateChange.emit(i),this.cdr.detectChanges())}isMonthView(){return this.activeView===mn.month}isScrolled(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}getBottomOffset(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}getScrollableHeight(){return this.activeView===mn.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}getTake(e){return Math.min(this.total-e,this.take)}getWeekNames(){const e=HTe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e}intlChange(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(Fa),g(Be),g(kn),g(jy),g(Ie))},n.\u0275cmp=K({type:n,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(e,i){if(1&e&&(Ae(Fu,5),Ae(FTe,7)),2&e){let s;U(s=W())&&(i.virtualization=s.first),U(s=W())&&(i.list=s.first)}},hostVars:10,hostBindings:function(e,i){2&e&&he("k-calendar-view",i.getComponentClass)("k-calendar-monthview",i.getComponentMonthClass)("k-calendar-yearview",i.getComponentYearClass)("k-calendar-decadeview",i.getComponentDecadeClass)("k-calendar-centuryview",i.getComponentCenturyClass)},inputs:{isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},features:[st],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"],[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(e,i){1&e&&(y(0,"kendo-calendar-header",0),se("todayButtonClick",function(o){return i.todayButtonClick.emit(o)}),_(),A(1,fAt,4,1,"table",1),y(2,"kendo-virtualization",2),se("pageChange",function(o){return i.onPageChange(o)})("scrollChange",function(o){return i.scrollChange(o)})("activeIndexChange",function(o){return i.setActiveDate(o)}),y(3,"table",3,4),y(5,"colgroup"),A(6,gAt,1,0,"col",5),_(),A(7,mAt,1,11,"tbody",6),_(),_()),2&e&&(v("currentDate",i.activeDate)("min",i.min)("max",i.max)("activeView",i.activeView)("templateRef",i.headerTitleTemplateRef),b(1),v("ngIf",i.isMonthView()),b(1),v("tabindex",-1)("skip",i.skip)("take",i.take)("total",i.total)("itemHeight",i.viewHeight)("topOffset",i.viewOffset)("bottomOffset",i.bottomOffset)("scrollOffsetSize",i.viewOffset)("maxScrollDifference",i.viewHeight),b(4),v("ngForOf",i.cols),b(1),v("kForOf",i.dates))},directives:function(){return[uke,pt,Fu,Wn,WV,hke]},encapsulation:2,changeDetection:0}),L([p(),F("design:type",ve)],n.prototype,"cellTemplateRef",void 0),L([p(),F("design:type",ve)],n.prototype,"weekNumberTemplateRef",void 0),L([p(),F("design:type",ve)],n.prototype,"headerTitleTemplateRef",void 0),L([p(),F("design:type",Number)],n.prototype,"activeView",void 0),L([p(),F("design:type",String)],n.prototype,"cellUID",void 0),L([p(),F("design:type",Date)],n.prototype,"focusedDate",void 0),L([p(),F("design:type",Boolean)],n.prototype,"isActive",void 0),L([p(),F("design:type",Date)],n.prototype,"min",void 0),L([p(),F("design:type",Date)],n.prototype,"max",void 0),L([p(),F("design:type",Array)],n.prototype,"selectedDates",void 0),L([p(),F("design:type",Boolean),F("design:paramtypes",[Boolean])],n.prototype,"weekNumber",null),L([Q(),F("design:type",S)],n.prototype,"cellClick",void 0),L([Q(),F("design:type",S)],n.prototype,"weekNumberCellClick",void 0),L([Q(),F("design:type",S)],n.prototype,"activeDateChange",void 0),L([Q(),F("design:type",S)],n.prototype,"todayButtonClick",void 0),L([Q(),F("design:type",S)],n.prototype,"pageChange",void 0),L([at(Fu,{static:!1}),F("design:type",Fu)],n.prototype,"virtualization",void 0),L([at("list",{static:!0}),F("design:type",$)],n.prototype,"list",void 0),L([G("class.k-calendar-view"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"getComponentClass",null),L([G("class.k-calendar-monthview"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"getComponentMonthClass",null),L([G("class.k-calendar-yearview"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"getComponentYearClass",null),L([G("class.k-calendar-decadeview"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"getComponentDecadeClass",null),L([G("class.k-calendar-centuryview"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"getComponentCenturyClass",null),n=L([F("design:paramtypes",[Fa,Be,kn,jy,Ie])],n),n})();const RFt={33:ri.PrevView,34:ri.NextView,35:ri.LastInView,36:ri.FirstInView,37:ri.Left,38:ri.Up,39:ri.Right,40:ri.Down,"meta+38":ri.UpperView,"meta+40":ri.LowerView};let Ax=(()=>{let n=class{constructor(e){this.bus=e}action(e){return RFt[`${e.ctrlKey||e.metaKey?"meta+":""}${e.keyCode}`]}move(e,i,s){const o=this.bus.service(s);return o?i===ri.UpperView&&this.bus.canMoveUp(s)?(this.bus.moveUp(s),e):i===ri.LowerView&&this.bus.canMoveDown(s)?(this.bus.moveDown(s),e):o.move(e,i):e}};return n.\u0275fac=function(e){return new(e||n)(V(Fa))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[Fa])],n),n})();const QTe=()=>!1;let Sc=(()=>{let n=class{constructor(){this.changes=new Z,this.isDateDisabled=QTe}initialize(e){if("function"==typeof e)this.isDateDisabled=i=>e(Yo(i));else if((n=>Array.isArray(n)&&n.length>0&&n.every(t=>"number"==typeof t))(e)){const i=new Set(e);this.isDateDisabled=s=>i.has(s.getDay())}else if((n=>Array.isArray(n)&&n.length>0&&n.every(t=>t instanceof Date))(e)){const i=new Set(e.map(s=>Yo(s).getTime()));this.isDateDisabled=s=>i.has(Yo(s).getTime())}else this.isDateDisabled=QTe,this.notifyInvalidInput(e);this.notifyServiceChange()}notifyInvalidInput(e){if(Nn(e)&&En())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")}notifyServiceChange(){this.changes.next()}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),PD=(()=>{let n=class{constructor(e){this.bus=e}performSelection(e){let{date:i,modifiers:s,selectionMode:o,activeViewEnum:r,rangePivot:a}=e,l=e.selectedDates.slice();if("multiple"===o)if(s.ctrlKey||s.metaKey)this.isDateSelected(l,i)?l=l.filter(c=>!ko(c,i)):l.push(i),a=i;else if(s.shiftKey){const[c,d]=(n=>n.filter(t=>Nn(t)).sort((t,e)=>t.getTime()-e.getTime()))([a||i,i]);l=this.bus.service(r).dateRange(c,d),a=i>l[0]?l[0]:ob(l)}else l=[i],a=i;else l=[i],a=i;return{selectedDates:l,rangePivot:a}}isDateSelected(e,i){return e.some(s=>ko(s,i))}};return n.\u0275fac=function(e){return new(e||n)(V(Fa))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[Fa])],n),n})(),EK=(()=>{let n=class{constructor(e,i){this.dom=e,this.zone=i}configure(e){const i=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=>t=>Math.floor(t/n))(i),this.powerByMagnitude=(n=>t=>t*n)(i)}sync(e,i){this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(()=>{let s,o;this.navSubscription=e.scroll$().subscribe(r=>{o?o=!1:(s=!0,this.scrollSiblingOf(r.target))}),this.viewSubscription=i.scroll$().subscribe(r=>{s?s=!1:(o=!0,this.scrollSiblingOf(r.target))})}))}scrollSiblingOf(e){const i=this.siblingComponent(e),s=this.calculateScroll(i,e.scrollTop);i.scrollTo(s)}siblingComponent(e){return this.navigator.container.nativeElement===e?this.view:this.navigator}calculateScroll(e,i){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(i)}destroy(){this.unsubscribe()}unsubscribe(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}};return n.\u0275fac=function(e){return new(e||n)(V(jy),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[jy,ce])],n),n})(),xl=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarCellTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),wl=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),Sl=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarYearCellTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),Tl=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),kl=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),Dl=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),Ml=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),jg=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),n=L([F("design:paramtypes",[ve])],n),n})(),rd=(()=>{class n{constructor(){this.onFocus=new S,this.onBlur=new S,this.sameDateSelected=new S,this.dateCompletenessChange=new S}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const B2=n=>t=>n&&t.value&&t.valuet=>n&&t.value&&t.value>n?{maxError:{maxValue:n,value:t.value}}:null,JTe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",eke=n=>n?n.virtualization:null,GFt={multi:!0,provide:es,useExisting:He(()=>z2)},jFt={multi:!0,provide:ir,useExisting:He(()=>z2)},$Ft={provide:Ds,useExisting:He(()=>z2)};let z2=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d,u,h,f,m){this.bus=e,this.dom=i,this.element=s,this.navigator=o,this.renderer=r,this.cdr=a,this.ngZone=l,this.injector=c,this.scrollSyncService=d,this.disabledDatesService=u,this.localization=h,this.selectionService=f,this.pickerService=m,this.id=cs(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=mn[mn.month],this.bottomView=mn[mn.month],this.topView=mn[mn.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new S,this.activeViewDateChange=new S,this.valueChange=new S,this.isActive=!1,this.cellUID=cs(),this.selectedDates=[],this._min=new Date(nf),this._max=new Date(sf),this._focusedDate=rf(),this.onControlChange=ei,this.onControlTouched=ei,this.onValidatorChange=ei,this.minValidateFn=ei,this.maxValidateFn=ei,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,Ii(FD),this.setClasses(s.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}set focusedDate(e){this._focusedDate=e||rf(),this.setAriaActivedescendant()}get focusedDate(){return this._focusedDate}set min(e){this._min=e||new Date(nf)}get min(){return this._min}set max(e){this._max=e||new Date(sf)}get max(){return this._max}get value(){return this._value}set value(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(s=>Nn(s)).map(s=>It(s)):It(e);const i=[].concat(e).filter(s=>Nn(s)).map(s=>It(s));if(!OV(i,this.selectedDates)){const s=ob(i);this.rangePivot=It(s),this.focusedDate=It(s)||this.focusedDate,this.selectedDates=i}}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set disabledDates(e){this.disabledDatesService.initialize(e)}set type(e){this.renderer.removeClass(this.element.nativeElement,`k-calendar-${this.type}`),this.renderer.addClass(this.element.nativeElement,`k-calendar-${e}`),this._type=e}get type(){return this._type}set cellTemplateRef(e){this.cellTemplate=e}set monthCellTemplateRef(e){this.monthCellTemplate=e}set yearCellTemplateRef(e){this.yearCellTemplate=e}set decadeCellTemplateRef(e){this.decadeCellTemplate=e}set centuryCellTemplateRef(e){this.centuryCellTemplate=e}set weekNumberTemplateRef(e){this.weekNumberTemplate=e}set headerTitleTemplateRef(e){this.headerTitleTemplate=e}set navigationItemTemplateRef(e){this.navigationItemTemplate=e}get activeViewEnum(){const e=mn[this.activeView];return ethis.cdr.markForCheck()),this.viewChangeSubscription=this.bus.viewChanged.subscribe(({view:e})=>this.handleActiveViewChange(mn[e])),this.control=this.injector.get(Zs,null),this.element&&this.ngZone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(e){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),GTe(e,"focusedDate")&&(this.focusedDate=Gg(e.focusedDate.currentValue,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?B2(this.min):ei,this.maxValidateFn=this.rangeValidation?V2(this.max):ei,this.onValidatorChange())}ngAfterViewInit(){this.setAriaActivedescendant()}ngAfterViewChecked(){!this.syncNavigation||(this.syncNavigation=!1,this.scrollSyncService.sync(eke(this.navigationView),eke(this.monthView)))}ngOnDestroy(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach(e=>e()),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0}onResize(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}containsElement(e){return Boolean(MK(e,i=>i===this.element.nativeElement))}handleNavigation(e){if(this.disabled)return;const i=e?new Date(It(e).setDate(1)):this.focusedDate;this.focusedDate=Gg(i,this.min,this.max),this.detectChanges()}onPageChange(){ce.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=Ys(this.resolvedPromise).subscribe(()=>{this.detectChanges()}))}handleMultiViewCalendarValueChange(e,i){const s=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:s,focusedDate:i})}handleDateChange(e){const i=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],s=this.bus.canMoveDown(this.activeViewEnum),o=i.filter(r=>!this.disabledDatesService.isDateDisabled(r));if(this.focusedDate=e.focusedDate||this.focusedDate,!this.disabled){if(!s&&OV(o,this.selectedDates))return void this.emitSameDate();if(s)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(()=>{this.selectedDates=o.map(r=>It(r)),this.value=this.parseSelectionToValue(o),this.onControlChange(this.parseSelectionToValue(o)),this.valueChange.emit(this.parseSelectionToValue(o)),this.cdr.markForCheck()})}}writeValue(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onControlChange=e}registerOnTouched(e){this.onControlTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)}registerOnValidatorChange(e){this.onValidatorChange=e}activeCellTemplate(){switch(this.activeViewEnum){case mn.month:return this.monthCellTemplate||this.cellTemplate;case mn.year:return this.yearCellTemplate;case mn.decade:return this.decadeCellTemplate;case mn.century:return this.centuryCellTemplate;default:return null}}emitEvent(e,i){Kt(e)&&this.ngZone.run(()=>{e.emit(i)})}handleActiveViewChange(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()}handleCellClick({date:e,modifiers:i}){this.performSelection(e,i)}handleWeekNumberClick(e){"single"!==this.selection&&this.ngZone.run(()=>{this.handleDateChange({selectedDates:e,focusedDate:ob(e)})})}setClasses(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,`k-calendar-${this.type}`)}verifyChanges(){if(En()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and 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 http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(e){if(En()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${JTe} for possible resolution.`);if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(s=>s instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${JTe} for possible resolution.`)}}bindEvents(){const 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",k2t),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))}emitBlur(e){this.pickerService&&this.pickerService.onBlur.emit(e)}emitFocus(){this.pickerService&&this.pickerService.onFocus.emit()}handleBlur(e){this.isActive=!1,!this.pickerService&&TV(this.control)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(e),this.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges())}handleFocus(){this.isActive=!0,ce.isInAngularZone()||this.detectChanges(),this.emitFocus()}handleComponentClick(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=It(this.focusedDate),this.detectChanges()),this.focus())}handleKeydown(e){const i=-1!==[_e.ArrowUp,_e.ArrowRight,_e.ArrowDown,_e.ArrowLeft].indexOf(e.keyCode);if(Nn(this.pickerService)&&i&&e.altKey)return;const s=Gg(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);ko(this.focusedDate,s)||(this.focusedDate=s,this.detectChanges(),e.preventDefault()),e.keyCode===_e.Enter&&this.performSelection(this.focusedDate,e)}detectChanges(){this.destroyed||this.cdr.detectChanges()}emitSameDate(){this.pickerService&&this.pickerService.sameDateSelected.emit()}setAriaActivedescendant(){if(!Nn(this.element))return;const e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}parseSelectionToValue(e){return e=e||[],"single"===this.selection?It(ob(e)):e.map(i=>It(i))}performSelection(e,i){const s=this.selectionService.performSelection({date:e,modifiers:i,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=s.rangePivot,this.handleDateChange({selectedDates:s.selectedDates,focusedDate:e})}};return n.\u0275fac=function(e){return new(e||n)(g(Fa),g(jy),g($),g(Ax),g(Ie),g(Be),g(ce),g(Jt),g(EK),g(Sc),g(J),g(PD),g(rd,8))},n.\u0275cmp=K({type:n,selectors:[["kendo-calendar"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,xl,7),Ce(s,wl,7),Ce(s,Sl,7),Ce(s,Tl,7),Ce(s,kl,7),Ce(s,Dl,7),Ce(s,Ml,7),Ce(s,jg,7)),2&e){let o;U(o=W())&&(i.cellTemplate=o.first),U(o=W())&&(i.monthCellTemplate=o.first),U(o=W())&&(i.yearCellTemplate=o.first),U(o=W())&&(i.decadeCellTemplate=o.first),U(o=W())&&(i.centuryCellTemplate=o.first),U(o=W())&&(i.weekNumberTemplate=o.first),U(o=W())&&(i.headerTitleTemplate=o.first),U(o=W())&&(i.navigationItemTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(Ae(BV,5),Ae(VV,5)),2&e){let s;U(s=W())&&(i.navigationView=s.first),U(s=W())&&(i.monthView=s.first)}},hostVars:8,hostBindings:function(e,i){2&e&&(fe("id",i.widgetId)("role",i.widgetRole)("tabindex",i.calendarTabIndex)("aria-disabled",i.ariaDisabled),he("k-week-number",i.weekNumber)("k-state-disabled",i.ariaDisabled))},inputs:{id:"id",rangeValidation:"rangeValidation",selection:"selection",disabled:"disabled",tabindex:"tabindex",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",animateNavigation:"animateNavigation",weekNumber:"weekNumber",focusedDate:"focusedDate",min:"min",max:"max",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",type:"type",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",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[we([Fa,GFt,jFt,$Ft,J,Sc,{provide:An,useValue:"kendo.calendar"},Ax,EK,PD]),st],decls:3,vars:2,consts:function(){let t,e,i;return t=$localize`:kendo.calendar.today|The label for the today button in the calendar header␟2df64767cd895a8fabe3e18b94b5b6b6f9e2e3f0␟826701167553276328:TODAY`,e=$localize`:kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar␟031715cd6a995d5dd1f62365cfe1b9e6226ca185␟9114031309296786030:Navigate to previous view`,i=$localize`:kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar␟cd8c0952c72306cccf0973c8fd1957ef9da1f569␟7248948899360601102:Navigate to next view`,[["kendoCalendarLocalizedMessages","","today",t,"prevButtonTitle",e,"nextButtonTitle",i],[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","valueChange"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(e,i){1&e&&(wn(0,0),A(1,_At,4,12,"ng-container",1),A(2,vAt,4,23,"ng-container",1)),2&e&&(b(1),v("ngIf","infinite"===i.type),b(1),v("ngIf","classic"===i.type))},directives:function(){return[Rx,pt,VV,Kr,BV,$g,Ox]},encapsulation:2,changeDetection:0}),L([p(),F("design:type",String)],n.prototype,"id",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],n.prototype,"focusedDate",null),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],n.prototype,"min",null),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],n.prototype,"max",null),L([p(),F("design:type",Boolean)],n.prototype,"rangeValidation",void 0),L([p(),F("design:type",String)],n.prototype,"selection",void 0),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],n.prototype,"value",null),L([p(),F("design:type",Boolean)],n.prototype,"disabled",void 0),L([p(),F("design:type",Number)],n.prototype,"tabindex",void 0),L([p(),F("design:type",Number),F("design:paramtypes",[Number])],n.prototype,"tabIndex",null),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],n.prototype,"disabledDates",null),L([p(),F("design:type",Boolean)],n.prototype,"navigation",void 0),L([p(),F("design:type",String)],n.prototype,"activeView",void 0),L([p(),F("design:type",String)],n.prototype,"bottomView",void 0),L([p(),F("design:type",String)],n.prototype,"topView",void 0),L([p(),F("design:type",String),F("design:paramtypes",[String])],n.prototype,"type",null),L([p(),F("design:type",Boolean)],n.prototype,"animateNavigation",void 0),L([p(),G("class.k-week-number"),F("design:type",Boolean)],n.prototype,"weekNumber",void 0),L([Q(),F("design:type",S)],n.prototype,"activeViewChange",void 0),L([Q(),F("design:type",S)],n.prototype,"activeViewDateChange",void 0),L([Q(),F("design:type",S)],n.prototype,"valueChange",void 0),L([ct(xl,{static:!0}),F("design:type",xl)],n.prototype,"cellTemplate",void 0),L([p("cellTemplate"),F("design:type",xl),F("design:paramtypes",[xl])],n.prototype,"cellTemplateRef",null),L([ct(wl,{static:!0}),F("design:type",wl)],n.prototype,"monthCellTemplate",void 0),L([p("monthCellTemplate"),F("design:type",wl),F("design:paramtypes",[wl])],n.prototype,"monthCellTemplateRef",null),L([ct(Sl,{static:!0}),F("design:type",Sl)],n.prototype,"yearCellTemplate",void 0),L([p("yearCellTemplate"),F("design:type",Sl),F("design:paramtypes",[Sl])],n.prototype,"yearCellTemplateRef",null),L([ct(Tl,{static:!0}),F("design:type",Tl)],n.prototype,"decadeCellTemplate",void 0),L([p("decadeCellTemplate"),F("design:type",Tl),F("design:paramtypes",[Tl])],n.prototype,"decadeCellTemplateRef",null),L([ct(kl,{static:!0}),F("design:type",kl)],n.prototype,"centuryCellTemplate",void 0),L([p("centuryCellTemplate"),F("design:type",kl),F("design:paramtypes",[kl])],n.prototype,"centuryCellTemplateRef",null),L([ct(Dl,{static:!0}),F("design:type",Dl)],n.prototype,"weekNumberTemplate",void 0),L([p("weekNumberTemplate"),F("design:type",Dl),F("design:paramtypes",[Dl])],n.prototype,"weekNumberTemplateRef",null),L([ct(Ml,{static:!0}),F("design:type",Ml)],n.prototype,"headerTitleTemplate",void 0),L([p("headerTitleTemplate"),F("design:type",Ml),F("design:paramtypes",[Ml])],n.prototype,"headerTitleTemplateRef",null),L([ct(jg,{static:!0}),F("design:type",jg)],n.prototype,"navigationItemTemplate",void 0),L([p("navigationItemTemplate"),F("design:type",jg),F("design:paramtypes",[jg])],n.prototype,"navigationItemTemplateRef",null),L([at(BV,{static:!1}),F("design:type",BV)],n.prototype,"navigationView",void 0),L([at(VV,{static:!1}),F("design:type",VV)],n.prototype,"monthView",void 0),L([G("attr.id"),F("design:type",String),F("design:paramtypes",[])],n.prototype,"widgetId",null),L([G("attr.role"),F("design:type",String),F("design:paramtypes",[])],n.prototype,"widgetRole",null),L([G("attr.tabindex"),F("design:type",Number),F("design:paramtypes",[])],n.prototype,"calendarTabIndex",null),L([G("attr.aria-disabled"),G("class.k-state-disabled"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"ariaDisabled",null),n=L([jh(12,gt()),F("design:paramtypes",[Fa,jy,$,Ax,Ie,Be,ce,Jt,EK,Sc,J,PD,rd])],n),n})();const zV=()=>(n,t)=>!Nn(n.value)&&t?{incompleteDate:!0}:null;var H2,LD=(()=>(function(n){n[n.Up=0]="Up",n[n.Down=1]="Down",n[n.None=2]="None"}(LD||(LD={})),LD))();const XFt=/year|month|/,YFt=/hour|minute|second|millisecond/,KFt=/d|M|H|h|m|s/,nke=n=>n.replace(/^0*/,"");class eOt{constructor(){this.symbols=""}}class tOt{constructor(t,e,i,s,o=68){if(this.intl=t,this.formatPlaceholder=e,this.format=i,this.twoDigitYearMax=o,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=Yo(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"},Ii(FD),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),s)this.value=It(s);else{this.value=Yo(new Date);const r=this.dateFormatString(this.value,this.format).symbols;for(let a=0;ae||"literal"!==i.type&&"dayperiod"!==i.type&&this.getExisting(i.pattern[0]),!1)}shouldNormalizeCentury(){return this.intl.splitDateFormat(this.format).some(t=>"yy"===t.pattern)}getDateObject(){for(let t=0;t0&&(this.setExisting(t,!0),this.value=i)}parsePart(t,e,i){if(!e)return this.resetLeadingZero(),this.setExisting(t,!1),{value:null,switchToNext:!1};let s=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),r=o.symbols,a=!1,l="",c="",d="";for(let D=0;D-1&&z<12&&(h=It(this.value),h.setMonth(z),h.getMonth()!==z&&(h=Dx(Qa(h,-1))))}"y"===t&&(h=qd(parseInt(E,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&&h.getDate()!==this.value.getDate()&&(h=Dx(Qa(h,-1))))}if(h){const z=this.partPattern(o.partMap,t).pattern,q=this.intl.parseDate(`${l}${this.peek(E,z)}${d}`,this.format),re=this.patternLength(z)||z.length,ie=k+(nke(E)||e).length>=re,Se=null===q||ie;return this.shouldNormalizeCentury()&&(h=this.normalizeCentury(h)),this.value=h,this.setExisting(t,!0),{value:this.value,switchToNext:Se}}}return f&&(h=this.intl.parseDate(l+f+d,this.format),h)?(this.value=h,this.setExisting(t,!0),{value:this.value,switchToNext:!1}):m&&(h=this.intl.parseDate(l+m+d,this.format),h)?(this.value=h,{value:this.value,switchToNext:!0}):(C&&this.setExisting(t,!1),{value:null,switchToNext:!1})}resetLeadingZero(){const t=null!==this.leadingZero;return this.setLeadingZero(null),t}setLeadingZero(t){this.leadingZero=t}normalizeCentury(t){if(!Nn(t))return t;const e=(n=>!Nn(n)||isNaN(n.getTime())?0:Number(n.getFullYear().toString().slice(-2)))(t),i=this.getNormalizedCenturyBase(e);return E2t(t,i+e)}incrementLeadingZero(t){const e=this.leadingZero||{};e[t]=(e[t]||0)+1,this.leadingZero=e}isAbbrMonth(t,e){const i=this.partPattern(t,e);return"month"===i.type&&i.names}partPattern(t,e){return t.filter(i=>-1!==i.pattern.indexOf(e))[0]}peek(t,e){const i=nke(t)+"0";return(n=>new Array(Math.max(n,0)).fill("0").join(""))(e.length-i.length)+i}matchMonth(t){if(this.typedMonthPart+=t.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(let i=0;i=1&&e<=12&&e.toString()===this.typedMonthPart)return this.monthNames[e-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}matchDayPeriod(t,e){const i=String(t).toLowerCase();if("a"===e&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(i))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(i))return this.dayPeriods.pm}return""}allFormatedMonths(){const t=this.intl.splitDateFormat(this.format);for(let e=0;e0;)s.push(this.symbols[i[a].pattern[0]]||"_"),o.push(i[a]),l--}const r=new eOt;return r.symbols=s.join(""),r.partMap=o,r}merge(t,e){let i="",s="",o=e.symbols;for(let r=o.length-1;r>=0;r--)if(-1===this.knownParts.indexOf(o[r])||this.getExisting(o[r]))i=t[r]+i,s=o[r]+s;else{const a=o[r];for(;r>=0&&a===o[r];)r--;for(r++,i=this.leadingZero&&this.leadingZero[a]?"0"+i:this.dateFieldName(e.partMap[r])+i;s.lengththis.twoDigitYearMax?1900:2e3}}let Ri=H2=class{constructor(t,e,i,s,o,r,a,l){this.cdr=t,this.intl=e,this.renderer=i,this.element=s,this.ngZone=o,this.injector=r,this.localization=a,this.pickerService=l,this.focusableId=`k-${cs()}`,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 S,this.valueUpdate=new S,this.onFocus=new S,this.onBlur=new S,this.arrow=LD,this.arrowDirection=LD.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=ei,this.maxValidator=ei,this.incompleteValidator=ei,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=ei,this.onControlTouched=ei,this.onValidatorChange=ei,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set value(t){this.verifyValue(t),(!this.autoCorrect||Ix(t,this.min,this.max))&&(this._value=It(t),this.valueUpdate.emit(It(t)))}get value(){return this._value}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get inputElement(){return this.dateInput?this.dateInput.nativeElement:null}get inputValue(){return(this.inputElement||{}).value||""}get isActive(){return this._active}set isActive(t){if(this._active=t,this.wrap&&!Nn(this.pickerService)){const e=this.wrap.nativeElement;t?this.renderer.addClass(e,"k-state-focused"):this.renderer.removeClass(e,"k-state-focused")}}get inputFormat(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}get displayFormat(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}isEmpty(){return!this.currentValue||!String(this.currentValue).trim()}containsElement(t){return Boolean(MK(t,e=>e===this.element.nativeElement))}ngOnChanges(t){this.verifyRange(),(t.min||t.max||t.rangeValidation||t.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?B2(this.min):ei,this.maxValidator=this.rangeValidation?V2(this.max):ei,this.incompleteValidator=this.incompleteDateValidation?zV():ei,this.onValidatorChange()),t.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());const e=this.kendoDate&&ko(this.value,this.kendoDate.getDateObject());(t.format||!e||t.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(t=>t())}validate(t){return this.minValidator(t)||this.maxValidator(t)||this.incompleteValidator(t,this.isDateIncomplete)}registerOnValidatorChange(t){this.onValidatorChange=t}ngOnInit(){this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(Zs,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(()=>{this.bindEvents()}))}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}writeValue(t){this.verifyValue(t),this.kendoDate=this.getKendoDate(t),this.value=It(t),this.updateElementValue(this.isActive)}triggerChange(){const t=this.kendoDate.getDateObject();+t!=+this.value&&(this.value=It(t),this.notify())}notify(){this.ngZone.run(()=>{this.onControlChange(It(this.value)),this.valueChange.emit(It(this.value))})}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}focus(){const t=this.inputElement;t&&(t.focus(),this.selectDateSegment(this.currentFormat[0]))}blur(){const t=this.inputElement;t&&t.blur()}handleButtonClick(t){this.arrowDirection=LD.None,this.modifyDateSegmentValue(t)}modifyDateSegmentValue(t){const e=this.caret(),i=this.currentFormat[e[0]];let s=(this.steps||{})[this.symbolsMap[i]]||1;"S"!==i||this.steps.millisecond||(s=(n=>Math.pow(10,3-n))((n=>{const t=n&&n.match(/S+(\1)/);return t?t[0].length:0})(this.inputFormat))),this.kendoDate.modifyPart(i,t*s),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(i),this.updateIncompleteValidationStatus()}switchDateSegment(t){const e=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),e[0]0?e[0]:e[1]-1),this.resetSegmentValue=!0,!0;const i=this.currentFormat[e[0]];let s=e[0]+t;for(;s>0&&s=0&&oo&&(o+1!==e[0]||s+1!==e[1])?(this.caret(o+1,s+1),this.resetSegmentValue=!0,!0):s{this.emitFocus(t)}):this.emitFocus(t)}handleBlur(t){this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),Kt(this.onBlur)||TV(this.ngControl)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(t),this.cdr.markForCheck()}):this.emitBlur(t)}getKendoDate(t){const{leadingZero:e}=this.kendoDate||{},i=new tOt(this.intl,this.formatPlaceholder,this.inputFormat,t,this.twoDigitYearMax);return i.setLeadingZero(this.isActive?e:null),i}dateSymbolMap(){return this.intl.splitDateFormat(this.inputFormat).reduce((e,i)=>(e[i.pattern[0]]=i.type,e),{})}updateElementValue(t){const e=this.caret()[0],s=this.kendoDate.getTextAndFormat(this.isActive?this.inputFormat:this.displayFormat),o=!this.isActive&&Nn(this.placeholder)&&!this.kendoDate.hasValue(),r=this.inputElement;this.currentFormat=s[1],this.currentValue=o?"":s[0],this.renderer.setProperty(r,"value",this.currentValue),r.placeholder!==this.placeholder&&this.renderer.setProperty(r,"placeholder",this.placeholder),t&&this.selectNearestSegment(e)}caret(t,e=t){const i=void 0!==t;let s=[t,t];const o=this.inputElement;if(!i||!this.disabled&&!this.readonly){try{void 0!==o.selectionStart&&(i&&(Ft()&&document.activeElement!==o&&o.focus(),o.setSelectionRange(t,e)),s=[o.selectionStart,o.selectionEnd])}catch(r){s=[]}return s}}selectNearestSegment(t){for(let e=t,i=t-1;e=0;e++,i--){if(e=0&&"_"!==this.currentFormat[i])return void this.selectDateSegment(this.currentFormat[i])}}verifyRange(){if(En()&&!pK(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")}verifyValue(t){if(En()&&t&&!(t instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")}putDateInRange(){const t=this.kendoDate.getDateObject(),e=Gg(t,this.min,this.max);this.autoCorrect&&!ko(t,e)&&(this.kendoDate=this.getKendoDate(e))}updateFormatSections(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(({date:t,time:e},i)=>({date:t||XFt.test(i.type),time:e||YFt.test(i.type)}),{date:!1,time:!1})}intlChange(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}updateOnPaste(){let t=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;Nn(t)&&this.kendoDate.shouldNormalizeCentury()&&(t=this.kendoDate.normalizeCentury(t));const e=+t!=+this.value;this.writeValue(t),e&&this.notify()}bindEvents(){const t=this.element.nativeElement,e=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(t,"DOMMouseScroll",e),this.renderer.listen(t,"mousewheel",e),this.renderer.listen(t,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(t,"paste",this.handlePaste.bind(this)),this.renderer.listen(t,"input",this.handleInput.bind(this)))}handleMouseWheel(t){this.disabled||this.readonly||!this.isActive||((t=window.event||t).shiftKey?this.switchDateSegment((t.wheelDelta||-t.detail)>0?-1:1):this.modifyDateSegmentValue((t.wheelDelta||-t.detail)>0?1:-1),t.returnValue=!1,t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())}handlePaste(){this.paste=!0}handleKeydown(t){if(!(this.disabled||this.readonly||t.altKey||t.ctrlKey||t.metaKey)){if(t.keyCode===_e.Tab)return void(this.switchDateSegment(t.shiftKey?-1:1)&&t.preventDefault());if(t.keyCode===_e.Backspace)return void(this.backspace=!0);switch(t.keyCode){case _e.ArrowDown:this.modifyDateSegmentValue(-1);break;case _e.ArrowUp:this.modifyDateSegmentValue(1);break;case _e.ArrowRight:this.switchDateSegment(1);break;case _e.ArrowLeft:this.switchDateSegment(-1);break;case _e.Home:this.selectNearestSegment(0);break;case _e.End:this.selectNearestSegment(this.inputValue.length);break;default:return}t.preventDefault()}}handleInput(){if(this.disabled||this.readonly)return;if(this.paste)return this.updateOnPaste(),void(this.paste=!1);const t=((n,t,e,i)=>{const s=i+n.length-e.length,o=n[s],r=n.substring(0,i+n.length-e.length),a=e.substring(0,i),l=[];if(r===a&&i>0)return l.push([t[i-1],a[i-1]]),l;if(0===r.indexOf(a)&&(0===a.length||t[a.length-1]!==t[a.length])){let c="";1===a.length&&l.push([t[0],a[0]]);for(let d=a.length;dthis.onValidatorChange())):Nn(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())}};Ri.\u0275fac=function(t){return new(t||Ri)(g(Be),g(kn),g(Ie),g($),g(ce),g(Jt),g(J),g(rd,8))},Ri.\u0275cmp=K({type:Ri,selectors:[["kendo-dateinput"]],viewQuery:function(t,e){if(1&t&&(Ae(bAt,7),Ae(CAt,5)),2&t){let i;U(i=W())&&(e.dateInput=i.first),U(i=W())&&(e.wrap=i.first)}},hostVars:6,hostBindings:function(t,e){2&t&&he("k-widget",e.wrapperClass)("k-dateinput",e.wrapperClass)("k-state-disabled",e.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",format:"format",placeholder:"placeholder",steps:"steps",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",tabIndex:"tabIndex",value:"value",formatPlaceholder:"formatPlaceholder",max:"max",min:"min"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-dateinput"],features:[we([{provide:es,useExisting:He(()=>H2),multi:!0},{provide:ir,useExisting:He(()=>H2),multi:!0},{provide:An,useValue:"kendo.dateinput"},{provide:Ds,useExisting:He(()=>H2)},J]),st],decls:6,vars:21,consts:function(){let n,t;return n=$localize`:kendo.dateinput.increment|The label for the **Increment** button in the DateInput␟a55944f9de69e7cc86b91200fe96f980a947d704␟589112377451589685:Increase value`,t=$localize`:kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput␟0eded761107e6dad120997006a7f915bade9b15c␟6980524091606682769:Decrease value`,[["kendoDateInputLocalizedMessages","","increment",n,"decrement",t],[1,"k-dateinput-wrap"],["wrap",""],["autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-input",3,"id","title","tabindex","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope"],["dateInput",""],["class","k-select",3,"mousedown",4,"ngIf"],[1,"k-select",3,"mousedown"],[1,"k-link","k-link-increase",3,"title","mousedown","mouseleave","click"],[1,"k-icon","k-i-arrow-n"],[1,"k-link","k-link-decrease",3,"title","click","mousedown","mouseleave"],[1,"k-icon","k-i-arrow-s"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),P(3,"input",3,4),A(5,xAt,5,8,"span",5),_()),2&t&&(b(3),v("id",e.focusableId)("title",e.title)("tabindex",e.tabindex)("disabled",e.disabled)("readonly",e.readonly)("placeholder",e.placeholder)("kendoEventsOutsideAngular",uj(13,wAt,e.handleClick,e.handleFocus,e.handleMousedown,e.handleMousedown,e.handleDragAndDrop,e.handleDragAndDrop,e.handleBlur))("scope",e),fe("role",e.role)("aria-readonly",e.ariaReadOnly)("aria-expanded",e.isPopupOpen)("aria-haspopup",e.hasPopup),b(2),v("ngIf",e.spinners))},directives:function(){return[Px,lr,pt]},encapsulation:2,changeDetection:0}),L([p(),F("design:type",String)],Ri.prototype,"focusableId",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"disabled",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"readonly",void 0),L([p(),F("design:type",String)],Ri.prototype,"title",void 0),L([p(),F("design:type",Number)],Ri.prototype,"tabindex",void 0),L([p(),F("design:type",String)],Ri.prototype,"role",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"ariaReadOnly",void 0),L([p(),F("design:type",Number),F("design:paramtypes",[Number])],Ri.prototype,"tabIndex",null),L([p(),F("design:type",Object)],Ri.prototype,"format",void 0),L([p(),F("design:type",Object)],Ri.prototype,"formatPlaceholder",void 0),L([p(),F("design:type",String)],Ri.prototype,"placeholder",void 0),L([p(),F("design:type",Object)],Ri.prototype,"steps",void 0),L([p(),F("design:type",Date)],Ri.prototype,"max",void 0),L([p(),F("design:type",Date)],Ri.prototype,"min",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"rangeValidation",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"autoCorrect",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"incompleteDateValidation",void 0),L([p(),F("design:type",Number)],Ri.prototype,"twoDigitYearMax",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],Ri.prototype,"value",null),L([p(),F("design:type",Boolean)],Ri.prototype,"spinners",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"isPopupOpen",void 0),L([p(),F("design:type",Boolean)],Ri.prototype,"hasPopup",void 0),L([Q(),F("design:type",S)],Ri.prototype,"valueChange",void 0),L([Q(),F("design:type",S)],Ri.prototype,"valueUpdate",void 0),L([Q("focus"),F("design:type",S)],Ri.prototype,"onFocus",void 0),L([Q("blur"),F("design:type",S)],Ri.prototype,"onBlur",void 0),L([at("dateInput",{static:!0}),F("design:type",$)],Ri.prototype,"dateInput",void 0),L([at("wrap",{static:!1}),F("design:type",$)],Ri.prototype,"wrap",void 0),L([G("class.k-widget"),G("class.k-dateinput"),F("design:type",Boolean),F("design:paramtypes",[])],Ri.prototype,"wrapperClass",null),L([G("class.k-state-disabled"),F("design:type",Boolean),F("design:paramtypes",[])],Ri.prototype,"disabledClass",null),Ri=H2=L([jh(7,gt()),F("design:paramtypes",[Be,kn,Ie,$,ce,Jt,J,rd])],Ri);class HV{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const $y=new ot("dateinputs-touch-enabled"),ike=n=>t=>n&&t.value&&n(t.value)?{disabledDate:!0}:null;var G2;let Dn=G2=class{constructor(t,e,i,s,o,r,a,l,c,d){this.zone=t,this.localization=e,this.cdr=i,this.popupService=s,this.element=o,this.renderer=r,this.injector=a,this.pickerService=l,this.disabledDatesService=c,this.touchEnabled=d,this.focusableId=`k-${cs()}`,this.activeView=mn[mn.month],this.bottomView=mn[mn.month],this.topView=mn[mn.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=It(nf),this.max=It(sf),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new S,this.onFocus=new S,this.onBlur=new S,this.open=new S,this.close=new S,this.wrapperClasses=!0,this.popupUID=cs(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=ei,this.onControlTouched=ei,this.onValidatorChange=ei,this.minValidateFn=ei,this.maxValidateFn=ei,this.disabledDatesValidateFn=ei,this.incompleteValidator=ei,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],Ii(FD),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set cellTemplateRef(t){this.cellTemplate=t}set monthCellTemplateRef(t){this.monthCellTemplate=t}set yearCellTemplateRef(t){this.yearCellTemplate=t}set decadeCellTemplateRef(t){this.decadeCellTemplate=t}set centuryCellTemplateRef(t){this.centuryCellTemplate=t}set weekNumberTemplateRef(t){this.weekNumberTemplate=t}set headerTitleTemplateRef(t){this.headerTitleTemplate=t}set navigationItemTemplateRef(t){this.navigationItemTemplate=t}set popupSettings(t){this._popupSettings=Object.assign({},{animate:!0},t)}get popupSettings(){return this._popupSettings}set value(t){this.verifyValue(t),this._value=It(t)}get value(){return this._value}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set disabledDates(t){this._disabledDates=t,this.disabledDatesService.initialize(t)}get disabledDates(){return this._disabledDates}get disabledClass(){return this.disabled}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get isActive(){return this._active}set isActive(t){if(this._active=t,!this.wrapper)return;const e=this.wrapper.nativeElement;t?this.renderer.addClass(e,"k-state-focused"):this.renderer.removeClass(e,"k-state-focused")}get show(){return this._show}set show(t){t&&(this.disabled||this.readonly)||(t||this._show&&Kt(this.close)?this.zone.run(()=>{this.togglePopup(t)}):this.togglePopup(t))}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(Zs,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(t){this.verifySettings(),(t.min||t.max||t.rangeValidation||t.disabledDatesValidation||t.disabledDates||t.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?B2(this.min):ei,this.maxValidateFn=this.rangeValidation?V2(this.max):ei,this.disabledDatesValidateFn=this.disabledDatesValidation?ike(this.disabledDatesService.isDateDisabled):ei,this.incompleteValidator=this.incompleteDateValidation?zV():ei,this.onValidatorChange())}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(t=>t()),this.pickerSubscriptions.unsubscribe()}get isOpen(){return this.show}writeValue(t){this.verifyValue(t),this.value=It(t),this.cdr.markForCheck(),!t&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(t))}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}validate(t){return this.minValidateFn(t)||this.maxValidateFn(t)||this.disabledDatesValidateFn(t)||this.incompleteValidator(t,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(t){this.onValidatorChange=t}focus(){this.input.focus()}blur(){(this.calendar||this.input).blur()}toggle(t){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this._toggle(void 0===t?!this.show:t)})}handleIconClick(t){this.disabled||this.readonly||(t.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())}handleMousedown(t){t.preventDefault()}handleChange(t){this.cdr.markForCheck(),this.focusInput(),this.value=t,this.show=!1,this.onControlChange(It(t)),this.valueChange.emit(It(t))}handleInputChange(t){this.handleChange(this.input.formatSections.time?t:this.mergeTime(t))}get popupClasses(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}mergeTime(t){return this.value&&t?Hg(t,this.value):t}handleKeydown(t){const{altKey:e,keyCode:i}=t;i===_e.Escape&&(this.show=!1),e&&(i===_e.ArrowDown&&!this.show&&(this.show=!0),i===_e.ArrowUp&&(this.show=!1)),i===_e.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)}togglePopup(t){const e=new HV;!this._show&&t?this.open.emit(e):this._show&&!t&&this.close.emit(e),!e.isDefaultPrevented()&&(this._toggle(t),this.toggleFocus())}_toggle(t){if(t!==this._show)if(this._show=t,t){const e=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){!this.isActive||(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifySettings(){if(En()&&!pK(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")}verifyValue(t){if(En()&&t&&!(t instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")}bindEvents(){this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this))),IV()&&(this.windowBlurSubscription=Hi(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleFocus(){this.isActive||(this.isActive=!0,Kt(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleWindowBlur(){!this.isOpen||(this.show=!1)}handleBlur(t){const e=t&&hK(t);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(Kt(this.onBlur)||this.show&&Kt(this.close)||TV(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()}handleSameSelection(){this.show&&(this.focusInput(),this.show=!1)}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}};Dn.\u0275fac=function(t){return new(t||Dn)(g(ce),g(J),g(Be),g(Oi),g($),g(Ie),g(Jt),g(rd),g(Sc),g($y,8))},Dn.\u0275cmp=K({type:Dn,selectors:[["kendo-datepicker"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,xl,5),Ce(i,wl,5),Ce(i,Sl,5),Ce(i,Tl,5),Ce(i,kl,5),Ce(i,Dl,5),Ce(i,Ml,5),Ce(i,jg,5)),2&t){let s;U(s=W())&&(e.cellTemplate=s.first),U(s=W())&&(e.monthCellTemplate=s.first),U(s=W())&&(e.yearCellTemplate=s.first),U(s=W())&&(e.decadeCellTemplate=s.first),U(s=W())&&(e.centuryCellTemplate=s.first),U(s=W())&&(e.weekNumberTemplate=s.first),U(s=W())&&(e.headerTitleTemplate=s.first),U(s=W())&&(e.navigationItemTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(SV,7,Gt),Ae(cK,7),Ae(dK,5)),2&t){let i;U(i=W())&&(e.container=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.wrapper=i.first)}},hostVars:6,hostBindings:function(t,e){2&t&&he("k-widget",e.wrapperClasses)("k-datepicker",e.wrapperClasses)("k-state-disabled",e.disabledClass)},inputs:{focusableId:"focusableId",activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",format:"format",twoDigitYearMax:"twoDigitYearMax",placeholder:"placeholder",tabindex:"tabindex",title:"title",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",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"],popupSettings:"popupSettings",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",formatPlaceholder:"formatPlaceholder"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-datepicker"],features:[we([{provide:es,useExisting:He(()=>G2),multi:!0},{provide:ir,useExisting:He(()=>G2),multi:!0},{provide:Ds,useExisting:He(()=>G2)},J,rd,Sc,{provide:An,useValue:"kendo.datepicker"}]),st],decls:11,vars:26,consts:function(){let n,t,e,i;return n=$localize`:kendo.datepicker.today|The label for the today button in the calendar header␟91a84f2d4871dbe7e90d84865d4a4d83c8ae041e␟1910980355989755624:TODAY`,t=$localize`:kendo.datepicker.toggle|The title of the toggle button in the datepicker component␟f6c28c2d80dbe993c4b33f4dc4010364f41cc2ae␟4817467473728423164:Toggle calendar`,e=$localize`:kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar␟b24bedd31916ff8439cd7e3c46cbdabea3409dd1␟1741914107549506055:Navigate to previous view`,i=$localize`:kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar␟2f0e2a91beb7149035e42bd0d6663e8903dc3852␟3363484587807059211:Navigate to next view`,[["kendoDatePickerLocalizedMessages","","today",n,"toggle",t,"prevButtonTitle",e,"nextButtonTitle",i],[1,"k-picker-wrap"],["wrapper",""],[3,"role","focusableId","hasPopup","isPopupOpen","disabled","readonly","ariaReadOnly","tabindex","title","format","twoDigitYearMax","formatPlaceholder","placeholder","min","max","incompleteDateValidation","value","valueChange"],["input",""],["role","button",1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-icon","k-i-calendar"],["container",""],["popupTemplate",""],[3,"type","min","max","navigation","animateNavigation","activeView","bottomView","topView","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate","focusedDate","value","kendoEventsOutsideAngular","scope","disabledDates","valueChange"],["calendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),y(3,"kendo-dateinput",3,4),se("valueChange",function(s){return e.handleInputChange(s)}),_(),y(5,"span",5),P(6,"span",6),_(),_(),wn(7,null,7),A(9,TAt,4,27,"ng-template",null,8,Ls)),2&t&&(b(1),he("k-state-disabled",e.disabled),b(2),v("role",e.inputRole)("focusableId",e.focusableId)("hasPopup",!0)("isPopupOpen",e.show)("disabled",e.disabled)("readonly",e.readonly||e.readOnlyInput)("ariaReadOnly",e.readonly)("tabindex",e.tabindex)("title",e.title)("format",e.format)("twoDigitYearMax",e.twoDigitYearMax)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("min",e.min)("max",e.max)("incompleteDateValidation",e.incompleteDateValidation)("value",e.value),b(2),v("kendoEventsOutsideAngular",di(23,PTe,e.handleIconClick,e.handleMousedown))("scope",e),fe("title",e.localization.get("toggle"))("aria-label",e.localization.get("toggle")))},directives:function(){return[Lx,Ri,lr,z2,lb]},encapsulation:2,changeDetection:0}),L([at("container",{read:Gt,static:!0}),F("design:type",Gt)],Dn.prototype,"container",void 0),L([at("popupTemplate",{static:!0}),F("design:type",ve)],Dn.prototype,"popupTemplate",void 0),L([at("wrapper",{static:!1}),F("design:type",$)],Dn.prototype,"wrapper",void 0),L([ct(xl,{static:!1}),F("design:type",xl)],Dn.prototype,"cellTemplate",void 0),L([p("cellTemplate"),F("design:type",xl),F("design:paramtypes",[xl])],Dn.prototype,"cellTemplateRef",null),L([ct(wl,{static:!1}),F("design:type",wl)],Dn.prototype,"monthCellTemplate",void 0),L([p("monthCellTemplate"),F("design:type",wl),F("design:paramtypes",[wl])],Dn.prototype,"monthCellTemplateRef",null),L([ct(Sl,{static:!1}),F("design:type",Sl)],Dn.prototype,"yearCellTemplate",void 0),L([p("yearCellTemplate"),F("design:type",Sl),F("design:paramtypes",[Sl])],Dn.prototype,"yearCellTemplateRef",null),L([ct(Tl,{static:!1}),F("design:type",Tl)],Dn.prototype,"decadeCellTemplate",void 0),L([p("decadeCellTemplate"),F("design:type",Tl),F("design:paramtypes",[Tl])],Dn.prototype,"decadeCellTemplateRef",null),L([ct(kl,{static:!1}),F("design:type",kl)],Dn.prototype,"centuryCellTemplate",void 0),L([p("centuryCellTemplate"),F("design:type",kl),F("design:paramtypes",[kl])],Dn.prototype,"centuryCellTemplateRef",null),L([ct(Dl,{static:!1}),F("design:type",Dl)],Dn.prototype,"weekNumberTemplate",void 0),L([p("weekNumberTemplate"),F("design:type",Dl),F("design:paramtypes",[Dl])],Dn.prototype,"weekNumberTemplateRef",null),L([ct(Ml,{static:!1}),F("design:type",Ml)],Dn.prototype,"headerTitleTemplate",void 0),L([p("headerTitleTemplate"),F("design:type",Ml),F("design:paramtypes",[Ml])],Dn.prototype,"headerTitleTemplateRef",null),L([ct(jg,{static:!1}),F("design:type",jg)],Dn.prototype,"navigationItemTemplate",void 0),L([p("navigationItemTemplate"),F("design:type",jg),F("design:paramtypes",[jg])],Dn.prototype,"navigationItemTemplateRef",null),L([p(),F("design:type",String)],Dn.prototype,"focusableId",void 0),L([p(),F("design:type",String)],Dn.prototype,"activeView",void 0),L([p(),F("design:type",String)],Dn.prototype,"bottomView",void 0),L([p(),F("design:type",String)],Dn.prototype,"topView",void 0),L([p(),F("design:type",String)],Dn.prototype,"calendarType",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"animateCalendarNavigation",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"disabled",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"readonly",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"readOnlyInput",void 0),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],Dn.prototype,"popupSettings",null),L([p(),F("design:type",Boolean)],Dn.prototype,"navigation",void 0),L([p(),F("design:type",Date)],Dn.prototype,"min",void 0),L([p(),F("design:type",Date)],Dn.prototype,"max",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"incompleteDateValidation",void 0),L([p(),F("design:type",Date)],Dn.prototype,"focusedDate",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],Dn.prototype,"value",null),L([p(),F("design:type",Object)],Dn.prototype,"format",void 0),L([p(),F("design:type",Number)],Dn.prototype,"twoDigitYearMax",void 0),L([p(),F("design:type",Object)],Dn.prototype,"formatPlaceholder",void 0),L([p(),F("design:type",String)],Dn.prototype,"placeholder",void 0),L([p(),F("design:type",Number)],Dn.prototype,"tabindex",void 0),L([p(),F("design:type",Number),F("design:paramtypes",[Number])],Dn.prototype,"tabIndex",null),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],Dn.prototype,"disabledDates",null),L([p(),F("design:type",String)],Dn.prototype,"title",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"rangeValidation",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"disabledDatesValidation",void 0),L([p(),F("design:type",Boolean)],Dn.prototype,"weekNumber",void 0),L([Q(),F("design:type",S)],Dn.prototype,"valueChange",void 0),L([Q("focus"),F("design:type",S)],Dn.prototype,"onFocus",void 0),L([Q("blur"),F("design:type",S)],Dn.prototype,"onBlur",void 0),L([Q(),F("design:type",S)],Dn.prototype,"open",void 0),L([Q(),F("design:type",S)],Dn.prototype,"close",void 0),L([G("class.k-widget"),G("class.k-datepicker"),F("design:type",Boolean)],Dn.prototype,"wrapperClasses",void 0),L([G("class.k-state-disabled"),F("design:type",Boolean),F("design:paramtypes",[])],Dn.prototype,"disabledClass",null),Dn=G2=L([jh(9,gt()),jh(9,Rn($y)),F("design:paramtypes",[ce,J,Be,Oi,$,Ie,Jt,rd,Sc,Boolean])],Dn);var j2;const dOt=new RegExp("hour|minute|second|millisecond|dayperiod|literal");let fs=j2=class{constructor(t,e,i,s,o,r,a,l,c,d){this.zone=t,this.localization=e,this.cdr=i,this.popupService=s,this.element=o,this.renderer=r,this.injector=a,this.pickerService=l,this.intl=c,this.touchEnabled=d,this.focusableId=`k-${cs()}`,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new S,this.onFocus=new S,this.onBlur=new S,this.open=new S,this.close=new S,this.wrapperClasses=!0,this.popupUID=cs(),this.onControlChange=ei,this.onControlTouched=ei,this.onValidatorChange=ei,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=ei,this.incompleteValidator=ei,this._min=It(OD),this._max=It(Ex),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],Ii(FD),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set min(t){this._min=It(t||OD)}get min(){return this._min}set max(t){this._max=It(t||Ex)}get max(){return this._max}set steps(t){this._steps=t||{}}get steps(){return this._steps}set popupSettings(t){this._popupSettings=Object.assign({},{animate:!0},t)}get popupSettings(){return this._popupSettings}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set value(t){this.verifyValue(t),this._value=It(t)}get value(){return this._value}get disabledClass(){return this.disabled}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get isActive(){return this._active}set isActive(t){if(this._active=t,!this.wrapper)return;const e=this.wrapper.nativeElement;t?this.renderer.addClass(e,"k-state-focused"):this.renderer.removeClass(e,"k-state-focused")}get show(){return this._show}set show(t){t&&(this.disabled||this.readonly)||(t||this._show&&Kt(this.close)?this.zone.run(()=>{this.togglePopup(t)}):this.togglePopup(t))}get input(){return this.pickerService.input}get timeSelector(){return this.pickerService.timeSelector}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(Zs,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(t){(t.min||t.max||t.rangeValidation||t.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?((n,t)=>e=>{if(!n||!t||!e.value)return null;const i={timeRangeError:{maxValue:t,minValue:n,value:e.value}};return zTe(e.value,n,t)?null:i})(this.min,this.max):ei,this.incompleteValidator=this.incompleteDateValidation?zV():ei,this.onValidatorChange()),t.format&&this.verifyFormat()}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(t=>t()),this.pickerSubscriptions.unsubscribe()}handleKeydown(t){const{altKey:e,keyCode:i}=t;i!==_e.Escape?e&&(i===_e.ArrowUp&&(this.show=!1),i===_e.ArrowDown&&!this.show&&(this.show=!0)):this.show=!1}writeValue(t){this.verifyValue(t),this.value=It(t),this.cdr.markForCheck(),!t&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(t))}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}validate(t){return this.timeRangeValidateFn(t)||this.incompleteValidator(t,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(t){this.onValidatorChange=t}focus(){this.input.focus()}blur(){(this.timeSelector||this.input).blur()}toggle(t){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this._toggle(void 0===t?!this.show:t)})}get isOpen(){return this.show}get appendTo(){const{appendTo:t}=this.popupSettings;if(t&&"root"!==t)return"component"===t?this.container:t}handleChange(t){if(ko(this.value,t))return this.focusInput(),void(this.show=!1);this.value=It(t),this.zone.run(()=>{this.focusInput(),this.show=!1,this.onControlChange(It(t)),this.valueChange.emit(It(t))})}handleReject(){this.show=!1}handleInputChange(t){const e=this.input.formatSections.date?t:this.mergeTime(t);this.handleChange(e)}handleMousedown(t){t.preventDefault()}handleIconClick(t){this.disabled||this.readonly||(t.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)}get popupClasses(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])}normalizeTime(t){return Hg(zg,t)}mergeTime(t){return this.value&&t?Hg(this.value,t):t}togglePopup(t){const e=new HV;!this._show&&t?this.open.emit(e):this._show&&!t&&this.close.emit(e),!e.isDefaultPrevented()&&(this._toggle(t),this.toggleFocus())}_toggle(t){if(t!==this.isOpen)if(this._show=t,this.cdr.markForCheck(),t){const e=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){!this.isActive||(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifyValue(t){if(En()&&t&&!(t instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")}verifyFormat(){if(En()&&this.intl.splitDateFormat(this.format).some(e=>!dOt.test(e.type)))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")}bindEvents(){this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this))),IV()&&(this.windowBlurSubscription=Hi(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleWindowBlur(){!this.isOpen||(this.show=!1)}handleFocus(){this.isActive||(this.isActive=!0,Kt(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleBlur(t){const e=t&&hK(t);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(Kt(this.onBlur)||this.show&&Kt(this.close)||TV(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}};var $2;fs.\u0275fac=function(t){return new(t||fs)(g(ce),g(J),g(Be),g(Oi),g($),g(Ie),g(Jt),g(rd),g(kn),g($y,8))},fs.\u0275cmp=K({type:fs,selectors:[["kendo-timepicker"]],viewQuery:function(t,e){if(1&t&&(Ae(SV,5,Gt),Ae(cK,5),Ae(dK,5)),2&t){let i;U(i=W())&&(e.container=i.first),U(i=W())&&(e.popupTemplate=i.first),U(i=W())&&(e.wrapper=i.first)}},hostVars:6,hostBindings:function(t,e){2&t&&he("k-widget",e.wrapperClasses)("k-timepicker",e.wrapperClasses)("k-state-disabled",e.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",placeholder:"placeholder",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",tabindex:"tabindex",title:"title",rangeValidation:"rangeValidation",min:"min",max:"max",steps:"steps",popupSettings:"popupSettings",tabIndex:"tabIndex",value:"value",formatPlaceholder:"formatPlaceholder"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-timepicker"],features:[we([{provide:es,useExisting:He(()=>j2),multi:!0},{provide:ir,useExisting:He(()=>j2),multi:!0},{provide:Ds,useExisting:He(()=>j2)},J,{provide:An,useValue:"kendo.timepicker"},rd]),st],decls:11,vars:26,consts:function(){let n,t,e,i,s,o,r;return n=$localize`:kendo.timepicker.accept|The Accept button text in the timepicker component␟4c3bf42192220c7611c09ece1c5de14855139dd0␟7519663530416240229:Set`,t=$localize`:kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component␟93c2a9c3aa49f56e452c0aecbaabe3bb33fa4222␟4355879331538595758:Set time`,e=$localize`:kendo.timepicker.cancel|The Cancel button text in the timepicker component␟132eefca16bd41d489b4647724b91e93793603aa␟1086687567255473060:Cancel`,i=$localize`:kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component␟2cf6f4ca4470810944b4016c9b6f87943d3390ab␟83621966901491941:Cancel changes`,s=$localize`:kendo.timepicker.now|The Now button text in the timepicker component␟bbc99bb74ae75a503bd813aad0c7253d3553e923␟5912507758515138116:Now`,o=$localize`:kendo.timepicker.nowLabel|The label for the Now button in the timepicker component␟df1a696f318275aa934e27850920889d494c2740␟371982627910576599:Select now`,r=$localize`:kendo.timepicker.toggle|The label for the toggle button in the timepicker component␟f2c196786ed2d3ecb2369750c36aac9a4053fb30␟6938407659294495526:Toggle time list`,[["kendoTimePickerLocalizedMessages","","accept",n,"acceptLabel",t,"cancel",e,"cancelLabel",i,"now",s,"nowLabel",o,"toggle",r],[1,"k-picker-wrap"],["wrapper",""],[3,"focusableId","hasPopup","isPopupOpen","disabled","readonly","role","ariaReadOnly","format","formatPlaceholder","placeholder","min","max","incompleteDateValidation","steps","tabindex","title","value","valueChange"],["input",""],["role","button",1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-icon","k-i-clock"],["popupTemplate",""],["container",""],[3,"cancelButton","nowButton","format","min","max","steps","value","kendoEventsOutsideAngular","scope","valueChange","valueReject"],["timeSelector",""],[3,"acceptLabel","accept","cancelLabel","cancel","nowLabel","now"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),y(3,"kendo-dateinput",3,4),se("valueChange",function(s){return e.handleInputChange(s)}),_(),y(5,"span",5),P(6,"span",6),_(),A(7,DAt,3,18,"ng-template",null,7,Ls),_(),wn(9,null,8)),2&t&&(b(1),he("k-state-disabled",e.disabled),b(2),v("focusableId",e.focusableId)("hasPopup",!0)("isPopupOpen",e.show)("disabled",e.disabled)("readonly",e.readonly||e.readOnlyInput)("role",e.inputRole)("ariaReadOnly",e.readonly)("format",e.format)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("min",e.normalizeTime(e.min))("max",e.normalizeTime(e.max))("incompleteDateValidation",e.incompleteDateValidation)("steps",e.steps)("tabindex",e.show?-1:e.tabindex)("title",e.title)("value",e.value),b(2),v("kendoEventsOutsideAngular",di(23,PTe,e.handleIconClick,e.handleMousedown))("scope",e),fe("title",e.localization.get("toggle"))("aria-label",e.localization.get("toggle")))},directives:function(){return[ub,Ri,lr,XK,Uy]},encapsulation:2,changeDetection:0}),L([at("container",{read:Gt,static:!1}),F("design:type",Gt)],fs.prototype,"container",void 0),L([at("popupTemplate",{static:!1}),F("design:type",ve)],fs.prototype,"popupTemplate",void 0),L([at("wrapper",{static:!1}),F("design:type",$)],fs.prototype,"wrapper",void 0),L([p(),F("design:type",String)],fs.prototype,"focusableId",void 0),L([p(),F("design:type",Boolean)],fs.prototype,"disabled",void 0),L([p(),F("design:type",Boolean)],fs.prototype,"readonly",void 0),L([p(),F("design:type",Boolean)],fs.prototype,"readOnlyInput",void 0),L([p(),F("design:type",String)],fs.prototype,"format",void 0),L([p(),F("design:type",Object)],fs.prototype,"formatPlaceholder",void 0),L([p(),F("design:type",String)],fs.prototype,"placeholder",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],fs.prototype,"min",null),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],fs.prototype,"max",null),L([p(),F("design:type",Boolean)],fs.prototype,"incompleteDateValidation",void 0),L([p(),F("design:type",Boolean)],fs.prototype,"cancelButton",void 0),L([p(),F("design:type",Boolean)],fs.prototype,"nowButton",void 0),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],fs.prototype,"steps",null),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],fs.prototype,"popupSettings",null),L([p(),F("design:type",Number)],fs.prototype,"tabindex",void 0),L([p(),F("design:type",Number),F("design:paramtypes",[Number])],fs.prototype,"tabIndex",null),L([p(),F("design:type",String)],fs.prototype,"title",void 0),L([p(),F("design:type",Boolean)],fs.prototype,"rangeValidation",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],fs.prototype,"value",null),L([Q(),F("design:type",S)],fs.prototype,"valueChange",void 0),L([Q("focus"),F("design:type",S)],fs.prototype,"onFocus",void 0),L([Q("blur"),F("design:type",S)],fs.prototype,"onBlur",void 0),L([Q(),F("design:type",S)],fs.prototype,"open",void 0),L([Q(),F("design:type",S)],fs.prototype,"close",void 0),L([G("class.k-widget"),G("class.k-timepicker"),F("design:type",Boolean)],fs.prototype,"wrapperClasses",void 0),L([G("class.k-state-disabled"),F("design:type",Boolean),F("design:paramtypes",[])],fs.prototype,"disabledClass",null),fs=j2=L([jh(9,gt()),jh(9,Rn($y)),F("design:paramtypes",[ce,J,Be,Oi,$,Ie,Jt,rd,kn,Boolean])],fs);const ske=new RegExp("hour|minute|second|dayperiod|literal"),AK="date";let yi=$2=class{constructor(t,e,i,s,o,r,a,l,c,d){this.popupService=t,this.intl=e,this.cdr=i,this.pickerService=s,this.ngZone=o,this.host=r,this.touchEnabled=a,this.localization=l,this.disabledDatesService=c,this.renderer=d,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId=`k-${cs()}`,this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new S,this.open=new S,this.close=new S,this.onFocus=new S,this.onBlur=new S,this.activeTab=AK,this.timeSelectorFormat="t",this.timeSelectorMin=It(OD),this.timeSelectorMax=It(Ex),this.calendarValue=null,this.calendarMin=It(nf),this.calendarMax=$Te(sf),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=AK,this._min=mK(nf,OD),this._max=mK(sf,Ex),this._isActive=!1,this.onControlTouched=ei,this.onControlChange=ei,this.onValidatorChange=ei,this.minValidateFn=ei,this.maxValidateFn=ei,this.disabledDatesValidateFn=ei,this.incompleteValidator=ei,this.subscriptions=new Je,Ii(FD)}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}get timeSelector(){return this.pickerService.timeSelector}set value(t){this.verifyValue(t),this._value=It(t),this.setCalendarValue(t),this.cdr.markForCheck()}get value(){return this._value}set format(t){this._format=t;const e=this.getDisplayFormat(t);this.timeSelectorFormat=this.getTimeSelectorFormat(e)}get format(){return this._format}set tabindex(t){const e=Number(t);this._tabindex=isNaN(e)?0:e}get tabindex(){return this.disabled?-1:this._tabindex}set disabledDates(t){this._disabledDates=t,this.disabledDatesService.initialize(t)}get disabledDates(){return this._disabledDates}set popupSettings(t){this._popupSettings=Object.assign({},{animate:!0},t)}get popupSettings(){return this._popupSettings}set min(t){!Nn(t)||(this._min=It(t),this.calendarMin=Yo(t))}get min(){return this._min}set max(t){!Nn(t)||(this._max=It(t),this.calendarMax=$Te(t))}get max(){return this._max}get isOpen(){return Nn(this.popupRef)}get isActive(){return this._isActive}set isActive(t){t?this.renderer.addClass(this.wrapper.nativeElement,"k-state-focused"):this.renderer.removeClass(this.wrapper.nativeElement,"k-state-focused"),this._isActive=t}set defaultTab(t){this._defaultTab=t||AK,this.activeTab=this.defaultTab}get defaultTab(){return this._defaultTab}get tabSwitchTransition(){return this.isOpen?null:"none"}get disableCalendar(){return"date"!==this.activeTab&&!this.calendar.isActive}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get disableTimeSelector(){return"time"!==this.activeTab&&!this.timeSelector.isActive}get activeTabComponent(){if(this.isOpen)return Nn(this.calendar)||Nn(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector}get appendTo(){const{appendTo:t}=this.popupSettings;if(Nn(t)&&"root"!==t)return"component"===t?this.container:t}ngOnInit(){this.subscriptions.add(this.pickerService.onFocus.pipe(lt(this.detectPopupChanges.bind(this))).subscribe(this.handleFocus.bind(this))),this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this))),IV()&&this.subscriptions.add(this.ngZone.runOutsideAngular(()=>Hi(window,"blur").subscribe(this.handleCancel.bind(this))))}ngOnChanges(t){(Nn(t.min)||Nn(t.max))&&this.verifyMinMaxRange(),(t.min||t.max||t.rangeValidation||t.disabledDatesValidation||t.disabledDates||t.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?B2(this.min):ei,this.maxValidateFn=this.rangeValidation?V2(this.max):ei,this.disabledDatesValidateFn=this.disabledDatesValidation?ike(this.disabledDatesService.isDateDisabled):ei,this.incompleteValidator=this.incompleteDateValidation?zV():ei,this.onValidatorChange())}ngOnDestroy(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()}focus(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())}blur(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()}toggle(t){this.disabled||this.readonly||t===this.isOpen||((Nn(t)?t:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))}writeValue(t){this.value=t}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}validate(t){return this.minValidateFn(t)||this.maxValidateFn(t)||this.disabledDatesValidateFn(t)||this.incompleteValidator(t,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(t){this.onValidatorChange=t}isEmpty(){return!Nn(this.value)&&this.input.isEmpty()}handleIconClick(t){if(this.disabled||this.readonly)return;t.preventDefault();const e=!this.isOpen||Kt(this.close);this.run(e,()=>{const i=!this.isOpen;this.handleFocus(),this.togglePopup(i),this.switchFocus()})}handleFocus(){this.isActive||(this.isActive=!0,Kt(this.onFocus)&&this.ngZone.run(()=>this.onFocus.emit()))}handleBlur(t){if(!this.isActive||this.focusTargetInComponent(t))return;this.isActive=!1;const i=this.host.nativeElement.classList.contains("ng-untouched")||Kt(this.onBlur)||this.isOpen&&Kt(this.close);this.run(i,()=>{this.onBlur.emit(),this.onControlTouched(),this.togglePopup(!1),this.cdr.markForCheck()})}changeActiveTab(t){!this.isOpen||this.activeTab===t||(ko(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=t,this.cdr.detectChanges(),this.detectPopupChanges())}handleTabChangeTransitionEnd(t,e){e.target===t&&this.activeTabComponent.focus()}handleAccept(){if(!this.isOpen)return;const t=mK(this.calendar.value,this.timeSelector.current),i=!ko(this.value,t)||Kt(this.close);this.run(i,()=>{this.handleValueChange(t),this.togglePopup(!1)})}handleCancel(){if(!this.isOpen)return;const t=Kt(this.close);this.run(t,()=>this.togglePopup(!1))}handleInputValueChange(t){this.handleValueChange(t),this.isOpen&&this.togglePopup(!1)}handleCalendarValueChange(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")}handleKeyDown(t){if(this.disabled||this.readonly)return;const{keyCode:e,altKey:i}=t;switch(e){case i&&_e.ArrowUp:case _e.Escape:this.handleCancel();break;case!this.isOpen&&i&&_e.ArrowDown:this.ngZone.run(()=>this.togglePopup(!0));break;case i&&_e.ArrowRight:this.changeActiveTab("time");break;case i&&_e.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&Nn(this.calendarValue)&&_e.Enter:this.handleAccept();break;default:return}t.preventDefault()}handleTabOut(t){const{keyCode:e,shiftKey:i,target:s}=t,o=Nn(s.nextElementSibling)&&!s.nextElementSibling.disabled;e===_e.Tab&&!i&&!o&&(this.input.focus(),this.handleCancel())}handleBackTabOut(t){const{keyCode:e,shiftKey:i}=t;e===_e.Tab&&i&&this.input.focus()}preventMouseDown(t){t.preventDefault()}verifyValue(t){if(En()&&Nn(t)&&!(t instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")}verifyMinMaxRange(){if(En()&&!pK(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")}getTimeSelectorFormat(t){return this.intl.splitDateFormat(t).filter(this.timeFormatPartFilter).reduce((i,s)=>i+s.pattern,"")||"t"}getDisplayFormat(t){return t?"string"==typeof t?t:t.displayFormat:"g"}timeFormatPartFilter(t,e,i){const s=e>=1&&i[e-1];return ske.test(s&&"literal"===t.type?s.type:t.type)}togglePopup(t){if(t===this.isOpen)return;const e=new HV;t?this.open.emit(e):this.close.emit(e),!e.isDefaultPrevented()&&(this.toggle(t),this.switchFocus())}switchFocus(){!this.isActive||(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}openPopup(){this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);const t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:`k-datetime-container ${this.popupSettings.popupClass||""}`,anchorAlign:{vertical:"bottom",horizontal:t},popupAlign:{vertical:"top",horizontal:t}}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.handleCancel())}closePopup(){!this.isOpen||(this.popupRef.close(),this.popupRef=null)}handleValueChange(t){ko(this.value,t)||(this.value=It(t),this.onControlChange(It(t)),this.valueChange.emit(It(t)))}focusTargetInComponent(t){if(!Nn(t))return!1;const e=t.relatedTarget||document.activeElement,i=Nn(this.popupRef)&&this.popupRef.popupElement.contains(e),s=this.wrapper.nativeElement.contains(e);return i||s}setTimeSelectorMinMax(t){const e=Nn(t)&&ko(Yo(t),Yo(this.min));this.timeSelectorMin=It(e?this.min:OD);const i=Nn(t)&&ko(Yo(t),Yo(this.max));this.timeSelectorMax=It(i?this.max:Ex)}setCalendarValue(t){const e=Nn(t)&&Ix(t,this.calendarMin,this.calendarMax);this.calendarValue=e?Yo(t):null}detectPopupChanges(){!this.isOpen||this.popupRef.popup.changeDetectorRef.detectChanges()}run(t,e){t?this.ngZone.run(()=>e()):e()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())}};yi.\u0275fac=function(t){return new(t||yi)(g(Oi),g(kn),g(Be),g(rd),g(ce),g($),g($y),g(J),g(Sc),g(Ie))},yi.\u0275cmp=K({type:yi,selectors:[["kendo-datetimepicker"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,xl,5),Ce(i,wl,5),Ce(i,Sl,5),Ce(i,Tl,5),Ce(i,kl,5),Ce(i,Dl,5),Ce(i,Ml,5)),2&t){let s;U(s=W())&&(e.cellTemplate=s.first),U(s=W())&&(e.monthCellTemplate=s.first),U(s=W())&&(e.yearCellTemplate=s.first),U(s=W())&&(e.decadeCellTemplate=s.first),U(s=W())&&(e.centuryCellTemplate=s.first),U(s=W())&&(e.weekNumberTemplate=s.first),U(s=W())&&(e.headerTitleTemplate=s.first)}},viewQuery:function(t,e){if(1&t&&(Ae(dK,7),Ae(SV,7,Gt),Ae(cK,7,ve)),2&t){let i;U(i=W())&&(e.wrapper=i.first),U(i=W())&&(e.container=i.first),U(i=W())&&(e.popupTemplate=i.first)}},hostVars:4,hostBindings:function(t,e){2&t&&he("k-widget",e.hostClasses)("k-datetimepicker",e.hostClasses)},inputs:{twoDigitYearMax:"twoDigitYearMax",focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",cancelButton:"cancelButton",steps:"steps",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",weekNumber:"weekNumber",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",incompleteDateValidation:"incompleteDateValidation",value:"value",format:"format",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",min:"min",max:"max",defaultTab:"defaultTab",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",focusedDate:"focusedDate"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-datetimepicker"],features:[we([rd,J,Sc,{provide:An,useValue:"kendo.datetimepicker"},{provide:es,useExisting:He(()=>$2),multi:!0},{provide:ir,useExisting:He(()=>$2),multi:!0},{provide:Ds,useExisting:He(()=>$2)}]),st],decls:11,vars:35,consts:function(){let n,t,e,i,s,o,r,a,l,c,d,u,h,f;return n=$localize`:kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header␟5bb17f81ae8dbc109499ce3792afffa6b7cef855␟3360129034450596425:Date`,t=$localize`:kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header␟2a400c9e364a4c6d83ac39b5513c962805db54b2␟1810540079817643910:Date tab`,e=$localize`:kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header␟e9b2b760a6916040e7520a9a2926d65de175944d␟3807284594201983607:Time`,i=$localize`:kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header␟13bf7e3a1036140119732c6d5952f7a20c22999e␟2577682127494513393:Time tab`,s=$localize`:kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component␟60296a83f0d3e3d07aaba87c4f8e91b0aca3c22a␟3159207801887264026:Toggle popup`,o=$localize`:kendo.datetimepicker.accept|The Accept button text in the datetimepicker component␟4359b59db7ded88e106ada877e744c71b188f8f9␟3915774704336012538:Set`,r=$localize`:kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component␟cbea4571cca81ad9767a6b29f0287d1f3f6372dc␟4770689705864890748:Set`,a=$localize`:kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component␟17ab795d6f7527dd962a309759ca58cb4edd7e52␟5100781969600382158:Cancel`,l=$localize`:kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component␟ba26795ab9f4c21d66b17549ba854a96fcdac1f9␟3535986227615756275:Cancel`,c=$localize`:kendo.datetimepicker.now|The Now button text in the timepicker component␟7172e7e9a1741f6b63439ec89e498c995cb23b0d␟5497093725885127701:NOW`,d=$localize`:kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component␟52d90641b26b1ce4c011cadf0437ce36c1dac1d5␟5046379108717037514:Select now`,u=$localize`:kendo.datetimepicker.today|The label for the today button in the calendar header␟7ee30b9ae5918cc544fbd87a4135694397aeefaf␟7904626229769721311:TODAY`,h=$localize`:kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar␟447d09c4ecfc2ab2b84d708f4c07fa0fcda85167␟6176055232586065404:Navigate to previous view`,f=$localize`:kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar␟80fd3325bfe94a180fd27391f2245c024472ec58␟6424339255333594510:Navigate to next view`,[["kendoDateTimePickerLocalizedMessages","","dateTab",n,"dateTabLabel",t,"timeTab",e,"timeTabLabel",i,"toggle",s,"accept",o,"acceptLabel",r,"cancel",a,"cancelLabel",l,"now",c,"nowLabel",d,"today",u,"prevButtonTitle",h,"nextButtonTitle",f],[1,"k-picker-wrap"],["wrapper",""],[3,"value","format","twoDigitYearMax","min","max","incompleteDateValidation","formatPlaceholder","placeholder","disabled","readonly","role","ariaReadOnly","steps","tabindex","title","focusableId","hasPopup","isPopupOpen","kendoEventsOutsideAngular","scope","valueChange"],[1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-link","k-link-date"],[1,"k-icon"],["container",""],["popupTemplate",""],[3,"kendoEventsOutsideAngular","scope"],[1,"k-datetime-buttongroup",3,"kendoEventsOutsideAngular","scope"],[1,"k-button-group","k-button-group-stretched"],["type","button",1,"k-button","k-date-tab",3,"kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-time-tab",3,"kendoEventsOutsideAngular"],[1,"k-datetime-selector",3,"kendoEventsOutsideAngular"],["dateTimeSelector",""],[1,"k-datetime-calendar-wrap"],[3,"value","type","min","max","focusedDate","weekNumber","navigation","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","disabled","disabledDates","valueChange"],[3,"today","prevButtonTitle","nextButtonTitle"],[1,"k-datetime-time-wrap"],[3,"value","format","min","max","setButton","cancelButton","steps","disabled"],[3,"now","nowLabel"],[1,"k-datetime-footer","k-action-buttons",3,"kendoEventsOutsideAngular","scope"],["type","button","class","k-button k-time-cancel",3,"kendoEventsOutsideAngular","scope",4,"ngIf"],["type","button",1,"k-time-accept","k-button","k-primary",3,"disabled","kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-time-cancel",3,"kendoEventsOutsideAngular","scope"]]},template:function(t,e){1&t&&(wn(0,0),y(1,"span",1,2),y(3,"kendo-dateinput",3),se("valueChange",function(s){return e.handleInputValueChange(s)}),_(),y(4,"span",4),y(5,"span",5),P(6,"span",6),_(),_(),_(),wn(7,null,7),A(9,RAt,19,81,"ng-template",null,8,Ls)),2&t&&(b(1),he("k-state-disabled",e.disabled),b(2),v("value",e.value)("format",e.format)("twoDigitYearMax",e.twoDigitYearMax)("min",e.min)("max",e.max)("incompleteDateValidation",e.incompleteDateValidation)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("disabled",e.disabled)("readonly",e.readonly||e.readOnlyInput)("role",e.inputRole)("ariaReadOnly",e.readonly)("steps",e.steps)("tabindex",e.tabindex)("title",e.title)("focusableId",e.focusableId)("hasPopup",!0)("isPopupOpen",e.isOpen)("kendoEventsOutsideAngular",Yt(30,RTe,e.handleKeyDown))("scope",e),b(1),v("kendoEventsOutsideAngular",di(32,PAt,e.preventMouseDown,e.handleIconClick))("scope",e),fe("title",e.localization.get("toggle"))("aria-label",e.localization.get("toggle")),b(2),he("k-i-calendar","date"===e.activeTab)("k-i-clock","time"===e.activeTab))},directives:function(){return[pb,Ri,lr,z2,lb,XK,Uy,pt]},encapsulation:2,changeDetection:0}),L([G("class.k-widget"),G("class.k-datetimepicker"),F("design:type",Boolean)],yi.prototype,"hostClasses",void 0),L([at("wrapper",{static:!0}),F("design:type",$)],yi.prototype,"wrapper",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],yi.prototype,"value",null),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],yi.prototype,"format",null),L([p(),F("design:type",Number)],yi.prototype,"twoDigitYearMax",void 0),L([p(),F("design:type",Number),F("design:paramtypes",[Number])],yi.prototype,"tabindex",null),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],yi.prototype,"disabledDates",null),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],yi.prototype,"popupSettings",null),L([p(),F("design:type",String)],yi.prototype,"focusableId",void 0),L([p(),F("design:type",String)],yi.prototype,"title",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"disabled",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"readonly",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"readOnlyInput",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"cancelButton",void 0),L([p(),F("design:type",Object)],yi.prototype,"formatPlaceholder",void 0),L([p(),F("design:type",String)],yi.prototype,"placeholder",void 0),L([p(),F("design:type",Object)],yi.prototype,"steps",void 0),L([p(),F("design:type",Date)],yi.prototype,"focusedDate",void 0),L([p(),F("design:type",String)],yi.prototype,"calendarType",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"animateCalendarNavigation",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"weekNumber",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],yi.prototype,"min",null),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],yi.prototype,"max",null),L([p(),F("design:type",Boolean)],yi.prototype,"rangeValidation",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"disabledDatesValidation",void 0),L([p(),F("design:type",Boolean)],yi.prototype,"incompleteDateValidation",void 0),L([Q(),F("design:type",S)],yi.prototype,"valueChange",void 0),L([Q(),F("design:type",S)],yi.prototype,"open",void 0),L([Q(),F("design:type",S)],yi.prototype,"close",void 0),L([Q("focus"),F("design:type",S)],yi.prototype,"onFocus",void 0),L([Q("blur"),F("design:type",S)],yi.prototype,"onBlur",void 0),L([p(),F("design:type",String),F("design:paramtypes",[String])],yi.prototype,"defaultTab",null),L([ct(xl,{static:!1}),F("design:type",xl)],yi.prototype,"cellTemplate",void 0),L([ct(wl,{static:!1}),F("design:type",wl)],yi.prototype,"monthCellTemplate",void 0),L([ct(Sl,{static:!1}),F("design:type",Sl)],yi.prototype,"yearCellTemplate",void 0),L([ct(Tl,{static:!1}),F("design:type",Tl)],yi.prototype,"decadeCellTemplate",void 0),L([ct(kl,{static:!1}),F("design:type",kl)],yi.prototype,"centuryCellTemplate",void 0),L([ct(Dl,{static:!1}),F("design:type",Dl)],yi.prototype,"weekNumberTemplate",void 0),L([ct(Ml,{static:!1}),F("design:type",Ml)],yi.prototype,"headerTitleTemplate",void 0),L([at("container",{read:Gt,static:!0}),F("design:type",Gt)],yi.prototype,"container",void 0),L([at("popupTemplate",{read:ve,static:!0}),F("design:type",ve)],yi.prototype,"popupTemplate",void 0),yi=$2=L([jh(6,Rn($y)),F("design:paramtypes",[Oi,kn,Be,rd,ce,$,Boolean,J,Sc,Ie])],yi);let GV=(()=>{let n=class{constructor(e){this.intl=e}getWeekNames(e=!1){const i=HTe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(i):i}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})(),jV=(()=>{let n=class{constructor(e,i,s,o,r,a){this.bus=e,this.intl=i,this.weekService=s,this.cdr=o,this.element=r,this.renderer=a,this.activeView=mn.month,this.isActive=!0,this.min=new Date(nf),this.max=new Date(sf),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new S,this.weekNumberCellClick=new S,this.cellEnter=new S,this.cellLeave=new S,this.activeDateChange=new S,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(e){this.showWeekNumbers=e}get getComponentClass(){return!0}get getComponentMonthClass(){return this.activeView===mn.month}get getComponentYearClass(){return this.activeView===mn.year}get getComponentDecadeClass(){return this.activeView===mn.decade}get getComponentCenturyClass(){return this.activeView===mn.century}ngOnChanges(e){if(this.initService(),(0===this.weekNames.length||e.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),!this.service)return;this.views=this.views||2;const i=this.focusedDate,s=this.clampDate(this.service.viewDate(i,this.max,this.views));this.skip=this.service.skip(s,this.min),this.total=this.service.total(this.min,this.max);const o=sb(e,"activeView"),r=this.views>0&&sb(e,"views");(o||!this.isInDates(i)||r||!this.activeDate)&&(this.dates=this.service.datesList(s,this.getTake(this.skip)),this.activeDate=It(this.dates[0]),this.activeDateChange.emit(this.activeDate))}ngAfterViewInit(){1===this.views&&this.setTableMinWidth()}ngOnDestroy(){this.intlSubscription.unsubscribe()}initService(){this.service=this.bus.service(this.activeView)}isMonthView(){return this.activeView===mn.month}getCaptionTitle(e){return this.service.title(e)}getCaptionClass(){return this.isMonthView()?"k-month-header":"k-meta-header"}animateView(e){const i=this.element.nativeElement,s=i.querySelector("table"),o=parseFloat(getComputedStyle(i).width),r=parseFloat(getComputedStyle(s).width);this.renderer.setStyle(i,"width",`${o}px`),this.renderer.setStyle(i,"overflow","visible"),e===ri.NextView?this.nextAnimationDate=It(this.dates[0]):this.prevAnimationDate=It(this.dates[this.dates.length-1]),this.cdr.detectChanges(),i.querySelectorAll("table").forEach(u=>{this.renderer.setStyle(u,"width",`${r}px`),1===this.views&&this.renderer.setStyle(u,"min-width",`${o}px`)});const a=s.getBoundingClientRect(),l=parseFloat(getComputedStyle(i).columnGap),c=e===ri.NextView?"translateX(0)":`translateX(-${a.width+l}px)`,d=e===ri.NextView?`translateX(-${a.width+l}px)`:"translateX(0)";this.animation?this.animation.cancel():(this.animation=i.animate([{transform:c},{transform:d}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=()=>{this.renderer.removeStyle(i,"width"),this.renderer.removeStyle(i,"overflow"),i.querySelectorAll("table").forEach(u=>{this.renderer.removeStyle(u,"width")}),this.animation=null,this.nextAnimationDate=null,this.prevAnimationDate=null,this.cdr.detectChanges()})}navigate(e){this.animateNavigation&&Ft()&&Nn(this.element.nativeElement.animate)&&this.animateView(e);const i=this.move(e),s=this.service.datesList(i,this.getTake(this.skip));return this.isListInRange(s)&&(this.dates=s),this.activeDate=It(this.dates[0]),this.focusedDate=It(i),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),It(i)}canNavigate(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))}setTableMinWidth(){const e=this.element.nativeElement,i=e.querySelector("table");if(i){const s=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(i,"min-width",`${s}px`)}}intlChange(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()}clampDate(e){return Gg(e,this.min,this.max)}move(e){return this.service.move(this.dates[0]||this.focusedDate,e)}isListInRange(e){const i=this.service.beginningOfPeriod(this.min),s=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return i<=e[0]&&e[e.length-1]null,lke="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",bOt={multi:!0,provide:es,useExisting:He(()=>$g)},COt={multi:!0,provide:ir,useExisting:He(()=>$g)};let $g=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c){this.bus=e,this.element=i,this.navigator=s,this.renderer=o,this.cdr=r,this.zone=a,this.disabledDatesService=l,this.selectionService=c,this.id=cs(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=mn[mn.month],this.bottomView=mn[mn.month],this.topView=mn[mn.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new S,this.cellEnter=new S,this.cellLeave=new S,this.valueChange=new S,this.cellUID=cs(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=ri.PrevView,this.nextView=ri.NextView,this.selectedDates=[],this._min=new Date(nf),this._max=new Date(sf),this._focusedDate=rf(),this.resolvedPromise=Promise.resolve(),this.onControlChange=ei,this.onControlTouched=ei,this.onValidatorChange=ei,this.minValidateFn=ei,this.maxValidateFn=ei,this.disabledDatesRangeValidateFn=ei,this.subscriptions=new Je(()=>{}),this.setClasses(i.nativeElement)}set focusedDate(e){this._focusedDate=e||rf()}get focusedDate(){return this._focusedDate}set min(e){this._min=e||new Date(nf)}get min(){return this._min}set max(e){this._max=e||new Date(sf)}get max(){return this._max}get value(){return this._value}set value(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(s=>Nn(s)).map(s=>It(s)):It(e);const i=[].concat(e).filter(s=>Nn(s)).map(s=>It(s));if(!OV(i,this.selectedDates)){const s=ob(i);this.rangePivot=It(s),this.focusedDate=It(s)||this.focusedDate,this.selectedDates=i}}set tabIndex(e){this.tabindex=e}get tabIndex(){return this.tabindex}set disabledDates(e){this.disabledDatesService.initialize(e)}set selectionRange(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()}get selectionRange(){return this._selectionRange}set cellTemplateRef(e){this.cellTemplate=e}set monthCellTemplateRef(e){this.monthCellTemplate=e}set yearCellTemplateRef(e){this.yearCellTemplate=e}set decadeCellTemplateRef(e){this.decadeCellTemplate=e}set centuryCellTemplateRef(e){this.centuryCellTemplate=e}set weekNumberTemplateRef(e){this.weekNumberTemplate=e}set headerTitleTemplateRef(e){this.headerTitleTemplate=e}get activeViewEnum(){const e=mn[this.activeView];return e{this.activeView=mn[e],this.activeViewChange.emit(this.activeView),this.cdr.detectChanges(),this.updateButtonState()}))}ngOnChanges(e){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),GTe(e,"focusedDate")&&(this.focusedDate=Gg(e.focusedDate.currentValue,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?B2(this.min):ei,this.maxValidateFn=this.rangeValidation?V2(this.max):ei,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?(n=>Nn(n)?t=>{if(!(Nn(t)&&Nn(t.start)&&Nn(t.end))||t.start>t.end)return null;const i=((n,t,e)=>{if(!(n&&t&&e)||n>t)return[];const i=[];let s=n;for(;s<=t;)e(s)&&i.push(s),s=Au(s,1);return i})(t.start,t.end,n);return i.length?{disabledDatesInRange:i}:null}:fOt)(this.disabledDatesService.isDateDisabled):ei,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()}ngOnDestroy(){this.subscriptions.unsubscribe()}ngAfterViewInit(){this.updateButtonState()}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}handleDateChange(e){const i=this.bus.canMoveDown(this.activeViewEnum),s=e.selectedDates.filter(r=>!this.disabledDatesService.isDateDisabled(r));this.focusedDate=e.focusedDate||this.focusedDate;const o=!i&&OV(s,this.selectedDates);if(!this.disabled&&!o){if(i)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=s.map(r=>It(r)),this.value=this.parseSelectionToValue(s),this.onControlChange(this.parseSelectionToValue(s)),this.valueChange.emit(this.parseSelectionToValue(s)))}}setActiveDate(e){this.activeDate=It(e),this.cdr.detectChanges()}writeValue(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onControlChange=e}registerOnTouched(e){this.onControlTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}validate(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)}registerOnValidatorChange(e){this.onValidatorChange=e}activeCellTemplate(){switch(this.activeViewEnum){case mn.month:return this.monthCellTemplate||this.cellTemplate;case mn.year:return this.yearCellTemplate;case mn.decade:return this.decadeCellTemplate;case mn.century:return this.centuryCellTemplate;default:return null}}navigate(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState()}emitCellEvent(e,i){Kt(e)&&this.zone.run(()=>{e.emit(i)})}handleCellClick({date:e,modifiers:i}){this.performSelection(e,i)}handleWeekNumberClick(e){"single"!==this.selection&&this.zone.run(()=>{this.handleDateChange({selectedDates:e,focusedDate:ob(e)})})}setClasses(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")}verifyChanges(){if(En()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and 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 http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(e){if(En()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${lke} for possible resolution.`);if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(s=>s instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${lke} for possible resolution.`)}}updateButtonState(){this.resolvedPromise.then(()=>{this.isPrevDisabled=!this.viewList.canNavigate(this.prevView),this.isNextDisabled=!this.viewList.canNavigate(this.nextView),this.cdr.markForCheck()})}parseSelectionToValue(e){return e=e||[],"single"===this.selection?It(ob(e)):e.map(i=>It(i))}performSelection(e,i){const s=this.selectionService.performSelection({date:e,modifiers:i,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=s.rangePivot,this.handleDateChange({selectedDates:s.selectedDates,focusedDate:e})}};return n.\u0275fac=function(e){return new(e||n)(g(Fa),g($),g(Ax),g(Ie),g(Be),g(ce),g(Sc),g(PD))},n.\u0275cmp=K({type:n,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,xl,7),Ce(s,wl,7),Ce(s,Sl,7),Ce(s,Tl,7),Ce(s,kl,7),Ce(s,Dl,7),Ce(s,Ml,7)),2&e){let o;U(o=W())&&(i.cellTemplate=o.first),U(o=W())&&(i.monthCellTemplate=o.first),U(o=W())&&(i.yearCellTemplate=o.first),U(o=W())&&(i.decadeCellTemplate=o.first),U(o=W())&&(i.centuryCellTemplate=o.first),U(o=W())&&(i.weekNumberTemplate=o.first),U(o=W())&&(i.headerTitleTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&Ae(jV,5),2&e){let s;U(s=W())&&(i.viewList=s.first)}},hostVars:7,hostBindings:function(e,i){1&e&&se("blur",function(){return i.handleBlur()})("focus",function(){return i.handleFocus()})("mouseenter",function(){return i.handleMouseEnter()})("mouseleave",function(){return i.handleMouseLeave()})("mousedown",function(o){return i.handleMousedown(o)})("click",function(){return i.handleClick()})("keydown",function(o){return i.keydown(o)}),2&e&&(fe("id",i.widgetId)("role",i.widgetRole)("tabindex",i.calendarTabIndex)("aria-disabled",i.ariaDisabled)("aria-activedescendant",i.ariaActivedescendant),he("k-state-disabled",i.ariaDisabled))},inputs:{id:"id",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",disabled:"disabled",tabindex:"tabindex",isActive:"isActive",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",views:"views",focusedDate:"focusedDate",min:"min",max:"max",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",selectionRange:"selectionRange",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],activeRangeEnd:"activeRangeEnd"},outputs:{activeViewChange:"activeViewChange",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange"},exportAs:["kendo-multiviewcalendar"],features:[we([Fa,bOt,COt,J,Sc,{provide:An,useValue:"kendo.multiviewcalendar"},Ax,PD]),st],decls:3,vars:24,consts:function(){let t,e,i;return t=$localize`:kendo.multiviewcalendar.today|The label for the today button in the calendar header␟063d99483243b27bc8282abfb5f2c76877e1112e␟3892034896682737327:TODAY`,e=$localize`:kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar␟e783e2af4828224b846fa92148ea1cc52b21bb13␟9101635325676663492:Navigate to previous view`,i=$localize`:kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar␟3e3a529a242f39d22f841c3bd8045ec75b696b7a␟3994336778698343633:Navigate to next view`,[["kendoMultiViewCalendarLocalizedMessages","","today",t,"prevButtonTitle",e,"nextButtonTitle",i],[3,"activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"activeView","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","valueChange","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]]},template:function(e,i){if(1&e&&(wn(0,0),y(1,"kendo-calendar-header",1),se("todayButtonClick",function(o){return i.handleDateChange({selectedDates:[o],focusedDate:o})})("prevButtonClick",function(){return i.navigate(i.prevView)})("nextButtonClick",function(){return i.navigate(i.nextView)}),_(),y(2,"kendo-calendar-horizontal",2),se("valueChange",function(o){return i.handleDateChange(o)})("cellClick",function(o){return i.handleCellClick(o)})("weekNumberCellClick",function(o){return i.handleWeekNumberClick(o)})("cellEnter",function(o){return i.emitCellEvent(i.cellEnter,o)})("cellLeave",function(o){return i.emitCellEvent(i.cellLeave,o)})("activeDateChange",function(o){return i.setActiveDate(o)}),_()),2&e){let s;b(1),v("activeView",i.activeViewEnum)("currentDate",i.activeDate)("min",i.min)("max",i.max)("rangeLength",i.views)("templateRef",null==i.headerTitleTemplate?null:i.headerTitleTemplate.templateRef)("isPrevDisabled",i.isPrevDisabled)("isNextDisabled",i.isNextDisabled)("showNavigationButtons",!0),b(1),v("activeView",i.activeViewEnum)("isActive",i.isActive||i.isHovered)("cellTemplateRef",null==(s=i.activeCellTemplate())?null:s.templateRef)("weekNumberTemplateRef",null==i.weekNumberTemplate?null:i.weekNumberTemplate.templateRef)("cellUID",i.cellUID)("views",i.views)("min",i.min)("max",i.max)("focusedDate",i.focusedDate)("animateNavigation",i.animateNavigation)("showViewHeader",i.showViewHeader)("weekNumber",i.weekNumber)("activeRangeEnd",i.activeRangeEnd)("selectionRange",i.selectionRange)("selectedDates",i.selectedDates)}},directives:function(){return[Fx,uke,jV]},encapsulation:2,changeDetection:0}),L([p(),F("design:type",String)],n.prototype,"id",void 0),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],n.prototype,"focusedDate",null),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],n.prototype,"min",null),L([p(),F("design:type",Date),F("design:paramtypes",[Date])],n.prototype,"max",null),L([p(),F("design:type",Boolean)],n.prototype,"rangeValidation",void 0),L([p(),F("design:type",Boolean)],n.prototype,"disabledDatesRangeValidation",void 0),L([p(),F("design:type",String)],n.prototype,"selection",void 0),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],n.prototype,"value",null),L([p(),F("design:type",Boolean)],n.prototype,"disabled",void 0),L([p(),F("design:type",Number)],n.prototype,"tabindex",void 0),L([p(),F("design:type",Number),F("design:paramtypes",[Number])],n.prototype,"tabIndex",null),L([p(),F("design:type",Boolean)],n.prototype,"isActive",void 0),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],n.prototype,"disabledDates",null),L([p(),F("design:type",String)],n.prototype,"activeView",void 0),L([p(),F("design:type",String)],n.prototype,"bottomView",void 0),L([p(),F("design:type",String)],n.prototype,"topView",void 0),L([p(),F("design:type",Boolean)],n.prototype,"showViewHeader",void 0),L([p(),F("design:type",Boolean)],n.prototype,"animateNavigation",void 0),L([p(),F("design:type",Boolean)],n.prototype,"weekNumber",void 0),L([p(),F("design:type",String)],n.prototype,"activeRangeEnd",void 0),L([p(),F("design:type",Object),F("design:paramtypes",[Object])],n.prototype,"selectionRange",null),L([p(),F("design:type",Number)],n.prototype,"views",void 0),L([Q(),F("design:type",S)],n.prototype,"activeViewChange",void 0),L([Q(),F("design:type",S)],n.prototype,"cellEnter",void 0),L([Q(),F("design:type",S)],n.prototype,"cellLeave",void 0),L([Q(),F("design:type",S)],n.prototype,"valueChange",void 0),L([ct(xl,{static:!0}),F("design:type",xl)],n.prototype,"cellTemplate",void 0),L([p("cellTemplate"),F("design:type",xl),F("design:paramtypes",[xl])],n.prototype,"cellTemplateRef",null),L([ct(wl,{static:!0}),F("design:type",wl)],n.prototype,"monthCellTemplate",void 0),L([p("monthCellTemplate"),F("design:type",wl),F("design:paramtypes",[wl])],n.prototype,"monthCellTemplateRef",null),L([ct(Sl,{static:!0}),F("design:type",Sl)],n.prototype,"yearCellTemplate",void 0),L([p("yearCellTemplate"),F("design:type",Sl),F("design:paramtypes",[Sl])],n.prototype,"yearCellTemplateRef",null),L([ct(Tl,{static:!0}),F("design:type",Tl)],n.prototype,"decadeCellTemplate",void 0),L([p("decadeCellTemplate"),F("design:type",Tl),F("design:paramtypes",[Tl])],n.prototype,"decadeCellTemplateRef",null),L([ct(kl,{static:!0}),F("design:type",kl)],n.prototype,"centuryCellTemplate",void 0),L([p("centuryCellTemplate"),F("design:type",kl),F("design:paramtypes",[kl])],n.prototype,"centuryCellTemplateRef",null),L([ct(Dl,{static:!0}),F("design:type",Dl)],n.prototype,"weekNumberTemplate",void 0),L([p("weekNumberTemplate"),F("design:type",Dl),F("design:paramtypes",[Dl])],n.prototype,"weekNumberTemplateRef",null),L([ct(Ml,{static:!0}),F("design:type",Ml)],n.prototype,"headerTitleTemplate",void 0),L([p("headerTitleTemplate"),F("design:type",Ml),F("design:paramtypes",[Ml])],n.prototype,"headerTitleTemplateRef",null),L([at(jV,{static:!1}),F("design:type",jV)],n.prototype,"viewList",void 0),L([G("attr.id"),F("design:type",String),F("design:paramtypes",[])],n.prototype,"widgetId",null),L([G("attr.role"),F("design:type",String),F("design:paramtypes",[])],n.prototype,"widgetRole",null),L([G("attr.tabindex"),F("design:type",Number),F("design:paramtypes",[])],n.prototype,"calendarTabIndex",null),L([G("attr.aria-disabled"),G("class.k-state-disabled"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"ariaDisabled",null),L([G("attr.aria-activedescendant"),F("design:type",String),F("design:paramtypes",[])],n.prototype,"ariaActivedescendant",null),L([Zn("blur"),F("design:type",Function),F("design:paramtypes",[]),F("design:returntype",void 0)],n.prototype,"handleBlur",null),L([Zn("focus"),F("design:type",Function),F("design:paramtypes",[]),F("design:returntype",void 0)],n.prototype,"handleFocus",null),L([Zn("mouseenter"),F("design:type",Function),F("design:paramtypes",[]),F("design:returntype",void 0)],n.prototype,"handleMouseEnter",null),L([Zn("mouseleave"),F("design:type",Function),F("design:paramtypes",[]),F("design:returntype",void 0)],n.prototype,"handleMouseLeave",null),L([Zn("mousedown",["$event"]),F("design:type",Function),F("design:paramtypes",[Object]),F("design:returntype",void 0)],n.prototype,"handleMousedown",null),L([Zn("click"),F("design:type",Function),F("design:paramtypes",[]),F("design:returntype",void 0)],n.prototype,"handleClick",null),L([Zn("keydown",["$event"]),F("design:type",Function),F("design:paramtypes",[Object]),F("design:returntype",void 0)],n.prototype,"keydown",null),n=L([F("design:paramtypes",[Fa,$,Ax,Ie,Be,ce,Sc,PD])],n),n})();class kOt{constructor(t,e,i,s){this.$implicit=t,this.kForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let WV=(()=>{let n=class{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._differ=null}set kForTemplate(e){e&&(this._template=e)}ngOnChanges(e){if("kForOf"in e){const i=e.kForOf.currentValue;if(this._differ||!i)return;try{this._differ=this._differs.find(i).create(this.kForTrackBy)}catch(s){throw new Error(`Cannot find a differ supporting object '${i}' of type '${function(n){return n.name||typeof n}(i)}'.`)}}}ngDoCheck(){if(this._differ){const e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}}_applyChanges(e){if(!Ft())return;const i=this._viewContainer.length,s=this.kForOf.length,o={};e.forEachOperation((r,a,l)=>{null!==l&&(o[l]=r.item)});for(let r=i;rs;r--)this._viewContainer.remove(r-1);for(let r=0;r{let n=class{constructor(e,i,s,o,r){this.bus=e,this.cdr=i,this.localization=s,this.intl=o,this.disabledDatesService=r,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(nf),this.max=new Date(sf),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new S,this.prevButtonClick=new S,this.nextButtonClick=new S,this.subscriptions=new Je}get getComponentClass(){return!0}ngOnInit(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))).add(this.localization.changes.subscribe(this.l10nChange.bind(this))).add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))}ngOnChanges(e){!this.bus.service(this.activeView)||(this.activeViewValue=mn[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())}ngOnDestroy(){this.subscriptions.unsubscribe()}handleTodayClick(){!this.todayAvailable||(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(Gg(rf(),this.min,this.max)))}handleNavigation(){!this.navigate||this.bus.moveUp(this.activeView)}intlChange(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())}l10nChange(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()}getTitle(){if(!this.currentDate)return"";const e=this.bus.service(this.activeView),i=this.rangeLength-1,s=e.title(this.currentDate),o=e.addToDate(this.currentDate,i);return i<1||!e.isInRange(o,this.min,this.max)?s:`${s} - ${e.title(o)}`}setTodayAvailability(){const e=rf(),i=Ix(e,Yo(this.min),Yo(this.max)),s=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=i&&!s,this.cdr.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(Fa),g(Be),g(J),g(kn),g(Sc))},n.\u0275cmp=K({type:n,selectors:[["kendo-calendar-header"]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-calendar-header",i.getComponentClass)},inputs:{min:"min",max:"max",rangeLength:"rangeLength",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",activeView:"activeView",currentDate:"currentDate",templateRef:"templateRef"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},features:[st],decls:8,vars:23,consts:[[1,"k-button","k-title","k-calendar-title",3,"kendoEventsOutsideAngular","scope"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-calendar-nav"],["class","k-button k-button-icon k-prev-view","type","button",3,"disabled","title","click",4,"ngIf"],[1,"k-today",3,"kendoEventsOutsideAngular","scope"],["class","k-button k-button-icon k-next-view","type","button",3,"disabled","title","click",4,"ngIf"],["type","button",1,"k-button","k-button-icon","k-prev-view",3,"disabled","title","click"],[1,"k-icon","k-i-arrow-60-left"],["type","button",1,"k-button","k-button-icon","k-next-view",3,"disabled","title","click"],[1,"k-icon","k-i-arrow-60-right"]],template:function(e,i){1&e&&(y(0,"span",0),A(1,KAt,1,1,"ng-template",1),A(2,ZAt,0,0,"ng-template",2),_(),y(3,"span",3),A(4,QAt,2,3,"button",4),y(5,"span",5),H(6),_(),A(7,JAt,2,3,"button",6),_()),2&e&&(he("k-state-disabled",!i.navigate),v("kendoEventsOutsideAngular",Yt(15,ib,i.handleNavigation))("scope",i),b(1),v("ngIf",!i.templateRef),b(1),v("ngIf",i.templateRef)("ngTemplateOutlet",i.templateRef)("ngTemplateOutletContext",pc(17,OTe,i.title,i.activeViewValue,i.currentDate)),b(2),v("ngIf",i.showNavigationButtons),b(1),he("k-state-disabled",!i.todayAvailable),v("kendoEventsOutsideAngular",Yt(21,ib,i.handleTodayClick))("scope",i),b(1),_t(" ",i.todayMessage," "),b(1),v("ngIf",i.showNavigationButtons))},directives:[lr,pt,zs],encapsulation:2}),L([p(),F("design:type",Number)],n.prototype,"activeView",void 0),L([p(),F("design:type",Date)],n.prototype,"currentDate",void 0),L([p(),F("design:type",Date)],n.prototype,"min",void 0),L([p(),F("design:type",Date)],n.prototype,"max",void 0),L([p(),F("design:type",Number)],n.prototype,"rangeLength",void 0),L([p(),F("design:type",ve)],n.prototype,"templateRef",void 0),L([p(),F("design:type",Boolean)],n.prototype,"isPrevDisabled",void 0),L([p(),F("design:type",Boolean)],n.prototype,"isNextDisabled",void 0),L([p(),F("design:type",Boolean)],n.prototype,"showNavigationButtons",void 0),L([Q(),F("design:type",S)],n.prototype,"todayButtonClick",void 0),L([Q(),F("design:type",S)],n.prototype,"prevButtonClick",void 0),L([Q(),F("design:type",S)],n.prototype,"nextButtonClick",void 0),L([G("class.k-calendar-header"),F("design:type",Boolean),F("design:paramtypes",[])],n.prototype,"getComponentClass",null),n=L([F("design:paramtypes",[Fa,Be,J,kn,Sc])],n),n})(),hke=(()=>{let n=class{constructor(e,i,s,o,r,a,l){this.bus=e,this.intl=i,this.cdr=s,this.element=o,this.zone=r,this.renderer=a,this.disabledDatesService=l,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new S,this.weekNumberCellClick=new S,this.cellEnter=new S,this.cellLeave=new S,this.colSpan=0,this.subscriptions=new Je,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}get weekNumber(){return this.showWeekNumbers&&this.activeView===mn.month}set weekNumber(e){this.showWeekNumbers=e}ngOnInit(){this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(e){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber,direction:this.direction}),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView&&(this.currentCellIndex=null))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domEvents.forEach(e=>e())}isHorizontal(){return"horizontal"===this.direction}isMonthView(){return this.activeView===mn.month}shouldRenderCellContent(e){return Nn(e)&&!(!this.isHorizontal()&&e.isOtherMonth)}firstDate(e){const i=this.firstWeekDateContext(e);return i?i.value:null}getWeekNumber(e){return this.weekNumber?ITe(e,this.intl.firstDay()):null}getWeekNumberContext(e){const i=this.firstWeekDateContext(e);if(!this.weekNumber||!i)return null;const s=ITe(i.value,this.intl.firstDay()).toString();return{formattedValue:s,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:s,value:It(i.value)}}getStyles(e){const{isRangeEnd:i,isRangeStart:s}=e;return(n=>Object.keys(n).reduce((e,i)=>n[i]?e.concat(i):e,[]).join(" "))({"k-range-end":!e.isOtherMonth&&i,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&s,"k-state-active":"start"===this.activeRangeEnd&&s||"end"===this.activeRangeEnd&&i,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||s||i),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-state-disabled":e.isDisabled,"k-other-month":e.isOtherMonth})}tableCellIndex(e,i){return`${e}:${i}`}handleWeekNumberClick(e){const i=e.map(s=>s.value).filter(s=>!this.disabledDatesService.isDateDisabled(s));this.weekNumberCellClick.emit(i)}firstWeekDateContext(e){if(!this.weekNumber)return null;let i=0,s=this.shouldRenderCellContent(e[i])?e[i]:null;for(;!s&&ii.hasAttribute("data-cell-index"),this.element.nativeElement)}emitCellLeave(){const e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null}cellByIndex(e){const[i,s]=e.split(":");return this.data[i][s]}};return n.\u0275fac=function(e){return new(e||n)(g(Fa),g(kn),g(Be),g($),g(ce),g(Ie),g(Sc))},n.\u0275cmp=K({type:n,selectors:[["","kendoCalendarView",""]],inputs:{direction:"direction",isActive:"isActive",selectedDates:"selectedDates",weekNumber:"weekNumber",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave"},features:[st],attrs:e2t,decls:4,vars:2,consts:[["emptyCell",""],["class","k-calendar-tr","role","row",4,"ngIf"],["class","k-calendar-tr","role","row",4,"kFor","kForOf"],[1,"k-empty","k-calendar-td"],["role","row",1,"k-calendar-tr"],["scope","col",1,"k-calendar-th",3,"colSpan"],[3,"ngIf"],[4,"kFor","kForOf"],["class","k-alt k-calendar-td",3,"kendoEventsOutsideAngular",4,"ngIf","ngIfElse"],[1,"k-alt","k-calendar-td",3,"kendoEventsOutsideAngular"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["class","k-calendar-td","role","gridcell",3,"ngClass","title",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-calendar-td",3,"ngClass","title"],[1,"k-link"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(A(0,t2t,2,0,"ng-template",null,0,Ls),A(2,n2t,3,2,"tr",1),A(3,h2t,3,2,"tr",2)),2&e&&(b(2),v("ngIf",!i.isHorizontal()),b(1),v("kForOf",i.data))},directives:[pt,WV,lr,zs,Un],encapsulation:2}),L([p(),F("design:type",String)],n.prototype,"direction",void 0),L([p(),F("design:type",Boolean)],n.prototype,"isActive",void 0),L([p(),F("design:type",Number)],n.prototype,"activeView",void 0),L([p(),F("design:type",String)],n.prototype,"cellUID",void 0),L([p(),F("design:type",Date)],n.prototype,"focusedDate",void 0),L([p(),F("design:type",Date)],n.prototype,"viewDate",void 0),L([p(),F("design:type",String)],n.prototype,"activeRangeEnd",void 0),L([p(),F("design:type",Object)],n.prototype,"selectionRange",void 0),L([p(),F("design:type",Date)],n.prototype,"min",void 0),L([p(),F("design:type",Date)],n.prototype,"max",void 0),L([p(),F("design:type",Array)],n.prototype,"selectedDates",void 0),L([p(),F("design:type",Boolean),F("design:paramtypes",[Boolean])],n.prototype,"weekNumber",null),L([p(),F("design:type",Number)],n.prototype,"viewIndex",void 0),L([p(),F("design:type",ve)],n.prototype,"templateRef",void 0),L([p(),F("design:type",ve)],n.prototype,"weekNumberTemplateRef",void 0),L([Q(),F("design:type",S)],n.prototype,"cellClick",void 0),L([Q(),F("design:type",S)],n.prototype,"weekNumberCellClick",void 0),L([Q(),F("design:type",S)],n.prototype,"cellEnter",void 0),L([Q(),F("design:type",S)],n.prototype,"cellLeave",void 0),n=L([F("design:paramtypes",[Fa,kn,Be,$,ce,Ie,Sc])],n),n})(),qV=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,ha]]}),n})(),ab=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),XV=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[N]}),L([p(),F("design:type",String)],n.prototype,"today",void 0),L([p(),F("design:type",String)],n.prototype,"prevButtonTitle",void 0),L([p(),F("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var OK;let Fx=OK=class extends XV{constructor(t){super(),this.service=t}};var RK;Fx.\u0275fac=function(t){return new(t||Fx)(g(J))},Fx.\u0275dir=R({type:Fx,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[we([{provide:XV,useExisting:He(()=>OK)}]),N]}),Fx=OK=L([F("design:paramtypes",[J])],Fx);let Ox=RK=class extends XV{constructor(t){super(),this.service=t}get override(){return!0}};Ox.\u0275fac=function(t){return new(t||Ox)(g(J))},Ox.\u0275cmp=K({type:Ox,selectors:[["kendo-multiviewcalendar-messages"]],features:[we([{provide:XV,useExisting:He(()=>RK)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Ox=RK=L([F("design:paramtypes",[J])],Ox);let YV=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[Ax,yK,_K,bK,CK,GV],imports:[[Ut,qV,mD,ab,ql],qV,ab]}),n})(),KV=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[N]}),L([p(),F("design:type",String)],n.prototype,"today",void 0),L([p(),F("design:type",String)],n.prototype,"prevButtonTitle",void 0),L([p(),F("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var PK;let Rx=PK=class extends KV{constructor(t){super(),this.service=t}};var LK;Rx.\u0275fac=function(t){return new(t||Rx)(g(J))},Rx.\u0275dir=R({type:Rx,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[we([{provide:KV,useExisting:He(()=>PK)}]),N]}),Rx=PK=L([F("design:paramtypes",[J])],Rx);let lb=LK=class extends KV{constructor(t){super(),this.service=t}get override(){return!0}};lb.\u0275fac=function(t){return new(t||lb)(g(J))},lb.\u0275cmp=K({type:lb,selectors:[["kendo-calendar-messages"]],features:[we([{provide:KV,useExisting:He(()=>LK)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),lb=LK=L([F("design:paramtypes",[J])],lb);let pke=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut]]}),n})(),ZV=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[jy,yK,_K,bK,CK,GV],imports:[[Ut,qV,YV,mD,ab,pke,ha,Du],qV,ab]}),n})(),QV=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{decrement:"decrement",increment:"increment"},features:[N]}),L([p(),F("design:type",String)],n.prototype,"decrement",void 0),L([p(),F("design:type",String)],n.prototype,"increment",void 0),n})();var NK;let Px=NK=class extends QV{constructor(t){super(),this.service=t}};var BK;Px.\u0275fac=function(t){return new(t||Px)(g(J))},Px.\u0275dir=R({type:Px,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[we([{provide:QV,useExisting:He(()=>NK)}]),N]}),Px=NK=L([F("design:paramtypes",[J])],Px);let ND=BK=class extends QV{constructor(t){super(),this.service=t}get override(){return!0}};ND.\u0275fac=function(t){return new(t||ND)(g(J))},ND.\u0275cmp=K({type:ND,selectors:[["kendo-dateinput-messages"]],features:[we([{provide:QV,useExisting:He(()=>BK)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),ND=BK=L([F("design:paramtypes",[J])],ND);let BD=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,mD,ha]]}),n})(),JV=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[N]}),L([p(),F("design:type",String)],n.prototype,"today",void 0),L([p(),F("design:type",String)],n.prototype,"toggle",void 0),L([p(),F("design:type",String)],n.prototype,"prevButtonTitle",void 0),L([p(),F("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var VK;let Lx=VK=class extends JV{constructor(t){super(),this.service=t}};var zK;Lx.\u0275fac=function(t){return new(t||Lx)(g(J))},Lx.\u0275dir=R({type:Lx,selectors:[["","kendoDatePickerLocalizedMessages",""]],features:[we([{provide:JV,useExisting:He(()=>VK)}]),N]}),Lx=VK=L([F("design:paramtypes",[J])],Lx);let cb=zK=class extends JV{constructor(t){super(),this.service=t}get override(){return!0}};cb.\u0275fac=function(t){return new(t||cb)(g(J))},cb.\u0275cmp=K({type:cb,selectors:[["kendo-datepicker-messages"]],features:[we([{provide:JV,useExisting:He(()=>zK)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),cb=zK=L([F("design:paramtypes",[J])],cb);const MOt=a2;let U2=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[{provide:$y,useValue:MOt}],imports:[[Ut,BD,ZV,mD,ql,ab,ha],ab]}),n})();const HK=Uh("div"),IOt=Uh("ul"),AOt=Uh("li"),POt=Ft()?HK([HK([HK([IOt([AOt("02","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null;let W2=(()=>{let n=class{ensureHeights(){void 0===this.timeListHeight&&this.calculateHeights()}calculateHeights(e){if(!Ft())return;const s=e&&e.querySelector(".k-time-list-container")||document.body,o=s.appendChild(POt);this.timeListHeight=o.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=o.querySelector("li").getBoundingClientRect().height,s.removeChild(o)}isActive(e){return!(!Ft()||!e)&&(e.nativeElement||e)===document.activeElement}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const mke=t=>t%24,yke=(n,t)=>mke(24+n-t),_ke=n=>(t,e)=>e&&Yo(t).getTime()!==Yo(e).getTime()?kV(t,n):t,NOt=_ke(0),BOt=_ke(23);let vke=(()=>{let n=class{constructor(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}apply(e,i){return kV(e,i.getHours())}configure(e){const{boundRange:i=this.boundRange,insertUndividedMax:s=this.insertUndividedMax,min:o=this.min,max:r=this.max,part:a,step:l=this.step}=e;this.boundRange=i,this.insertUndividedMax=s,this.toListItem=c=>{const d=kV(zg,c);return{text:this.intl.formatDate(d,a.pattern),value:d}},this.min=o,this.max=r,this.step=l}data(e){const[i]=this.range(e),s=((n,t)=>e=>mke(n+e*t))(i,this.step),r=wc(0,this.countFromMin(e)).map(a=>this.toListItem(s(a)));return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!ko(this.min,e)||!ko(this.max,i)}limitRange(e,i,s){return this.boundRange?[NOt(e,s),BOt(i,s)]:[e,i]}total(e){const i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,s=this.isMissing(e)?1:0;return this.countFromMin(e)+s+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastHour(i))),e}addMissing(e,i){if(this.valueInList(i))return e;const s=this.toListItem(i.getHours());return e.splice(this.selectedIndex(i),0,s),e}countFromMin(e){const[i,s]=this.range(e);return Math.floor(yke(s,i)/this.step)+1}isMissing(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)}isLastMissing(e){return this.isMissing(kV(this.max,this.lastHour(e)))}divideByStep(e){return yke(e.getHours(),this.min.getHours())/this.step}lastHour(e){return this.range(e)[1]}range(e){const[i,s]=this.limitRange(this.min,this.max,e);return[i.getHours(),s.getHours()]}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})();const bke=t=>t%60,Cke=(n,t)=>bke(60+n-t),xke=n=>(t,e)=>e&&t.getHours()!==e.getHours()?DV(t,n):t,zOt=xke(0),HOt=xke(59);let wke=(()=>{let n=class{constructor(e){this.intl=e,this.insertUndividedMax=!1}apply(e,i){return DV(e,i.getMinutes())}configure(e){const{insertUndividedMax:i=this.insertUndividedMax,min:s=this.min,max:o=this.max,part:r,step:a=this.step}=e;this.insertUndividedMax=i,this.toListItem=l=>{const c=DV(zg,l);return{text:this.intl.formatDate(c,r.pattern),value:c}},this.min=s,this.max=o,this.step=a}data(e){const[i]=this.range(e),s=((n,t)=>e=>bke(n+e*t))(i,this.step),r=wc(0,this.countFromMin(e)).map(a=>this.toListItem(s(a)));return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!ko(this.min,e)||!ko(this.max,i)}limitRange(e,i,s){return[zOt(e,s),HOt(i,s)]}total(e){const i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,s=this.isMissing(e)?1:0;return this.countFromMin(e)+s+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastMinute(i))),e}addMissing(e,i){if(this.valueInList(i))return e;const s=this.toListItem(i.getMinutes());return e.splice(this.selectedIndex(i),0,s),e}countFromMin(e){const[i,s]=this.range(e);return Math.floor(Cke(s,i)/this.step)+1}isMissing(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)}isLastMissing(e){return this.isMissing(DV(this.max,this.lastMinute(e)))}divideByStep(e){return Cke(e.getMinutes(),this.min.getMinutes())/this.step}lastMinute(e){return this.range(e)[1]}range(e){const[i,s]=this.limitRange(this.min,this.max,e);return[i.getMinutes(),s.getMinutes()]}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})();const Ske=t=>t%60,Tke=(n,t)=>Ske(60+n-t),kke=n=>(t,e)=>!e||t.getHours()===e.getHours()&&t.getMinutes()===e.getMinutes()?t:MV(t,n),jOt=kke(0),$Ot=kke(59);let Dke=(()=>{let n=class{constructor(e){this.intl=e,this.insertUndividedMax=!1}apply(e,i){return MV(e,i.getSeconds())}configure(e){const{insertUndividedMax:i=this.insertUndividedMax,min:s=this.min,max:o=this.max,part:r,step:a=this.step}=e;this.insertUndividedMax=i,this.toListItem=l=>{const c=MV(zg,l);return{text:this.intl.formatDate(c,r.pattern),value:c}},this.min=s,this.max=o,this.step=a}data(e){const[i]=this.range(e),s=((n,t)=>e=>Ske(n+e*t))(i,this.step),r=wc(0,this.countFromMin(e)).map(a=>this.toListItem(s(a)));return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!ko(this.min,e)||!ko(this.max,i)}limitRange(e,i,s){return[jOt(e,s),$Ot(i,s)]}total(e){const i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,s=this.isMissing(e)?1:0;return this.countFromMin(e)+s+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)}divideByStep(e){return Tke(e.getSeconds(),this.min.getSeconds())/this.step}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastSecond(i))),e}addMissing(e,i){if(this.valueInList(i))return e;const s=this.toListItem(i.getSeconds());return e.splice(this.selectedIndex(i),0,s),e}countFromMin(e){const[i,s]=this.range(e);return Math.floor(Tke(s,i)/this.step)+1}isMissing(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)}isLastMissing(e){return this.isMissing(MV(this.max,this.lastSecond(e)))}lastSecond(e){return this.range(e)[1]}range(e){const[i,s]=this.limitRange(this.min,this.max,e);return[i.getSeconds(),s.getSeconds()]}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})();const Mke=t=>t%1e3,Eke=(n,t)=>Mke(1e3+n-t),Ike=n=>(t,e)=>!e||t.getHours()===e.getHours()&&t.getMinutes()===e.getMinutes()&&t.getSeconds()===e.getSeconds()?t:EV(t,n),WOt=Ike(0),qOt=Ike(999);let Ake=(()=>{let n=class{constructor(e){this.intl=e,this.insertUndividedMax=!1}apply(e,i){return EV(e,i.getMilliseconds())}configure(e){const{insertUndividedMax:i=this.insertUndividedMax,min:s=this.min,max:o=this.max,step:r=this.step}=e;this.insertUndividedMax=i,this.toListItem=a=>{const l=EV(zg,a);return{text:this.intl.formatDate(l,"SSS"),value:l}},this.min=s,this.max=o,this.step=r}data(e){const[i]=this.range(e),s=((n,t)=>e=>Mke(n+e*t))(i,this.step),r=wc(0,this.countFromMin(e)).map(a=>this.toListItem(s(a)));return this.addLast(r),this.addMissing(r,e),r}isRangeChanged(e,i){return!ko(this.min,e)||!ko(this.max,i)}limitRange(e,i,s){return[WOt(e,s),qOt(i,s)]}total(e){const i=this.insertUndividedMax&&this.isLastMissing(e)?1:0,s=this.isMissing(e)?1:0;return this.countFromMin(e)+s+i}selectedIndex(e){return Math.ceil(this.divideByStep(e))}valueInList(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)}divideByStep(e){return Eke(e.getMilliseconds(),this.min.getMilliseconds())/this.step}addLast(e,i){return this.insertUndividedMax&&this.isLastMissing(i)&&e.push(this.toListItem(this.lastMillisecond(i))),e}addMissing(e,i){if(this.valueInList(i))return e;const s=this.toListItem(i.getMilliseconds());return e.splice(this.selectedIndex(i),0,s),e}countFromMin(e){const[i,s]=this.range(e);return Math.floor(Eke(s,i)/this.step)+1}isMissing(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)}isLastMissing(e){return this.isMissing(EV(this.max,this.lastMillisecond(e)))}lastMillisecond(e){return this.range(e)[1]}range(e){const[i,s]=this.limitRange(this.min,this.max,e);return[i.getMilliseconds(),s.getMilliseconds()]}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})();const WK=(n,t)=>{const e=It(n);return e.setHours(t),e},qK=n=>null!==n&&n<12,YOt=(n,t,e)=>!t&&!e||n>=t&&n<=e,KOt=(n,t,e)=>!t&&!e||n>=t||n<=e;const QOt=()=>null,JOt={35:(n,t)=>n[n.length-1],36:(n,t)=>n[0],38:(n,t)=>n[t-1],40:(n,t)=>n[t+1]},eRt={dayperiod:(()=>{let n=class{constructor(e){this.intl=e}apply(e,i){const s=e.getHours(),o=qK(s),r=qK(i.getHours());if(o&&r||!o&&!r)return e;const[a,l=24]=this.normalizedRange();return WK(e,Math.min(Math.max(a,s+(r?-12:12)),l||24))}configure(e){const{min:i=this.min,max:s=this.max,part:o=this.part}=e;this.min=i,this.max=s,this.part=o}data(e){const i=this.part.names;if(!i)return[];const s=[],[o,r]=this.normalizedRange(),a=this.intl.dateFormatNames(i);return qK(o)&&s.push({text:a.am,value:WK(this.min,o)}),(n=>null!==n&&(!n||n>11))(r)&&s.push({text:a.pm,value:WK(this.min,Math.max(12,r))}),this.min.getHours()!==o?s.reverse():s}isRangeChanged(e,i){return!1}limitRange(e,i,s){return[e,i]}total(){const[e,i]=this.normalizedRange();return(e||i)&&(e>11||i<12)?1:2}selectedIndex(e){if(!this.valueInList(e))return-1;const i=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?i:0===i?1:0}valueInList(e){return(this.min.getHours()!==this.normalizedRange()[0]?KOt:YOt)(e.getHours(),this.min.getHours(),this.max.getHours())}normalizedRange(){const e=this.min.getHours(),i=this.max.getHours();return[Math.min(e,i),Math.max(e,i)]}};return n.\u0275fac=function(e){return new(e||n)(V(kn))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=L([F("design:paramtypes",[kn])],n),n})(),hour:vke,minute:wke,second:Dke,millisecond:Ake};let e4=(()=>{let n=class{constructor(e,i,s,o,r){this.element=e,this.injector=i,this.dom=s,this.renderer=o,this.zone=r,this.min=It(zg),this.max=It(Ex),this.step=1,this.disabled=!1,this.valueChange=new S,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}get tabIndex(){return this.disabled?void 0:0}ngOnChanges(e){e.part&&(this.service=this.injector.get(eRt[this.part.type]),this.service.configure(this.serviceSettings()));const i=this.value,s=e.value||{},[o,r]=this.service.limitRange(this.min,this.max,i);(this.service.isRangeChanged(o,r)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:o,max:r}))),(!this.data.length||this.hasMissingValue(s))&&(this.animateToIndex=!1,this.data=this.service.data(i)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(s),this.total=this.service.total(i),this.indexToScroll=this.selectedIndex(i)}ngOnInit(){this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;const e=`translateY(${this.topOffset}px)`;this.style={transform:e,"-ms-transform":e},this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnDestroy(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(e=>e())}ngAfterViewInit(){this.scrollOnce(e=>this.virtualization.scrollToIndex(e))}ngAfterViewChecked(){this.scrollOnce(e=>{this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](e),this.animateToIndex=!0})}handleChange(e){const i=this.service.apply(this.value,e.value);this.value.getTime()!==i.getTime()&&(this.indexToScroll=this.data.indexOf(e),this.value=i,this.valueChange.emit(i))}handleItemClick(e){const i=DK(e.target,s=>s.hasAttribute("data-timelist-item-index"),this.element.nativeElement);if(i){const s=i.getAttribute("data-timelist-item-index");this.handleChange(this.data[s])}}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}itemOffset(e){const i=this.selectedIndex(this.value),s=this.virtualization.activeIndex(),o=this.virtualization.itemOffset(s),r=Math.abs(Math.ceil(e)-o);if(i===s&&r<2)return o;const a=i>s;return a&&r>=this.bottomThreshold||!a&&r>this.topThreshold?this.virtualization.itemOffset(s+1):o}hasMissingValue({previousValue:e,currentValue:i}){const s=e&&!this.service.valueInList(e),o=i&&!this.service.valueInList(i);return s||o}scrollOnce(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)}serviceSettings(e){const s=Object.assign({},{boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},e);return s.boundRange="hour"!==s.part.type,s}selectedIndex(e){return e?this.service.selectedIndex(e):-1}textHasChanged({previousValue:e,currentValue:i}){if(!e||!i)return!1;const s=this.data[this.selectedIndex(e)],o=this.data[this.selectedIndex(i)];return s&&o&&s.text!==o.text}handleKeyDown(e){const s=(JOt[e.keyCode]||QOt)(this.data,this.service.selectedIndex(this.value));s&&(this.handleChange(s),e.preventDefault())}bindEvents(){this.scrollSubscription=this.virtualization.scroll$().pipe(cg(100),xe(i=>i.target.scrollTop),xe(i=>this.itemOffset(i)),xe(i=>this.virtualization.itemIndex(i))).subscribe(i=>{this.virtualization.scrollToIndex(i),this.handleChange(this.data[i])});const e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",()=>!this.isActive&&this.focus()),this.renderer.listen(e,"click",()=>this.focus()),this.renderer.listen(e,"blur",()=>this.isActive=!1),this.renderer.listen(e,"focus",()=>this.isActive=!0),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Jt),g(W2),g(Ie),g(ce))},n.\u0275cmp=K({type:n,selectors:[["kendo-timelist"]],viewQuery:function(e,i){if(1&e&&Ae(Fu,7),2&e){let s;U(s=W())&&(i.virtualization=s.first)}},hostVars:3,hostBindings:function(e,i){2&e&&(fe("tabindex",i.tabIndex),he("k-time-list",i.componentClass))},inputs:{min:"min",max:"max",step:"step",disabled:"disabled",value:"value",part:"part"},outputs:{valueChange:"valueChange"},features:[st],decls:3,vars:13,consts:[["role","presentation","tabindex","-1",1,"k-time-container",3,"skip","take","total","itemHeight","maxScrollDifference","topOffset","bottomOffset"],[1,"k-reset",3,"ngStyle","kendoEventsOutsideAngular","scope"],["class","k-item",4,"ngFor","ngForOf"],[1,"k-item"]],template:function(e,i){1&e&&(y(0,"kendo-virtualization",0),y(1,"ul",1),A(2,p2t,3,2,"li",2),_(),_()),2&e&&(v("skip",i.skip)("take",i.total)("total",i.total)("itemHeight",i.itemHeight)("maxScrollDifference",i.listHeight)("topOffset",i.topOffset)("bottomOffset",i.bottomOffset),b(1),v("ngStyle",i.style)("kendoEventsOutsideAngular",Yt(11,ib,i.handleItemClick))("scope",i),b(1),v("ngForOf",i.data))},directives:[Fu,zo,lr,Wn],encapsulation:2}),L([p(),F("design:type",Date)],n.prototype,"min",void 0),L([p(),F("design:type",Date)],n.prototype,"max",void 0),L([p(),F("design:type",Object)],n.prototype,"part",void 0),L([p(),F("design:type",Number)],n.prototype,"step",void 0),L([p(),F("design:type",Boolean)],n.prototype,"disabled",void 0),L([p(),F("design:type",Date)],n.prototype,"value",void 0),L([Q(),F("design:type",S)],n.prototype,"valueChange",void 0),L([at(Fu,{static:!0}),F("design:type",Fu)],n.prototype,"virtualization",void 0),L([G("attr.tabindex"),F("design:type",Number),F("design:paramtypes",[])],n.prototype,"tabIndex",null),L([G("class.k-time-list"),F("design:type",Boolean)],n.prototype,"componentClass",void 0),n=L([F("design:paramtypes",[$,Jt,W2,Ie,ce])],n),n})();const Rke=(n,t)=>n.getHours()===t.getHours()&&n.getMinutes()===t.getMinutes(),Pke=(n,t)=>Rke(n,t)&&n.getSeconds()===t.getSeconds(),Lke=[{type:"hour",getter:n=>n.getHours(),minGetter:(n,t)=>t.getHours()},{type:"minute",getter:n=>n.getMinutes(),minGetter:(n,t)=>Rke(n,t)?t.getMinutes():0},{type:"second",getter:n=>n.getSeconds(),minGetter:(n,t)=>Pke(n,t)?t.getSeconds():0},{type:"millisecond",getter:n=>n.getMilliseconds(),minGetter:(n,t)=>((n,t)=>Pke(n,t)&&n.getMilliseconds()===t.getMilliseconds())(n,t)?t.getMilliseconds():0}],Nke=(n=>t=>n.map((n=>t=>n[t.type]?(n=>(t,e)=>n(e))(t.getter):(n=>(t,e)=>n(t))(t.getter))((n=>n.reduce((t,e)=>(t[e.type]=e.type,t),{}))(t))))(Lke),yRt=(n=>t=>n.map(e=>{const i=t[e.type];return i?((n,t,e)=>(i,s)=>{const o=n(i),r=t(i,s),a=o-r;if(a<0)return r;const l=a%e;return o-l+(l>e/2?e:0)})(e.getter,e.minGetter,i):e.getter}))(Lke),Bke=n=>(t,e)=>(t.setHours(...n.map(i=>i(t,e))),t),vRt=(n,t,e,i)=>n.length||!t.isActive?n:[{next:i[e+1]||t,prev:i[e-1]||t}];var VD=(()=>(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right"}(VD||(VD={})),VD))();let XK=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c){this.localization=e,this.cdr=i,this.element=s,this.intl=o,this.dom=r,this.zone=a,this.renderer=l,this.pickerService=c,this.componentClass=!0,this.format="t",this.min=It(OD),this.max=It(Ex),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new S,this.valueReject=new S,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}get disabledClass(){return this.disabled}set steps(e){this._steps=e||{}}get steps(){return this._steps}set current(e){this._current=((n,t,e)=>{if(!n||!t||!e)return n;const{candidateValue:i,minValue:s,maxValue:o}=VTe(n,t,e);return io?Hg(n,e):n})(this.snapTime(It(e||zg),this.min),this.min,this.max),ce.isInAngularZone()||this.cdr.detectChanges()}get current(){return this._current}get activeListIndex(){return this._activeListIndex}set activeListIndex(e){if(this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(i=>{this.renderer.removeClass(i.nativeElement,"k-state-focused")}),e>=0)){const i=this.listIndex(e),s=this.timeListWrappers.toArray()[i];s&&this.renderer.addClass(s.nativeElement,"k-state-focused")}}ngOnInit(){this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()}ngOnChanges(e){this.init()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(e=>e())}focus(){const e=this.timeLists.first;!e||e.focus()}blur(){const e=this.timeLists.first;!e||e.blur()}handleAccept(){this.handleChange(this.mergeValue(It(this.value||Yo(fK())),this.current))}handleNow(){this.current=fK(),this.handleChange(this.current),this.cdr.markForCheck()}handleReject(){this.current=this.value,this.valueReject.emit()}handleFocus(e){this.isActive||(this.isActive=!0,this.emitFocus(e))}handleListFocus(e){const i=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=i,this.handleFocus(e)}handleBlur(e){const i=hK(e);i&&this.containsElement(i)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))}containsElement(e){return Boolean(MK(e,i=>i===this.element.nativeElement))}partStep(e){return this.steps[e.type]||1}init(e){(!e||sb(e,"format"))&&(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Bke(Nke(this.dateFormatParts))),(!e||sb(e,"steps"))&&(this.snapTime=(n=>(t,e)=>{const i=It(t);return i.setHours(...n.map(s=>s(i,e))),i})(yRt(this.steps))),(!e||sb(e,"value"))&&(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&zTe(fK(),this.min,this.max)}focusList(e){!this.timeLists.length||this.timeLists.reduce(vRt,[]).map(i=>e===VD.Right?i.next:i.prev).map(i=>i&&i.focus())}handleChange(e){this.value=e,this.valueChange.emit(It(e))}hasActiveButton(){return!!this.accept&&[this.accept,this.cancel,this.now].reduce((e,i)=>e||this.dom.isActive(i),!1)}hasSteps(){const e=Object.keys(this.steps);return e.length!==e.reduce((i,s)=>i+this.steps[s],0)}intlChange(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Bke(Nke(this.dateFormatParts)),this.cdr.markForCheck()}bindEvents(){this.element&&this.zone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this)))})}handleKeydown(e){const{keyCode:i,altKey:s}=e,o=-1!==[_e.ArrowLeft,_e.ArrowRight].indexOf(i);Nn(this.pickerService)&&o&&s||(i!==_e.Enter||this.hasActiveButton()?(i===_e.ArrowLeft||i===_e.ArrowRight)&&this.focusList(i===_e.ArrowLeft?VD.Left:VD.Right):this.handleAccept())}emitBlur(e){this.pickerService&&this.pickerService.onBlur.emit(e)}emitFocus(e){this.pickerService&&this.pickerService.onFocus.emit(e)}listIndex(e){let i=0,s=0;for(;s{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle"},features:[N]}),L([p(),F("design:type",String)],n.prototype,"accept",void 0),L([p(),F("design:type",String)],n.prototype,"acceptLabel",void 0),L([p(),F("design:type",String)],n.prototype,"cancel",void 0),L([p(),F("design:type",String)],n.prototype,"cancelLabel",void 0),L([p(),F("design:type",String)],n.prototype,"now",void 0),L([p(),F("design:type",String)],n.prototype,"nowLabel",void 0),L([p(),F("design:type",String)],n.prototype,"toggle",void 0),n})();var YK;let ub=YK=class extends db{constructor(t){super(),this.service=t}};var KK;ub.\u0275fac=function(t){return new(t||ub)(g(J))},ub.\u0275dir=R({type:ub,selectors:[["","kendoTimePickerLocalizedMessages",""]],features:[we([{provide:db,useExisting:He(()=>YK)}]),N]}),ub=YK=L([F("design:paramtypes",[J])],ub);let Nx=KK=class extends db{constructor(t){super(),this.service=t}get override(){return!0}};var ZK;Nx.\u0275fac=function(t){return new(t||Nx)(g(J))},Nx.\u0275cmp=K({type:Nx,selectors:[["kendo-timepicker-messages"]],features:[we([{provide:db,useExisting:He(()=>KK)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Nx=KK=L([F("design:paramtypes",[J])],Nx);let hb=ZK=class extends db{constructor(t){super(),this.service=t}};var QK;hb.\u0275fac=function(t){return new(t||hb)(g(J))},hb.\u0275dir=R({type:hb,selectors:[["","kendoTimeSelectorLocalizedMessages",""]],features:[we([{provide:db,useExisting:He(()=>ZK)}]),N]}),hb=ZK=L([F("design:paramtypes",[J])],hb);let Uy=QK=class extends db{constructor(t){super(),this.service=t}get override(){return!0}};Uy.\u0275fac=function(t){return new(t||Uy)(g(J))},Uy.\u0275cmp=K({type:Uy,selectors:[["kendo-timeselector-messages"]],features:[we([{provide:db,useExisting:He(()=>QK)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Uy=QK=L([F("design:paramtypes",[J])],Uy);let t4=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{toggle:"toggle",dateTab:"dateTab",dateTabLabel:"dateTabLabel",timeTab:"timeTab",timeTabLabel:"timeTabLabel",accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",today:"today",now:"now",nowLabel:"nowLabel",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[N]}),L([p(),F("design:type",String)],n.prototype,"toggle",void 0),L([p(),F("design:type",String)],n.prototype,"dateTab",void 0),L([p(),F("design:type",String)],n.prototype,"dateTabLabel",void 0),L([p(),F("design:type",String)],n.prototype,"timeTab",void 0),L([p(),F("design:type",String)],n.prototype,"timeTabLabel",void 0),L([p(),F("design:type",String)],n.prototype,"accept",void 0),L([p(),F("design:type",String)],n.prototype,"acceptLabel",void 0),L([p(),F("design:type",String)],n.prototype,"cancel",void 0),L([p(),F("design:type",String)],n.prototype,"cancelLabel",void 0),L([p(),F("design:type",String)],n.prototype,"today",void 0),L([p(),F("design:type",String)],n.prototype,"now",void 0),L([p(),F("design:type",String)],n.prototype,"nowLabel",void 0),L([p(),F("design:type",String)],n.prototype,"prevButtonTitle",void 0),L([p(),F("design:type",String)],n.prototype,"nextButtonTitle",void 0),n})();var eZ;let Bx=eZ=class extends t4{constructor(t){super(),this.service=t}get override(){return!0}};var tZ;Bx.\u0275fac=function(t){return new(t||Bx)(g(J))},Bx.\u0275cmp=K({type:Bx,selectors:[["kendo-datetimepicker-messages"]],features:[we([{provide:t4,useExisting:He(()=>eZ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Bx=eZ=L([F("design:paramtypes",[J])],Bx);let pb=tZ=class extends t4{constructor(t){super(),this.service=t}};function Fo(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function so(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}pb.\u0275fac=function(t){return new(t||pb)(g(J))},pb.\u0275dir=R({type:pb,selectors:[["","kendoDateTimePickerLocalizedMessages",""]],features:[we([{provide:t4,useExisting:He(()=>tZ)}]),N]}),pb=tZ=L([F("design:paramtypes",[J])],pb);const Gke=["*"];function DRt(n,t){if(1&n&&(y(0,"span",3),H(1),_()),2&n){const e=I();b(1),_t("(",e.textFor("optional"),")")}}let q2=(()=>{let n=class{constructor(e,i,s){this.label=e,this.renderer=i,this.zone=s,this.labelClass=!0,this.handleClick=()=>{const o=this.getFocusableComponent();!o||((n=>n.wrapper&&("KENDO-UPLOAD"===n.wrapper.tagName||"KENDO-FILESELECT"===n.wrapper.tagName))(o)&&o.fileSelect.nativeElement.click(),o.focus&&o.focus())}}get labelFor(){if("string"==typeof this.for)return this.for;if(!Ft())return null;const e=this.getFocusableComponent()||{};return(n=>n instanceof HTMLElement)(e)&&!((n,t)=>n.hasAttribute("id"))(e)&&this.renderer.setAttribute(e,"id",`k-${cs()}`),e.focusableId||e.id||null}ngAfterViewInit(){this.setAriaLabelledby(),this.zone.runOutsideAngular(()=>this.clickListener=this.renderer.listen(this.label.nativeElement,"click",this.handleClick))}ngOnDestroy(){this.clickListener&&this.clickListener()}setAriaLabelledby(){if(!Ft())return;const e=this.getFocusableComponent();if(e&&e.focusableId){const s=(n=>{if(!n)return null;let t=n;for(;t.parentElement;)t=t.parentElement;return t})(this.label.nativeElement).querySelector(`#${e.focusableId}`);if(!s)return;const o=this.label.nativeElement,r=o.id||`k-${cs()}`;o.getAttribute("id")||this.renderer.setAttribute(o,"id",r),this.renderer.setAttribute(s,"aria-labelledby",r)}}getFocusableComponent(){const e=this.for;return e&&void 0!==e.focus?e:null}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(ce))},n.\u0275dir=R({type:n,selectors:[["label","for",""]],hostVars:3,hostBindings:function(e,i){2&e&&(fe("for",i.labelFor),he("k-label",i.labelClass))},inputs:{for:"for"}}),Fo([p(),so("design:type",Object)],n.prototype,"for",void 0),Fo([G("attr.for"),so("design:type",String),so("design:paramtypes",[])],n.prototype,"labelFor",null),Fo([G("class.k-label"),so("design:type",Boolean)],n.prototype,"labelClass",void 0),n=Fo([so("design:paramtypes",[$,Ie,ce])],n),n})(),i4=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,inputs:{optional:"optional"},features:[N]}),Fo([p(),so("design:type",String)],n.prototype,"optional",void 0),n})();var iZ;let Wy=iZ=class extends i4{constructor(t){super(),this.service=t}};var sZ;Wy.\u0275fac=function(t){return new(t||Wy)(g(J))},Wy.\u0275dir=R({type:Wy,selectors:[["","kendoLabelLocalizedMessages",""],["","kendoFloatingLabelLocalizedMessages",""]],features:[we([{provide:i4,useExisting:He(()=>iZ)}]),N]}),Wy=iZ=Fo([so("design:paramtypes",[J])],Wy);let Vx=sZ=class extends i4{constructor(t){super(),this.service=t}get override(){return!0}};Vx.\u0275fac=function(t){return new(t||Vx)(g(J))},Vx.\u0275cmp=K({type:Vx,selectors:[["kendo-label-messages"],["kendo-floatinglabel-messages"]],features:[we([{provide:i4,useExisting:He(()=>sZ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Vx=sZ=Fo([so("design:paramtypes",[J])],Vx);let s4=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();const jke={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1626799912,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"};let RRt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,s4],s4]}),n})(),Uke=(()=>{let n=class{constructor(e,i,s){this.elementRef=e,this.renderer=i,this.localization=s,this.subscriptions=new Je,Ii(jke),this.direction=s.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}ngAfterContentInit(){if(this.for)return void(this.control=this.for);const e=(n=>this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select"))();if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id",`k-${cs()}`),void(this.control=e);this.control=this.kendoInput}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:e})=>{this.direction=e?"rtl":"ltr"}))}ngAfterViewInit(){this.labelDirective.setAriaLabelledby()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}textFor(e){return this.localization.get(e)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-label"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,Ds,7),2&e){let o;U(o=W())&&(i.kendoInput=o.first)}},viewQuery:function(e,i){if(1&e&&Ae(q2,7),2&e){let s;U(s=W())&&(i.labelDirective=s.first)}},hostVars:1,hostBindings:function(e,i){2&e&&fe("dir",i.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[we([J,{provide:An,useValue:"kendo.label"}])],ngContentSelectors:Gke,decls:5,vars:5,consts:function(){let t;return t=$localize`:kendo.label.optional|The text for the optional segment of a Label component␟a1cd4a8f359a22151d7e73f2887fbb2967cd389a␟3476218486854814180:Optional`,[["kendoLabelLocalizedMessages","","optional",t],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(e,i){1&e&&(Xt(),wn(0,0),y(1,"label",1),H(2),A(3,DRt,2,1,"span",2),_(),mt(4)),2&e&&(b(1),he("k-label-empty",!i.text),v("for",i.control),b(1),_t(" ",i.text,""),b(1),v("ngIf",i.optional))},directives:[Wy,q2,pt],encapsulation:2}),Fo([G("attr.dir"),so("design:type",String)],n.prototype,"direction",void 0),Fo([p(),so("design:type",String)],n.prototype,"text",void 0),Fo([p(),so("design:type",Object)],n.prototype,"for",void 0),Fo([p(),so("design:type",Boolean)],n.prototype,"optional",void 0),Fo([at(q2,{static:!0}),so("design:type",q2)],n.prototype,"labelDirective",void 0),Fo([ct(Ds,{static:!0}),so("design:type",Object)],n.prototype,"kendoInput",void 0),n=Fo([so("design:paramtypes",[$,Ie,J])],n),n})(),PRt=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,s4],RRt,s4]}),n})();function Me(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function o4(n,t){return function(e,i){t(e,i,n)}}function de(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}let X2=(()=>{let n=class{constructor(){this.buttonLookChange=new Hs("default"),this.buttonClicked=new Z,this.buttonClicked$=this.buttonClicked.asObservable()}click(e){this.buttonClicked.next(e)}setButtonLook(e){this.buttonLookChange.next(e)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const l4={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1628008687,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"};let af=(()=>{let n=class{constructor(e,i,s,o,r){this.service=s,this.ngZone=r,this.toggleable=!1,this.primary=!1,this.look="default",this.role="button",this.selectedChange=new S,this.click=new S,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._focused=!1,this.domEvents=[],Ii(l4),this.direction=o.rtl?"rtl":"ltr",this.localizationChangeSubscription=o.changes.subscribe(({rtl:a})=>this.direction=a?"rtl":"ltr"),this.element=e.nativeElement,this.renderer=i}get togglable(){return this.toggleable}set togglable(e){this.toggleable=e}get selected(){return this._selected||!1}set selected(e){this._selected=e}set tabIndex(e){this.element.tabIndex=e}get tabIndex(){return this.element.tabIndex}set icon(e){e?this.iconSetter(e,()=>{this.isIcon=!0,this.addIcon("k-icon k-i-"+e)}):(this.isIcon=!1,this.updateIconNode())}set iconClass(e){e?this.iconSetter(e,()=>{this.isIconClass=!0,this.addIcon(e)}):(this.isIconClass=!1,this.updateIconNode())}set imageUrl(e){e?this.iconSetter(e,this.addImgIcon.bind(this)):this.removeImageNode()}set disabled(e){this.isDisabled=e,this.renderer.setProperty(this.element,"disabled",e)}get disabled(){return this.isDisabled}set isFocused(e){this.toggleClass("k-state-focused",e),this._focused=e}get isFocused(){return this._focused}get classButton(){return!0}get classPrimary(){return this.primary}get isToggleable(){return this.toggleable}get isFlat(){return"flat"===this.look}get isBare(){return"bare"===this.look}get isOutline(){return"outline"===this.look}get isClear(){return"clear"===this.look}get roleSetter(){return this.role}get classDisabled(){return this.isDisabled}get classActive(){return this.selected}get getDirection(){return this.direction}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}ngOnInit(){const e="SPAN"===this.element.tagName;this.service&&(this.buttonLookChangeSubscription=this.service.buttonLookChange.pipe(dt(i=>"default"!==i)).subscribe(i=>this.look=i)),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element,"click",this._onButtonClick.bind(this))),this.domEvents.push(this.renderer.listen(this.element,"keydown",i=>{e&&(i.keyCode===_e.Space||i.keyCode===_e.Enter)&&(this.click.emit(i),this._onButtonClick())}))})}ngOnChanges(e){(Io("togglable",e)||Io("toggleable",e))&&this.toggleAriaPressed(this.toggleable)}ngAfterViewChecked(){this.setIconTextClasses()}ngOnDestroy(){this.imageNode=null,this.iconNode=null,this.renderer=null,this.localizationChangeSubscription.unsubscribe(),this.service&&this.buttonLookChangeSubscription&&this.buttonLookChangeSubscription.unsubscribe(),clearTimeout(this.deferTimeout),this.domEvents.forEach(e=>e())}focus(){Ft()&&(this.element.focus(),this.isFocused=!0)}blur(){Ft()&&(this.element.blur(),this.isFocused=!1)}setAttribute(e,i){this.renderer.setAttribute(this.element,e,i)}removeAttribute(e){this.renderer.removeAttribute(this.element,e)}setSelected(e){const i=this.selected!==e;this.selected=e,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-state-selected",this.selected),i&&Kt(this.selectedChange)&&this.ngZone.run(()=>{this.selectedChange.emit(e)})}toggleAriaPressed(e){!Ft()||(e?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}hasText(){return!!Ft()&&String(this.element.textContent).trim().length>0}addImgIcon(e){let i=this.renderer;this.imageNode?i.setProperty(this.imageNode,"src",e):Ft()&&(this.imageNode=i.createElement("img"),i.setProperty(this.imageNode,"src",e),i.setProperty(this.imageNode,"className","k-image"),i.setAttribute(this.imageNode,"role","presentation"),this.prependChild(this.imageNode))}addIcon(e){let i=this.renderer;this.iconNode?i.setProperty(this.iconNode,"className",e):Ft()&&(this.iconNode=i.createElement("span"),i.setProperty(this.iconNode,"className",e),i.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}prependChild(e){this.defer(()=>{this.renderer&&e!==this.element.firstChild&&this.renderer.insertBefore(this.element,e,this.element.firstChild)})}defer(e){this.ngZone.runOutsideAngular(()=>{this.deferTimeout=setTimeout(e,0)})}iconSetter(e,i){e&&i(e),this.setIconTextClasses()}removeImageNode(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.imageNode=null)}removeIconNode(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null)}updateIconNode(){!this.isIcon&&!this.isIconClass&&this.removeIconNode()}setIconTextClasses(){const e=this.isIcon||this.isIconClass||this.imageNode,i=this.hasText();this.toggleClass("k-button-icon",e&&!i),this.toggleClass("k-button-icontext",e&&i)}toggleClass(e,i){i?this.renderer.addClass(this.element,e):this.renderer.removeClass(this.element,e)}_onButtonClick(){!this.disabled&&this.service&&this.ngZone.run(()=>{this.service.click(this)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(X2,8),g(J),g(ce))},n.\u0275dir=R({type:n,selectors:[["button","kendoButton",""],["span","kendoButton",""]],hostVars:21,hostBindings:function(e,i){1&e&&se("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),2&e&&(fe("role",i.roleSetter)("aria-disabled",i.classDisabled)("dir",i.getDirection),he("k-button",i.classButton)("k-primary",i.classPrimary)("k-toggle-button",i.isToggleable)("k-flat",i.isFlat)("k-bare",i.isBare)("k-outline",i.isOutline)("k-button-clear",i.isClear)("k-state-disabled",i.classDisabled)("k-state-selected",i.classActive))},inputs:{toggleable:"toggleable",primary:"primary",look:"look",role:"role",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[we([J,{provide:An,useValue:"kendo.button"}]),st]}),Me([p(),de("design:type",Boolean)],n.prototype,"toggleable",void 0),Me([p(),de("design:type",Boolean),de("design:paramtypes",[Boolean])],n.prototype,"togglable",null),Me([p(),de("design:type",Boolean)],n.prototype,"primary",void 0),Me([p(),de("design:type",String)],n.prototype,"look",void 0),Me([p(),de("design:type",Boolean),de("design:paramtypes",[Boolean])],n.prototype,"selected",null),Me([p(),de("design:type",Number),de("design:paramtypes",[Number])],n.prototype,"tabIndex",null),Me([p(),de("design:type",String),de("design:paramtypes",[String])],n.prototype,"icon",null),Me([p(),de("design:type",String),de("design:paramtypes",[String])],n.prototype,"iconClass",null),Me([p(),de("design:type",String),de("design:paramtypes",[String])],n.prototype,"imageUrl",null),Me([p(),de("design:type",Boolean),de("design:paramtypes",[Boolean])],n.prototype,"disabled",null),Me([p(),de("design:type",String)],n.prototype,"role",void 0),Me([Q(),de("design:type",S)],n.prototype,"selectedChange",void 0),Me([Q(),de("design:type",S)],n.prototype,"click",void 0),Me([G("class.k-button"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"classButton",null),Me([G("class.k-primary"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"classPrimary",null),Me([G("class.k-toggle-button"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"isToggleable",null),Me([G("class.k-flat"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"isFlat",null),Me([G("class.k-bare"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"isBare",null),Me([G("class.k-outline"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"isOutline",null),Me([G("class.k-button-clear"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"isClear",null),Me([G("attr.role"),de("design:type",String),de("design:paramtypes",[])],n.prototype,"roleSetter",null),Me([G("attr.aria-disabled"),G("class.k-state-disabled"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"classDisabled",null),Me([G("class.k-state-selected"),de("design:type",Boolean),de("design:paramtypes",[])],n.prototype,"classActive",null),Me([G("attr.dir"),de("design:type",String),de("design:paramtypes",[])],n.prototype,"getDirection",null),Me([Zn("focus"),de("design:type",Function),de("design:paramtypes",[]),de("design:returntype",void 0)],n.prototype,"onFocus",null),Me([Zn("blur"),de("design:type",Function),de("design:paramtypes",[]),de("design:returntype",void 0)],n.prototype,"onBlur",null),n=Me([o4(2,gt()),de("design:paramtypes",[$,Ie,X2,J,ce])],n),n})();function ti(n){return void 0!==n}Promise.resolve(null),new ot("navigation.config");const fZ=Math.PI/180,zD=Number.MAX_VALUE,HD=-Number.MAX_VALUE;function Wg(n){return n*fZ}function Do(n,t){const e=function(n){return n?Math.pow(10,n):1}(t);return Math.round(n*e)/e}class lf extends Yi{constructor(t=0,e=0,i=0,s=0,o=0,r=0){super(),this.a=t,this.b=e,this.c=i,this.d=s,this.e=o,this.f=r}multiplyCopy(t){return new lf(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}invert(){const{a:t,b:e,c:i,d:s,e:o,f:r}=this,a=t*s-e*i;return 0===a?null:new lf(s/a,-e/a,-i/a,t/a,(i*r-s*o)/a,(e*o-t*r)/a)}clone(){return new lf(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){return!!t&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d&&this.e===t.e&&this.f===t.f}round(t){return this.a=Do(this.a,t),this.b=Do(this.b,t),this.c=Do(this.c,t),this.d=Do(this.d,t),this.e=Do(this.e,t),this.f=Do(this.f,t),this}toArray(t){const e=[this.a,this.b,this.c,this.d,this.e,this.f];if(ti(t))for(let i=0;i{const e=class extends n{};return function(n,t){for(let e=0;ee||i&&t===e)&&(e+=360),{startAngle:t,endAngle:e}}_intervalCurvePoints(t,e,i){const s=this.pointAt(t),o=this.pointAt(e),r=this._derivativeAt(t),a=this._derivativeAt(e),l=(Wg(e)-Wg(t))/3,c=new Ot(s.x+l*r.x,s.y+l*r.y),d=new Ot(o.x-l*a.x,o.y-l*a.y);return i&&(s.transform(i),o.transform(i),c.transform(i),d.transform(i)),{p1:s,cp1:c,cp2:d,p2:o}}_derivativeAt(t){const e=Wg(t);return new Ot(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))}containsPoint(t){const e=this._arcInterval(),i=e.endAngle-e.startAngle,{center:s,radiusX:o,radiusY:r}=this,a=s.distanceTo(t),l=Math.atan2(t.y-s.y,t.x-s.x),c=o*r/Math.sqrt(y4(o,2)*y4(Math.sin(l),2)+y4(r,2)*y4(Math.cos(l),2)),d=this.pointAt(this.startAngle).round(10),u=this.pointAt(this.endAngle).round(10),h=function(n,t,e,i){const s=t.x-n.x,o=i.x-e.x,r=t.y-n.y,a=i.y-e.y,l=n.x-e.x,c=n.y-e.y,d=s*a-o*r,u=(s*c-r*l)/d,h=(o*c-a*l)/d;if(u>=0&&u<=1&&h>=0&&h<=1)return new Ot(n.x+h*s,n.y+h*r)}(s,t.round(10),d,u);let f;if(i<180)f=h&&gZ(s.distanceTo(h),a)&&gZ(a,c);else{let m=oDe(s.x,s.y,o,r,t.x,t.y);360!==m&&(m=(360+m)%360);let C=e.startAngle<=m&&m<=e.endAngle;f=C&&gZ(a,c)||!C&&(!h||h.equals(t))}return f}_isOnPath(t,e){const i=this._arcInterval(),s=this.center;let o=oDe(s.x,s.y,this.radiusX,this.radiusY,t.x,t.y);return 360!==o&&(o=(360+o)%360),i.startAngle<=o&&o<=i.endAngle&&this.pointAt(o).distanceTo(t)<=e}static fromPoints(t,e,i,s,o,r,a){const l=function(n){let{x1:t,y1:e,x2:i,y2:s,rx:o,ry:r,largeArc:a,swipe:l,rotation:c=0}=n;const d=Wg(c),u=Math.cos(d),h=Math.sin(d),f=u*(t-i)/2+h*(e-s)/2,m=-h*(t-i)/2+u*(e-s)/2,C=a!==l?1:-1,k=Math.pow(f,2),D=Math.pow(m,2);let E=Math.pow(o,2),O=Math.pow(r,2),z=k/E+D/O;z>1&&(z=Math.sqrt(k/E+D/O),o*=z,E=Math.pow(o,2),r*=z,O=Math.pow(r,2));let q=C*Math.sqrt((E*O-E*D-O*k)/(E*D+O*k));isNaN(q)&&(q=0);const re=q*(o*m)/r,ie=r*f*-q/o,Se=u*re-h*ie+(t+i)/2,Te=h*re+u*ie+(e+s)/2,Ee=(f-re)/o,be=(m-ie)/r,Ke=-(f+re)/o,Re=-(m+ie)/r,Qe=(be>=0?1:-1)*mb(Math.acos(Ee/Math.sqrt(Ee*Ee+be*be))),Ze=Do((Ee*Ke+be*Re)/(Math.sqrt(Ee*Ee+be*be)*Math.sqrt(Ke*Ke+Re*Re)),10);let Ge=(Ee*Re-be*Ke>=0?1:-1)*mb(Math.acos(Ze));!l&&Ge>0&&(Ge-=360),l&&Ge<0&&(Ge+=360);let tt=Qe+Ge;const Dt=tt>=0?1:-1;return tt=Math.abs(tt)%360*Dt,{center:new Ot(Se,Te),startAngle:Qe,endAngle:tt,radiusX:o,radiusY:r,xRotation:c}}({x1:t.x,y1:t.y,x2:e.x,y2:e.y,rx:i,ry:s,largeArc:o,swipe:r,rotation:a});return new _4(l.center,{startAngle:l.startAngle,endAngle:l.endAngle,radiusX:l.radiusX,radiusY:l.radiusY,xRotation:l.xRotation,anticlockwise:0===r})}}function oDe(n,t,e,i,s,o){const r=Do((s-n)/e,3),a=Do((o-t)/i,3);return Do(mb(Math.atan2(a,r)))}function rDe(n,t){let e=n;for(;e9),_Z=function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),i=0,s=e.length,o=[];i>>2,h=(3&l)<<6|c;o.push(r<<2|a>>>4),64!=l&&o.push(u),64!=c&&o.push(h)}return o},encode:function(t){for(var e=0,i=t.length,s="";e>>4,d=(15&r)<<2|a>>>6,u=63&a;e-i==2?d=u=64:e-i==1&&(u=64),s+=n.charAt(o>>>2)+n.charAt(c)+n.charAt(d)+n.charAt(u)}return s}}}();function Ko(n){var t=0,e=0;null==n?n=yb?new Uint8Array(256):[]:e=n.length;var i=yb?function(be){if(be>=n.length){var Ke=new Uint8Array(Math.max(be+256,2*n.length));Ke.set(n,0),n=Ke}}:function(){},s=yb?function(){return new Uint8Array(n.buffer,0,e)}:function(){return n},o=yb?function(be){if("string"==typeof be)return Se(be);var Ke=be.length;i(t+Ke),n.set(be,t),(t+=Ke)>e&&(e=t)}:function(be){if("string"==typeof be)return Se(be);for(var Ke=0;Kee&&(e=t)}function d(){return l()<<8|l()}function u(be){c(be>>8),c(be)}function m(){return 65536*d()+d()}function C(be){u(be>>>16&65535),u(65535&be)}function k(){var be=m();return be>=2147483648?be-4294967296:be}function D(be){C(be<0?be+4294967296:be)}function re(be){return Te(be,l)}function Se(be){for(var Ke=0;Ke=e},readByte:l,writeByte:c,readShort:d,writeShort:u,readLong:m,writeLong:C,readFixed:function(){return m()/65536},writeFixed:function(be){C(Math.round(65536*be))},readShort_:function(){var be=d();return be>=32768?be-65536:be},writeShort_:function(be){u(be<0?be+65536:be)},readLong_:k,writeLong_:D,readFixed_:function(){return k()/65536},writeFixed_:function(be){D(Math.round(65536*be))},read:re,write:o,readString:function(be){return String.fromCharCode.apply(String,re(be))},writeString:Se,times:Te,get:s,slice:yb?function(be,Ke){if(n.buffer.slice)return new Uint8Array(n.buffer.slice(be,be+Ke));var Re=new Uint8Array(Ke);return Re.set(new Uint8Array(n.buffer,be,Ke)),Re}:function(be,Ke){return n.slice(be,be+Ke)},offset:function(be){return null!=be?(t=be,Ee):t},skip:function(be){t+=be},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return e},saveExcursion:function(be){var Ke=t;try{return be()}finally{t=Ke}},writeBase64:function(be){window.atob?Se(window.atob(be)):o(_Z.decode(be))},base64:function(){return _Z.encode(s())}};return Ee}function Q2(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function vZ(n){return Object.keys(n).sort(function(t,e){return t-e}).map(parseFloat)}class qg{constructor(t,e){this.definition=e,this.length=e.length,this.offset=e.offset,this.file=t,this.rawData=t.raw,this.parse(t.raw)}raw(){return this.rawData.slice(this.offset,this.length)}parse(){}}(function(){class n{get compound(){return!1}constructor(l){this.raw=l}render(){return this.raw.get()}}class r{get compound(){return!0}constructor(l){this.raw=l;for(var c=this.glyphIds=[],d=this.idOffsets=[];;){var u=l.readShort();if(d.push(l.offset()),c.push(l.readShort()),!(32&u))break;l.skip(1&u?4:2),128&u?l.skip(8):64&u?l.skip(4):8&u&&l.skip(2)}}render(l){for(var c=Ko(this.raw.get()),d=0;d0;)o[a++]=i.readShort();break;case 12:i.readShort(),r.length=i.readLong(),r.language=i.readLong();for(var q=i.readLong();q-- >0;){a=i.readLong();for(var re=i.readLong(),ie=i.readLong();a<=re;)o[a++]=ie++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+r.format)}})}}}();function vLt(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function mDe(n){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var e=t.shift();if(e){if("object"!=typeof e)throw new TypeError(e+"must be non-object");for(var i in e)vLt(e,i)&&(n[i]=e[i])}}return n}function w4(n,t){return n.length===t?n:n.subarray?n.subarray(0,t):(n.length=t,n)}var J2={arraySet:function(n,t,e,i,s){if(t.subarray&&n.subarray)n.set(t.subarray(e,e+i),s);else for(var o=0;o{const n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return GD=()=>n,n},Lu=(n,t,e,i,s)=>(Lu=GD()?J2.arraySet:eF.arraySet,Lu(n,t,e,i,s)),S4=n=>(S4=GD()?J2.flattenChunks:eF.flattenChunks,S4(n)),Yg=n=>(Yg=GD()?J2.Buf8:eF.Buf8,Yg(n)),Yd=n=>(Yd=GD()?J2.Buf16:eF.Buf16,Yd(n)),jD=n=>(jD=GD()?J2.Buf32:eF.Buf32,jD(n)),yDe=function(){let n=!0;try{String.fromCharCode.apply(null,[0])}catch(t){n=!1}return yDe=()=>n,n},_De=function(){let n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){n=!1}return _De=()=>n,n},bZ=function(n){for(var t=Yg(256),e=0;e<256;e++)t[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;return t[254]=t[254]=1,bZ=i=>t[i],t[n]};function T4(n){var t,e,i,s,o,r=n.length,a=0;for(s=0;s>>6,t[o++]=128|63&e):e<65536?(t[o++]=224|e>>>12,t[o++]=128|e>>>6&63,t[o++]=128|63&e):(t[o++]=240|e>>>18,t[o++]=128|e>>>12&63,t[o++]=128|e>>>6&63,t[o++]=128|63&e);return t}function vDe(n,t){if(t<65534&&(n.subarray&&_De()||!n.subarray&&yDe()))return String.fromCharCode.apply(null,w4(n,t));for(var e="",i=0;i4)a[i++]=65533,e+=o-1;else{for(s&=2===o?31:3===o?15:7;o>1&&e1?a[i++]=65533:s<65536?a[i++]=s:(a[i++]=55296|(s-=65536)>>10&1023,a[i++]=56320|1023&s)}return vDe(a,i)}function wLt(n,t){var e;for((t=t||n.length)>n.length&&(t=n.length),e=t-1;e>=0&&128==(192&n[e]);)e--;return e<0||0===e?t:e+bZ(n[e])>t?e:t}function tF(n,t,e,i){for(var s=65535&n|0,o=n>>>16&65535|0,r=0;0!==e;){e-=r=e>2e3?2e3:e;do{o=o+(s=s+t[i++]|0)|0}while(--r);s%=65521,o%=65521}return s|o<<16|0}let bDe=function(){const n=function(){for(var n,t=[],e=0;e<256;e++){n=e;for(var i=0;i<8;i++)n=1&n?3988292384^n>>>1:n>>>1;t[e]=n}return t}();return bDe=()=>n,n};function Al(n,t,e,i){var s=bDe(),o=i+e;n^=-1;for(var r=i;r>>8^s[255&(n^t[r])];return-1^n}function kLt(n,t){var e,i,s,o,r,a,l,c,d,u,h,f,m,C,k,D,E,O,z,q,re,ie,Se,Te,Ee;Te=n.input,s=(i=n.next_in)+(n.avail_in-5),Ee=n.output,r=(o=n.next_out)-(t-n.avail_out),a=o+(n.avail_out-257),l=(e=n.state).dmax,c=e.wsize,d=e.whave,u=e.wnext,h=e.window,f=e.hold,m=e.bits,C=e.lencode,k=e.distcode,D=(1<>>=z=O>>>24,m-=z,0==(z=O>>>16&255))Ee[o++]=65535&O;else{if(!(16&z)){if(0==(64&z)){O=C[(65535&O)+(f&(1<>>=z,m-=z),m<15&&(f+=Te[i++]<>>=z=O>>>24,m-=z,!(16&(z=O>>>16&255))){if(0==(64&z)){O=k[(65535&O)+(f&(1<l){n.msg="invalid distance too far back",e.mode=30;break e}if(f>>>=z,m-=z,re>(z=o-r)){if((z=re-z)>d&&e.sane){n.msg="invalid distance too far back",e.mode=30;break e}if(ie=0,Se=h,0===u){if(ie+=c-z,z2;)Ee[o++]=Se[ie++],Ee[o++]=Se[ie++],Ee[o++]=Se[ie++],q-=3;q&&(Ee[o++]=Se[ie++],q>1&&(Ee[o++]=Se[ie++]))}else{ie=o-re;do{Ee[o++]=Ee[ie++],Ee[o++]=Ee[ie++],Ee[o++]=Ee[ie++],q-=3}while(q>2);q&&(Ee[o++]=Ee[ie++],q>1&&(Ee[o++]=Ee[ie++]))}break}}break}}while(i>3)<<3))-1,n.next_in=i-=q,n.next_out=o,n.avail_in=i=1&&0===be[h];h--);if(f>h&&(f=h),0===h)return s[o++]=20971520,s[o++]=20971520,a.bits=1,0;for(u=1;u0&&(0===n||1!==h))return-1;for(Ke[1]=0,c=1;c<15;c++)Ke[c+1]=Ke[c]+be[c];for(d=0;d852||2===n&&D>592)return 1;for(;;){Ze=c-C,r[d]Ee?(Ge=Re[Qe+r[d]],tt=Se[Te+r[d]]):(Ge=96,tt=0),O=1<>C)+(z-=O)]=Ze<<24|Ge<<16|tt|0}while(0!==z);for(O=1<>=1;if(0!==O?(E&=O-1,E+=O):E=0,d++,0==--be[c]){if(c===h)break;c=t[e+r[d]]}if(c>f&&(E&re)!==q){for(0===C&&(C=f),ie+=u,k=1<<(m=c-C);m+C852||2===n&&D>592)return 1;s[q=E&re]=f<<24|m<<16|ie-o|0}}return 0!==E&&(s[ie+E]=c-C<<24|64<<16|0),a.bits=f,0}function eMe(n){return(n>>>24&255)+(n>>>8&65280)+((65280&n)<<8)+((255&n)<<24)}function VLt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=Yd(320),this.work=Yd(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function jLt(n,t){var e,i;return n?(i=new VLt,n.state=i,i.window=null,0!==(e=function(n,t){var e,i;return!n||!n.state||(i=n.state,t<0?(e=0,t=-t):(e=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15))?-2:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=e,i.wbits=t,function(n){var t;return n&&n.state?((t=n.state).wsize=0,t.whave=0,t.wnext=0,function(n){var t;return n&&n.state?(n.total_in=n.total_out=(t=n.state).total=0,n.msg="",t.wrap&&(n.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=jD(852),t.distcode=t.distdyn=jD(592),t.sane=1,t.back=-1,0):-2}(n)):-2}(n))}(n,t))&&(n.state=null),e):-2}var TZ,kZ,tMe=!0;function $Lt(n){if(tMe){var t;for(TZ=jD(512),kZ=jD(32),t=0;t<144;)n.lens[t++]=8;for(;t<256;)n.lens[t++]=9;for(;t<280;)n.lens[t++]=7;for(;t<288;)n.lens[t++]=8;for(nF(1,n.lens,0,288,TZ,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;nF(2,n.lens,0,32,kZ,0,n.work,{bits:5}),tMe=!1}n.lencode=TZ,n.lenbits=9,n.distcode=kZ,n.distbits=5}function nMe(n,t,e,i){var s,o=n.state;return null===o.window&&(o.wsize=1<=o.wsize?(Lu(o.window,t,e-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((s=o.wsize-o.wnext)>i&&(s=i),Lu(o.window,t,e-i,s,o.wnext),(i-=s)?(Lu(o.window,t,e-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,e.check=Al(e.check,Te,2,0),c=0,d=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&c)<<8)+(c>>8))%31){n.msg="incorrect header check",e.mode=30;break}if(8!=(15&c)){n.msg="unknown compression method",e.mode=30;break}if(d-=4,ie=8+(15&(c>>>=4)),0===e.wbits)e.wbits=ie;else if(ie>e.wbits){n.msg="invalid window size",e.mode=30;break}e.dmax=1<>8&1),512&e.flags&&(Te[0]=255&c,Te[1]=c>>>8&255,e.check=Al(e.check,Te,2,0)),c=0,d=0,e.mode=3;case 3:for(;d<32;){if(0===a)break e;a--,c+=i[o++]<>>8&255,Te[2]=c>>>16&255,Te[3]=c>>>24&255,e.check=Al(e.check,Te,4,0)),c=0,d=0,e.mode=4;case 4:for(;d<16;){if(0===a)break e;a--,c+=i[o++]<>8),512&e.flags&&(Te[0]=255&c,Te[1]=c>>>8&255,e.check=Al(e.check,Te,2,0)),c=0,d=0,e.mode=5;case 5:if(1024&e.flags){for(;d<16;){if(0===a)break e;a--,c+=i[o++]<>>8&255,e.check=Al(e.check,Te,2,0)),c=0,d=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&((f=e.length)>a&&(f=a),f&&(e.head&&(ie=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),Lu(e.head.extra,i,o,f,ie)),512&e.flags&&(e.check=Al(e.check,i,f,o)),a-=f,o+=f,e.length-=f),e.length))break e;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(0===a)break e;f=0;do{ie=i[o+f++],e.head&&ie&&e.length<65536&&(e.head.name+=String.fromCharCode(ie))}while(ie&&f>9&1,e.head.done=!0),n.adler=e.check=0,e.mode=12;break;case 10:for(;d<32;){if(0===a)break e;a--,c+=i[o++]<>>=7&d,d-=7&d,e.mode=27;break}for(;d<3;){if(0===a)break e;a--,c+=i[o++]<>>=1)){case 0:e.mode=14;break;case 1:if($Lt(e),e.mode=20,6===t){c>>>=2,d-=2;break e}break;case 2:e.mode=17;break;case 3:n.msg="invalid block type",e.mode=30}c>>>=2,d-=2;break;case 14:for(c>>>=7&d,d-=7&d;d<32;){if(0===a)break e;a--,c+=i[o++]<>>16^65535)){n.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&c,c=0,d=0,e.mode=15,6===t)break e;case 15:e.mode=16;case 16:if(f=e.length){if(f>a&&(f=a),f>l&&(f=l),0===f)break e;Lu(s,i,o,f,r),a-=f,o+=f,l-=f,r+=f,e.length-=f;break}e.mode=12;break;case 17:for(;d<14;){if(0===a)break e;a--,c+=i[o++]<>>=5)),d-=5,e.ncode=4+(15&(c>>>=5)),c>>>=4,d-=4,e.nlen>286||e.ndist>30){n.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have>>=3,d-=3}for(;e.have<19;)e.lens[Ke[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Se=nF(0,e.lens,0,19,e.lencode,0,e.work,Ee={bits:e.lenbits}),e.lenbits=Ee.bits,Se){n.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have>>16&255,O=65535&k,!((D=k>>>24)<=d);){if(0===a)break e;a--,c+=i[o++]<>>=D,d-=D,e.lens[e.have++]=O;else{if(16===O){for(be=D+2;d>>=D,d-=D,0===e.have){n.msg="invalid bit length repeat",e.mode=30;break}ie=e.lens[e.have-1],f=3+(3&c),c>>>=2,d-=2}else if(17===O){for(be=D+3;d>>=D)),c>>>=3,d-=3}else{for(be=D+7;d>>=D)),c>>>=7,d-=7}if(e.have+f>e.nlen+e.ndist){n.msg="invalid bit length repeat",e.mode=30;break}for(;f--;)e.lens[e.have++]=ie}}if(30===e.mode)break;if(0===e.lens[256]){n.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,Se=nF(1,e.lens,0,e.nlen,e.lencode,0,e.work,Ee={bits:e.lenbits}),e.lenbits=Ee.bits,Se){n.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,Se=nF(2,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Ee={bits:e.distbits}),e.distbits=Ee.bits,Se){n.msg="invalid distances set",e.mode=30;break}if(e.mode=20,6===t)break e;case 20:e.mode=21;case 21:if(a>=6&&l>=258){n.next_out=r,n.avail_out=l,n.next_in=o,n.avail_in=a,e.hold=c,e.bits=d,kLt(n,h),r=n.next_out,s=n.output,l=n.avail_out,o=n.next_in,i=n.input,a=n.avail_in,c=e.hold,d=e.bits,12===e.mode&&(e.back=-1);break}for(e.back=0;E=(k=e.lencode[c&(1<>>16&255,O=65535&k,!((D=k>>>24)<=d);){if(0===a)break e;a--,c+=i[o++]<>z)])>>>16&255,O=65535&k,!(z+(D=k>>>24)<=d);){if(0===a)break e;a--,c+=i[o++]<>>=z,d-=z,e.back+=z}if(c>>>=D,d-=D,e.back+=D,e.length=O,0===E){e.mode=26;break}if(32&E){e.back=-1,e.mode=12;break}if(64&E){n.msg="invalid literal/length code",e.mode=30;break}e.extra=15&E,e.mode=22;case 22:if(e.extra){for(be=e.extra;d>>=e.extra,d-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;E=(k=e.distcode[c&(1<>>16&255,O=65535&k,!((D=k>>>24)<=d);){if(0===a)break e;a--,c+=i[o++]<>z)])>>>16&255,O=65535&k,!(z+(D=k>>>24)<=d);){if(0===a)break e;a--,c+=i[o++]<>>=z,d-=z,e.back+=z}if(c>>>=D,d-=D,e.back+=D,64&E){n.msg="invalid distance code",e.mode=30;break}e.offset=O,e.extra=15&E,e.mode=24;case 24:if(e.extra){for(be=e.extra;d>>=e.extra,d-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){n.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(0===l)break e;if(e.offset>(f=h-l)){if((f=e.offset-f)>e.whave&&e.sane){n.msg="invalid distance too far back",e.mode=30;break}m=f>e.wnext?e.wsize-(f-=e.wnext):e.wnext-f,f>e.length&&(f=e.length),C=e.window}else C=s,m=r-e.offset,f=e.length;f>l&&(f=l),l-=f,e.length-=f;do{s[r++]=C[m++]}while(--f);0===e.length&&(e.mode=21);break;case 26:if(0===l)break e;s[r++]=e.length,l--,e.mode=21;break;case 27:if(e.wrap){for(;d<32;){if(0===a)break e;a--,c|=i[o++]<=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new sMe,this.strm.avail_out=0;var i=jLt(this.strm,e.windowBits);if(0!==i)throw new Error(Ux[i]);if(this.header=new XLt,function(n,t){var e;n&&n.state&&0!=(2&(e=n.state).wrap)&&(e.head=t,t.done=!1)}(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=T4(e.dictionary):"[object ArrayBuffer]"===DZ.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&0!==(i=iMe(this.strm,e.dictionary))))throw new Error(Ux[i])}push(t,e){var r,a,l,c,d,u,i=this.strm,s=this.options.chunkSize,o=this.options.dictionary,h=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,i.input="string"==typeof t?function(n){for(var t=new Uint8Array(n.length),e=0,i=t.length;e0||0===i.avail_out)&&1!==r);return 1===r&&(a=4),4===a?(r=function(n){if(!n||!n.state)return-2;var t=n.state;return t.window&&(t.window=null),n.state=null,0}(this.strm),this.onEnd(r),this.ended=!0,0===r):(2===a&&(this.onEnd(0),i.avail_out=0),!0)}onData(t){this.chunks.push(t)}onEnd(t){0===t&&(this.result="string"===this.options.to?this.chunks.join(""):S4(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}}function UD(n){for(var t=n.length;--t>=0;)n[t]=0}var Kg,qD,XD,YD,F4,rF,uMe,hMe,pMe,FZ=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A4=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],tNt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],dMe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function OZ(n,t,e,i,s){this.static_tree=n,this.extra_bits=t,this.extra_base=e,this.elems=i,this.max_length=s,this.has_stree=n&&n.length}function RZ(n,t){this.dyn_tree=n,this.max_code=0,this.stat_desc=t}function fMe(n){return n<256?XD[n]:XD[256+(n>>>7)]}function aF(n,t){n.pending_buf[n.pending++]=255&t,n.pending_buf[n.pending++]=t>>>8&255}function Kd(n,t,e){n.bi_valid>16-e?(n.bi_buf|=t<>16-n.bi_valid,n.bi_valid+=e-16):(n.bi_buf|=t<>>=1,e<<=1}while(--t>0);return e>>>1}function mMe(n,t,e){var o,r,i=new Array(16),s=0;for(o=1;o<=15;o++)i[o]=s=s+e[o-1]<<1;for(r=0;r<=t;r++){var a=n[2*r+1];0!==a&&(n[2*r]=gMe(i[a]++,a))}}function yMe(n){var t;for(t=0;t<286;t++)n.dyn_ltree[2*t]=0;for(t=0;t<30;t++)n.dyn_dtree[2*t]=0;for(t=0;t<19;t++)n.bl_tree[2*t]=0;n.dyn_ltree[512]=1,n.opt_len=n.static_len=0,n.last_lit=n.matches=0}function _Me(n){n.bi_valid>8?aF(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0}function vMe(n,t,e,i){var s=2*t,o=2*e;return n[s]>1;r>=1;r--)PZ(n,e,r);c=o;do{r=n.heap[1],n.heap[1]=n.heap[n.heap_len--],PZ(n,e,1),a=n.heap[1],n.heap[--n.heap_max]=r,n.heap[--n.heap_max]=a,e[2*c]=e[2*r]+e[2*a],n.depth[c]=(n.depth[r]>=n.depth[a]?n.depth[r]:n.depth[a])+1,e[2*r+1]=e[2*a+1]=c,n.heap[1]=c++,PZ(n,e,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],function(n,t){var c,d,u,h,f,m,e=t.dyn_tree,i=t.max_code,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,r=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length,C=0;for(h=0;h<=15;h++)n.bl_count[h]=0;for(e[2*n.heap[n.heap_max]+1]=0,c=n.heap_max+1;c<573;c++)(h=e[2*e[2*(d=n.heap[c])+1]+1]+1)>l&&(h=l,C++),e[2*d+1]=h,!(d>i)&&(n.bl_count[h]++,f=0,d>=a&&(f=r[d-a]),n.opt_len+=(m=e[2*d])*(h+f),o&&(n.static_len+=m*(s[2*d+1]+f)));if(0!==C){do{for(h=l-1;0===n.bl_count[h];)h--;n.bl_count[h]--,n.bl_count[h+1]+=2,n.bl_count[l]--,C-=2}while(C>0);for(h=l;0!==h;h--)for(d=n.bl_count[h];0!==d;)!((u=n.heap[--c])>i)&&(e[2*u+1]!==h&&(n.opt_len+=(h-e[2*u+1])*e[2*u],e[2*u+1]=h),d--)}}(n,t),mMe(e,l,n.bl_count)}function CMe(n,t,e){var i,o,s=-1,r=t[1],a=0,l=7,c=4;for(0===r&&(l=138,c=3),t[2*(e+1)+1]=65535,i=0;i<=e;i++)o=r,r=t[2*(i+1)+1],!(++a>>8&255,n.pending_buf[n.d_buf+2*n.last_lit+1]=255&t,n.pending_buf[n.l_buf+n.last_lit]=255&e,n.last_lit++,0===t?n.dyn_ltree[2*e]++:(n.matches++,t--,n.dyn_ltree[2*(YD[e]+256+1)]++,n.dyn_dtree[2*fMe(t)]++),n.last_lit===n.lit_bufsize-1}var cf=262;function Cb(n,t){return n.msg=Ux[t],t}function TMe(n){return(n<<1)-(n>4?9:0)}function xb(n){for(var t=n.length;--t>=0;)n[t]=0}function wb(n){var t=n.state,e=t.pending;e>n.avail_out&&(e=n.avail_out),0!==e&&(Lu(n.output,t.pending_buf,t.pending_out,e,n.next_out),n.next_out+=e,t.pending_out+=e,n.total_out+=e,n.avail_out-=e,t.pending-=e,0===t.pending&&(t.pending_out=0))}function Yl(n,t){(function(n,t,e,i){var s,o,r=0;n.level>0?(2===n.strm.data_type&&(n.strm.data_type=function(n){var e,t=4093624447;for(e=0;e<=31;e++,t>>>=1)if(1&t&&0!==n.dyn_ltree[2*e])return 0;if(0!==n.dyn_ltree[18]||0!==n.dyn_ltree[20]||0!==n.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==n.dyn_ltree[2*e])return 1;return 0}(n)),LZ(n,n.l_desc),LZ(n,n.d_desc),r=function(n){var t;for(CMe(n,n.dyn_ltree,n.l_desc.max_code),CMe(n,n.dyn_dtree,n.d_desc.max_code),LZ(n,n.bl_desc),t=18;t>=3&&0===n.bl_tree[2*dMe[t]+1];t--);return n.opt_len+=3*(t+1)+5+5+4,t}(n),(o=n.static_len+3+7>>>3)<=(s=n.opt_len+3+7>>>3)&&(s=o)):s=o=e+5,e+4<=s&&-1!==t?SMe(n,t,e,i):4===n.strategy||o===s?(Kd(n,2+(i?1:0),3),bMe(n,Kg,qD)):(Kd(n,4+(i?1:0),3),function(n,t,e,i){var s;for(Kd(n,t-257,5),Kd(n,e-1,5),Kd(n,i-4,4),s=0;s=0?n.block_start:-1,n.strstart-n.block_start,t),n.block_start=n.strstart,wb(n.strm)}function $s(n,t){n.pending_buf[n.pending++]=t}function dF(n,t){n.pending_buf[n.pending++]=t>>>8&255,n.pending_buf[n.pending++]=255&t}function xNt(n,t,e,i){var s=n.avail_in;return s>i&&(s=i),0===s?0:(n.avail_in-=s,Lu(t,n.input,n.next_in,s,e),1===n.state.wrap?n.adler=tF(n.adler,t,s,e):2===n.state.wrap&&(n.adler=Al(n.adler,t,s,e)),n.next_in+=s,n.total_in+=s,s)}function kMe(n,t){var s,o,e=n.max_chain_length,i=n.strstart,r=n.prev_length,a=n.nice_match,l=n.strstart>n.w_size-cf?n.strstart-(n.w_size-cf):0,c=n.window,d=n.w_mask,u=n.prev,h=n.strstart+258,f=c[i+r-1],m=c[i+r];n.prev_length>=n.good_match&&(e>>=2),a>n.lookahead&&(a=n.lookahead);do{if(c[(s=t)+r]===m&&c[s+r-1]===f&&c[s]===c[i]&&c[++s]===c[i+1]){i+=2,s++;do{}while(c[++i]===c[++s]&&c[++i]===c[++s]&&c[++i]===c[++s]&&c[++i]===c[++s]&&c[++i]===c[++s]&&c[++i]===c[++s]&&c[++i]===c[++s]&&c[++i]===c[++s]&&ir){if(n.match_start=t,r=o,o>=a)break;f=c[i+r-1],m=c[i+r]}}}while((t=u[t&d])>l&&0!=--e);return r<=n.lookahead?r:n.lookahead}function Yx(n){var e,i,s,o,r,t=n.w_size;do{if(o=n.window_size-n.lookahead-n.strstart,n.strstart>=t+(t-cf)){Lu(n.window,n.window,t,t,0),n.match_start-=t,n.strstart-=t,n.block_start-=t,e=i=n.hash_size;do{s=n.head[--e],n.head[e]=s>=t?s-t:0}while(--i);e=i=t;do{s=n.prev[--e],n.prev[e]=s>=t?s-t:0}while(--i);o+=t}if(0===n.strm.avail_in)break;if(i=xNt(n.strm,n.window,n.strstart+n.lookahead,o),n.lookahead+=i,n.lookahead+n.insert>=3)for(n.ins_h=n.window[r=n.strstart-n.insert],n.ins_h=(n.ins_h<n.pending_buf_size-5&&(e=n.pending_buf_size-5);;){if(n.lookahead<=1){if(Yx(n),0===n.lookahead&&0===t)return 1;if(0===n.lookahead)break}n.strstart+=n.lookahead,n.lookahead=0;var i=n.block_start+e;if((0===n.strstart||n.strstart>=i)&&(n.lookahead=n.strstart-i,n.strstart=i,Yl(n,!1),0===n.strm.avail_out)||n.strstart-n.block_start>=n.w_size-cf&&(Yl(n,!1),0===n.strm.avail_out))return 1}return n.insert=0,4===t?(Yl(n,!0),0===n.strm.avail_out?3:4):(n.strstart>n.block_start&&Yl(n,!1),1)}function VZ(n,t){for(var e,i;;){if(n.lookahead=3&&(n.ins_h=(n.ins_h<=3)if(i=vb(n,n.strstart-n.match_start,n.match_length-3),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=3){n.match_length--;do{n.strstart++,n.ins_h=(n.ins_h<=3&&(n.ins_h=(n.ins_h<4096)&&(n.match_length=2)),n.prev_length>=3&&n.match_length<=n.prev_length){s=n.strstart+n.lookahead-3,i=vb(n,n.strstart-1-n.prev_match,n.prev_length-3),n.lookahead-=n.prev_length-1,n.prev_length-=2;do{++n.strstart<=s&&(n.ins_h=(n.ins_h<n,n};function DNt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=Yd(1146),this.dyn_dtree=Yd(122),this.bl_tree=Yd(78),xb(this.dyn_ltree),xb(this.dyn_dtree),xb(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=Yd(16),this.heap=Yd(573),xb(this.heap),this.heap_len=0,this.heap_max=0,this.depth=Yd(573),xb(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ENt(n){var t=function(n){var t;return n&&n.state?(n.total_in=n.total_out=0,n.data_type=2,(t=n.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,n.adler=2===t.wrap?0:1,t.last_flush=0,function(n){wMe||(function(){var n,t,e,i,s,o=new Array(16);for(UD(Kg=new Array(576)),UD(qD=new Array(60)),UD(XD=new Array(512)),UD(YD=new Array(256)),UD(F4=new Array(29)),UD(rF=new Array(30)),e=0,i=0;i<28;i++)for(F4[i]=e,n=0;n<1<>=7;i<30;i++)for(rF[i]=s<<7,n=0;n<1<5||t<0)return n?Cb(n,-2):-2;if(i=n.state,!n.output||!n.input&&0!==n.avail_in||666===i.status&&4!==t)return Cb(n,0===n.avail_out?-5:-2);if(i.strm=n,e=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)n.adler=0,$s(i,31),$s(i,139),$s(i,8),i.gzhead?($s(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),$s(i,255&i.gzhead.time),$s(i,i.gzhead.time>>8&255),$s(i,i.gzhead.time>>16&255),$s(i,i.gzhead.time>>24&255),$s(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),$s(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&($s(i,255&i.gzhead.extra.length),$s(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(n.adler=Al(n.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):($s(i,0),$s(i,0),$s(i,0),$s(i,0),$s(i,0),$s(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),$s(i,3),i.status=113);else{var r=8+(i.w_bits-8<<4)<<8;r|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(r|=32),r+=31-r%31,i.status=113,dF(i,r),0!==i.strstart&&(dF(i,n.adler>>>16),dF(i,65535&n.adler)),n.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(n.adler=Al(n.adler,i.pending_buf,i.pending-s,s)),wb(n),s=i.pending,i.pending!==i.pending_buf_size));)$s(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(n.adler=Al(n.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(n.adler=Al(n.adler,i.pending_buf,i.pending-s,s)),wb(n),s=i.pending,i.pending===i.pending_buf_size)){o=1;break}o=i.gzindexs&&(n.adler=Al(n.adler,i.pending_buf,i.pending-s,s)),0===o&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(n.adler=Al(n.adler,i.pending_buf,i.pending-s,s)),wb(n),s=i.pending,i.pending===i.pending_buf_size)){o=1;break}o=i.gzindexs&&(n.adler=Al(n.adler,i.pending_buf,i.pending-s,s)),0===o&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&wb(n),i.pending+2<=i.pending_buf_size&&($s(i,255&n.adler),$s(i,n.adler>>8&255),n.adler=0,i.status=113)):i.status=113),0!==i.pending){if(wb(n),0===n.avail_out)return i.last_flush=-1,0}else if(0===n.avail_in&&TMe(t)<=TMe(e)&&4!==t)return Cb(n,-5);if(666===i.status&&0!==n.avail_in)return Cb(n,-5);if(0!==n.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var l=2===i.strategy?function(n,t){for(var e;;){if(0===n.lookahead&&(Yx(n),0===n.lookahead)){if(0===t)return 1;break}if(n.match_length=0,e=vb(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,e&&(Yl(n,!1),0===n.strm.avail_out))return 1}return n.insert=0,4===t?(Yl(n,!0),0===n.strm.avail_out?3:4):n.last_lit&&(Yl(n,!1),0===n.strm.avail_out)?1:2}(i,t):3===i.strategy?function(n,t){for(var e,i,s,o,r=n.window;;){if(n.lookahead<=258){if(Yx(n),n.lookahead<=258&&0===t)return 1;if(0===n.lookahead)break}if(n.match_length=0,n.lookahead>=3&&n.strstart>0&&(i=r[s=n.strstart-1])===r[++s]&&i===r[++s]&&i===r[++s]){o=n.strstart+258;do{}while(i===r[++s]&&i===r[++s]&&i===r[++s]&&i===r[++s]&&i===r[++s]&&i===r[++s]&&i===r[++s]&&i===r[++s]&&sn.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=3?(e=vb(n,1,n.match_length-3),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(e=vb(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),e&&(Yl(n,!1),0===n.strm.avail_out))return 1}return n.insert=0,4===t?(Yl(n,!0),0===n.strm.avail_out?3:4):n.last_lit&&(Yl(n,!1),0===n.strm.avail_out)?1:2}(i,t):zZ()[i.level].func(i,t);if((3===l||4===l)&&(i.status=666),1===l||3===l)return 0===n.avail_out&&(i.last_flush=-1),0;if(2===l&&(1===t?function(n){Kd(n,2,3),Zg(n,256,Kg),function(n){16===n.bi_valid?(aF(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)}(n)}(i):5!==t&&(SMe(i,0,0,!1),3===t&&(xb(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),wb(n),0===n.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?($s(i,255&n.adler),$s(i,n.adler>>8&255),$s(i,n.adler>>16&255),$s(i,n.adler>>24&255),$s(i,255&n.total_in),$s(i,n.total_in>>8&255),$s(i,n.total_in>>16&255),$s(i,n.total_in>>24&255)):(dF(i,n.adler>>>16),dF(i,65535&n.adler)),wb(n),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)}var DMe=Object.prototype.toString;class MMe{constructor(t){this.options=mDe({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new sMe,this.strm.avail_out=0;var i=function(n,t,e,i,s,o){if(!n)return-2;var r=1;if(-1===t&&(t=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),s<1||s>9||8!==e||i<8||i>15||t<0||t>9||o<0||o>4)return Cb(n,-2);8===i&&(i=9);var a=new DNt;return n.state=a,a.strm=n,a.wrap=r,a.gzhead=null,a.w_bits=i,a.w_size=1<=i.w_size&&(0===r&&(xb(i.head),i.strstart=0,i.block_start=0,i.insert=0),d=Yg(i.w_size),Lu(d,t,e-i.w_size,i.w_size,0),t=d,e=i.w_size),a=n.avail_in,l=n.next_in,c=n.input,n.avail_in=e,n.next_in=0,n.input=t,Yx(i);i.lookahead>=3;){s=i.strstart,o=i.lookahead-2;do{i.ins_h=(i.ins_h<0||0===i.avail_out)&&1!==o);return 4===r?(o=function(n){var t;return n&&n.state?42!==(t=n.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?Cb(n,-2):(n.state=null,113===t?Cb(n,-3):0):-2}(this.strm),this.onEnd(o),this.ended=!0,0===o):(2===r&&(this.onEnd(0),i.avail_out=0),!0)}onData(t){this.chunks.push(t)}onEnd(t){0===t&&(this.result="string"===this.options.to?this.chunks.join(""):S4(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}}const Kh=String.fromCharCode;var Lr={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 Qy(n,t){n=n.toLowerCase(),Lr[n]=function(){return Lr[t]},Lr[n+"|bold"]=function(){return Lr[t+"|bold"]},Lr[n+"|italic"]=function(){return Lr[t+"|italic"]},Lr[n+"|bold|italic"]=function(){return Lr[t+"|bold|italic"]}}function Qx(){let n,t;const e=new Promise((i,s)=>{n=o=>(e._state="resolved",i(o),e),t=o=>(e._state="rejected",s(o),e)});return e._state="pending",e.resolve=n,e.reject=t,e.state=()=>e._state,e}Qy("Times New Roman","serif"),Qy("Courier New","monospace"),Qy("Arial","sans-serif"),Qy("Helvetica","sans-serif"),Qy("Verdana","sans-serif"),Qy("Tahoma","sans-serif"),Qy("Georgia","sans-serif"),Qy("Monaco","monospace"),Qy("Andale Mono","monospace");const HMe=class extends Yi{constructor(t){super(),this._size=t,this._length=0,this._map={}}put(t,e){const i=this._map,s={key:t,value:e};i[t]=s,this._head?(this._tail.newer=s,s.older=this._tail,this._tail=s):this._head=this._tail=s,this._length>=this._size?(i[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}get(t){const e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value}},_3t=/\r?\n|\r|\t/g;function XZ(n){return String(n).replace(_3t," ")}function GMe(n){const t=[];for(let e in n)t.push(e+n[e]);return t.sort().join("")}function jMe(n){let t=2166136261;for(let e=0;e>>0}const b3t={baselineMarkerSize:1};let YZ;"undefined"!=typeof document&&(YZ=document.createElement("div"),YZ.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;");class KZ extends Yi{constructor(t){super(),this._cache=new HMe(1e3),this.options=Object.assign({},b3t,t)}measure(t,e,i={}){if(null==t)return{width:0,height:0,baseline:0};const o=jMe(t+GMe(e)),r=this._cache.get(o);if(r)return r;const a={width:0,height:0,baseline:0},l=i.box||YZ,c=this._baselineMarker().cloneNode(!1);for(let u in e){let h=e[u];void 0!==h&&(l.style[u]=h)}const d=!1!==i.normalizeText?XZ(t):String(t);return l.textContent=d,l.appendChild(c),document.body.appendChild(l),d.length&&(a.width=l.offsetWidth-this.options.baselineMarkerSize,a.height=l.offsetHeight,a.baseline=c.offsetTop+this.options.baselineMarkerSize),a.width>0&&a.height>0&&this._cache.put(o,a),l.parentNode.removeChild(l),a}_baselineMarker(){const t=document.createElement("div");return t.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",t}}KZ.current=new KZ;const UMe=KZ;function N4(n,t,e){return UMe.current.measure(n,t,e)}const C3t={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 B4(n){const t=[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];let e="";for(;n>0;)n=0;let s=this,o=t;if(i){const r=o.split(".");let a=this.prefix;for(;r.length>1;){o=r.shift(),a+=o+".";let l=s[o];l||(l=new hF({},a),l.addObserver(this),s[o]=l),s=l}o=r[0]}s._clear(o),s[o]=e}_clear(t){const e=this[t];e&&e.removeObserver&&e.removeObserver(this)}_wrap(t,e){const i=w3t.call(t);let s=t;return null!==s&&ti(s)&&"[object Object]"===i&&(!(t instanceof hF)&&!(t instanceof Yi)&&(s=new hF(s,this.prefix+e+".")),s.addObserver(this)),s}}const ZZ=hF;let S3t=1;function z4(){return"kdef"+S3t++}function QZ(n,t){return ti(n)?n:t}function Jx(n){return""===n||null===n||"none"===n||"transparent"===n||!ti(n)}const Jg=class extends Ru{get nodeType(){return"Rect"}constructor(t){super(),this._initOptions(t)}_initOptions(t={}){const{clip:e,transform:i}=t;i&&(t.transform=js(i)),e&&!e.id&&(e.id=z4()),this.options=new ZZ(t),this.options.addObserver(this)}transform(t){if(!ti(t))return this.options.get("transform");this.options.set("transform",js(t))}parentTransform(){let e,t=this;for(;t.parent;){t=t.parent;let i=t.transform();i&&(e=i.matrix().multiplyCopy(e||Il.unit()))}if(e)return js(e)}currentTransform(t=this.parentTransform()){const i=Gx(this.transform());let o,s=Gx(t);if(o=i&&s?s.multiplyCopy(i):i||s,o)return js(o)}visible(t){return ti(t)?(this.options.set("visible",t),this):!1!==this.options.get("visible")}clip(t){const e=this.options;return ti(t)?(t&&!t.id&&(t.id=z4()),e.set("clip",t),this):e.get("clip")}opacity(t){return ti(t)?(this.options.set("opacity",t),this):QZ(this.options.get("opacity"),1)}clippedBBox(t){const e=this._clippedBBox(t);if(e){const i=this.clip();return i?ji.intersect(e,i.bbox(t)):e}}containsPoint(t,e){if(this.visible()){const i=this.currentTransform(e);let s=t;return i&&(s=t.transformCopy(i.matrix().invert())),this._hasFill()&&this._containsPoint(s)||this._isOnPath&&this._hasStroke()&&this._isOnPath(s)}return!1}_hasFill(){const t=this.options.fill;return t&&!Jx(t.color)}_hasStroke(){const t=this.options.stroke;return t&&t.width>0&&!Jx(t.color)}_clippedBBox(t){return this.bbox(t)}},eM=n=>class extends n{fill(t,e){const i=this.options;if(ti(t)){if(t&&"Gradient"!==t.nodeType){const s={color:t};ti(e)&&(s.opacity=e),i.set("fill",s)}else i.set("fill",t);return this}return i.get("fill")}stroke(t,e,i){return ti(t)?(this.options.set("stroke.color",t),ti(e)&&this.options.set("stroke.width",e),ti(i)&&this.options.set("stroke.opacity",i),this):this.options.get("stroke")}};function D3t(n){const t="_"+n;return function(e){return ti(e)?(this._observerField(t,Ot.create(e)),this.geometryChange(),this):this[t]}}const H4=(n,t)=>{const e=class extends n{};return function(n,t){for(let e=0;eclass extends n{traverse(e){const i=this[t];for(let s=0;s=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this}removeAt(t){if(0<=t&&tclass extends n{bbox(t){const e=Gx(this.currentTransform(t)),i=e?e.toString():z3t;let s;this._bboxCache&&this._matrixHash===i?s=this._bboxCache.clone():(s=this._bbox(e),this._bboxCache=s?s.clone():null,this._matrixHash=i);const o=this.options.get("stroke.width");return o&&s&&s.expand(o/2),s}geometryChange(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}};function KMe(n,t,e){const i=mb(Math.atan2(t.y-n.y,t.x-n.x));return e.transformCopy(js().rotate(-i,n)).x0?e.x-s:o-e.x)/(o-s)+r-e.y>=0}return i?1:0}const j3t=["anchor","controlIn","controlOut"];class $3t extends(H4(Ru,j3t)){constructor(t,e,i){super(),this.anchor(t||new Ot),this.controlIn(e),this.controlOut(i)}bboxTo(t,e){const i=this.anchor().transformCopy(e),s=t.anchor().transformCopy(e);let o;return o=this.controlOut()&&t.controlIn()?this._curveBoundingBox(i,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),s):this._lineBoundingBox(i,s),o}_lineBoundingBox(t,e){return ji.fromPoints(t,e)}_curveBoundingBox(t,e,i,s){const o=[t,e,i,s],r=this._curveExtremesFor(o,"x"),a=this._curveExtremesFor(o,"y"),l=tEe([r.min,r.max,t.x,s.x]),c=tEe([a.min,a.max,t.y,s.y]);return ji.fromPoints(new Ot(l.min,c.min),new Ot(l.max,c.max))}_curveExtremesFor(t,e){const i=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:j4(i.min,e,t),max:j4(i.max,e,t)}}_curveExtremes(t,e,i,s){const o=t-3*e+3*i-s,r=-2*(t-2*e+i),a=t-e,l=Math.sqrt(r*r-4*o*a);let c=0,d=1;0===o?0!==r&&(c=d=-a/r):isNaN(l)||(c=(-r+l)/(2*o),d=(-r-l)/(2*o));let u=Math.max(Math.min(c,d),0);(u<0||u>1)&&(u=0);let h=Math.min(Math.max(c,d),1);return(h>1||h<0)&&(h=1),{min:u,max:h}}_intersectionsTo(t,e){let i;return i=this.controlOut()&&t.controlIn()?function(n,t,e){const i=ZMe(n,"x"),s=JMe(i[0],i[1],i[2],i[3]-t.x);let o,r,a=0;for(let l=0;lt.y,r&&((0===s[l]||1===s[l])&&e.bottomRight().x>t.x||0{let l=o.toLowerCase();const c=l===o,d=function(n){const t=[];return n.replace(q3t,function(e,i){t.push(parseFloat(i))}),t}(r.trim());if("m"===l&&(c?(e.x+=d[0],e.y+=d[1]):(e.x=d[0],e.y=d[1]),n.moveTo(e.x,e.y),d.length>2&&(l="l",d.splice(0,2))),rEe[l])rEe[l](n,{parameters:d,position:e,isRelative:c,previousCommand:i}),a&&"z"===a.toLowerCase()&&n.close();else if("m"!==l)throw new Error("Error while parsing SVG path. Unsupported command: "+l);i=l}),n};function U4(n,t,e){return Math.max(Math.min(n,e),t)}class Sn extends(eM(fF(Jg))){static parse(t,e){return Jy.parse(t,e)}get nodeType(){return"Path"}constructor(t){super(t),this.segments=new YMe,this.segments.addObserver(this),ti(this.options.stroke)||(this.stroke("#000"),ti(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}moveTo(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this}lineTo(t,e){const i=ti(e)?new Ot(t,e):t,s=new uf(i);return this.segments.push(s),this}curveTo(t,e,i){if(this.segments.length>0){const s=Bu(this.segments),o=new uf(i,e);this.suspend(),s.controlOut(t),this.resume(),this.segments.push(o)}return this}arc(t,e,i,s,o){if(this.segments.length>0){const a=Bu(this.segments).anchor(),l=Wg(t),c=new Ot(a.x-i*Math.cos(l),a.y-s*Math.sin(l)),d=new Yy(c,{startAngle:t,endAngle:e,radiusX:i,radiusY:s,anticlockwise:o});this._addArcSegments(d)}return this}arcTo(t,e,i,s,o,r){if(this.segments.length>0){const l=Bu(this.segments).anchor(),c=Yy.fromPoints(l,Ot.create(t),e,i,s,o,r);this._addArcSegments(c)}return this}_addArcSegments(t){this.suspend();const e=t.curvePoints();for(let i=1;i1){if(i[0]._isOnPathTo(i[1],t,o,"start"))return!0;for(let r=2;r<=s-2;r++)if(i[r-1]._isOnPathTo(i[r],t,o))return!0;if(i[s-2]._isOnPathTo(i[s-1],t,o,"end"))return!0}return!1}_bbox(t){const e=this.segments,i=e.length;let s;if(1===i){let o=e[0].anchor().transformCopy(t);s=new ji(o,Z2.ZERO)}else if(i>0)for(let o=1;o0&&Bu(this.paths).lineTo(t,e),this}curveTo(t,e,i){return this.paths.length>0&&Bu(this.paths).curveTo(t,e,i),this}arc(t,e,i,s,o){return this.paths.length>0&&Bu(this.paths).arc(t,e,i,s,o),this}arcTo(t,e,i,s,o,r){return this.paths.length>0&&Bu(this.paths).arcTo(t,e,i,s,o,r),this}close(){return this.paths.length>0&&Bu(this.paths).close(),this}_bbox(t){return G4(this.paths,!0,t)}rawBBox(){return G4(this.paths,!1)}_containsPoint(t){const e=this.paths;for(let i=0;i{const e=class extends n{};return function(n,t){for(let e=0;e{const e=class extends n{};return function(n,t){for(let e=0;e1?new mF(t[0],t[1],t[2]):new mF(t.offset,t.color,t.opacity),e}}}const iQ=mF,tM=class extends Ru{get nodeType(){return"Gradient"}constructor(t={}){super(),this.stops=new tBt(this._createStops(t.stops)),this.stops.addObserver(this),this._userSpace=t.userSpace,this.id=z4()}userSpace(t){return ti(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace}_createStops(t=[]){const e=[];for(let i=0;i=0&&this.stops.splice(e,1)}optionsChange(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})}geometryChange(){this.optionsChange()}},aBt=["start","end"];class lBt extends(H4(tM,aBt)){constructor(t={}){super(t),this.start(t.start||new Ot),this.end(t.end||new Ot(1,0))}}const yF=lBt;class dBt extends(eM(fF(W4(Jg)))){get nodeType(){return"Circle"}constructor(t=new qh,e={}){super(e),this.geometry(t),ti(this.options.stroke)||this.stroke("#000")}rawBBox(){return this._geometry.bbox()}_bbox(t){return this._geometry.bbox(t)}_containsPoint(t){return this.geometry().containsPoint(t)}_isOnPath(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)}}const Tb=dBt,q4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function sQ(n){let t="",e=0;const i=function(n){let t="";for(let e=0;e>>6),t+=Kh(128|63&i)):i<65536?(t+=Kh(224|i>>>12),t+=Kh(128|i>>>6&63),t+=Kh(128|63&i)):i<1114111&&(t+=Kh(240|i>>>18),t+=Kh(128|i>>>12&63),t+=Kh(128|i>>>6&63),t+=Kh(128|63&i))}return t}(n);for(;e>2,l=(3&s)<<4|o>>4,c=(15&o)<<2|r>>6,d=63&r;isNaN(o)?c=d=64:isNaN(r)&&(d=64),t=t+q4.charAt(a)+q4.charAt(l)+q4.charAt(c)+q4.charAt(d)}return t}var Ei={};Ei._root=Ei,"undefined"!=typeof Element&&Element.prototype&&Element,"undefined"!=typeof window&&window.kendo&&window;!function(){var n={}}();function xF(n,t){return Object.prototype.hasOwnProperty.call(n,t)}Object.create(null),Object.create(null);class LBt extends(H4(tM,["center"])){constructor(t={}){super(t),this.center(t.center||new Ot),this._radius=ti(t.radius)?t.radius:1,this._fallbackFill=t.fallbackFill}radius(t){return ti(t)?(this._radius=t,this.geometryChange(),this):this._radius}fallbackFill(t){return ti(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill}}const TF=LBt;const AEe=()=>document.createElement("a"),JBt=()=>"download"in AEe();function e5t(n,t){let e=n;if("string"==typeof n){const i=n.split(";base64,"),s=i[0],o=atob(i[1]),r=new Uint8Array(o.length);for(let a=0;aURL.revokeObjectURL(e))}function n5t(n,t,e){if(!e.proxyURL)return;const i=document.createElement("form");i.setAttribute("action",e.proxyURL),i.setAttribute("method","POST"),i.setAttribute("target",e.proxyTarget||"_self");const s=e.proxyData||{};s.fileName=t;const o=n.split(";base64,");s.contentType=o[0].replace("data:",""),s.base64=o[1];for(let r in s)if(s.hasOwnProperty(r)){const a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",r),a.setAttribute("value",s[r]),i.appendChild(a)}document.body.appendChild(i),i.submit(),document.body.removeChild(i)}function As(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function tm(n,t){return function(e,i){t(e,i,n)}}function Fs(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}let LEe={toString:n=>n};const NEe=class{static register(t){LEe=t}static toString(t,e){return LEe.toString(t,e)}};let BEe={compile:function(n){return n}};const J4=class{static register(t){BEe=t}static compile(t){return BEe.compile(t)}},d5t=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,EF={};function zEe(n){if(EF[n])return EF[n];const t=[];return n.replace(d5t,function(e,i,s,o){t.push(void 0!==i?i:s||o)}),EF[n]=function(e){let i=e;for(let s=0;s{const o=t(i,s);return null!=o&&e.push(o),e},[])}function u5t(n){return`${n.title}: ${n.value}`}function bQ(n,t){const e=[];for(let i=0;in,n};const sm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ez(n){return n}function CQ(n,t){for(var e=0;e{let n;try{n=Kl.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){n=!1}return GEe=()=>n,n};function tz(n){var t=65536,e=nw(n),i=!0;if("uint8array"===e&&(i=GEe()),i)for(;t>1;)try{return v5t(n,e,t)}catch(s){t=Math.floor(t/2)}return function(n){for(var t="",e=0;e>4,e=(15&o)<<4|r>>2,i=(3&r)<<6|a,h[c++]=t,64!==r&&(h[c++]=e),64!==a&&(h[c++]=i);return h}(r):e&&!0!==i&&(r=function(n){return CQ(n,Kl.uint8array?new Uint8Array(n.length):new Array(n.length))}(r))),r):im.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})};class ld{constructor(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}push(t){this.emit("data",t)}end(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0}error(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)}on(t,e){return this._listeners[t].push(e),this}cleanUp(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]}emit(t,e){if(this._listeners[t])for(var i=0;i "+t:t}}let SQ=function(n){const t=new Array(256);for(let e=0;e<256;e++)t[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;return t[254]=t[254]=1,SQ=function(e){return t[e]},t[n]};const AF=function(t){return function(n){var t,e,i,s,o,r=n.length,a=0;for(s=0;s>>6,t[o++]=128|63&e):e<65536?(t[o++]=224|e>>>12,t[o++]=128|e>>>6&63,t[o++]=128|63&e):(t[o++]=240|e>>>18,t[o++]=128|e>>>12&63,t[o++]=128|e>>>6&63,t[o++]=128|63&e);return t}(t)},iw=function(t){return function(n){var t,e,i,s,o=n.length,r=new Array(2*o);for(e=0,t=0;t4)r[e++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&t1?r[e++]=65533:i<65536?r[e++]=i:(r[e++]=55296|(i-=65536)>>10&1023,r[e++]=56320|1023&i)}return r.length!==e&&(r.subarray?r=r.subarray(0,e):r.length=e),C5t(r)}(t=tl(Kl.uint8array?"uint8array":"array",t))};class T5t extends ld{constructor(){super("utf-8 decode"),this.leftOver=null}processChunk(t){var e=tl(Kl.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(Kl.uint8array){var i=e;(e=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),e.set(i,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var s=function(n,t){var e;for((t=t||n.length)>n.length&&(t=n.length),e=t-1;e>=0&&128==(192&n[e]);)e--;return e<0||0===e?t:e+SQ(n[e])>t?e:t}(e),o=e;s!==e.length&&(Kl.uint8array?(o=e.subarray(0,s),this.leftOver=e.subarray(s,e.length)):(o=e.slice(0,s),this.leftOver=e.slice(s,e.length))),this.push({data:iw(o),meta:t.meta})}flush(){this.leftOver&&this.leftOver.length&&(this.push({data:iw(this.leftOver),meta:{}}),this.leftOver=null)}}class WEe extends ld{constructor(){super("utf-8 encode")}processChunk(t){this.push({data:AF(t.data),meta:t.meta})}}class k5t extends ld{constructor(t){super("ConvertWorker to "+t),this.destType=t}processChunk(t){this.push({data:tl(this.destType,t.data),meta:t.meta})}}function E5t(n,t){return new im.Promise(function(e,i){var s=[],o=n._internalType,r=n._outputType,a=n._mimeType;n.on("data",function(l,c){s.push(l),t&&t(c)}).on("error",function(l){s=[],i(l)}).on("end",function(){try{var l=function(n,t,e){switch(n){case"blob":return function(n,t){return IF("blob"),new Blob([n],{type:t})}(tl("arraybuffer",t),e);case"base64":return function(n){let e,i,s,o,r,a,l,t=[],c=0,d=n.length,u=d,h="string"!=typeof n;for(;c>2,r=(3&e)<<4|i>>4,a=u>1?(15&i)<<2|s>>6:64,l=u>2?63&s:64,t.push(sm.charAt(o)+sm.charAt(r)+sm.charAt(a)+sm.charAt(l));return t.join("")}(t);default:return tl(n,t)}}(r,function(n,t){var e,i=0,s=null,o=0;for(e=0;e=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,i);break;case"uint8array":e=this.data.subarray(this.index,i);break;case"array":e=this.data.slice(this.index,i)}return this.index=i,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})}}class kQ extends ld{constructor(t){super("DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}processChunk(t){t&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+t.data.length),super.processChunk(t)}}let DQ=function(){const n=[];for(let t=0;t<256;t++){let e=t;for(let i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;n[t]=e}return DQ=function(){return n},n};function FF(n,t){return void 0!==n&&n.length?"string"!==nw(n)?function(n,t,e,i){const s=DQ();let o=0+e;n^=-1;for(let r=0;r>>8^s[255&(n^t[r])];return-1^n}(0|t,n,n.length):function(n,t,e,i){const s=DQ();let o=0+e;n^=-1;for(let r=0;r>>8^s[255&(n^t.charCodeAt(r))];return-1^n}(0|t,n,n.length):0}class KEe extends ld{constructor(){super("Crc32Probe"),this.withStreamInfo("crc32",0)}processChunk(t){this.streamInfo.crc32=FF(t.data,this.streamInfo.crc32||0),this.push(t)}}class rM{constructor(t,e,i,s,o){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=s,this.compressedContent=o}getContentWorker(){var t=new TQ(im.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new kQ("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t}getCompressedWorker(){return new TQ(im.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}static createWorkerFrom(t,e,i){return t.pipe(new KEe).pipe(new kQ("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new kQ("compressedSize")).withStreamInfo("compression",e)}}class L5t{constructor(t,e,i){this.name=t,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=e,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}internalStream(t){var e=null,i="string";try{if(!t)throw new Error("No output type specified.");var s="string"===(i=t.toLowerCase())||"text"===i;("binarystring"===i||"text"===i)&&(i="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!s&&(e=e.pipe(new WEe)),!o&&s&&(e=e.pipe(new T5t))}catch(r){(e=new ld("error")).error(r)}return new qEe(e,i,"")}async(t,e){return this.internalStream(t).accumulate(e)}_compressWorker(t,e){if(this._data instanceof rM&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new WEe)),rM.createWorkerFrom(i,t,e)}_decompressWorker(){return this._data instanceof rM?this._data.getContentWorker():this._data instanceof ld?this._data:new TQ(this._data)}}let ZEe=function(){const t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";ZEe=function(){return t}};class QEe extends ld{constructor(t,e){super("FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}processChunk(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(tl(ZEe(),t.data),!1)}flush(){super.flush(),null===this._pako&&this._createPako(),this._pako.push([],!0)}cleanUp(){super.cleanUp(),this._pako=null}_createPako(){const t={raw:!0,level:this._pakoOptions.level||-1};this._pako="Deflate"===this._pakoAction?new MMe(t):new iF(t),this._pako.onData=e=>{this.push({data:e,meta:this.meta})}}}var OF={STORE:{magic:"\0\0",compressWorker:function(){return new ld("STORE compression")},uncompressWorker:function(){return new ld("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(n){return new QEe("Deflate",n)},uncompressWorker:function(){return new QEe("Inflate",{})}}};const MQ="PK\x03\x04",EQ="PK\x01\x02",IQ="PK\x05\x06",AQ="PK\x06\x06";var Zo=function(n,t){var i,e="";for(i=0;i>>=8;return e},eIe=function(n,t,e,i,s,o){var k,D,r=n.file,a=n.compression,l=o!==AF,c=tl("string",o(r.name)),d=tl("string",AF(r.name)),u=r.comment,h=tl("string",o(u)),f=tl("string",AF(u)),m=d.length!==r.name.length,C=f.length!==u.length,E="",O="",z="",q=r.dir,re=r.date,ie={crc32:0,compressedSize:0,uncompressedSize:0};(!t||e)&&(ie.crc32=n.crc32,ie.compressedSize=n.compressedSize,ie.uncompressedSize=n.uncompressedSize);var Se=0;t&&(Se|=8),!l&&(m||C)&&(Se|=2048);var Te=0,Ee=0;q&&(Te|=16),"UNIX"===s?(Ee=798,Te|=function(n,t){var e=n;return n||(e=t?16893:33204),(65535&e)<<16}(r.unixPermissions,q)):(Ee=20,Te|=function(n,t){return 63&(n||0)}(r.dosPermissions)),k=re.getUTCHours(),k<<=6,k|=re.getUTCMinutes(),k<<=5,k|=re.getUTCSeconds()/2,D=re.getUTCFullYear()-1980,D<<=4,D|=re.getUTCMonth()+1,D<<=5,D|=re.getUTCDate(),m&&(O=Zo(1,1)+Zo(FF(c),4)+d,E+="up"+Zo(O.length,2)+O),C&&(z=Zo(1,1)+Zo(FF(h),4)+f,E+="uc"+Zo(z.length,2)+z);var be="";return be+="\n\0",be+=Zo(Se,2),be+=a.magic,be+=Zo(k,2),be+=Zo(D,2),be+=Zo(ie.crc32,4),be+=Zo(ie.compressedSize,4),be+=Zo(ie.uncompressedSize,4),be+=Zo(c.length,2),be+=Zo(E.length,2),{fileRecord:MQ+be+c+E,dirRecord:EQ+Zo(Ee,2)+be+Zo(h.length,2)+"\0\0\0\0"+Zo(Te,4)+Zo(i,4)+c+E+h}},G5t=function(n){return"PK\x07\b"+Zo(n.crc32,4)+Zo(n.compressedSize,4)+Zo(n.uncompressedSize,4)};class j5t extends ld{constructor(t,e,i,s){super("ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=i,this.encodeFileName=s,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}push(t){var e=t.meta.percent||0,i=this.entriesCount,s=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,super.push({data:t.data,meta:{currentFile:this.currentFile,percent:i?(e+100*(i-s-1))/i:100}}))}openedSource(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var i=eIe(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0}closedSource(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,i=eIe(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),e)this.push({data:G5t(t),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null}flush(){for(var t=this.bytesWritten,e=0;e=this.index;i--)e=(e<<8)+this.byteAt(i);return this.index+=t,e}readString(t){return tl("string",this.readData(t))}readData(t){}lastIndexOfSignature(t){}readAndCheckSignature(t){}readDate(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}}class nIe extends tIe{constructor(t){super(t);for(var e=0;e=0;--r)if(this.data[r]===e&&this.data[r+1]===i&&this.data[r+2]===s&&this.data[r+3]===o)return r-this.zero;return-1}readAndCheckSignature(t){var e=t.charCodeAt(0),i=t.charCodeAt(1),s=t.charCodeAt(2),o=t.charCodeAt(3),r=this.readData(4);return e===r[0]&&i===r[1]&&s===r[2]&&o===r[3]}readData(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e}}class W5t extends tIe{constructor(t){super(t)}byteAt(t){return this.data.charCodeAt(this.zero+t)}lastIndexOfSignature(t){return this.data.lastIndexOf(t)-this.zero}readAndCheckSignature(t){return t===this.readData(4)}readData(t){this.checkOffset(t);const e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e}}class q5t extends nIe{constructor(t){super(t)}readData(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e}}function sz(n){const t=nw(n);return IF(t),"string"!==t||Kl.uint8array?Kl.uint8array?new q5t(tl("uint8array",n)):new nIe(tl("array",n)):new W5t(n)}class Z5t{constructor(t,e){this.options=t,this.loadOptions=e}isEncrypted(){return 1==(1&this.bitFlag)}useUTF8(){return 2048==(2048&this.bitFlag)}readLocalPart(t){var e,i;if(t.skip(22),this.fileNameLength=t.readInt(2),i=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(n){for(var t in OF)if(OF.hasOwnProperty(t)&&OF[t].magic===n)return OF[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+xQ(this.compressionMethod)+" unknown (inner file : "+tl("string",this.fileName)+")");this.decompressed=new rM(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))}readCentralPart(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)}processAttributes(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&"/"===this.fileNameStr.slice(-1)&&(this.dir=!0)}parseZIP64ExtraField(t){if(this.extraFields[1]){var e=sz(this.extraFields[1].value);-1===this.uncompressedSize&&(this.uncompressedSize=e.readInt(8)),-1===this.compressedSize&&(this.compressedSize=e.readInt(8)),-1===this.localHeaderOffset&&(this.localHeaderOffset=e.readInt(8)),-1===this.diskNumberStart&&(this.diskNumberStart=e.readInt(4))}}readExtraFields(t){var i,s,o,e=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index1)throw new Error("Multi-volumes zip are not supported")}readLocalFiles(){var t,e;for(t=0;t0)this.isSignature(i,EQ)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")}prepareReader(t){this.reader=sz(t)}load(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}}function J5t(n){return new im.Promise(function(t,e){var i=n.decompressed.getContentWorker().pipe(new KEe);i.on("error",function(s){e(s)}).on("end",function(){i.streamInfo.crc32!==n.decompressed.crc32?e(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}function eVt(n,t){var e=this;return t=wQ(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:iw}),UEe("the loaded zip file",n,!0,t.optimizedBinaryString,t.base64).then(function(i){var s=new Q5t(t);return s.load(i),s}).then(function(s){var o=[im.Promise.resolve(s)],r=s.files;if(t.checkCRC32)for(var a=0;a0?n.substring(0,t):""},sIe=function(n){return"/"!==n.slice(-1)&&(n+="/"),n},oIe=function(n,t){return t=void 0===t||t,n=sIe(n),this.files[n]||iIe.call(this,n,null,{dir:!0,createFolders:t}),this.files[n]};function rIe(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class oz{constructor(){if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){const t=new oz;for(const e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}load(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}forEach(t){var e,i,s;for(e in this.files)s=this.files[e],(i=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(i,s)}filter(t){var e=[];return this.forEach(function(i,s){t(i,s)&&e.push(s)}),e}file(t,e,i){if(1===arguments.length){if(rIe(t)){var s=t;return this.filter(function(r,a){return!a.dir&&s.test(r)})}var o=this.files[this.root+t];return o&&!o.dir?o:null}return iIe.call(this,t=this.root+t,e,i),this}folder(t){if(!t)return this;if(rIe(t))return this.filter(function(o,r){return r.dir&&t.test(o)});var i=oIe.call(this,this.root+t),s=this.clone();return s.root=i.name,s}remove(t){var e=this.files[t=this.root+t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var i=this.filter(function(o,r){return r.name.slice(0,t.length)===t}),s=0;s/g,">").replace(/\"/g,""").replace(/\'/g,"'")}function hIe(n,t){let e="";for(let i=0;i{e+=t(n[i],i,s)});return e}const zu='\r',dVt=`${zu}\n \n \n \n \n `,bVt=n=>`${zu}\n\n ${Qo(n,(t,e)=>`\n \n \n ${t.col}\n ${t.colOffset}\n ${t.row}\n ${t.rowOffset}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `)}\n`,CVt=n=>`${zu}\n\n ${Qo(n,t=>`\n `)}\n`;function FQ(n){const t=Math.floor(n/26)-1;return(t>=0?FQ(t):"")+String.fromCharCode(65+n%26)}function aM(n,t){return FQ(t)+(n+1)}function rz(n,t){return"$"+FQ(t)+"$"+(n+1)}function az(n){return(n.frozenRows||(n.freezePane||{}).rowSplit||1)-1}function OQ(n){return n/7-Math.floor(128/7)/256}class DVt{constructor(t,e,i,s){this.options=t,this._strings=e,this._styles=i,this._borders=s,this._validations={},this._comments=[],this._drawings=t.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map((o,r)=>Object.assign({},o,{rId:`link${r}`}))}relsToXML(){const t=this._hyperlinks,e=this._comments,i=this._drawings;if(t.length||e.length||i.length)return(({hyperlinks:n,comments:t,sheetIndex:e,drawings:i})=>`${zu}\n\n ${Qo(n,s=>`\n `)}\n ${t.length?`\n \n `:""}\n ${i.length?`\n `:""}\n`)({hyperlinks:t,comments:e,sheetIndex:this.options.sheetIndex,drawings:i})}toXML(t){const e=this.options.mergedCells||[],s=function(n,t){const e=[],i=[];!function(n,t){for(let e=0;e`${zu}\n\n ${k&&D?``:""}\n\n \n \n ${t||n?`\n `:""}\n \n \n\n \n\n ${null!=h||e&&e.length>0?`\n \n ${e&&e.length?"":`\n `}\n ${Qo(e,(E,O)=>{const z="number"==typeof E.index?E.index+1:O+1;return 0===E.width?``:``})}\n `:""}\n\n \n ${Qo(s,(E,O)=>`\n \n ${Qo(E.data,q=>`\n \n ${null!=q.formula?function(n){return"string"==typeof n?`${vo(n)}`:`${vo(n.src)}`}(q.formula):""}\n ${null!=q.value?`${vo(q.value)}`:""}\n `)}\n \n `)}\n \n\n ${a?``:l?sw(l):""}\n\n ${r.length?`\n \n ${Qo(r,E=>``)}\n `:""}\n\n ${u.length?`\n \n ${Qo(u,E=>`\n \n ${E.formula1?`${vo(E.formula1)}`:""}\n ${E.formula2?`${vo(E.formula2)}`:""}\n `)}\n `:""}\n\n ${d.length?`\n \n ${Qo(d,E=>`\n `)}\n `:""}\n\n \n ${C?``:""}\n ${m?``:""}\n`)({frozenColumns:this.options.frozenColumns||c.colSplit,frozenRows:this.options.frozenRows||c.rowSplit,columns:this.options.columns,defaults:d,data:s,index:t,mergeCells:e,autoFilter:o,filter:r,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:a,defaultCellStyleId:l,rtl:void 0!==this.options.rtl?this.options.rtl:d.rtl,legacyDrawing:this._comments.length?`vml${this.options.sheetIndex}`:null,drawing:this._drawings.length?`drw${this.options.sheetIndex}`:null,lastRow:u,lastCol:h})}commentsXML(){if(this._comments.length)return(({comments:n})=>`${zu}\n\n \n \n \n \n ${Qo(n,t=>`\n \n \n \n \n \n \n \n \n \n ${vo(t.text)}\n \n \n `)}\n \n`)({comments:this._comments})}drawingsXML(t){if(this._drawings.length){let e={},i=this._drawings.map(s=>{let o=PF(s.topLeftCell),r=e[s.image];return r||(r=e[s.image]={rId:`img${s.image}`,target:t[s.image].target}),{col:o.col,colOffset:cz(s.offsetX),row:o.row,rowOffset:cz(s.offsetY),width:cz(s.width),height:cz(s.height),imageId:r.rId}});return{main:bVt(i),rels:CVt(e)}}}legacyDrawing(){if(this._comments.length)return(({comments:n})=>`\n \n \n \n \n ${Qo(n,t=>`\n \n \n \n \n \n ${t.anchor}\n False\n ${t.row}\n ${t.col}\n \n `)}\n`)({comments:this._comments})}_lookupString(t){const e="$"+t,i=this._strings.indexes[e];let s;return void 0!==i?s=i:(s=this._strings.indexes[e]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,s}_lookupStyle(t){const e=JSON.stringify(t);if("{}"===e)return 0;let i=RF(e,this._styles);return i<0&&(i=this._styles.push(e)-1),i+1}_lookupBorder(t){const e=JSON.stringify(t);if("{}"===e)return;let i=RF(e,this._borders);return i<0&&(i=this._borders.push(e)-1),i+1}_readCells(t){for(let e=0;e=t&&(t=e.index+1)}),t}const MVt={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},EVt={number:"decimal"},RQ={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70};function PQ(n){let t=n;return t.length<6&&(t=t.replace(/(\w)/g,function(e,i){return i+i})),t=t.substring(1).toUpperCase(),t.length<8&&(t="FF"+t),t}class IVt{constructor(t){this.options=t||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=nm(this.options.sheets||[],(e,i)=>(e.defaults=this.options,e.sheetIndex=i+1,new DVt(e,this._strings,this._styles,this._borders)))}imageFilename(t){const e=++this._imgId;switch(t){case"image/jpg":case"image/jpeg":return`image${e}.jpg`;case"image/png":return`image${e}.png`;case"image/gif":return`image${e}.gif`;default:return`image${e}.bin`}}toZIP(){const t=new oz,e=t.folder("docProps");e.file("core.xml",(({creator:n,lastModifiedBy:t,created:e,modified:i})=>`${zu}\n \n ${vo(n)}\n ${vo(t)}\n ${vo(e)}\n ${vo(i)}\n`)({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()}));const i=this._sheets.length;e.file("app.xml",(({sheets:n})=>`${zu}\n\n Microsoft Excel\n 0\n false\n \n \n \n Worksheets\n \n \n ${n.length}\n \n \n \n \n ${Qo(n,(t,e)=>t.options.title?`${vo(t.options.title)}`:`Sheet${e+1}`)}\n \n false\n false\n false\n 14.0300\n`)({sheets:this._sheets})),t.folder("_rels").file(".rels",dVt);const o=t.folder("xl");if(o.folder("_rels").file("workbook.xml.rels",(({count:n})=>`${zu}\n\n ${hIe(n,t=>`\n `)}\n \n \n`)({count:i})),this._images){const q=o.folder("media");Object.keys(this._images).forEach(re=>{const ie=this._images[re],Se=this.imageFilename(ie.type);q.file(Se,ie.data),ie.target=`../media/${Se}`})}const a={};o.file("workbook.xml",(({sheets:n,filterNames:t,userNames:e})=>`${zu}\n\n \n \n \n \n \n \n ${Qo(n,({options:i},s)=>``)}\n \n ${t.length||e.length?`\n \n ${Qo(t,i=>`\n `)}\n ${Qo(e,i=>`\n `)}\n `:""}\n \n`)({sheets:this._sheets,filterNames:nm(this._sheets,function(q,re){const ie=q.options,Se=ie.name||ie.title||"Sheet"+(re+1);a[Se.toLowerCase()]=re;const Te=ie.filter;if(Te){if(Te.ref){let Ee=Te.ref.split(":"),be=PF(Ee[0]),Ke=PF(Ee[1]);return{localSheetId:re,name:Se,from:rz(be.row,be.col),to:rz(Ke.row,Ke.col)}}if(void 0!==Te.from&&void 0!==Te.to)return{localSheetId:re,name:Se,from:rz(az(ie),Te.from),to:rz(az(ie),Te.to)}}}),userNames:nm(this.options.names||[],function(q){return{name:q.localName,localSheetId:q.sheet?a[q.sheet.toLowerCase()]:null,value:q.value,hidden:q.hidden}})}));const l=o.folder("worksheets"),c=o.folder("drawings"),d=c.folder("_rels"),u=l.folder("_rels"),h=[],f=[];for(let q=0;q`${zu}\n\n \n ${Qo(n,(o,r)=>`\n `)}\n \n \n \n \n \n \n \n \n \n ${Qo(t,o=>`\n \n ${o.bold?"":""}\n ${o.italic?"":""}\n ${o.underline?"":""}\n \n ${o.color?``:''}\n ${o.fontFamily?`\n \n \n `:'\n \n \n \n '}\n `)}\n \n \n \n \n ${Qo(e,o=>"\n "+(o.background?`\n \n \n \n \n \n `:""))}\n \n \n \n ${Qo(i,FVt)}\n \n \n \n \n \n \n ${Qo(s,o=>`\n \n ${o.textAlign||o.verticalAlign||o.wrap?`\n \n `:""}\n \n `)}\n \n \n \n \n \n \n`)({fonts:E,fills:z,formats:O,borders:m,styles:nm(C,function(q){const re={};return k(q)&&(re.fontId=RF(q,E)+1),q.background&&(re.fillId=RF(q,z)+2),re.textAlign=q.textAlign,re.indent=q.indent,re.verticalAlign=q.verticalAlign,re.wrap=q.wrap,re.borderId=q.borderId,q.format&&(re.numFmtId=void 0!==RQ[q.format]?RQ[q.format]:165+RF(q,O)),re})})),o.file("sharedStrings.xml",(({count:n,uniqueCount:t,indexes:e})=>`${zu}\n\n ${Qo(Object.keys(e),i=>`\n ${vo(i.substring(1))}`)}\n`)(this._strings)),t.file("[Content_Types].xml",(({sheetCount:n,commentFiles:t,drawingFiles:e})=>`${zu}\n\n \n \n \n \n \n \n \n \n \n ${hIe(n,i=>``)}\n ${Qo(t,i=>``)}\n ${Qo(e,i=>``)}\n \n \n`)({sheetCount:i,commentFiles:h,drawingFiles:f})),t}toDataURL(){const t=this.toZIP();return t.generateAsync?t.generateAsync(cIe).then(dIe):dIe(t.generate(cIe))}toBlob(){const t=this.toZIP();return t.generateAsync?t.generateAsync(lVt):new Blob([t.generate(cVt)],{type:lIe})}}function lz(n,t){let e="";return t&&(e+="<"+n+' style="'+function(n){let t="thin";return 2===n?t="medium":3===n&&(t="thick"),t}(t.size)+'">',t.color&&(e+=''),e+=""),e}function FVt(n){return""+lz("left",n.left)+lz("right",n.right)+lz("top",n.top)+lz("bottom",n.bottom)+""}const fIe={};function gIe(n){return n.sort(function(t,e){return t.index-e.index})}function PVt(n,t){n.indexOf(t)<0&&n.push(t)}function LVt(n,t){for(let e=0;e1||c>1)&&PVt(t.mergedCells,u+":"+aM(i+l-1,d+c-1)),l>1)for(let h=i+1;h`\n\n${Qo(t,e=>{let i=sw.customOperator(e);return``})}\n`,GVt=({type:n})=>``,jVt=({type:n,value:t})=>``,$Vt=({blanks:n,values:t})=>`\n ${Qo(t,e=>`\n `)}\n `;function sw(n){return(({ref:n,columns:t,generators:e})=>`\n\n ${Qo(t,i=>`\n \n ${e[i.filter](i)}\n \n `)}\n`)({ref:n.ref,columns:n.columns,generators:{custom:HVt,dynamic:GVt,top:jVt,value:$Vt}})}sw.customOperator=function(n){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[n.operator.toLowerCase()]},sw.customValue=function(n){function t(e){return e.replace(/([*?])/g,"~$1")}switch(n.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return t(n.value)+"*";case"endswith":case"doesnotendwith":return"*"+t(n.value);case"contains":case"doesnotcontain":return"*"+t(n.value)+"*";default:return n.value}},sw.dynamicFilterType=function(n){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"}[n.toLowerCase()]||n};const dz=(n,t,e)=>{let i=n.createEmbeddedView(t);const s=o=>(e(t,o),i.detectChanges(),i.rootNodes.reduce((r,a)=>r+a.textContent,"").trim());return s.destroy=()=>{i.destroy(),i=null},s},_Ie=(n,t)=>{n.$implicit=n.group=t,n.field=t.field,n.value=t.value,n.aggregates=t.aggregates},WVt=(n,t)=>{n.group=t.group,n.$implicit=n.aggregates=t},qVt=(n,t)=>{n.aggregates=t.aggregates},vIe=n=>{n&&n.forEach(t=>{t.destroy()})};class YVt{constructor(t,e){this.title=t.title,this.field=t.field,this.hidden=t.hidden,this.locked=t.locked,this.width=t.width,this.headerCellOptions=t.headerCellOptions,this.cellOptions=t.cellOptions,this.groupHeaderCellOptions=t.groupHeaderCellOptions,this.groupFooterCellOptions=t.groupFooterCellOptions,this.footerCellOptions=t.footerCellOptions,t.footerTemplate&&(this.footerTemplate=dz(t.footerTemplate.templateRef,{$implicit:t,column:t,columnIndex:e},qVt)),t.groupFooterTemplate&&(this.groupFooterTemplate=dz(t.groupFooterTemplate.templateRef,{column:t,field:t.field},WVt)),t.groupHeaderTemplate&&(this.groupHeaderTemplate=dz(t.groupHeaderTemplate.templateRef,{},_Ie)),t.groupHeaderColumnTemplate&&(this.groupHeaderColumnTemplate=dz(t.groupHeaderColumnTemplate.templateRef,{},_Ie))}destroy(){this.footerTemplate&&this.footerTemplate.destroy(),this.groupFooterTemplate&&this.groupFooterTemplate.destroy(),this.groupHeaderTemplate&&this.groupHeaderTemplate.destroy(),this.groupHeaderColumnTemplate&&this.groupHeaderColumnTemplate.destroy(),vIe(this.columns)}}NEe.register({toString:sY});const bIe=n=>{const t=(n=>{const t=[];let e=0;const i=(s,o,r)=>{s.forEach(a=>{if(a.level===r){const l=new YVt(a,e);if(o.push(l),a.children&&a.children.some(c=>c!==a)){const c=l.columns=[];i(a.children,c,r+1)}else e++}})};return i(n,t,0),t})(n.columns),i=new class{constructor(t){t.columns=this._trimColumns(t.columns||[]),this.allColumns=nm(this._leafColumns(t.columns||[]),this._prepareColumn),this.columns=this._visibleColumns(this.allColumns),this.options=t,this.data=t.data||[],this.aggregates=t.aggregates||{},this.groups=[].concat(t.groups||[]),this.hasGroups=this.groups.length>0,this.hierarchy=t.hierarchy,this.hasGroupHeaderColumn=this.columns.some(e=>e.groupHeaderColumnTemplate),this.collapsible=this.options.collapsible}workbook(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}}_trimColumns(t){return t.filter(e=>{let i=Boolean(e.field);return!i&&e.columns&&(i=this._trimColumns(e.columns).length>0),i})}_leafColumns(t){let e=[];for(let i=0;iObject.assign({background:"#dfdfdf",color:"#333"},this.options.paddingCellOptions))}_dataRow(t,e,i){let s=this._createPaddingCells(e);if(this.hasGroups&&i&&t.items){s=s.concat(this._groupHeaderCells(t,e,i));const r=this._dataRows(t.items,e+1);return r.unshift({type:"group-header",cells:s,level:this.collapsible?e:null}),r.concat(this._footer(t,e))}const o=[];for(let r=0;r0&&s.push(Object.assign({background:"#dfdfdf",color:"#333",value:d.groupHeaderColumnTemplate?d.groupHeaderColumnTemplate(Object.assign({group:l},l,t.aggregates[d.field])):void 0},d.groupHeaderCellOptions))}),s}_dataRows(t,e){const i=this._depth(),s=[];for(let o=0;ol?a.push({id:c,level:l}):h=e;){const o=t.pop();s.push(this._hierarchyFooter(this.aggregates[o.id],o.level+1,i))}return s}_hasFooterTemplate(){const t=this.columns;for(let e=0;el.groupFooterTemplate);let o,r;s&&(r={group:{items:t.items,field:t.field,value:t.value}},o={},Object.keys(t.aggregates).forEach(l=>{o[l]=Object.assign({},t.aggregates[l],r)}));const a=this.columns.map(l=>{if(l.groupFooterTemplate){let c=Object.assign({},o,t.aggregates[l.field],r);return Object.assign({background:"#dfdfdf",color:"#333",value:l.groupFooterTemplate(c)},l.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},l.groupFooterCellOptions)});return s&&i.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(a),level:this.collapsible?e:null}),i}_isColumnVisible(t){return this._visibleColumns([t]).length>0&&(t.field||t.columns)}_visibleColumns(t){return t.filter(e=>{let i=e.exportable;"object"==typeof i&&(i=e.exportable.excel);let r=!e.hidden&&!1!==i||e.hidden&&!0===i;return r&&e.columns&&(r=this._visibleColumns(e.columns).length>0),r})}_headerRow(t,e){const i=t.cells.map(function(s){return Object.assign(s,{colSpan:s.colSpan>1?s.colSpan:1,rowSpan:t.rowSpan>1&&!s.colSpan?t.rowSpan:1})});return this.hierarchy&&i[0].firstCell&&(i[0].colSpan+=this._depth()),{type:"header",cells:bQ(e.length,()=>Object.assign({background:"#7a7a7a",color:"#fff"},this.options.headerPaddingCellOptions)).concat(i)}}_prependHeaderRows(t){const e=this.groups,i=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(i,this.options.columns);for(let s=i.length-1;s>=0;s--)t.unshift(this._headerRow(i[s],e))}_prepareHeaderRows(t,e,i,s){const o=s||t[t.length-1];let r=t[o.index+1],a=0;for(let l=0;ls.footerTemplate?(e=!0,Object.assign({background:"#dfdfdf",color:"#333",value:s.footerTemplate(Object.assign({},this.aggregates,this.aggregates[s.field]))},s.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},s.footerCellOptions));e&&t.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(i)})}return t}_headerDepth(t){let i=0;for(let s=0;si&&(i=o)}return 1+i}_freezePane(){const t=this._visibleColumns(this.options.columns||[]),e=this._visibleColumns(this._trimColumns(this._leafColumns(t.filter(function(i){return i.locked})))).length;return{rowSplit:this._headerDepth(t),colSplit:e?e+this.groups.length:0}}_cell(t,e){return Object.assign({value:e.value(t)},e.cellOptions)}_depth(){let t=0;return t=this.hierarchy?this.hierarchy.depth:this.groups.length,t}_columns(){return bQ(this._depth(),()=>({width:20})).concat(this.columns.map(function(i){return{width:parseInt(i.width,10),autoWidth:!i.width}}))}}({columns:t,data:n.data,filterable:n.filterable,groups:n.group,paddingCellOptions:n.paddingCellOptions,headerPaddingCellOptions:n.headerPaddingCellOptions,collapsible:n.collapsible,hierarchy:n.hierarchy,aggregates:n.aggregates}).workbook();return i.creator=n.creator,i.date=n.date,i.rtl=n.rtl,vIe(t),i};class Nr{constructor(t){this.parent=t}get level(){return this.parent?this.parent.level+1:0}}Nr.\u0275fac=function(t){kt()},Nr.\u0275dir=R({type:Nr,contentQueries:function(t,e,i){if(1&t&&Ce(i,Nr,4),2&t){let s;U(s=W())&&(e.children=s)}},inputs:{title:"title",width:"width",locked:"locked",hidden:"hidden",headerCellOptions:"headerCellOptions"}}),As([p(),Fs("design:type",String)],Nr.prototype,"title",void 0),As([p(),Fs("design:type",Number)],Nr.prototype,"width",void 0),As([p(),Fs("design:type",Boolean)],Nr.prototype,"locked",void 0),As([p(),Fs("design:type",Boolean)],Nr.prototype,"hidden",void 0),As([p(),Fs("design:type",Object)],Nr.prototype,"headerCellOptions",void 0),As([fi(Nr),Fs("design:type",wt)],Nr.prototype,"children",void 0);const ZVt={name:"@progress/kendo-angular-excel-export",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620213524,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"};let nl=class{constructor(t,e){this.localization=t,this.zone=e,this.fileName="Export.xlsx",this.columns=new wt,Ii(ZVt),this.saveFile=this.saveFile.bind(this)}save(t){this.toDataURL(t).then(this.saveFile)}workbookOptions(t){const e=this.getExportData(t);return bIe({columns:this.columns,data:e.data,group:e.group,filterable:this.filterable,creator:this.creator,date:this.date,rtl:this.localization.rtl,paddingCellOptions:this.paddingCellOptions,headerPaddingCellOptions:this.headerPaddingCellOptions,collapsible:this.collapsible})}toDataURL(t){const e=(n=>n&&n.sheets)(t)?t:this.workbookOptions(t);return this.zone.runOutsideAngular(()=>(n=>new IVt(n).toDataURL())(e))}getExportData(t){let e;return e=t?Array.isArray(t)?{data:t}:t:{data:this.data,group:this.group},e}saveFile(t){!function(n,t,e={}){let i=n5t;if(e.forceProxy&&!e.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");e.forceProxy||(JBt()&&(i=t5t),navigator.msSaveBlob&&(i=e5t)),i(n,t,e)}(t,this.fileName,{forceProxy:this.forceProxy,proxyURL:this.proxyURL})}};nl.\u0275fac=function(t){return new(t||nl)(g(J),g(ce))},nl.\u0275cmp=K({type:nl,selectors:[["kendo-excelexport"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,Nr,5),2&t){let s;U(s=W())&&(e.columns=s)}},inputs:{fileName:"fileName",filterable:"filterable",collapsible:"collapsible",creator:"creator",date:"date",forceProxy:"forceProxy",proxyURL:"proxyURL",data:"data",group:"group",paddingCellOptions:"paddingCellOptions",headerPaddingCellOptions:"headerPaddingCellOptions"},exportAs:["kendoExcelExport"],features:[we([J,{provide:An,useValue:"kendo.excelexport"}])],decls:0,vars:0,template:function(t,e){},encapsulation:2}),As([p(),Fs("design:type",String)],nl.prototype,"fileName",void 0),As([p(),Fs("design:type",Boolean)],nl.prototype,"filterable",void 0),As([p(),Fs("design:type",Boolean)],nl.prototype,"collapsible",void 0),As([p(),Fs("design:type",String)],nl.prototype,"creator",void 0),As([p(),Fs("design:type",Date)],nl.prototype,"date",void 0),As([p(),Fs("design:type",Boolean)],nl.prototype,"forceProxy",void 0),As([p(),Fs("design:type",String)],nl.prototype,"proxyURL",void 0),As([p(),Fs("design:type",Array)],nl.prototype,"data",void 0),As([p(),Fs("design:type",Array)],nl.prototype,"group",void 0),As([p(),Fs("design:type",Object)],nl.prototype,"paddingCellOptions",void 0),As([p(),Fs("design:type",Object)],nl.prototype,"headerPaddingCellOptions",void 0),As([fi(Nr,{descendants:!0}),Fs("design:type",wt)],nl.prototype,"columns",void 0),nl=As([Fs("design:paramtypes",[J,ce])],nl);let om=class{constructor(t){this.templateRef=t}};om.\u0275fac=function(t){return new(t||om)(g(ve,8))},om.\u0275dir=R({type:om,selectors:[["","kendoExcelExportGroupHeaderTemplate",""]]}),om=As([tm(0,gt()),Fs("design:paramtypes",[ve])],om);let rm=class{constructor(t){this.templateRef=t}};rm.\u0275fac=function(t){return new(t||rm)(g(ve,8))},rm.\u0275dir=R({type:rm,selectors:[["","kendoExcelExportGroupHeaderColumnTemplate",""]]}),rm=As([tm(0,gt()),Fs("design:paramtypes",[ve])],rm);let am=class{constructor(t){this.templateRef=t}};am.\u0275fac=function(t){return new(t||am)(g(ve,8))},am.\u0275dir=R({type:am,selectors:[["","kendoExcelExportGroupFooterTemplate",""]]}),am=As([tm(0,gt()),Fs("design:paramtypes",[ve])],am);let lm=class{constructor(t){this.templateRef=t}};var LQ;lm.\u0275fac=function(t){return new(t||lm)(g(ve,8))},lm.\u0275dir=R({type:lm,selectors:[["","kendoExcelExportFooterTemplate",""]]}),lm=As([tm(0,gt()),Fs("design:paramtypes",[ve])],lm);let kc=LQ=class extends Nr{constructor(t){super(t)}};var NQ;kc.\u0275fac=function(t){return new(t||kc)(g(Nr,13))},kc.\u0275cmp=K({type:kc,selectors:[["kendo-excelexport-column"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,om,5),Ce(i,rm,5),Ce(i,am,5),Ce(i,lm,5)),2&t){let s;U(s=W())&&(e.groupHeaderTemplate=s.first),U(s=W())&&(e.groupHeaderColumnTemplate=s.first),U(s=W())&&(e.groupFooterTemplate=s.first),U(s=W())&&(e.footerTemplate=s.first)}},inputs:{field:"field",cellOptions:"cellOptions",groupHeaderCellOptions:"groupHeaderCellOptions",groupFooterCellOptions:"groupFooterCellOptions",footerCellOptions:"footerCellOptions"},features:[we([{provide:Nr,useExisting:He(()=>LQ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),As([p(),Fs("design:type",String)],kc.prototype,"field",void 0),As([p(),Fs("design:type",Object)],kc.prototype,"cellOptions",void 0),As([p(),Fs("design:type",Object)],kc.prototype,"groupHeaderCellOptions",void 0),As([p(),Fs("design:type",Object)],kc.prototype,"groupFooterCellOptions",void 0),As([p(),Fs("design:type",Object)],kc.prototype,"footerCellOptions",void 0),As([ct(om,{static:!1}),Fs("design:type",om)],kc.prototype,"groupHeaderTemplate",void 0),As([ct(rm,{static:!1}),Fs("design:type",rm)],kc.prototype,"groupHeaderColumnTemplate",void 0),As([ct(am,{static:!1}),Fs("design:type",am)],kc.prototype,"groupFooterTemplate",void 0),As([ct(lm,{static:!1}),Fs("design:type",lm)],kc.prototype,"footerTemplate",void 0),kc=LQ=As([tm(0,za()),tm(0,Md()),tm(0,gt()),Fs("design:paramtypes",[Nr])],kc);let ow=NQ=class extends Nr{constructor(t){super(t),this.parent=t}};ow.\u0275fac=function(t){return new(t||ow)(g(Nr,13))},ow.\u0275cmp=K({type:ow,selectors:[["kendo-excelexport-column-group"]],features:[we([{provide:Nr,useExisting:He(()=>NQ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),ow=NQ=As([tm(0,za()),tm(0,Md()),tm(0,gt()),Fs("design:paramtypes",[Nr])],ow);let lM=class{};lM.\u0275fac=function(t){return new(t||lM)},lM.\u0275mod=We({type:lM}),lM.\u0275inj=Ve({});const QVt=["lockedHeader"],JVt=["header"],e4t=["ariaRoot"],t4t=["footer"];function n4t(n,t){1&n&&P(0,"kendo-grid-toolbar",10)}function i4t(n,t){if(1&n){const e=ht();y(0,"kendo-pager",11),se("pageChange",function(s){return Le(e),I().notifyPageChange("pager",s)}),_()}if(2&n){const e=I();v("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),fe("role",e.navigable?"navigation":void 0)}}function s4t(n,t){if(1&n){const e=ht();y(0,"kendo-grid-group-panel",12),se("change",function(s){return Le(e),I().groupChange.emit(s)}),_()}if(2&n){const e=I();v("text",e.groupableEmptyText)("groups",e.group)}}function o4t(n,t){if(1&n&&(y(0,"div",24,25),y(2,"table",26),P(3,"colgroup",21),P(4,"thead",27),_(),_()),2&n){const e=I(3);yt("width",e.lockedWidth,"px"),b(2),yt("width",e.lockedWidth,"px"),v("locked",!0),b(1),v("columns",e.lockedLeafColumns)("groups",e.group)("detailTemplate",e.detailTemplate),b(1),v("resizable",e.resizable)("scrollable",!0)("columns",e.lockedColumns)("totalColumnLevels",e.totalColumnLevels)("sort",e.sort)("groups",e.group)("filter",e.filter)("filterable",e.filterable)("groupable",e.showGroupPanel)("reorderable",e.reorderable)("sortable",e.sortable)("columnMenu",e.columnMenuOptions)("columnMenuTemplate",e.columnMenuTemplate)("totalColumnsCount",e.leafColumns.length)("detailTemplate",e.detailTemplate)("tabIndex",e.navigable?"-1":"0")}}function r4t(n,t){if(1&n&&(y(0,"div",28),P(1,"div"),_()),2&n){const e=I(3);b(1),yt("width",e.columnsContainer.unlockedWidth,"px")}}const LF=function(){return[]};function a4t(n,t){if(1&n&&(y(0,"div",16),A(1,o4t,5,24,"div",17),y(2,"div",18,19),y(4,"table",20),P(5,"colgroup",21),P(6,"thead",22),_(),A(7,r4t,2,2,"div",23),_(),_()),2&n){const e=I(2);yt("padding",e.headerPadding),b(1),v("ngIf",e.isLocked),b(1),v("kendoGridResizableContainer",e.lockedLeafColumns.length)("lockedWidth",e.lockedWidth+e.scrollbarWidth+2),b(2),yt("width",e.nonLockedWidth,"px"),v("virtualColumns",e.virtualColumns),b(1),v("columns",e.headerLeafColumns)("groups",e.isLocked?si(29,LF):e.group)("detailTemplate",e.detailTemplate),b(1),v("resizable",e.resizable)("scrollable",!0)("columns",e.headerColumns)("totalColumnLevels",e.totalColumnLevels)("sort",e.sort)("filter",e.filter)("filterable",e.filterable)("groupable",e.showGroupPanel)("reorderable",e.reorderable)("groups",e.isLocked?si(30,LF):e.group)("sortable",e.sortable)("columnMenu",e.columnMenuOptions)("columnMenuTemplate",e.columnMenuTemplate)("lockedColumnsCount",e.lockedLeafColumns.length)("totalColumnsCount",e.leafColumns.length)("detailTemplate",e.detailTemplate)("tabIndex",e.navigable?"-1":"0"),b(1),v("ngIf",e.virtualColumns)}}function l4t(n,t){if(1&n&&(y(0,"div",36),y(1,"table",26),P(2,"colgroup",34),P(3,"tfoot",37),_(),_()),2&n){const e=I(3);yt("width",e.lockedWidth,"px"),b(1),yt("width",e.lockedWidth,"px"),v("locked",!0),b(1),v("columns",e.lockedLeafColumns)("groups",e.group)("detailTemplate",e.detailTemplate),b(1),v("scrollable",!0)("groups",e.group)("columns",e.lockedLeafColumns)("detailTemplate",e.detailTemplate)("logicalRowIndex",e.ariaRowCount)}}function c4t(n,t){if(1&n&&(y(0,"div",29),A(1,l4t,4,13,"div",30),y(2,"div",31,32),y(4,"table",33),P(5,"colgroup",34),P(6,"tfoot",35),_(),_(),_()),2&n){const e=I(2);yt("padding",e.headerPadding),b(1),v("ngIf",e.lockedLeafColumns.length),b(1),v("kendoGridResizableContainer",e.lockedLeafColumns.length)("lockedWidth",e.lockedWidth+e.scrollbarWidth+3),b(2),yt("width",e.nonLockedWidth,"px"),b(1),v("columns",e.nonLockedLeafColumns)("groups",e.isLocked?si(16,LF):e.group)("detailTemplate",e.detailTemplate),b(1),v("logicalRowIndex",e.ariaRowCount)("scrollable",!0)("groups",e.isLocked?si(17,LF):e.group)("columns",e.nonLockedLeafColumns)("lockedColumnsCount",e.lockedLeafColumns.length)("detailTemplate",e.detailTemplate)}}function d4t(n,t){if(1&n){const e=ht();A(0,a4t,8,31,"div",13),y(1,"kendo-grid-list",14),se("pageChange",function(s){return Le(e),I().notifyPageChange("list",s)})("scrollBottom",function(){return Le(e),I().notifyScrollBottom()})("contentScroll",function(s){return Le(e),I().contentScroll.emit(s)}),_(),A(2,c4t,7,18,"div",15)}if(2&n){const e=I();v("ngIf",!e.hideHeader),b(1),v("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)("virtualColumns",e.virtualColumns)("enableDrag",e.marqueeSelection),b(1),v("ngIf",e.showFooter)}}function u4t(n,t){if(1&n&&P(0,"thead",42),2&n){const e=I(2);v("resizable",e.resizable)("scrollable",!1)("columns",e.visibleColumns)("totalColumnLevels",e.totalColumnLevels)("groups",e.group)("groupable",e.showGroupPanel)("reorderable",e.reorderable)("sort",e.sort)("sortable",e.sortable)("filter",e.filter)("filterable",e.filterable)("columnMenu",e.columnMenuOptions)("columnMenuTemplate",e.columnMenuTemplate)("detailTemplate",e.detailTemplate)("tabIndex",e.navigable?"-1":"0")}}function h4t(n,t){if(1&n&&P(0,"tfoot",43),2&n){const e=I(2);v("scrollable",!1)("logicalRowIndex",e.ariaRowCount)("groups",e.group)("columns",e.leafColumns)("detailTemplate",e.detailTemplate)}}function p4t(n,t){1&n&&P(0,"div",44)}function f4t(n,t){if(1&n&&(y(0,"table"),P(1,"colgroup",34),A(2,u4t,1,15,"thead",38),P(3,"tbody",39),A(4,h4t,1,5,"tfoot",40),_(),A(5,p4t,1,0,"div",41)),2&n){const e=I();yt("table-layout",e.resizable?"fixed":null),b(1),v("columns",e.leafColumns)("groups",e.group)("detailTemplate",e.detailTemplate),b(1),v("ngIf",!e.hideHeader),b(1),v("groups",e.group)("data",e.view)("skip",e.skip)("columns",e.leafColumns)("selectable",e.selectable)("filterable",e.filterable)("noRecordsTemplate",e.noRecordsTemplate)("detailTemplate",e.detailTemplate)("showGroupFooters",e.showGroupFooters)("trackBy",e.trackBy)("rowClass",e.rowClass)("enableDrag",e.marqueeSelection),b(1),v("ngIf",e.showFooter),b(1),v("ngIf",e.loading)}}function g4t(n,t){if(1&n){const e=ht();y(0,"kendo-pager",45),se("pageChange",function(s){return Le(e),I().notifyPageChange("pager",s)}),_()}if(2&n){const e=I();v("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),fe("role",e.navigable?"navigation":void 0)}}function m4t(n,t){1&n&&P(0,"kendo-grid-toolbar",46)}const y4t=["container"],_4t=["lockedContainer"],v4t=["lockedTable"],b4t=["table"],C4t=function(n,t,e,i){return{keydown:n,scroll:t,mousewheel:e,DOMMouseScroll:i}};function x4t(n,t){if(1&n&&(y(0,"div",12,13),y(2,"div",3),y(3,"table",14,15),P(5,"colgroup",6),P(6,"tbody",16),_(),P(7,"kendo-resize-sensor"),_(),y(8,"div",9),P(9,"div"),_(),_()),2&n){const e=I();yt("width",e.lockedWidth,"px"),v("kendoEventsOutsideAngular",kp(25,C4t,e.lockedKeydown,e.lockedScroll,e.lockedMousewheel,e.lockedMousewheel))("scope",e),b(3),yt("width",e.lockedWidth,"px"),v("locked",!0),b(2),v("groups",e.groups)("columns",e.lockedLeafColumns)("detailTemplate",e.detailTemplate),b(1),v("groups",e.groups)("isLocked",!0)("data",e.data)("noRecordsText","")("columns",e.lockedLeafColumns)("totalColumnsCount",e.leafColumns.length)("detailTemplate",e.detailTemplate)("showGroupFooters",e.showFooter)("skip",e.skip)("selectable",e.selectable)("trackBy",e.trackBy)("filterable",e.filterable)("rowClass",e.rowClass),b(3),yt("height",e.totalHeight,"px")}}function w4t(n,t){1&n&&P(0,"kendo-resize-sensor")}function S4t(n,t){1&n&&P(0,"kendo-resize-sensor")}function T4t(n,t){if(1&n&&(y(0,"div",17),P(1,"div"),_()),2&n){const e=I();b(1),yt("width",e.totalWidth,"px")}}function k4t(n,t){1&n&&P(0,"div",18)}const D4t=["kendoGridFilterRow",""];function M4t(n,t){1&n&&P(0,"td",3),2&n&&he("k-group-cell",!0)}function E4t(n,t){1&n&&P(0,"td",3),2&n&&he("k-hierarchy-cell",!0)}function I4t(n,t){if(1&n&&P(0,"td",4),2&n){const e=t.$implicit,i=t.index,s=I();he("k-grid-header-sticky",e.sticky),v("ngStyle",e.sticky?s.addStickyStyles(e):null)("column",e)("filter",s.filter)("logicalRowIndex",s.logicalRowIndex)("logicalColIndex",s.lockedColumnsCount+i),fe("aria-label",s.filterLabel(e))}}const A4t=["kendoGridFilterCell",""];function F4t(n,t){if(1&n&&(_n(0),wn(1,3),vn()),2&n){const e=I(2);b(1),v("column",e.column)("filter",e.filter)}}function O4t(n,t){}function R4t(n,t){if(1&n&&A(0,O4t,0,0,"ng-template",5),2&n){const e=I(3);v("ngTemplateOutlet",e.column.filterCellTemplateRef)("ngTemplateOutletContext",e.templateContext)}}function P4t(n,t){if(1&n&&(_n(0),A(1,R4t,1,2,void 0,4),vn()),2&n){const e=I(2);b(1),v("ngIf",e.column.filterCellTemplateRef)}}function L4t(n,t){1&n&&(_n(0,1),A(1,F4t,2,2,"ng-container",2),A(2,P4t,2,1,"ng-container",2),vn()),2&n&&(v("ngSwitch",I().hasTemplate),b(1),v("ngSwitchCase",!1),b(1),v("ngSwitchCase",!0))}const BQ=["*"],N4t=["dropdown"],xIe=function(){return{width:"auto"}};function B4t(n,t){if(1&n){const e=ht();y(0,"kendo-dropdownlist",3,4),se("valueChange",function(s){return Le(e),I().onChange(s)})("keydown",function(s){return Le(e),I().dropdownKeydown(s)}),_()}if(2&n){const e=I();v("data",e.operators)("value",e.value)("valuePrimitive",!0)("popupSettings",si(4,xIe))}}const V4t=function(n){return{"k-clear-button-visible":n}},z4t=["kendoGridColGroup",""];function H4t(n,t){1&n&&P(0,"col"),2&n&&he("k-group-col",!0)}function G4t(n,t){1&n&&P(0,"col"),2&n&&he("k-hierarchy-col",!0)}function j4t(n,t){1&n&&P(0,"col"),2&n&&yt("width",t.$implicit.width,"px")}function $4t(n,t){if(1&n&&(A(0,H4t,1,2,"col",1),A(1,G4t,1,2,"col",2),A(2,j4t,1,2,"col",3)),2&n){const e=I();v("ngForOf",e.groups),b(1),v("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),b(1),v("ngForOf",e.columnsToRender)("ngForTrackBy",e.trackBy)}}const U4t=["kendoGridLoading",""];function W4t(n,t){if(1&n){const e=ht();y(0,"div",4),se("focusin",function(s){return Le(e),I().onInnerFocusIn(s,"start")}),_()}2&n&&(v("tabindex",I().focusTrapTabIndex),fe("aria-hidden",!0))}function q4t(n,t){if(1&n&&wn(0,5),2&n){const e=I();v("ngTemplateOutlet",e.template.templateRef)("ngTemplateOutletContext",e.templateContext)}}function X4t(n,t){1&n&&P(0,"kendo-pager-prev-buttons")}function Y4t(n,t){1&n&&P(0,"kendo-pager-numeric-buttons",8),2&n&&v("buttonCount",I(2).settings.buttonCount)}function K4t(n,t){1&n&&P(0,"kendo-pager-input")}function Z4t(n,t){1&n&&P(0,"kendo-pager-next-buttons")}function Q4t(n,t){1&n&&P(0,"kendo-pager-info")}function J4t(n,t){1&n&&P(0,"kendo-pager-page-sizes",9,10),2&n&&v("pageSizes",I(2).settings.pageSizes)}function ezt(n,t){if(1&n&&(_n(0),A(1,X4t,1,0,"kendo-pager-prev-buttons",2),A(2,Y4t,1,1,"kendo-pager-numeric-buttons",6),A(3,K4t,1,0,"kendo-pager-input",2),A(4,Z4t,1,0,"kendo-pager-next-buttons",2),A(5,Q4t,1,0,"kendo-pager-info",2),A(6,J4t,2,1,"kendo-pager-page-sizes",7),vn()),2&n){const e=I();b(1),v("ngIf",e.settings.previousNext),b(1),v("ngIf","numeric"===e.settings.type),b(1),v("ngIf","input"===e.settings.type),b(1),v("ngIf",e.settings.previousNext),b(1),v("ngIf",e.settings.info),b(1),v("ngIf",e.settings.pageSizes)}}function tzt(n,t){if(1&n){const e=ht();y(0,"div",4),se("focusin",function(s){return Le(e),I().onInnerFocusIn(s,"end")}),_()}2&n&&(v("tabindex",I().focusTrapTabIndex),fe("aria-hidden",!0))}function nzt(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",11),se("resize",function(){return Le(e),I().resizeHandler()}),_()}}const izt=function(n){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":n,"k-pager-first":!0}},szt=function(){return{"k-icon":!0,"k-i-seek-w":!0}},wIe=function(n){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":n,"":!0}},ozt=function(){return{"k-icon":!0,"k-i-arrow-w":!0}},rzt=function(){return{"k-icon":!0,"k-i-arrow-e":!0}},azt=function(n){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":n,"k-pager-last":!0}},lzt=function(){return{"k-icon":!0,"k-i-seek-e":!0}};function czt(n,t){if(1&n&&(y(0,"option",7),H(1,"... "),_()),2&n){const e=I();fe("aria-label",e.pageLabel(e.start-1))}}const dzt=function(n){return{"k-link":!0,"k-state-selected":n}};function uzt(n,t){if(1&n&&(y(0,"option",8),H(1),_()),2&n){const e=t.$implicit,i=I();v("value",e.toString())("ngClass",Yt(5,dzt,i.currentPage==e)),fe("aria-label",i.pageLabel(e))("aria-current",i.currentPage==e?"page":void 0),b(1),_t(" ",e," ")}}function hzt(n,t){if(1&n&&(y(0,"option",9),H(1,"... "),_()),2&n){const e=I();fe("aria-label",e.pageLabel(e.end+1))}}function pzt(n,t){if(1&n){const e=ht();y(0,"li"),y(1,"span",10),se("click",function(){Le(e);const s=I();return s.changePage(s.start-2)})("keydown.enter",function(){Le(e);const s=I();return s.changePage(s.start-2)}),H(2,"..."),_(),_()}if(2&n){const e=I();b(1),fe("aria-label",e.pageLabel(e.start-1))}}const fzt=function(n){return{"k-link":!0,"k-state-selected":n,"k-pager-nav":!0}};function gzt(n,t){if(1&n){const e=ht();y(0,"li"),y(1,"span",11),se("click",function(){const o=Le(e).$implicit;return I().changePage(o-1)})("keydown.enter",function(){const o=Le(e).$implicit;return I().changePage(o-1)}),H(2),_(),_()}if(2&n){const e=t.$implicit,i=I();b(1),v("ngClass",Yt(3,fzt,i.currentPage==e)),fe("aria-label",i.pageLabel(e)),b(1),_t(" ",e," ")}}function mzt(n,t){if(1&n){const e=ht();y(0,"li"),y(1,"span",10),se("click",function(){Le(e);const s=I();return s.changePage(s.end)})("keydown.enter",function(){Le(e);const s=I();return s.changePage(s.end)}),H(2,"..."),_(),_()}if(2&n){const e=I();b(1),fe("aria-label",e.pageLabel(e.end+1))}}const yzt=function(){return{"k-pager-numbers":!0,"k-reset":!0}},_zt=function(){return{"k-pager-input":!0,"k-label":!0}},vzt=function(n,t){return{keydown:n,focusout:t}},bzt=["kendoGridGroupHeader",""];function Czt(n,t){1&n&&P(0,"td",4)}function xzt(n,t){if(1&n&&A(0,Czt,1,0,"td",3),2&n){const e=I();v("ngForOf",e.prefixGroupCell(e.item))}}function wzt(n,t){if(1&n&&(H(0),gi(1,"valueOf")),2&n){const e=I(3);ty(" ",e.groupTitle(e.item),": ",zP(1,2,e.item.data,"value",e.formatForGroup(e.item))," ")}}function Szt(n,t){}const Tzt=function(n,t){return{"k-i-collapse":n,"k-i-expand":t}},kzt=function(n,t,e,i,s,o,r,a){return{templateRef:n,group:t,aggregates:e,value:i,field:s,index:o,expanded:r,$implicit:a}};function Dzt(n,t){if(1&n){const e=ht();y(0,"a",7),se("click",function(){Le(e);const s=I(2);return s.toggleGroup(s.item)}),_(),A(1,wzt,2,6,"ng-template",0),A(2,Szt,0,0,"ng-template",8)}if(2&n){const e=I(2);v("ngClass",di(3,Tzt,e.isExpanded,!e.isExpanded)),b(1),v("ngIf",!e.groupHeaderTemplate(e.item)),b(1),v("templateContext",function(n,t,e,i,s,o,r,a,l,c,d){const u=Bc()+n,h=bt(),f=xh(h,u,e,i,s,o);return xh(h,u+4,r,a,l,c)||f?qf(h,u+8,d?t.call(d,e,i,s,o,r,a,l,c):t(e,i,s,o,r,a,l,c)):UE(h,u+8)}(6,kzt,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 Mzt(n,t){if(1&n&&(y(0,"td",5),y(1,"p",6),A(2,Dzt,3,15,"ng-template",0),_(),_()),2&n){const e=I();v("logicalRowIndex",e.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",e.skipGroupDecoration)("groupItem",e.item)("colSpan",e.logicalColSpan()),fe("colspan",e.groupSpan(e.item))("role",e.ariaRole())("aria-expanded",e.isExpanded),b(2),v("ngIf",!e.skipGroupDecoration)}}const Ezt=function(n,t,e,i,s,o){return{group:n,aggregates:t,value:e,field:i,index:s,$implicit:o}};function Izt(n,t){if(1&n&&wn(0,12),2&n){const e=I().$implicit,i=I(2);v("ngTemplateOutlet",e.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",aI(2,Ezt,i.item.data,null==i.item.data?null:i.item.data.aggregates,null==i.item.data?null:i.item.data.value,null==i.item.data?null:i.item.data.field,i.item.index,i.item.data))}}function Azt(n,t){if(1&n&&(y(0,"td",10),A(1,Izt,1,9,"ng-container",11),_()),2&n){const e=t.$implicit,i=t.index,s=I(2);v("logicalRowIndex",s.logicalRowIndex)("logicalColIndex",i+1)("logicalSlaveCell",!1)("groupItem",s.item)("colSpan",1),b(1),v("ngIf",e.groupHeaderColumnTemplateRef)}}function Fzt(n,t){if(1&n&&(_n(0),A(1,Azt,2,6,"td",9),vn()),2&n){const e=I();b(1),v("ngForOf",e.groupHeaderColumns)}}const SIe=function(){return{lastTarget:!0}};function Ozt(n,t){if(1&n&&(y(0,"div",3),H(1),_()),2&n){const e=I();v("context",si(2,SIe)),b(1),_t(" ",e.text," ")}}const Rzt=function(n){return{field:n}},Pzt=function(n,t){return{field:n,type:"groupIndicator",hint:t}};function Lzt(n,t){if(1&n){const e=ht();y(0,"div",3),y(1,"div",4),se("directionChange",function(s){return Le(e),I().directionChange(s)})("remove",function(s){return Le(e),I().remove(s)}),_(),_()}if(2&n){const e=t.$implicit,i=t.index,s=I();v("context",Yt(5,Rzt,e.field)),b(1),v("enableDrag",!0)("context",di(7,Pzt,e.field,s.groupTitles[i]))("group",e)("groupTitle",s.groupTitles[i])}}function Nzt(n,t){1&n&&(y(0,"div",3),H(1,"\xa0"),_()),2&n&&v("context",si(1,SIe))}const Bzt=["kendoGroupIndicator",""],TIe=["anchor"],kIe=["template"];function Vzt(n,t){if(1&n){const e=ht();y(0,"kendo-grid-filter-menu-container",4),se("close",function(){return Le(e),I().close()})("keydown.escape",function(){return Le(e),I().close()})("keydown.enter",function(s){return s.stopImmediatePropagation()}),_()}if(2&n){const e=I();v("column",e.column)("filter",e.filter)}}const zzt=function(n){return{"k-grid-filter":!0,"k-state-active":n}},Hzt=function(n,t){return{service:n,column:t}};function Gzt(n,t){if(1&n&&wn(0,5),2&n){const e=I(),i=ki(6);v("ngTemplateOutlet",e.column.columnMenuTemplateRef||e.columnMenuTemplate||i)("ngTemplateOutletContext",di(2,Hzt,e.service,e.column))}}function jzt(n,t){if(1&n&&P(0,"kendo-grid-columnmenu-sort",10,11),2&n){const e=ki(1),i=I(2);v("kendoGridColumnMenuItem",e)("service",i.service)}}function $zt(n,t){if(1&n&&P(0,"kendo-grid-columnmenu-lock",10,12),2&n){const e=ki(1),i=I(2);v("kendoGridColumnMenuItem",e)("service",i.service)}}function Uzt(n,t){if(1&n&&P(0,"kendo-grid-columnmenu-stick",10,13),2&n){const e=ki(1),i=I(2);v("kendoGridColumnMenuItem",e)("service",i.service)}}function Wzt(n,t){if(1&n&&P(0,"kendo-grid-columnmenu-position",14,15),2&n){const e=ki(1),i=I(2);v("showLock",i.hasLock)("showStick",i.hasStick)("kendoGridColumnMenuItem",e)("service",i.service)("expanded",i.expandedPosition)}}function qzt(n,t){if(1&n&&P(0,"kendo-grid-columnmenu-chooser",16,17),2&n){const e=ki(1),i=I(2);v("kendoGridColumnMenuItem",e)("service",i.service)("expanded",i.expandedColumns)}}function Xzt(n,t){if(1&n&&P(0,"kendo-grid-columnmenu-filter",16,18),2&n){const e=ki(1),i=I(2);v("kendoGridColumnMenuItem",e)("service",i.service)("expanded",i.expandedFilter)}}function Yzt(n,t){if(1&n){const e=ht();y(0,"kendo-grid-columnmenu-container",6),se("keydown.escape",function(){return Le(e),I().close()})("keydown.enter",function(s){return s.stopImmediatePropagation()}),A(1,jzt,2,2,"kendo-grid-columnmenu-sort",7),A(2,$zt,2,2,"kendo-grid-columnmenu-lock",7),A(3,Uzt,2,2,"kendo-grid-columnmenu-stick",7),A(4,Wzt,2,5,"kendo-grid-columnmenu-position",8),A(5,qzt,2,3,"kendo-grid-columnmenu-chooser",9),A(6,Xzt,2,3,"kendo-grid-columnmenu-filter",9),_()}if(2&n){const e=I();b(1),v("ngIf",e.hasSort),b(1),v("ngIf",e.hasLock&&!e.hasPosition),b(1),v("ngIf",e.hasStick&&!e.hasPosition),b(1),v("ngIf",e.hasPosition),b(1),v("ngIf",e.hasColumnChooser),b(1),v("ngIf",e.hasFilter)}}const Kzt=function(n){return{"k-state-active":n}},Zzt=["kendoGridHeader",""];function Qzt(n,t){1&n&&P(0,"th",7)}function Jzt(n,t){1&n&&P(0,"th",8),2&n&&v("logicalRowIndex",I().index)("logicalColIndex",0)}function e8t(n,t){if(1&n&&P(0,"kendo-grid-filter-menu",16),2&n){const e=I(3).$implicit,i=I(3);v("column",e)("filter",i.filter)("tabIndex",i.tabIndex)}}function t8t(n,t){if(1&n&&P(0,"kendo-grid-column-menu",17),2&n){const e=I(3).$implicit,i=I(3);v("standalone",!1)("settings",i.columnMenu)("column",e)("columnMenuTemplate",i.columnMenuTemplate)("sort",i.sort)("filter",i.filter)("sortable",i.sortable)("tabIndex",i.tabIndex)}}function n8t(n,t){}function i8t(n,t){1&n&&H(0),2&n&&un(I(3).$implicit.displayTitle)}const uz=function(n,t,e,i){return{templateRef:n,columnIndex:t,column:e,$implicit:i}};function s8t(n,t){if(1&n&&(A(0,e8t,1,3,"kendo-grid-filter-menu",13),A(1,t8t,1,8,"kendo-grid-column-menu",14),A(2,n8t,0,0,"ng-template",15),A(3,i8t,1,1,"ng-template",0)),2&n){const e=I(2).$implicit,i=I(3);v("ngIf",i.showFilterMenu&&i.isFilterable(e)),b(1),v("ngIf",i.showColumnMenu(e)),b(1),v("templateContext",kp(4,uz,e.headerTemplateRef,e.leafIndex,e,e)),b(1),v("ngIf",!e.headerTemplateRef)}}function o8t(n,t){}function r8t(n,t){if(1&n&&(y(0,"span",24),H(1),_()),2&n){const e=I(3).$implicit;b(1),un(e.displayTitle)}}function a8t(n,t){if(1&n&&(y(0,"span",25),H(1),_()),2&n){const e=I(3).$implicit,i=I(3);b(1),un(i.sortOrder(e.field))}}function l8t(n,t){if(1&n&&P(0,"kendo-grid-filter-menu",16),2&n){const e=I(3).$implicit,i=I(3);v("column",e)("filter",i.filter)("tabIndex",i.tabIndex)}}function c8t(n,t){if(1&n&&P(0,"kendo-grid-column-menu",17),2&n){const e=I(3).$implicit,i=I(3);v("standalone",!1)("settings",i.columnMenu)("column",e)("columnMenuTemplate",i.columnMenuTemplate)("sort",i.sort)("filter",i.filter)("sortable",i.sortable)("tabIndex",i.tabIndex)}}function d8t(n,t){if(1&n){const e=ht();y(0,"span",18),y(1,"span",19,20),se("click",function(s){Le(e);const o=ki(2),r=I(2).$implicit;return I(3).onSortClick(r,s,o)}),A(3,o8t,0,0,"ng-template",15),A(4,r8t,2,1,"ng-template",0),P(5,"span",21),A(6,a8t,2,1,"span",22),_(),P(7,"span",23),A(8,l8t,1,3,"kendo-grid-filter-menu",13),A(9,c8t,1,8,"kendo-grid-column-menu",14),_()}if(2&n){const e=I(2).$implicit,i=I(3);b(3),v("templateContext",kp(8,uz,e.headerTemplateRef,e.leafIndex,e,e)),b(1),v("ngIf",!e.headerTemplateRef),b(1),v("ngClass",i.sortIcon(e.field)),fe("aria-label",i.sortableLabel),b(1),v("ngIf",i.showSortNumbering(e)),b(1),v("innerHtml",i.sortStatus(e),cP),b(1),v("ngIf",i.showFilterMenu&&i.isFilterable(e)),b(1),v("ngIf",i.showColumnMenu(e))}}function u8t(n,t){if(1&n&&P(0,"input",26),2&n){const e=I(5);fe("id",e.selectAllCheckboxId())("aria-label",e.selectAllCheckboxLabel)}}function h8t(n,t){if(1&n&&P(0,"span",27),2&n){const e=I(2).$implicit,i=I(3);v("column",e)("columns",i.columns)}}const p8t=function(n,t,e,i){return{field:n,type:"column",column:t,hint:e,lastColumn:i}};function f8t(n,t){if(1&n){const e=ht();y(0,"th",11),se("keydown",function(s){Le(e);const o=I().$implicit;return I(3).onHeaderKeydown(o,s)}),A(1,s8t,4,9,"ng-template",0),A(2,d8t,10,13,"ng-template",0),A(3,u8t,1,2,"ng-template",0),A(4,h8t,1,2,"span",12),_()}if(2&n){const e=I(),i=e.$implicit,s=e.index,o=e.last,r=I().index,a=I(2);he("k-filterable",a.showFilterMenu&&a.isFilterable(i)||a.showColumnMenu(i))("k-first",a.isFirstOnRow(i,s))("k-grid-header-sticky",i.sticky),v("logicalRowIndex",r)("logicalColIndex",a.logicalColumnIndex(i))("headerLabelText",i.title||i.field)("colSpan",i.colspan)("rowSpan",i.rowspan(a.totalColumnLevels))("enableDrag",a.shouldActivate(i))("context",kp(22,p8t,i.field,i,i.title||i.field,o&&0===s))("ngClass",i.headerClass)("ngStyle",i.sticky?a.addStickyStyles(i):i.headerStyle),fe("aria-sort",a.sortState(i))("rowspan",i.rowspan(a.totalColumnLevels))("colspan",i.colspan),b(1),v("ngIf",!a.isSortable(i)),b(1),v("ngIf",a.isSortable(i)),b(1),v("ngIf",a.isCheckboxColumn(i)&&!i.headerTemplateRef&&i.showSelectAll),b(1),v("ngIf",a.resizable)}}function g8t(n,t){if(1&n&&P(0,"kendo-grid-column-menu",30),2&n){const e=I(2).$implicit,i=I(3);v("standalone",!1)("settings",i.columnMenu)("column",e)("columnMenuTemplate",i.columnMenuTemplate)}}function m8t(n,t){}function y8t(n,t){1&n&&H(0),2&n&&un(I(2).$implicit.displayTitle)}function _8t(n,t){if(1&n&&P(0,"span",27),2&n){const e=I(2).$implicit,i=I(3);v("column",e)("columns",i.columns)}}const v8t=function(n,t,e){return{type:"columnGroup",column:n,hint:t,lastColumn:e}};function b8t(n,t){if(1&n&&(y(0,"th",28),A(1,g8t,1,4,"kendo-grid-column-menu",29),A(2,m8t,0,0,"ng-template",15),A(3,y8t,1,1,"ng-template",0),A(4,_8t,1,2,"span",12),_()),2&n){const e=I(),i=e.$implicit,s=e.index,o=e.last,r=I().index,a=I(2);he("k-first",a.isFirstOnRow(i,s))("k-filterable",a.showColumnMenu(i))("k-grid-content-sticky",i.sticky),v("logicalRowIndex",r)("logicalColIndex",a.logicalColumnIndex(i))("rowSpan",i.rowspan(a.totalColumnLevels))("colSpan",i.colspan)("headerLabelText",i.title||i.field)("enableDrag",a.shouldActivate(i))("context",pc(21,v8t,i,i.title,o&&0===s))("ngClass",i.headerClass)("ngStyle",i.headerStyle),fe("rowspan",i.rowspan(a.totalColumnLevels))("colspan",i.colspan),b(1),v("ngIf",a.showColumnMenu(i)),b(1),v("templateContext",kp(25,uz,i.headerTemplateRef,a.lockedColumnsCount+s,i,i)),b(1),v("ngIf",!i.headerTemplateRef),b(1),v("ngIf",a.resizable)}}function C8t(n,t){if(1&n&&(A(0,f8t,5,27,"th",9),A(1,b8t,5,30,"th",10)),2&n){const e=t.$implicit,i=I(3);v("ngIf",!i.isColumnGroupComponent(e)),b(1),v("ngIf",i.isColumnGroupComponent(e))}}function x8t(n,t){if(1&n&&(y(0,"tr",3),A(1,Qzt,1,0,"th",4),A(2,Jzt,1,2,"th",5),A(3,C8t,2,2,"ng-template",6),_()),2&n){const e=t.index,i=I(2);v("logicalRowIndex",e)("logicalSlaveRow",i.lockedColumnsCount>0)("logicalCellsCount",i.columns.length)("logicalSlaveCellsCount",i.unlockedColumnsCount),b(1),v("ngForOf",i.groups),b(1),v("ngIf",null==i.detailTemplate?null:i.detailTemplate.templateRef),b(1),v("ngForOf",i.columnsForLevel(e))("ngForTrackBy",i.trackByIndex)}}function w8t(n,t){if(1&n&&P(0,"tr",31),2&n){const e=I(2);v("columns",e.leafColumns)("filter",e.filter)("groups",e.groups)("detailTemplate",e.detailTemplate)("lockedColumnsCount",e.lockedColumnsCount)("logicalRowIndex",e.totalColumnLevels+1)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount)}}function S8t(n,t){if(1&n&&(A(0,x8t,4,8,"tr",1),A(1,w8t,1,9,"tr",2)),2&n){const e=I();v("ngForOf",e.columnLevels),b(1),v("ngIf",e.showFilterRow)}}const T8t=["resetButton"],k8t=["filterButton"];function D8t(n,t){if(1&n&&(_n(0),wn(1,9),vn()),2&n){const e=I();b(1),v("filterService",e.childService)("column",e.column)("filter",e.childFilter)("menuTabbingService",e.menuTabbingService)}}function M8t(n,t){}function E8t(n,t){if(1&n&&A(0,M8t,0,0,"ng-template",11),2&n){const e=I(2);v("ngTemplateOutlet",e.column.filterMenuTemplateRef)("ngTemplateOutletContext",e.templateContext)}}function I8t(n,t){if(1&n&&(_n(0),A(1,E8t,1,2,void 0,10),vn()),2&n){const e=I();b(1),v("ngIf",e.column.filterMenuTemplateRef)}}function A8t(n,t){if(1&n){const e=ht();y(0,"kendo-dropdownlist",3),se("valueChange",function(s){return Le(e),I().logicChange(s)}),_()}if(2&n){const e=I();v("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function F8t(n,t){if(1&n&&P(0,"kendo-grid-string-filter-menu-input",4),2&n){const e=I();v("operators",e.operators)("currentFilter",e.secondFilter)("filterService",e.filterService)("column",e.column)("filter",e.filter)("menuTabbingService",e.menuTabbingService)}}function O8t(n,t){if(1&n){const e=ht();y(0,"kendo-dropdownlist",3),se("valueChange",function(s){return Le(e),I().logicChange(s)}),_()}if(2&n){const e=I();v("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function R8t(n,t){if(1&n&&P(0,"kendo-grid-numeric-filter-menu-input",4),2&n){const e=I();v("operators",e.operators)("currentFilter",e.secondFilter)("filterService",e.filterService)("column",e.column)("filter",e.filter)("format",e.format)("decimals",e.decimals)("spinners",e.spinners)("min",e.min)("max",e.max)("step",e.step)("menuTabbingService",e.menuTabbingService)}}function P8t(n,t){if(1&n){const e=ht();y(0,"kendo-dropdownlist",3),se("valueChange",function(s){return Le(e),I().logicChange(s)}),_()}if(2&n){const e=I();v("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function L8t(n,t){if(1&n&&P(0,"kendo-grid-date-filter-menu-input",4),2&n){const e=I();v("operators",e.operators)("currentFilter",e.secondFilter)("filterService",e.filterService)("column",e.column)("filter",e.filter)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("format",e.format)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("min",e.min)("max",e.max)("weekNumber",e.weekNumber)("menuTabbingService",e.menuTabbingService)}}function N8t(n,t){if(1&n){const e=ht();y(0,"li"),y(1,"input",2,3),se("change",function(){const o=Le(e).$implicit,r=ki(2);return I().onChange(o.value,r)})("keydown.shift.tab",function(s){return Le(e),I().onShiftTab(s)}),_(),y(3,"label",4),H(4),_(),_()}if(2&n){const e=t.$implicit,i=I();b(1),v("columnLabel",i.columnLabel)("name",i.idPrefix)("checked",i.isSelected(e.value)),fe("id",i.radioId(e.value)),b(2),fe("for",i.radioId(e.value)),b(1),un(e.text)}}const B8t=["applyButton"];function V8t(n,t){if(1&n&&(y(0,"label",3),P(1,"input",4),y(2,"span",5),H(3),_(),_()),2&n){const e=t.$implicit,i=t.index,s=I();b(1),v("checked",!e.hidden)("disabled",s.isDisabled(e)),fe("data-index",i),b(2),un(e.displayTitle)}}function z8t(n,t){if(1&n){const e=ht();y(0,"div",6),y(1,"button",7),se("click",function(){return Le(e),I().cancelChanges()}),H(2),_(),y(3,"button",8,9),se("keydown.tab",function(s){return Le(e),I().onTab(s)})("click",function(){return Le(e),I().applyChanges()}),H(5),_(),_()}if(2&n){const e=I();v("ngClass",e.actionsClass),b(2),un(e.resetText),b(3),un(e.applyText)}}function H8t(n,t){if(1&n){const e=ht();y(0,"span",4),H(1),_(),y(2,"kendo-grid-columnlist",5),se("apply",function(s){return Le(e),I().onApply(s)})("columnChange",function(s){return Le(e),I().onChange(s)}),_()}if(2&n){const e=I();b(1),un(e.localization.get("columns")),b(1),v("columns",e.columns)("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("autoSync",e.autoSync)("allowHideAll",e.allowHideAll)}}function G8t(n,t){if(1&n){const e=ht();y(0,"kendo-grid-columnlist",2),se("apply",function(s){return Le(e),I().onApply(s)}),_()}if(2&n){const e=I();v("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 j8t(n,t){if(1&n){const e=ht();y(0,"kendo-grid-filter-menu-container",2),se("keydown.shift.tab",function(s){return s.stopImmediatePropagation()})("close",function(){return Le(e),I().close()}),_()}if(2&n){const e=I();v("column",e.service.column)("menuTabbingService",e.service.menuTabbingService)("filter",e.service.filter)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)}}function $8t(n,t){1&n&&P(0,"span",3),2&n&&v("ngClass",I().iconClass)}function U8t(n,t){if(1&n&&(y(0,"div",4),wn(1,5),P(2,"div"),_()),2&n){const e=I();v("@state",e.contentState),b(1),v("ngTemplateOutlet",e.contentTemplate.templateRef)}}function W8t(n,t){if(1&n){const e=ht();y(0,"kendo-grid-columnmenu-lock",3),se("keydown.tab",function(s){Le(e);const o=I(2);return o.onTab(s,!o.showStick)}),_()}2&n&&v("service",I(2).service)}function q8t(n,t){if(1&n){const e=ht();y(0,"kendo-grid-columnmenu-stick",3),se("keydown.tab",function(s){return Le(e),I(2).onTab(s,!0)}),_()}2&n&&v("service",I(2).service)}function X8t(n,t){if(1&n&&(A(0,W8t,1,1,"kendo-grid-columnmenu-lock",2),A(1,q8t,1,1,"kendo-grid-columnmenu-stick",2)),2&n){const e=I();v("ngIf",e.showLock),b(1),v("ngIf",e.showStick)}}const Y8t=["kendoGridTableBody",""];function K8t(n,t){1&n&&P(0,"td",8)}function Z8t(n,t){1&n&&A(0,K8t,1,0,"td",7),2&n&&v("ngForOf",I(2).groups)}function Q8t(n,t){1&n&&P(0,"td",9),2&n&&v("logicalRowIndex",I(2).addRowLogicalIndex())("logicalColIndex",0)}function J8t(n,t){if(1&n&&P(0,"td",10),2&n){const e=t.$implicit,i=t.index,s=I(2);yt("left",e.sticky?"0":void 0),he("k-grid-content-sticky",e.sticky),v("rowIndex",-1)("columnIndex",s.lockedColumnsCount+i)("isNew",!0)("column",e)("dataItem",s.newDataItem)("ngClass",e.cssClass)("ngStyle",e.sticky?s.addStickyColumnStyles(e):e.style)("logicalRowIndex",s.addRowLogicalIndex())("logicalColIndex",s.logicalColIndex(e))("colSpan",e.colspan),fe("colspan",e.colspan)}}function e6t(n,t){if(1&n&&(y(0,"tr",4),A(1,Z8t,1,1,"ng-template",0),A(2,Q8t,1,2,"td",5),A(3,J8t,1,15,"td",6),_()),2&n){const e=I();v("logicalRowIndex",e.addRowLogicalIndex())("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),b(1),v("ngIf",!e.skipGroupDecoration),b(1),v("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),b(1),v("ngForOf",e.columns)("ngForTrackBy",e.trackByColumns)}}function t6t(n,t){}function n6t(n,t){if(1&n&&(_n(0),H(1),vn()),2&n){const e=I(2);b(1),_t(" ",e.noRecordsText," ")}}const i6t=function(n){return{templateRef:n}};function s6t(n,t){if(1&n&&(y(0,"tr",11),y(1,"td"),A(2,t6t,0,0,"ng-template",12),A(3,n6t,2,1,"ng-container",13),_(),_()),2&n){const e=I();b(1),fe("colspan",e.colSpan),b(1),v("ngIf",null==e.noRecordsTemplate?null:e.noRecordsTemplate.templateRef)("templateContext",Yt(4,i6t,null==e.noRecordsTemplate?null:e.noRecordsTemplate.templateRef)),b(1),v("ngIf",!(null!=e.noRecordsTemplate&&e.noRecordsTemplate.templateRef))}}function o6t(n,t){if(1&n&&P(0,"tr",18),2&n){const e=I(),i=e.$implicit,s=e.index,o=I();v("columns",o.columns)("groups",o.groups)("item",i)("hasDetails",null==o.detailTemplate?null:o.detailTemplate.templateRef)("skipGroupDecoration",o.skipGroupDecoration)("hasGroupHeaderColumn",o.hasGroupHeaderColumn)("groupHeaderColumns",o.groupHeaderColumns)("rowIndex",s+1)("totalColumnsCount",o.totalColumnsCount)("logicalRowIndex",o.logicalRowIndex(s))("logicalSlaveRow",o.lockedColumnsCount>0)("logicalCellsCount",o.columns.length)("logicalSlaveCellsCount",o.groupHeaderSlaveCellsCount)}}function r6t(n,t){1&n&&P(0,"td",8)}function a6t(n,t){1&n&&A(0,r6t,1,0,"td",7),2&n&&v("ngForOf",I(3).groups)}function l6t(n,t){if(1&n){const e=ht();y(0,"a",24),se("click",function(){Le(e);const s=I(3).$implicit;return I().toggleRow(s.index,s.data)}),_()}if(2&n){const e=I(3).$implicit,i=I();v("ngClass",i.detailButtonStyles(e)),fe("title",i.detailButtonTitle(e))}}function c6t(n,t){if(1&n&&(y(0,"td",22),A(1,l6t,1,2,"a",23),_()),2&n){const e=I(2),i=e.index,s=e.$implicit,o=I();v("logicalRowIndex",o.logicalRowIndex(i))("logicalColIndex",0)("dataRowIndex",s.index)("dataItem",s.data)("detailExpandCell",!0),b(1),v("ngIf",o.detailTemplate.showIf(s.data,s.index))}}function d6t(n,t){if(1&n&&P(0,"td",25),2&n){const e=t.$implicit,i=t.index,s=I(2),o=s.$implicit,r=s.index,a=I();he("k-grid-content-sticky",e.sticky)("k-touch-action-none",a.isSelectable()&&a.selectable.drag)("k-touch-action-auto",!(a.isSelectable()&&a.selectable.drag))("k-grid-edit-cell",a.isEditingCell(o.index,e))("k-state-selected",a.isSelectable&&a.cellSelectionService.isCellSelected(o,e)),v("rowIndex",o.index)("columnIndex",a.lockedColumnsCount+i)("column",e)("dataItem",o.data)("logicalRowIndex",a.logicalRowIndex(r))("logicalColIndex",a.logicalColIndex(e))("dataRowIndex",o.index)("dataItem",o.data)("colIndex",i)("colSpan",e.colspan)("ngClass",e.cssClass)("ngStyle",e.sticky?a.addStickyColumnStyles(e):e.style),fe("data-kendo-grid-column-index",a.lockedColumnsCount+i)("aria-selected",a.isSelectable()?a.isAriaSelected(o,e):void 0)("colspan",e.colspan)}}const DIe=function(n,t){return{dataItem:n,index:t}};function u6t(n,t){if(1&n&&(y(0,"tr",19),A(1,a6t,1,1,"ng-template",0),A(2,c6t,2,6,"td",20),A(3,d6t,1,25,"td",21),_()),2&n){const e=I(),i=e.$implicit,s=e.index,o=I();he("k-grid-row-sticky",!!o.rowSticky&&o.rowSticky(di(22,DIe,i.data,i.index)))("k-alt",o.isOdd(i))("k-master-row",null==o.detailTemplate?null:o.detailTemplate.templateRef)("k-grid-edit-row",o.isEditingRow(i.index))("k-state-selected",o.isSelectable()&&o.isRowSelected(i)),v("dataRowIndex",i.index)("dataItem",i.data)("logicalRowIndex",o.logicalRowIndex(s))("logicalSlaveRow",o.lockedColumnsCount>0)("logicalCellsCount",o.columns.length)("logicalSlaveCellsCount",o.unlockedColumnsCount)("ngClass",o.rowClass(di(25,DIe,i.data,i.index))),fe("data-kendo-grid-item-index",i.index),b(1),v("ngIf",!o.skipGroupDecoration),b(1),v("ngIf",null==o.detailTemplate?null:o.detailTemplate.templateRef),b(1),v("ngForOf",o.columns)("ngForTrackBy",o.trackByColumns)}}function h6t(n,t){1&n&&P(0,"td",31)}function p6t(n,t){}const f6t=function(n,t,e){return{dataItem:n,rowIndex:t,$implicit:e}};function g6t(n,t){if(1&n&&(y(0,"tr",26),A(1,h6t,1,0,"td",27),P(2,"td",28),y(3,"td",29),A(4,p6t,0,0,"ng-template",30),_(),_()),2&n){const e=I(),i=e.$implicit,s=e.index,o=I();he("k-alt",o.isOdd(i)),v("dataRowIndex",i.index)("dataItem",i.data)("logicalRowIndex",o.logicalRowIndex(s)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),b(1),v("ngForOf",o.groups),b(2),v("logicalRowIndex",o.logicalRowIndex(s)+1)("logicalColIndex",0)("dataRowIndex",i.index)("dataItem",i.data)("colIndex",0)("colSpan",o.allColumnsSpan+1),fe("colspan",o.columnsSpan),b(1),v("ngTemplateOutlet",o.detailTemplate.templateRef)("ngTemplateOutletContext",pc(17,f6t,i.data,i.index,i.data))}}function m6t(n,t){1&n&&P(0,"td",31)}function y6t(n,t){1&n&&A(0,m6t,1,0,"td",27),2&n&&v("ngForOf",I(3).groups)}function _6t(n,t){if(1&n&&P(0,"td",9),2&n){const e=I(2).index;v("logicalRowIndex",I().logicalRowIndex(e))("logicalColIndex",0)}}function v6t(n,t){}const b6t=function(n,t,e,i,s,o){return{templateRef:n,group:t,field:e,column:i,aggregates:s,$implicit:o}};function C6t(n,t){if(1&n&&(y(0,"td",34),A(1,v6t,0,0,"ng-template",35),_()),2&n){const e=t.$implicit,i=I(2),s=i.index,o=i.$implicit,r=I();v("logicalRowIndex",r.logicalRowIndex(s))("logicalColIndex",r.logicalColIndex(e)),fe("data-skip",r.skipGroupDecoration),b(1),v("templateContext",aI(4,b6t,e.groupFooterTemplateRef,o.data,e.field,e,null==o.data?null:o.data.aggregates,null==o.data?null:o.data.aggregates))}}function x6t(n,t){if(1&n&&(y(0,"tr",32),A(1,y6t,1,1,"ng-template",0),A(2,_6t,1,2,"td",5),A(3,C6t,2,11,"td",33),_()),2&n){const e=I().index,i=I();v("logicalRowIndex",i.logicalRowIndex(e))("logicalSlaveRow",i.lockedColumnsCount>0)("logicalCellsCount",i.columns.length)("logicalSlaveCellsCount",i.unlockedColumnsCount),b(1),v("ngIf",!i.skipGroupDecoration),b(1),v("ngIf",null==i.detailTemplate?null:i.detailTemplate.templateRef),b(1),v("ngForOf",i.footerColumns)("ngForTrackBy",i.trackByColumns)}}function w6t(n,t){if(1&n&&(A(0,o6t,1,13,"tr",14),A(1,u6t,4,28,"tr",15),A(2,g6t,5,21,"tr",16),A(3,x6t,4,8,"tr",17)),2&n){const e=t.$implicit,i=I();v("ngIf",i.isGroup(e)&&i.isParentGroupExpanded(e)&&i.showGroupHeader(e)),b(1),v("ngIf",i.isDataItem(e)&&(!e.group||i.isDataItemInExpandedGroup(e))),b(1),v("ngIf",i.isDataItem(e)&&(!e.group||i.isDataItemInExpandedGroup(e))&&(null==i.detailTemplate?null:i.detailTemplate.templateRef)&&i.detailTemplate.showIf(e.data,e.index)&&i.isExpanded(e)),b(1),v("ngIf",i.isFooter(e)&&e.group&&(i.isFooterItemInExpandedGroup(e)||i.showGroupFooters&&i.isParentGroupExpanded(e.group))&&!e.data.hideFooter)}}function S6t(n,t){if(1&n){const e=ht();y(0,"kendo-resize-sensor",36),se("resize",function(){return Le(e),I().resizeHandler()}),_()}}const T6t=["kendoGridCell",""];function k6t(n,t){}function D6t(n,t){if(1&n&&(H(0),gi(1,"valueOf")),2&n){const e=t.$implicit;_t(" ",zP(1,1,I(3).dataItem,e.field,e.format)," ")}}function M6t(n,t){1&n&&A(0,D6t,2,5,"ng-template",4),2&n&&v("ngForOf",I(2).childColumns)}function E6t(n,t){if(1&n&&(H(0),gi(1,"valueOf")),2&n){const e=I(2);un(zP(1,1,e.dataItem,e.column.field,e.column.format))}}function I6t(n,t){if(1&n&&P(0,"input",5),2&n){const e=I(2);v("kendoGridSelectionCheckbox",e.rowIndex),fe("id",e.selectionCheckboxId)("aria-label",e.selectionCheckboxLabel)}}function A6t(n,t){if(1&n&&(_n(0),A(1,k6t,0,0,"ng-template",2),A(2,M6t,1,1,"ng-template",3),A(3,E6t,2,5,"ng-template",3),A(4,I6t,1,3,"ng-template",3),vn()),2&n){const e=I();b(1),v("ngIf",e.column.templateRef)("ngTemplateOutlet",e.column.templateRef)("ngTemplateOutletContext",e.templateContext),b(1),v("ngIf",e.isSpanColumn),b(1),v("ngIf",e.isBoundColumn),b(1),v("ngIf",e.isCheckboxColumn&&!e.isNew)}}function F6t(n,t){}function O6t(n,t){if(1&n&&A(0,F6t,0,0,"ng-template",8),2&n){const e=I(2);v("ngTemplateOutlet",e.column.editTemplateRef)("ngTemplateOutletContext",e.editTemplateContext)}}function R6t(n,t){if(1&n&&P(0,"kendo-numerictextbox",12),2&n){const e=I(3);v("format",e.format)("formControl",e.formGroup.get(e.column.field))}}function P6t(n,t){if(1&n&&P(0,"kendo-datepicker",12),2&n){const e=I(3);v("format",e.format)("formControl",e.formGroup.get(e.column.field))}}function L6t(n,t){if(1&n&&P(0,"input",13),2&n){const e=I(3);v("formControl",e.formGroup.get(e.column.field))}}function N6t(n,t){if(1&n&&P(0,"input",14),2&n){const e=I(3);v("formControl",e.formGroup.get(e.column.field))}}function B6t(n,t){1&n&&(_n(0,0),A(1,R6t,1,2,"kendo-numerictextbox",9),A(2,P6t,1,2,"kendo-datepicker",9),A(3,L6t,1,1,"input",10),A(4,N6t,1,1,"input",11),vn()),2&n&&(v("ngSwitch",I(2).column.editor),b(1),v("ngSwitchCase","numeric"),b(1),v("ngSwitchCase","date"),b(1),v("ngSwitchCase","boolean"))}function V6t(n,t){if(1&n&&(_n(0),A(1,O6t,1,2,void 0,6),A(2,B6t,5,4,"ng-container",7),vn()),2&n){const e=I();b(1),v("ngIf",e.column.editTemplateRef),b(1),v("ngIf",!e.column.editTemplateRef)}}const z6t=["kendoGridFooter",""];function H6t(n,t){1&n&&P(0,"td",5),2&n&&he("k-group-cell",!0)}function G6t(n,t){1&n&&P(0,"td",5),2&n&&he("k-hierarchy-cell",!0)}function j6t(n,t){}function $6t(n,t){if(1&n&&(y(0,"td",6),A(1,j6t,0,0,"ng-template",7),_()),2&n){const e=t.$implicit,i=t.index,s=I(2);he("k-grid-footer-sticky",e.sticky),v("logicalRowIndex",s.logicalRowIndex)("logicalColIndex",s.logicalColumnIndex(e))("ngClass",e.footerClass)("ngStyle",e.sticky?s.addStickyStyles(e):e.footerStyle),b(1),v("templateContext",kp(7,uz,e.footerTemplateRef,s.lockedColumnsCount+i,e,e))}}function U6t(n,t){if(1&n&&(y(0,"tr",1),A(1,H6t,1,2,"td",2),A(2,G6t,1,2,"td",3),A(3,$6t,2,12,"td",4),_()),2&n){const e=I();he("k-footer-template",!0),v("logicalRowIndex",e.logicalRowIndex)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.columns.length-e.lockedColumnsCount),b(1),v("ngForOf",e.groups),b(1),v("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),b(1),v("ngForOf",e.columnsToRender)}}function W6t(n,t){}function q6t(n,t){if(1&n&&A(0,W6t,0,0,"ng-template",1),2&n){const e=I();v("ngTemplateOutlet",e.toolbarTemplateRef)("ngTemplateOutletContext",e.context)}}const X6t=/^\s*$/,Rt=n=>null!=n,VQ=n=>null==n,zQ=n=>Array.isArray(n),Hu=n=>!!n,ya=n=>VQ(n)||X6t.test(n),hz=n=>ii(Vt(n),n.changes),NF=()=>"undefined"==typeof document,HQ=n=>"string"==typeof n,MIe=n=>"number"==typeof n&&!isNaN(n),GQ=n=>HQ(n)&&!ya(n)&&n.startsWith("{0:")?n.slice(3,n.length-1):n,BF=n=>(...t)=>!n.apply(null,t),pz=(...n)=>t=>n.reduce((e,i)=>e||i(t),!1),jQ=(...n)=>t=>n.reduce((e,i)=>e&&i(t),!0),cm=(new ot("Skip"),function(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;const n=Object.getOwnPropertyNames(Map.prototype),t=Map.prototype;for(let e=0;esetTimeout(n,16.666666666666668)),J6t=fz.cancelAnimationFrame||fz.msCancelRequestAnimationFrame||clearTimeout,Zl=(n,t,e)=>n.replace(new RegExp(`{\\s*${t}\\s*}`,"g"),e);let Gu=(()=>{let n=class{constructor(){this.cellClick=new S,this.cellMousedown=new S,this.cellMouseup=new S,this.click=new S,this.keydown=new S,this.focus=new S,this.focusIn=new S,this.focusOut=new S,this.windowBlur=new S}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),cd=(()=>{let n=class{constructor(){this.changes=new S}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const gz=new ot("focus-root-initial-active-state");let pf=(()=>{let n=class{constructor(e=!1){this.active=e,this.groups=new Set}registerGroup(e){this.active&&this.groups.add(e)}unregisterGroup(e){this.active&&this.groups.delete(e)}activate(){this.active&&this.groups.forEach(e=>e.activate())}deactivate(){this.active&&this.groups.forEach(e=>e.deactivate())}};return n.\u0275fac=function(e){return new(e||n)(V(gz,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([qn(0,gt()),qn(0,Rn(gz)),T("design:paramtypes",[Boolean])],n),n})();const nHt=/^(?:a|input|select|option|textarea|button|object)$/i,$Q={},IIe=n=>String(n).trim().split(" "),rw=(n,t)=>{const e=IIe(t);return Boolean(IIe(n.className).find(i=>e.indexOf(i)>=0))},dm=n=>t=>rw(t,n),Ql=n=>($Q[n]||($Q[n]=t=>String(t.nodeName).toLowerCase()===n.toLowerCase()),$Q[n]),Dc=(n,t)=>{for(;n&&!t(n);)n=n.parentNode;return n},UQ=(n,t,e)=>{for(;n&&n!==e&&!t(n);)n=n.parentNode;if(n!==e)return n},WQ=n=>{const t=n.getBoundingClientRect();return(t.width>0&&t.height>0||0!==t.x&&0!==t.y)&&"hidden"!==window.getComputedStyle(n).visibility},AIe=n=>{if(!n.tagName)return!1;const t=n.tagName.toLowerCase(),e=Boolean(n.getAttribute("tabIndex"));return!n.disabled&&nHt.test(t)||e},VF=(n,t=!0)=>{if(!AIe(n))return!1;const e=!t||WQ(n),i="true"===n.getAttribute("aria-hidden"),s=n.getAttribute("tabIndex");return e&&!i&&"-1"!==s},ff=(n,t,e=!0)=>{if(n){if(e&&t(n))return n;for(n=n.firstChild;n;){if(1===n.nodeType){const i=ff(n,t);if(i)return i}n=n.nextSibling}}},FIe=(n,t=!0)=>ff(n,e=>VF(e,t),!1),lHt=Ql("button"),cHt=Ql("input"),dHt=/(button|checkbox|color|file|radio|reset|submit)/i;class pHt{constructor(t,e){this.renderer=e,this.element=t.nativeElement,this.focusable=((n,t=!0)=>ff(this.element,e=>VF(e,t)))(0,!1)||this.element}get enabled(){return this.focusable&&!this.focusable.disabled}get visible(){return this.focusable&&WQ(this.focusable)}isNavigable(){return this.canFocus()&&(n=>!n.disabled&&(lHt(n)||(n=>cHt(n)&&dHt.test(n.type))(n)))(this.element)}toggle(t){this.renderer.setAttribute(this.focusable,"tabIndex",t?"0":"-1")}focus(){this.focusable&&this.focusable.focus()}canFocus(){return this.visible&&this.enabled}hasFocus(){return document.activeElement!==this.element&&Dc(document.activeElement,t=>t===this.element)}}const Jl=new ot("grid-cell-context");let Mc=(()=>{let n=class{constructor(e,i,s){this.cellContext=e,this.hostElement=i,this.renderer=s,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}set enabled(e){(e=""===e||Boolean(e))!==this.enabled&&(this._enabled=e,this.element&&this.element.toggle(this.active&&e))}get enabled(){return this._enabled}ngAfterViewInit(){this.element||(this.element=new pHt(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}ngOnDestroy(){this.group&&this.group.unregisterElement(this)}toggle(e){this.element&&e!==this.active&&(this.element.toggle(this.enabled&&e),this.active=e)}canFocus(){return this.enabled&&this.element&&this.element.canFocus()}isNavigable(){return this.enabled&&this.element&&this.element.isNavigable()}focus(){this.enabled&&this.element&&this.element.focus()}hasFocus(){return this.enabled&&this.element&&this.element.hasFocus()}registerElement(e){this.element=e}};return n.\u0275fac=function(e){return new(e||n)(g(Jl,12),g($),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),M([p("kendoGridFocusable"),T("design:type",Object),T("design:paramtypes",[Object])],n.prototype,"enabled",null),n=M([qn(0,gt()),qn(0,Rn(Jl)),qn(0,za()),T("design:paramtypes",[Object,$,Ie])],n),n})();class gHt{constructor(t){this.navigationService=t}focus(){this.navigationService.focusCell()}toggle(t){this.navigationService.toggle(t)}canFocus(){return!0}hasFocus(){return this.navigationService.hasFocus()}isNavigable(){return!1}}class mHt{constructor(t){this.model=t,this.changes=new Z,this.activeRow=0,this.activeCol=0,this.virtualCol=0,this.virtualRow=0}get row(){return this.model.findRow(this.activeRow)}get cell(){const t=this.row;if(t)return this.model.findCell(this.activeCol,t)}get dataRowIndex(){const t=this.row;return t?t.dataRowIndex:-1}reset(t=this.activeRow,e=this.activeCol,i=!0){this.activate(t,e,i)&&(this.virtualRow=t,this.virtualCol=e)}activate(t,e,i){if(!i&&this.isActiveRange(t,e))return!1;const s=this.activeCol,o=this.activeRow;return this.activeCol=e,this.activeRow=t,this.changes.next({colIndex:e,prevColIndex:s,prevRowIndex:o,rowIndex:t}),!0}isActiveRange(t,e){if(this.activeRow!==t)return!1;const i=this.cell,{start:s,end:o}=this.model.cellRange(i);return!Boolean(i)||s<=e&&e<=o}assume(t=this.activeRow,e=this.activeCol){this.virtualRow=t,this.virtualCol=e,this.activeCol=e,this.activeRow=t}announce(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}activateVirtualCell(t){const e=this.model.rowRange(t),i=this.model.cellRange(t),s=this.activeCol,o=this.activeRow;if(e.start<=o&&o<=e.end&&i.start<=s&&s<=i.end)return this.activeRow=t.rowIndex,this.activeCol=t.colIndex,!0}isActive(t,e){return this.activeCol===e&&this.activeRow===t}moveUp(t=1){return this.offsetRow(-t)}moveDown(t=1){return this.offsetRow(t)}moveLeft(t=1){return this.offsetCol(-t)}moveRight(t=1){return this.offsetCol(t)}lastCellIndex(t){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||t&&t.groupItem?0:1)}offsetCol(t){const e=this.model.findRow(this.virtualRow),i=this.lastCellIndex(e),s=this.virtualCol;this.virtualCol=Math.max(0,Math.min(s+t,i));let o=this.virtualCol,r=this.virtualRow,a=this.model.findCell(this.virtualCol,e);if(!a&&this.metadata.virtualColumns)return this.activate(r,o);if(a.colSpan>1&&a.colIndex<=s&&s0?Math.min(a.colIndex+a.colSpan,i):Math.max(0,a.colIndex+t);const l=this.model.findCell(o,e);a!==l?(a=l,this.virtualCol=a.colIndex):this.virtualCol=s}return this.activate(a.rowIndex,a.colIndex)}offsetRow(t){let e=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){const o=this.metadata.maxLogicalRowIndex;let r=Math.max(0,Math.min(this.activeRow+t,o));this.metadata.hasDetailTemplate&&!this.model.findRow(r)&&(r=t>0?r+1:r-1,r=Math.max(0,Math.min(r,o))),this.metadata.hasDetailTemplate&&r===o&&this.model.lastRow.index!==o&&r--;const a=this.model.findRow(r);if(a){let l=this.model.findCell(this.virtualCol,a);l.rowIndex<=this.virtualRow&&t>0&&l.rowSpan>1&&(l=this.model.findCell(this.virtualCol,this.model.findRow(l.rowIndex+l.rowSpan-1+t))),r=l.rowIndex,e=l.colIndex}return this.virtualRow=r,this.activate(r,e)}const i=this.model.findRow(this.virtualRow+t)||this.model.nextRow(this.virtualRow,t);if(!i)return!1;let s=this.model.findCell(this.virtualCol,i);return s&&s.rowIndex<=this.virtualRow&&t>0&&s.rowSpan>1&&(s=this.model.findCell(this.virtualCol,this.model.findRow(s.rowIndex+s.rowSpan-1+t))),!s&&this.metadata.virtualColumns?this.activate(this.virtualRow+t,this.virtualCol):(this.virtualRow=s.rowIndex,this.activate(this.virtualRow,s.colIndex))}}class OIe{constructor(){this.count=0,this.items={}}get first(){if(this.count>0){let t;return this.forEach(e=>(t=e,!0)),t}}get last(){if(this.count>0){const t=Object.keys(this.items);return this.items[t[t.length-1]]}}removeItem(t){this.items[t]&&(delete this.items[t],this.count--)}setItem(t,e){this.items[t]||this.count++,this.items[t]=e}getItem(t){return this.items[t]}toArray(){const t=[];return this.forEach(e=>{t.push(e)}),t}forEach(t){for(let e in this.items)if(this.items.hasOwnProperty(e)&&t(this.items[e]))return this.items[e]}find(t){return this.forEach(t)}}class yHt{constructor(){this.rows=new OIe}get firstRow(){return this.rows.first}get lastRow(){return this.rows.last}registerCell(t){const e=this.rows.getItem(t.logicalRowIndex);if(!e)return;const i=t.logicalColIndex,s={uid:t.uid,colIndex:i,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(i,s),t.groupItem&&(e.groupItem=t.groupItem),s}unregisterCell(t,e,i){const s=this.rows.getItem(e);if(s){const o=s.cells.getItem(t);o&&o.uid===i.uid&&s.cells.removeItem(t)}}registerRow(t){const e={uid:t.uid,index:t.logicalRowIndex,dataItem:t.dataItem,dataRowIndex:t.dataRowIndex,cells:new OIe};this.rows.setItem(t.logicalRowIndex,e)}updateRow(t){const e=this.rows.getItem(t.logicalRowIndex);e&&Object.assign(e,{dataItem:t.dataItem,dataRowIndex:t.dataRowIndex})}unregisterRow(t,e){const i=this.rows.getItem(t);i&&i.uid===e.uid&&this.rows.removeItem(t)}cellRange(t){return t?{start:t.colIndex,end:t.colIndex+(t.colSpan||1)-1}:{}}rowRange(t){return t?{start:t.rowIndex,end:t.rowIndex+(t.rowSpan||1)-1}:{}}nextRow(t,e){const i=this.rows.toArray(),s=this.rows.getItem(t),o=i.indexOf(s);return i[o+e]}findRow(t){return this.rows.getItem(t)}findCell(t,e){if(!e)return;const i=e.index;let s=e.cells.getItem(t),o=i;for(;!s&&e;)e=this.rows.getItem(o),s=this.rowCell(t,e),o--;return s&&i<=e.index+(s.rowSpan||1)-1?s:void 0}rowCell(t,e){if(!e||!e.cells.count)return;const i=e.cells.first;let s,o=t;for(;!s&&o>=i.colIndex;)s=e.cells.getItem(o),o--;return s&&t<=s.colIndex+(s.colSpan||1)-1?s:void 0}}class aw{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class _Ht extends aw{constructor(t){super(),this.action="cellClose",Object.assign(this,t)}}const lw=n=>-1===n||void 0===n;let _a=(()=>{let n=class{constructor(e){this.ngZone=e,this.changes=new S,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new Z,this.changed=this.changedSource.asObservable().pipe(ls(()=>this.ngZone.onStable.asObservable().pipe(jn(1))))}editRow(e,i){this.editedIndices.push({index:e,group:i}),this.onChanged()}addRow(e){this.newItemGroup={group:e},this.onChanged()}editCell(e,i,s){lw(e)||!1===i.editable||!i.editTemplate&&!i.field||(this.preventCellClose(),this.closeCell()||(this.editRow(e,s),this.column=i,this.onChanged()))}isEditing(){return this.editedIndices.length>0}isEditingCell(){return this.isEditing()&&void 0!==this.column}get hasNewItem(){return Rt(this.newItemGroup)}get newDataItem(){return this.hasNewItem?this.newItemGroup.group.value:{}}close(e){lw(e)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter((n=>t=>t.index!==n)(e)),delete this.column,this.onChanged())}closeCell(e){if(this.column&&!this.closingCell)return this.ngZone.run(()=>{const{index:i,group:s}=this.editedIndices[0],o=new _Ht({column:this.column,formGroup:s,originalEvent:e,rowIndex:i});return this.closingCell=!0,this.changes.emit(o),this.closingCell=!1,o.isDefaultPrevented()||this.cancelCell(),o.isDefaultPrevented()})}cancelCell(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}shouldCloseCell(){return this.column&&!this.keepEditCell}preventCellClose(){this.ngZone.runOutsideAngular(()=>{window.clearTimeout(this.keepCellTimeout),this.keepEditCell=!0,this.keepCellTimeout=window.setTimeout(()=>{this.keepEditCell=!1},0)})}context(e){return lw(e)?this.newItemGroup:this.findByIndex(e)}columnContext(e,i){return lw(e)?this.newItemGroup:this.column&&i!==this.column?void 0:this.findByIndex(e)}isEdited(e){return!(!lw(e)||!Rt(this.newItemGroup))||!this.column&&Rt(this.findByIndex(e))}hasEdited(e){return Rt(this.context(e))}isEditedColumn(e,i){return!(!this.column||this.column!==i)&&Rt(this.findByIndex(e))}beginEdit(e){this.changes.emit({action:"edit",rowIndex:e})}beginAdd(){this.changes.emit({action:"add"})}endEdit(e){const{group:i}=this.context(e);this.changes.emit({action:"cancel",rowIndex:e,formGroup:i,isNew:lw(e)})}save(e){const{group:i}=this.context(e);this.changes.emit({action:"save",rowIndex:e,formGroup:i,isNew:lw(e)})}remove(e){this.changes.emit({action:"remove",rowIndex:e})}findByIndex(e){return this.editedIndices.find((n=>t=>t.index===n)(e))}onChanged(){this.ngZone.runOutsideAngular(()=>{this.changedSource.next()})}};return n.\u0275fac=function(e){return new(e||n)(V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[ce])],n),n})();const mz=n=>Rt(n)?{group:n.data,groupIndex:n.index,parentGroup:mz(n.parentGroup)}:null;let gf=(()=>{let n=class{constructor(){this.changes=new Z,this.rowState=new Set}reset(){this.rowState.clear()}ngOnDestroy(){this.reset()}isExpanded(e){return this.userCallback?this.userCallback(e):!this.rowState.has(e.groupIndex)}isInExpandedGroup(e){let i=!0;for(;e&&i;)i=this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:mz(e.parentGroup)}),e=e.parentGroup;return i}toggleRow(e){const i=mz(e.parentGroup),s=!this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:i});this.changes.next({group:e.data,expand:s,groupIndex:e.index,parentGroup:i}),!this.userCallback&&(s?this.rowState.delete(e.index):this.rowState.add(e.index))}expandChildren(e){this.rowState.forEach(i=>((n,t)=>t!==n&&n.startsWith(t))(i,e)&&this.rowState.delete(i))}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),ec=(()=>{class n{constructor(){this.changes=new Z,this.pageChange=new Z}get currentPage(){return this.skip/this.pageSize}notifyChanges(e){this.total=e.total,this.pageSize=e.pageSize,this.skip=e.skip,this.changes.next(e)}changePage(e){this.pageChange.next({skip:e*this.pageSize,take:this.pageSize})}changePageSize(e){this.pageChange.next({skip:0,take:e})}nextPage(){const e=this.currentPage+1;e*this.pageSize=0&&this.changePage(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class xHt extends aw{constructor(t){super(),Object.assign(this,t)}}class wHt extends aw{constructor(t){super(),Object.assign(this,t)}}let t_=(()=>{let n=class{constructor(){this.changes=new Z,this.rowState=new Set}ngOnDestroy(){this.rowState.clear()}isExpanded(e,i){return this.userCallback?this.userCallback({index:e,dataItem:i}):this.rowState.has(e)}toggleRow(e,i){this.isExpanded(e,i)?this.collapseRow(e,i):this.expandRow(e,i)}expandRow(e,i){!this.emitEvent({dataItem:i,index:e,expand:!0})&&!this.userCallback&&this.rowState.add(e)}collapseRow(e,i){!this.emitEvent({dataItem:i,index:e,expand:!1})&&!this.userCallback&&this.rowState.delete(e)}emitEvent(e){const i=new(e.expand?wHt:xHt)(e);return this.changes.next(i),i.isDefaultPrevented()}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),cw=(()=>{let n=class{constructor(){this.requests=new Z}scrollTo(e){this.requests.next(e)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const SHt=(n,t)=>Dc(n,Ql("kendo-grid"))===t,THt=Ql("th"),kHt=Ql("td"),DHt=Ql(".k-grid-footer td"),RIe=n=>kHt(n)||THt(n)||DHt(n),qQ=(n,t)=>{const e=((n,t)=>{let e=Dc(n,RIe);for(;e&&!SHt(e,t);)e=Dc(e.parentElement,RIe);return e})(n,t),i=Dc(e,Ql("tr"));if(e&&i){let s=i.getAttribute("aria-rowindex");s=s?parseInt(s,10)-1:null;let o=e.getAttribute("aria-colindex");if(o=o?parseInt(o,10)-1:null,null!==s&&null!==o)return{colIndex:o,rowIndex:s,element:e}}},PIe=n=>(n=>n===_e.ArrowLeft||n===_e.ArrowRight||n===_e.ArrowUp||n===_e.ArrowDown)(n)||n===_e.PageUp||n===_e.PageDown||n===_e.Home||n===_e.End,IHt=Ql("input");class LIe{constructor(t,e){this.firstItemIndex=t,this.lastItemIndex=e}containsRow(t){return t<0||t>=this.firstItemIndex&&t<=this.lastItemIndex}intersects(t,e){return t<=this.firstItemIndex&&this.lastItemIndex<=e||this.firstItemIndex<=t&&t<=this.lastItemIndex||this.firstItemIndex<=e&&e<=this.lastItemIndex}}let Qs=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d,u,h){this.zone=e,this.domEvents=i,this.pagerContextService=s,this.scrollRequestService=o,this.groupsService=r,this.detailsService=a,this.focusRoot=l,this.editService=c,this.cd=d,this.localization=u,this.focusableParent=h,this.cellKeydown=new S,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new yHt,this.cursor=new mHt(this.model),this.changes=this.cursor.changes}set metadata(e){this.meta=e,this.cursor.metadata=e}get metadata(){return this.meta}get enabled(){return this.alive}get activeCell(){if(0!==this.mode)return this.cursor.cell}get activeRow(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}get activeDataRow(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}init(e){this.alive=!0,this.focusRoot.active=!0,this.metadata=e;const i=(...o)=>r=>this.zone.isStable?Ys([!0]).pipe(xe(()=>r)):this.zone.onStable.pipe(jn(1),xe(()=>r),...o),s=i();if(this.subs=new Je,this.subs.add(this.cursor.changes.subscribe(o=>this.onCursorChanges(o))),this.subs.add(this.domEvents.focus.pipe(ls(s)).subscribe(o=>this.navigateTo(o.target))),this.subs.add(this.domEvents.focusOut.pipe(dt(()=>0!==this.mode),ls(i(et(this.domEvents.focus)))).subscribe(o=>this.onFocusOut(o))),this.subs.add(this.domEvents.windowBlur.pipe(dt(()=>0!==this.mode)).subscribe(()=>this.onWindowBlur())),this.subs.add(this.editService.changes.pipe(dt(o=>"edit"!==o.action&&2===this.mode),dt(o=>"cellClose"===o.action&&!o.prevented),ls(s)).subscribe(()=>this.leaveCell())),this.subs.add(this.pagerContextService.pageChange.subscribe(()=>this.cursor.reset(0,0))),this.subs.add(this.domEvents.keydown.subscribe(o=>this.onKeydown(o))),this.subs.add(this.domEvents.keydown.pipe(dt(o=>o.keyCode===_e.Tab&&2===this.mode),ZB(this.domEvents.focusOut.pipe(et(t2(0).pipe(jn(1)))))).subscribe(()=>this.onTabout())),this.focusableParent){const o=new gHt(this);this.focusableParent.registerElement(o)}this.deactivateElements()}ngOnDestroy(){this.subs&&this.subs.unsubscribe(),this.alive=!1}registerCell(e){if(e.logicalRowIndex!==this.pendingRowIndex){const i=this.model.registerCell(e);this.virtualCell&&this.cursor.activateVirtualCell(i)&&(this.virtualCell=!1)}}registerCellOnCurrentRow(e){e.logicalRowIndex===this.pendingRowIndex&&this.model.registerCell(e)}unregisterCell(e,i,s){this.model.unregisterCell(e,i,s)}registerRow(e){this.model.registerRow(e),this.pendingRowIndex=e.logicalRowIndex}updateRow(e){this.model.updateRow(e)}unregisterRow(e,i){this.model.unregisterRow(e,i);const s=this.model.lastRow;if(s&&0===this.mode){const o=this.needsViewport()?this.viewport.lastItemIndex:s.index;this.activeRowIndex>o&&this.cursor.reset(0,0)}}isCellFocusable(e){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(e.logicalRowIndex,e.logicalColIndex)}isCellFocused(e){return 1===this.mode&&this.isCellFocusable(e)}navigateTo(e){if(!this.alive)return;const i=qQ(e,this.meta.gridElement.nativeElement);if(!i)return;const s=this.mode,o=((n,t,e=!1)=>{if(!Dc(t,o=>o===n))return!1;const s=Dc(t,o=>o===t);return s&&(e||s!==n)})(i.element,document.activeElement),r=2===this.mode&&this.activeRowIndex===i.rowIndex&&e!==i.element;if(o)this.mode=2,this.cursor.reset(i.rowIndex,i.colIndex),this.activateRow();else if(!r){this.mode=1,this.deactivateElements();const a=this.cursor.isActive(i.rowIndex,i.colIndex);1===s&&a||this.cursor.reset(i.rowIndex,i.colIndex)}}tryFocus(e){this.activateElements();const i=FIe(e);if(i){const s=qQ(i,this.meta.gridElement.nativeElement);s&&(this.cursor.reset(s.rowIndex,s.colIndex),this.deactivateElements(),this.enterCell()),i.focus()}else this.deactivateElements();return!!i}needsViewport(){return this.meta&&this.meta.isVirtual}setViewport(e,i){if(this.viewport=new LIe(e,i),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){const s=this.activeDataRow,r=s-i;e-s>0?this.cursor.reset(e+this.meta.headerRows):r>0&&this.cursor.reset(i-this.meta.headerRows)}}setColumnViewport(e,i){this.columnViewport=new LIe(e,i)}focusCell(e,i){return this.mode=1,this.cursor.reset(e,i),this.activeCell}focusCellByElement(e){const i=qQ(e,this.meta.gridElement.nativeElement);if(i)return this.focusCell(i.rowIndex,i.colIndex)}focusNextCell(e=!0){return this.focusAdjacentCell(!0,e)}focusPrevCell(e=!0){return this.focusAdjacentCell(!1,e)}toggle(e){this.active=e,this.cursor.announce()}hasFocus(){return 1===this.mode||2===this.mode}autoFocusCell(e,i){return!this.meta.virtualColumns||ie.focusGroup&&e.focusGroup.activate())}moveCursorFwd(){return this.localization.rtl?this.cursor.moveLeft():this.cursor.moveRight()}moveCursorBwd(){return this.localization.rtl?this.cursor.moveRight():this.cursor.moveLeft()}onCursorKeydown(e){let i=!1;const s=e.ctrlKey||e.metaKey,o=s?5:1;if(!this.onCellKeydown(e))return;const r=this.cursor.row;switch(e.keyCode){case _e.ArrowDown:i=this.cursor.moveDown(o);break;case _e.ArrowUp:i=this.cursor.moveUp(o);break;case _e.ArrowRight:i=this.moveCursorFwd();break;case _e.ArrowLeft:i=this.moveCursorBwd();break;case _e.PageDown:if(this.metadata.isVirtual&&this.viewport){let l=this.meta.headerRows+this.viewport.lastItemIndex+1;this.metadata.hasDetailTemplate&&l++,l=Math.min(this.meta.maxLogicalRowIndex,l),this.cursor.reset(l),i=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.nextPage()),i=!0);break;case _e.PageUp:if(this.metadata.isVirtual&&this.viewport){let d=Math.max(this.meta.headerRows,this.viewport.firstItemIndex-(this.viewport.lastItemIndex-this.viewport.firstItemIndex)-1);this.cursor.reset(d),i=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.prevPage()),i=!0);break;case _e.Home:this.cursor.reset(s?this.meta.isVirtual?this.meta.headerRows:this.model.firstRow.index:r.index,0,!1),i=!0;break;case _e.End:if(s)if(this.meta.isVirtual){let l=this.meta.maxLogicalRowIndex;this.meta.hasDetailTemplate&&l--,this.cursor.reset(l,this.cursor.lastCellIndex(),!1)}else this.cursor.reset(this.model.lastRow.index,this.cursor.lastCellIndex(this.model.lastRow),!1);else{const l=this.cursor.lastCellIndex(r),c=this.model.findCell(l,r);c?this.cursor.reset(c.rowIndex,c.colIndex):this.cursor.reset(r.index,l)}i=!0;break;case _e.Enter:case _e.F2:const a=r.groupItem;a?this.zone.run(()=>this.groupsService.toggleRow(a)):this.cursor.cell.detailExpandCell?this.zone.run(()=>this.detailsService.toggleRow(r.dataRowIndex,r.dataItem)):(this.enterCell(),this.cursor.cell.focusGroup.isNavigable()||(i=!0));break;default:!e.ctrlKey&&!e.altKey&&(n=>1===n.length&&n.match(/\S/))(e.key)&&this.enterCell()}i&&e.preventDefault()}onContentKeydown(e){if(!this.onCellKeydown(e))return;const i=!e.defaultPrevented&&e.keyCode===_e.Enter&&(n=>n&&IHt(n)&&"text"===n.type.toLowerCase())(e.srcElement);e.keyCode===_e.Escape||e.keyCode===_e.F2||i?(this.leaveCell(),this.cursor.reset(),e.stopPropagation()):PIe(e.keyCode)&&this.cursor.cell.focusGroup.isNavigable()&&(this.onCursorKeydown(e),e.defaultPrevented&&this.leaveCell())}onCellKeydown(e){if(this.editService.isEditingCell()){const i=e.keyCode===_e.Enter,s=e.keyCode===_e.Escape,o=PIe(e.keyCode);if(i)this.editService.closeCell(e);else if(s)this.editService.cancelCell(),this.cd.detectChanges();else if(o)return!1}return this.cellKeydown.emit(e),!0}onCursorChanges(e){this.activeRowIndex=e.rowIndex;const i=this.activeDataRow;if(this.meta&&this.meta.isVirtual&&e.rowIndex>=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(i)&&i>-1&&this.scrollRequestService.scrollTo({row:i}),this.meta.virtualColumns&&e.colIndex>=this.meta.columns.lockedLeafColumns.length){const s=this.activeCell,{start:o,end:r}=this.model.cellRange(s);s||(this.virtualCell=!0),(!s&&0!==this.mode||s&&!this.columnViewport.intersects(o,r))&&this.scrollRequestService.scrollTo({column:e.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}onFocusOut(e){this.mode=WQ(e.target)?0:1,this.deactivateElements(),this.cursor.announce()}onWindowBlur(){this.mode=0,this.deactivateElements(),this.cursor.announce()}onKeydown(e){1===this.mode?this.onCursorKeydown(e):2===this.mode&&this.onContentKeydown(e)}onTabout(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}};return n.\u0275fac=function(e){return new(e||n)(V(ce),V(Gu),V(ec),V(cw),V(gf),V(t_),V(pf),V(_a),V(Be),V(J),V(Mc,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([qn(10,gt()),T("design:paramtypes",[ce,Gu,ec,cw,gf,t_,pf,_a,Be,J,Mc])],n),n})(),mf=(()=>{let n=class{constructor(e,i,s){this.domEvents=e,this.localDataChangesService=i,this.navigationService=s,this.changes=new S,this.lastSelectionStartIndex=0,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.addSubscriptions()}get enableMarquee(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;const i=this.settings.selectable,s="object"==typeof i&&Rt(i)&&"multiple"===i.mode&&!1!==i.enabled&&!i.checkboxOnly&&i.drag;return this.active&&s}init(e){if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled){const i=this.getIterator();this._selectAllState=!0;let s=i.next();for(;!s.done;){if(s.value&&"data"===s.value.type){const o={dataItem:s.value.data,index:s.value.index};e.rowSelected(o)?this.currentSelection[s.value.index]=o:this._selectAllState=void 0}s=i.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}isSelected(e){if(this.settings&&this.active)return this.options.enabled&&Rt(this.currentSelection[e])}handleClick(e,i){if(this.dragging)return void(this.dragging=!1);let s;const o=i.ctrlKey||i.metaKey;"single"===this.options.mode&&o&&this.isSelected(e.index)?s=this.toggle(e):"multiple"===this.options.mode&&(o&&!i.shiftKey?s=this.toggle(e):i.shiftKey&&(s=this.addAllTo(e,o))),Rt(s)||(s=this.select(e),this.currentSelection[e.index]={dataItem:e.data,index:e.index}),(s.selectedRows.length||s.deselectedRows.length)&&(s.ctrlKey=o,s.shiftKey=i.shiftKey,this.changes.emit(s))}toggle(e){let i=[],s=[];this.lastSelectionStartIndex=e.index;const o={dataItem:e.data,index:e.index};return this.isSelected(e.index)?s.push(o):i.push(o),{deselectedRows:s,selectedRows:i}}toggleByIndex(e){const i=this.getIterator();this.selectAllChecked&&this.isSelected(e)&&(this.selectAllChecked=!1);let s=i.next();for(;!s.done;){if(s.value&&"data"===s.value.type&&s.value.index===e){const o={data:s.value.data,index:s.value.index};return this.isSelected(e)||"multiple"===this.options.mode?this.toggle(o):this.select(o)}s=i.next()}}select(e){let i=[],s=[];return this.lastSelectionStartIndex=e.index,this.isSelected(e.index)||s.push({dataItem:e.data,index:e.index}),this.currentSelection.forEach(o=>{o.index!==e.index&&i.push(o)}),{deselectedRows:i,selectedRows:s}}deselect(e){const i=this.getIterator();let s=i.next();for(;!s.done;){if(s.value&&"data"===s.value.type&&s.value.data===e){const o={dataItem:s.value.data,index:s.value.index};this.isSelected(o.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[o],selectedRows:[]})}s=i.next()}}addAllTo(e,i){let s=[],o=[];const r=Math.min(this.lastSelectionStartIndex,e.index),a=Math.max(this.lastSelectionStartIndex,e.index),l=this.getIterator();let c=l.next();for(;!c.done;){if(c.value&&"data"===c.value.type){const d=c.value.index,u={dataItem:c.value.data,index:d};(da)&&this.isSelected(d)&&!i&&o.push(u),d>=r&&d<=a&&!this.isSelected(d)&&s.push(u)}c=l.next()}return{deselectedRows:o,selectedRows:s}}updateAll(e){this.selectAllChecked=e;let i=[],s=[];const o=this.getIterator();let r=o.next();for(;!r.done;){if(r.value&&"data"===r.value.type){const l=r.value.index,c={dataItem:r.value.data,index:l};this.isSelected(l)&&!e&&s.push(c),!this.isSelected(l)&&e&&i.push(c)}r=o.next()}(i.length||s.length)&&this.changes.emit({ctrlKey:!0,deselectedRows:s,selectedRows:i,shiftKey:!0})}selectRange(e,i){let s=[],o=[];const r=Math.min(e,i),a=Math.max(e,i),l=this.getIterator();let c=l.next();for(;!c.done;){if(c.value&&"data"===c.value.type){const d=c.value.index,u={dataItem:c.value.data,index:d};(da)&&this.isSelected(d)&&o.push(u),d>=r&&d<=a&&!this.isSelected(d)&&s.push(u)}c=l.next()}return{deselectedRows:o,selectedRows:s}}get selectAllState(){return this._selectAllState}get selected(){return this.currentSelection.map(e=>e.index).filter(e=>"number"==typeof e)}get options(){const e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return Rt(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}ngOnDestroy(){this.removeSubscriptions()}targetArgs(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(e=>{this.options.enabled&&!this.options.checkboxOnly&&"contextmenu"!==e.type&&this.active&&this.handleClick({index:e.rowIndex,data:e.dataItem},e.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(e=>{this.mouseDownEventArgs=e,this.options.enabled&&(!this.options.mode||"multiple"===this.options.mode)&&!this.options.checkboxOnly&&e.originalEvent.shiftKey&&this.active&&(e.originalEvent.preventDefault(),this.navigationService.focusCellByElement(e.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(e=>{this.active&&Rt(e.action)&&"remove"===e.action&&this.deselect(e.item)}))}getIterator(){const e=this.settings.view.accessor();if(e)return e[cm]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}};return n.\u0275fac=function(e){return new(e||n)(V(Gu),V(cd),V(Qs))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[Gu,cd,Qs])],n),n})(),dw=(()=>{let n=class{constructor(e,i,s){this.domEvents=e,this.localDataChangesService=i,this.navigationService=s,this.changes=new S,this.mouseUpEvent=new S,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()}get enableMarquee(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;const i=this.settings.selectable,s="object"==typeof i&&Rt(i)&&"multiple"===i.mode&&i.cell&&!1!==i.enabled&&i.drag;return this.active&&s}init(e){if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled){const i=this.getIterator();let s=i.next();for(;!s.done;){if(s.value&&"data"===s.value.type){const o={dataItem:s.value.data,index:s.value.index};e.columns.forEach(r=>{const a=e.cellSelected(o,r,r.leafIndex);a.selected&&this.currentSelection.push(a.item)})}s=i.next()}}}isCellSelected(e,i){if(this.settings&&this.active){const s=this.settings.cellSelected({dataItem:e.data,index:e.index},i,i.leafIndex);return this.options.enabled&&s.selected}return!1}handleClick(e,i){if(this.dragging)return void(this.dragging=!1);let s;const o=i.ctrlKey||i.metaKey;if("single"===this.options.mode&&o&&this.isCellSelected(e,e.column))s=this.toggle(e);else if("multiple"===this.options.mode)if(o&&!i.shiftKey)s=this.toggle(e);else if(i.shiftKey){const r=Math.min(this.lastSelectionItemRowIndex,e.index),a=Math.min(this.lastSelectionItemColIndex,e.column.leafIndex),l=Math.max(this.lastSelectionItemRowIndex,e.index),c=Math.max(this.lastSelectionItemColIndex,e.column.leafIndex);s=this.selectRange(r,a,l,c)}Rt(s)||(s=this.select(e),this.currentSelection=[this.lastSelectionItem]),(s.selectedCells.length||s.deselectedCells.length)&&(s.ctrlKey=o,s.shiftKey=i.shiftKey,this.changes.emit(s))}toggle(e){let i=[],s=[];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)?s.push(this.lastSelectionItem):i.push(this.lastSelectionItem),{deselectedCells:s,selectedCells:i}}select(e){const i=[],s=[];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)||i.push(this.lastSelectionItem),this.currentSelection.forEach(o=>{(o.itemKey!==this.lastSelectionItem.itemKey||o.columnKey!==this.lastSelectionItem.columnKey)&&s.push(o)}),{deselectedCells:s,selectedCells:i}}deselect(e){const i=this.getIterator();let o,s=i.next();for(;!s.done;){if(s.value&&"data"===s.value.type&&s.value.data===e){o={dataItem:s.value.data,index:s.value.index};break}s=i.next()}if(o){const r=this.currentSelection.filter(a=>{const l=this.settings.cellSelected(o,null,null).item;return a.itemKey===l.itemKey});r.length&&this.changes.emit({ctrlKey:!1,deselectedCells:r,selectedCells:[]})}}selectRange(e,i,s,o){const r=[],a=[],l=Math.min(e,s),c=Math.min(i,o),d=Math.max(e,s),u=Math.max(i,o),h=this.getIterator();let f=h.next();for(;!f.done;){if(f.value&&"data"===f.value.type){const m=f.value.index,k={dataItem:f.value.data,index:m};this.settings.columns.forEach(D=>{const{item:E}=this.settings.cellSelected(k,D,D.leafIndex),O=this.isCellSelected(f.value,D),re=l<=m&&m<=d&&c<=D.leafIndex&&D.leafIndex<=u;!re&&O&&a.push(E),re&&!O&&r.push(E)})}f=h.next()}return{deselectedCells:a,selectedCells:r}}get options(){const e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return Rt(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}ngOnDestroy(){this.removeSubscriptions()}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(e=>{this.options.enabled&&!this.options.checkboxOnly&&"contextmenu"!==e.type&&this.active&&this.handleClick({index:e.rowIndex,data:e.dataItem,column:e.column},e.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(e=>{this.mouseDownEventArgs=e,this.options.enabled&&(!this.options.mode||"multiple"===this.options.mode)&&!this.options.checkboxOnly&&e.originalEvent.shiftKey&&this.active&&(e.originalEvent.preventDefault(),this.navigationService.focusCellByElement(e.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(e=>{this.active&&Rt(e.action)&&"remove"===e.action&&this.deselect(e.item)}))}getIterator(){const e=this.settings.view.accessor();if(e)return e[cm]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}};return n.\u0275fac=function(e){return new(e||n)(V(Gu),V(cd),V(Qs))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[Gu,cd,Qs])],n),n})();const NIe={topLeft:{x:2,y:2},topRight:{x:-2,y:2},bottomLeft:{x:2,y:-2},bottomRight:{x:-2,y:-2}};let BIe=(()=>{let n=class{constructor(e,i,s,o){this.draggable=e,this.selection=i,this.cellSelection=s,this.domEvents=o,this.selectionStarted=!1}get webkitUserSelection(){return this.cellSelection.enableMarquee||this.selection.enableMarquee?"none":null}get userSelection(){return this.cellSelection.enableMarquee||this.selection.enableMarquee}ngOnInit(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.clean()}start(e){e.originalEvent.target.classList.contains("k-checkbox")?this.pressArgs=null:(this.pressArgs=e,this.pressTarget=null)}moveMarquee(e){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);const i=this.pressArgs;if(!i)return;if(!this.selectionStarted){if(!(Math.sqrt(Math.pow(e.pageX-i.pageX,2)+Math.pow(e.pageY-i.pageY,2))>5))return;this.selectionStarted=!0,this.dragEndSubscription=ii(this.domEvents.cellMouseup.pipe(jn(1)),this.draggable.kendoRelease.pipe(my(1),jn(1))).subscribe(this.endSelection.bind(this))}this.initMarquee();const s=this.marqueeElement,o=this.getMarqueeQuadrant(e.pageX,e.pageY,i.pageX,i.pageY);let r=Math.min(e.pageX,i.pageX),a=Math.min(e.pageY,i.pageY);const l=Math.abs(e.pageX-i.pageX),c=Math.abs(e.pageY-i.pageY);o&&(r+=NIe[o].x,a+=NIe[o].y),s.style.left=`${r}px`,s.style.top=`${a}px`,s.style.width=`${l}px`,s.style.height=`${c}px`}endSelection(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()}clean(){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}initMarquee(){this.marqueeElement||(this.marqueeElement=(()=>{const n=document.createElement("div");n.className="k-marquee";const t=document.createElement("div");return t.className="k-marquee-color",n.appendChild(t),n})(),document.body.appendChild(this.marqueeElement))}getMarqueeQuadrant(e,i,s,o){const r=es,l=io;return r&&l?"topLeft":r&&c?"bottomLeft":a&&l?"topRight":a&&c?"bottomRight":null}};return n.\u0275fac=function(e){return new(e||n)(g(Jc),g(mf),g(dw),g(Gu))},n.\u0275dir=R({type:n,selectors:[["","kendoGridSelectionMarquee",""]],hostVars:4,hostBindings:function(e,i){2&e&&(yt("-webkit-user-select",i.webkitUserSelection),he("user-select-none",i.userSelection))}}),M([G("style.-webkit-user-select"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"webkitUserSelection",null),M([G("class.user-select-none"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"userSelection",null),n=M([T("design:paramtypes",[Jc,mf,dw,Gu])],n),n})();class XQ extends S{constructor(t,e=!1){super(e),this.ngZone=t}subscribe(t,e,i){let s,o=a=>null,r=()=>null;return t&&"object"==typeof t?(s=a=>{this.ngZone.run(()=>t.next(a))},t.error&&(o=a=>{this.ngZone.run(()=>t.error(a))}),t.complete&&(r=()=>{this.ngZone.run(()=>t.complete())})):(s=a=>{this.ngZone.run(()=>t(a))},e&&(o=a=>{this.ngZone.run(()=>e(a))}),i&&(r=()=>{this.ngZone.run(()=>i())})),super.subscribe(s,o,r)}}const PHt={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1627453156,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"};let ju=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridCellTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),zF=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),HF=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),uw=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridEditTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),GF=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridGroupFooterTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),jF=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridHeaderTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),$F=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridFooterTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),cM=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridColumnMenuTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})();const YQ=n=>n.isSpanColumn,VIe=n=>n.isCheckboxColumn;let bo=(()=>{class n{constructor(e){if(this.parent=e,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 wt,this.columnMenuTemplates=new wt,e&&!(n=>n.isColumnGroup||YQ(n))(e))throw new Error("Columns can be nested only inside ColumnGroupComponent")}set width(e){this._width=parseInt(e,10)}get width(){return this._width}get level(){return this.parent&&YQ(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}get isLocked(){return this.parent?this.parent.isLocked:this.locked}get colspan(){return 1}rowspan(e){return this.level{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridFilterCellTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),UF=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridFilterMenuTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})();var KQ;function WF(n){return Rt(n.field)}let oi=KQ=class extends bo{constructor(t){super(t),this.sortable=!0,this.groupable=!0,this.editor="text",this.filter="text",this.filterable=!0,this.editable=!0}get templateRef(){return this.template?this.template.templateRef:void 0}get groupHeaderTemplateRef(){return this.groupHeaderTemplate?this.groupHeaderTemplate.templateRef:void 0}get groupHeaderColumnTemplateRef(){return this.groupHeaderColumnTemplate?this.groupHeaderColumnTemplate.templateRef:void 0}get groupFooterTemplateRef(){return this.groupFooterTemplate?this.groupFooterTemplate.templateRef:void 0}get editTemplateRef(){return this.editTemplate?this.editTemplate.templateRef:void 0}get filterCellTemplateRef(){return this.filterCellTemplate?this.filterCellTemplate.templateRef:void 0}get filterMenuTemplateRef(){return this.filterMenuTemplate?this.filterMenuTemplate.templateRef:void 0}get displayTitle(){return void 0===this.title?this.field:this.title}};var ZQ;function yz(n){return n.isSpanColumn}oi.\u0275fac=function(t){return new(t||oi)(g(bo,13))},oi.\u0275cmp=K({type:oi,selectors:[["kendo-grid-column"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,ju,5),Ce(i,zF,5),Ce(i,HF,5),Ce(i,GF,5),Ce(i,uw,5),Ce(i,dM,5),Ce(i,UF,5)),2&t){let s;U(s=W())&&(e.template=s.first),U(s=W())&&(e.groupHeaderTemplate=s.first),U(s=W())&&(e.groupHeaderColumnTemplate=s.first),U(s=W())&&(e.groupFooterTemplate=s.first),U(s=W())&&(e.editTemplate=s.first),U(s=W())&&(e.filterCellTemplate=s.first),U(s=W())&&(e.filterMenuTemplate=s.first)}},inputs:{sortable:"sortable",groupable:"groupable",editor:"editor",filter:"filter",filterable:"filterable",editable:"editable",field:"field",format:"format"},features:[we([{provide:bo,useExisting:He(()=>KQ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),M([p(),T("design:type",String)],oi.prototype,"field",void 0),M([p(),T("design:type",Object)],oi.prototype,"format",void 0),M([p(),T("design:type",Object)],oi.prototype,"sortable",void 0),M([p(),T("design:type",Boolean)],oi.prototype,"groupable",void 0),M([p(),T("design:type",String)],oi.prototype,"editor",void 0),M([p(),T("design:type",String)],oi.prototype,"filter",void 0),M([p(),T("design:type",Boolean)],oi.prototype,"filterable",void 0),M([p(),T("design:type",Boolean)],oi.prototype,"editable",void 0),M([ct(ju,{static:!1}),T("design:type",ju)],oi.prototype,"template",void 0),M([ct(zF,{static:!1}),T("design:type",zF)],oi.prototype,"groupHeaderTemplate",void 0),M([ct(HF,{static:!1}),T("design:type",HF)],oi.prototype,"groupHeaderColumnTemplate",void 0),M([ct(GF,{static:!1}),T("design:type",GF)],oi.prototype,"groupFooterTemplate",void 0),M([ct(uw,{static:!1}),T("design:type",uw)],oi.prototype,"editTemplate",void 0),M([ct(dM,{static:!1}),T("design:type",dM)],oi.prototype,"filterCellTemplate",void 0),M([ct(UF,{static:!1}),T("design:type",UF)],oi.prototype,"filterMenuTemplate",void 0),oi=KQ=M([qn(0,za()),qn(0,Md()),qn(0,gt()),T("design:paramtypes",[bo])],oi);let $u=ZQ=class extends bo{constructor(t){if(super(t),this.isSpanColumn=!0,this.template=new wt,this.editTemplate=new wt,this.childColumns=new wt,this.includeInChooser=!1,this._editable=!0,this._locked=!1,t&&t.isSpanColumn)throw new Error("SpanColumn cannot be nested inside another SpanColumn")}set editable(t){this._editable=t}get editable(){return Rt(this.editTemplateRef)&&this._editable}set width(t){}get width(){return this.childColumns.reduce((t,e)=>t+e.width,0)}get leafIndex(){return this.childColumns.first.leafIndex}get templateRef(){const t=this.template.first;return t?t.templateRef:void 0}get editTemplateRef(){const t=this.editTemplate.first;return t?t.templateRef:void 0}get colspan(){return this.childColumns.filter(t=>t.isVisible).length}set locked(t){this._locked=t}get locked(){return this._locked||this.childColumns.some(t=>t.locked)}get childrenArray(){return this.childColumns.toArray()}get hasChildren(){return this.childColumns.length>0}};$u.\u0275fac=function(t){return new(t||$u)(g(bo,13))},$u.\u0275cmp=K({type:$u,selectors:[["kendo-grid-span-column"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,ju,4),Ce(i,uw,4),Ce(i,oi,4)),2&t){let s;U(s=W())&&(e.template=s),U(s=W())&&(e.editTemplate=s),U(s=W())&&(e.childColumns=s)}},inputs:{editable:"editable",locked:"locked"},features:[we([{provide:bo,useExisting:He(()=>ZQ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),M([fi(ju,{descendants:!1}),T("design:type",wt)],$u.prototype,"template",void 0),M([fi(uw,{descendants:!1}),T("design:type",wt)],$u.prototype,"editTemplate",void 0),M([fi(oi),T("design:type",wt)],$u.prototype,"childColumns",void 0),M([p(),T("design:type",Boolean),T("design:paramtypes",[Boolean])],$u.prototype,"editable",null),M([p(),T("design:type",Boolean),T("design:paramtypes",[Boolean])],$u.prototype,"locked",null),$u=ZQ=M([qn(0,za()),qn(0,Md()),qn(0,gt()),T("design:paramtypes",[bo])],$u);const um=n=>n.reduce((t,e)=>t.concat(yz(e)?e.childrenArray:[e]),[]),zIe=n=>n.reduce((t,e)=>t.concat(yz(e)?[e].concat(e.childrenArray):[e]),[]),n_=n=>um(n).filter(t=>t.isVisible),HIe=n=>t=>(t||[]).reduce((e,i)=>e+(i[n]||0),0),NHt=HIe("width"),_z=HIe("colspan"),BHt=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),qF=n=>n.reduce((t,e)=>(e.isColumnGroup?t=t.concat(qF((n=>n.children.filter(t=>t!==n))(e))):e.isSpanColumn?t=t.concat(e.childrenArray):t.push(e),t),[]).filter(t=>t.isVisible),QQ=(n,...t)=>qF(t).some(n),hw=n=>zh(n,[{field:"orderIndex",dir:"asc"}]),GIe=n=>Hu(n.parent)&&yz(n.parent);var JQ;function uM(n){return n.isColumnGroup}let hm=JQ=class extends bo{constructor(t){if(super(t),this.parent=t,this.includeInChooser=!1,this.isColumnGroup=!0,this.minResizableWidth=10,t&&t.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent")}rowspan(){return 1}get colspan(){return this.children&&1!==this.children.length?_z(this.children.filter(t=>t!==this&&t.isVisible)):1}get leafIndex(){return this.children?(this.firstChild||{}).leafIndex:-1}get childrenArray(){return this.children.filter(t=>t!==this)}get hasChildren(){return Boolean(this.firstChild)}get firstChild(){return this.children.find(t=>t!==this)}};hm.\u0275fac=function(t){return new(t||hm)(g(bo,13))},hm.\u0275cmp=K({type:hm,selectors:[["kendo-grid-column-group"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,bo,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[we([{provide:bo,useExisting:He(()=>JQ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),M([fi(bo),T("design:type",wt)],hm.prototype,"children",void 0),hm=JQ=M([qn(0,za()),qn(0,Md()),qn(0,gt()),T("design:paramtypes",[bo])],hm);let pm=(()=>{let n=class{constructor(e){this.templateRef=e,this._condition=()=>!0}set showIf(e){if("function"!=typeof e)throw new Error(`showIf must be a function, but received ${JSON.stringify(e)}.`);this._condition=e}get showIf(){return this._condition}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridDetailTemplate",""]],inputs:{showIf:["kendoGridDetailTemplateShowIf","showIf"]}}),M([p("kendoGridDetailTemplateShowIf"),T("design:type",Function),T("design:paramtypes",[Function])],n.prototype,"showIf",null),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})();const jIe=()=>Ft()&&document.createElement;let $Ie,vz=null,eJ=null,XF=(()=>{let n=class{constructor(e,i){this.zone=e,this.changeDetector=i,this.changes=new S,"undefined"!=typeof window&&this.zone.runOutsideAngular(()=>{this.subscriptions=Hi(window,"resize").pipe(Bp(100)).subscribe(()=>{$Ie!==window.devicePixelRatio&&e.run(()=>{vz=null,this.changes.emit(),this.changeDetector.markForCheck()})})})}ngOnDestroy(){this.subscriptions&&(this.subscriptions.unsubscribe(),this.subscriptions=null)}get scrollbarWidth(){return function(){if(null===vz&&jIe()){$Ie=window.devicePixelRatio||1;const n=document.createElement("div");n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML=" ",document.body.appendChild(n),vz=n.offsetWidth-n.scrollWidth,document.body.removeChild(n)}return vz}()}get rtlScrollLeft(){return function(){if(null===eJ&&jIe()){const n=document.createElement("div");n.style.cssText="overflow:scroll;zoom:1;clear:both;display:block;width:100px;visibility:hidden;position:absolute;left:-10000px;direction:rtl;",n.innerHTML="
",document.body.appendChild(n);const t=n.scrollLeft;n.scrollLeft=-1,eJ=n.scrollLeft<0?n.scrollLeft:t,document.body.removeChild(n)}return eJ}()}};return n.\u0275fac=function(e){return new(e||n)(V(ce),V(Be))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[ce,Be])],n),n})();const tJ=n=>void 0!==n.items&&void 0!==n.field,UIe=n=>n.reduce((t,e)=>tJ(e)?t.concat(UIe(e.items)):t.concat([e]),[]),WIe=(n,{footers:t,level:e,dataIndex:i,parentGroupIndex:s,groupIndex:o,parentGroup:r})=>{const a=n[0];return Rt(a)&&tJ(a)?((n=>void 0!==n.offset&&void 0!==n.skipHeader)(a)&&(o=Rt(a.offset)?a.offset:o),new YHt(n,t,e,i,s,o,r)):new qHt(n,i,s,r)};class WHt{constructor(t,e=0){this.arr=t,this.idx=e,this.arr=t||[]}[cm](){return this}next(){return this.idxs)){this.dataIndex=e,this.resultMap=i,this._innerIterator=t[cm]?t[cm]():new WHt(t)}[cm](){return this}next(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}}class qHt extends qIe{constructor(t,e,i,s){super(t,e,(o,r)=>({done:o.done,value:{data:o.value,groupIndex:i,index:r,type:"data",group:s}}))}get index(){return this.dataIndex}}class YHt{constructor(t,e=!1,i=0,s=0,o="",r=0,a){this.arr=t,this.outputFooters=e,this.level=i,this.dataIndex=s,this.parentIndex=o,this.groupIndex=r,this.parentGroup=a,this.currentGroupIndex="",this.arr=t||[],this._iterator=new qIe(this.arr,this.dataIndex)}[cm](){return this}nextGroupItem(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=((n,t)=>`${n&&n+"_"}${this.groupIndex++}`)(this.parentIndex),{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})}footerItem(){if(this.current){const 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}}innerIterator(t){return this._innerIterator||(this._innerIterator=WIe(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}nextDataItem(t){const i=this.innerIterator(t).next();return Rt(i.value)&&!i.done&&"data"===i.value.type&&(this.dataIndex=i.value.index+1),i.done?void 0:i}next(){return Rt(this.current)?this.nextDataItem(this.current)||(this.outputFooters?this.footerItem():this.nextGroupItem()):this.nextGroupItem()}get index(){return this.dataIndex+1}}class KHt{constructor(t,e=0,i=!1){this.source=t,this.skip=e,this.groupFooters=i,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}isGridDataResult(t){return void 0!==t.total&&void 0!==t.data}get total(){return this.isObject?this.source.total:this.source.length}get data(){return this.isObject?this.source.data:this.source}map(t){return this.data.map(t)}filter(t){return this.data.filter(t)}reduce(t,e){return this.data.reduce(t,e)}forEach(t){this.data.forEach(t)}some(t){return this.data.some(t)}[cm](){return WIe(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}toString(){return this.data.toString()}}class ZHt{constructor(t){this.accessor=t}get total(){return this.accessor().total}get length(){return this.accessor().data.length}get first(){return this.accessor().data[0]}get last(){return this.accessor().data[this.length-1]}at(t){return((n,t)=>{const e=n[0];return Rt(e)&&tJ(e)?UIe(n)[t]:n[t]})(this.accessor().data,t)}map(t){return this.accessor().map(t)}filter(t){return this.accessor().filter(t)}reduce(t,e){return this.accessor().reduce(t,e)}forEach(t){this.accessor().forEach(t)}some(t){return this.accessor().some(t)}[cm](){return this.accessor()[cm]()}toString(){return this.accessor().toString()}}let XIe=(()=>{class n{constructor(e,i){this.grid=e,this.cd=i,this.selectedKeys=[],this.selectedKeysChange=new S,this.init()}init(){Rt(this.grid.rowSelected)||(this.grid.rowSelected=e=>this.selectedKeys.indexOf(this.getItemKey(e))>=0),Rt(this.grid.cellSelected)||(this.grid.cellSelected=(e,i,s)=>{const o=this.getSelectionItem(e,i,s);return{selected:this.selectedKeys.some(r=>r.columnKey===o.columnKey&&r.itemKey===o.itemKey),item:o}}),this.selectionChangeSubscription=this.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}destroy(){this.selectionChangeSubscription.unsubscribe()}reset(){this.selectedKeys=[]}getItemKey(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}getSelectionItem(e,i,s){const o={};return o.itemKey=this.getItemKey(e),Rt(i)||Rt(s)?(this.columnKey&&("string"==typeof this.columnKey&&(o.columnKey=e.dataItem[this.columnKey]),"function"==typeof this.columnKey&&(o.columnKey=this.columnKey(i,s))),{itemKey:o.itemKey,columnKey:o.columnKey?o.columnKey:s}):o}onSelectionChange(e){e.selectedRows?(e.deselectedRows.forEach(i=>{const s=this.getItemKey(i),o=this.selectedKeys.indexOf(s);o>=0&&this.selectedKeys.splice(o,1)}),"single"===this.grid.selectableSettings.mode&&this.selectedKeys.length>0&&this.reset(),e.selectedRows.forEach(i=>{const s=this.getItemKey(i);this.selectedKeys.indexOf(s)<0&&this.selectedKeys.push(s)})):(e.deselectedCells.forEach(i=>{const s=this.getCellSelectionItemIndex(i);s>=0&&this.selectedKeys.splice(s,1)}),"single"===this.grid.selectableSettings.mode&&this.selectedKeys.length>0&&this.reset(),e.selectedCells.forEach(i=>{this.getCellSelectionItemIndex(i)<0&&this.selectedKeys.push(i)})),this.cd.markForCheck(),this.selectedKeysChange.emit(this.selectedKeys)}getCellSelectionItemIndex(e){return this.selectedKeys.findIndex(i=>i.itemKey===e.itemKey&&i.columnKey===e.columnKey)}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,inputs:{selectedKeys:"selectedKeys",selectionKey:["kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"}}),M([p(),T("design:type",Array)],n.prototype,"selectedKeys",void 0),M([p("kendoGridSelectBy"),T("design:type",Object)],n.prototype,"selectionKey",void 0),M([p(),T("design:type",Object)],n.prototype,"columnKey",void 0),M([Q(),T("design:type",S)],n.prototype,"selectedKeysChange",void 0),n})();class bz{constructor(t){this.columns=t,this.allColumns=new wt,this.leafColumns=new wt,this.lockedColumns=new wt,this.nonLockedColumns=new wt,this.lockedLeafColumns=new wt,this.nonLockedLeafColumns=new wt,this.totalLevels=0,this.changes=new S,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}refresh(){const t=this.totalLevels,e=new Array,i=new Array,s=new Array,o=new Array,r=new Array,a=new Array,l=new Array,c=new Array,d=new Array;let u=!1,h=!1,f=!1,m=0,C=0;this.totalLevels=0,this.columns().forEach(D=>{const E=!0===D.isLocked?i:s,O=!0===D.isLocked?o:r,z=!0===D.isLocked?c:d;uM(D)||(E.push(D),e.push(D),l.push.apply(l,n_([D])),z.push.apply(z,n_([D])),u=u||QQ(q=>Boolean(q.groupHeaderColumnTemplateRef),D),h=h||QQ(q=>Boolean(q.groupFooterTemplateRef),D),f=f||QQ(q=>Boolean(q.footerTemplateRef),D),D.isLocked||(m+=D.width||0),D.isSpanColumn?D.childColumns.forEach(q=>{q.leafIndex=C++}):D.leafIndex=C++),O.push(D),a.push(D),this.totalLevels=D.level>this.totalLevels?D.level:this.totalLevels}),this.hasGroupHeaderColumn=u,this.hasGroupFooter=h,this.hasFooter=f,this.leafColumnsToRender=l,this.lockedColumnsToRender=c,this.nonLockedColumnsToRender=d,this.unlockedWidth=m;const k=((...n)=>{let t=!1;for(let e=0;e{n.forEach(e=>{t(e),e.isColumnGroup&&e.hasChildren&&Cz(e.childrenArray,t)})},YIe=(n,t)=>{hw(n).forEach(e=>{t(e),e.isColumnGroup&&e.hasChildren&&YIe(e.childrenArray,t)})},nJ=(n,t)=>{const e=[];return hw(n).forEach(i=>{if(t(i))if(i.isColumnGroup){const s=nJ(i.childrenArray,t);s.length&&e.push(i,...s)}else(!i.isSpanColumn||nJ(i.childrenArray,t).length)&&e.push(i)}),e};class YF{constructor(t){this.columns=t}static empty(){return new YF(new wt)}forEach(t){Cz(this.columns,t)}filter(t){const e=[];return Cz(this.columns,i=>{t(i)&&e.push(i)}),e}filterHierarchy(t){return nJ(this.columns.toArray(),t)}filterSort(t){const e=[];return YIe(this.columns.toArray(),i=>{t(i)&&e.push(i)}),e}toArray(){const t=[];return Cz(this.columns,e=>{t.push(e)}),t}rootColumns(){return this.columns.toArray()}totalColumnLevels(){let t=0;return this.forEach(e=>{t=Math.max(e.level,t)}),t}}let pw=(()=>{class n{constructor(){this._columnList=YF.empty}get columns(){return um(this._columnList().toArray()).filter(WF)}registerColumnsContainer(e){this._columnList=e}formatForGroup(e){const i=this.columnForGroup(e);return i?i.format:""}isGroupable(e){const[i]=this.columns.filter(s=>s.field===e);return!i||i.groupable}groupTitle(e){const i=this.columnForGroup(e);return i?i.title||i.field:this.groupField(e)}groupHeaderTemplate(e){const i=this.columnForGroup(e);return i?i.groupHeaderTemplateRef||i.groupHeaderColumnTemplateRef:void 0}groupField(e){return e.data?e.data.field:e.field}columnForGroup(e){const i=this.groupField(e),[s]=this.columns.filter(o=>o.field===i);return s}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),fw=(()=>{let n=class{constructor(e){this.ngZone=e,this.changes=new S}notify(){(!this.subscription||this.subscription.closed)&&(this.subscription=this.ngZone.onStable.asObservable().pipe(jn(1)).subscribe(()=>this.changes.emit()))}};return n.\u0275fac=function(e){return new(e||n)(V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[ce])],n),n})(),gw=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridNoRecordsTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})();const KIe=n=>t=>t.forEach(e=>e.style.height=n),ZIe=(n,t)=>{const e=document.activeElement,i=((n,t)=>{const e=[];for(let i=0,s=n.length;i{n.filter(([t,e])=>t.style.height||e.style.height).forEach(KIe(""))})(i);const s=(n=>n.map(([t,e])=>{const i=t.offsetHeight,s=e.offsetHeight;return io.style.display="none"),i.forEach((n=>(t,e)=>KIe(`${n[e]+1}px`)(t))(s)),[n,t].forEach(o=>o.style.display=""),document.activeElement!==e&&(n.contains(e)||t.contains(e))&&e.focus()};let Fl=(()=>{let n=class{constructor(){this.isColumnMenu=!1,this.isPopupOpen=!1}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),Js=(()=>{let n=class{constructor(e){this.changes=new Z,this.menuTabbingService=e}filter(e){this.changes.next(e)}};return n.\u0275fac=function(e){return new(e||n)(V(Fl,8))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([qn(0,gt()),T("design:paramtypes",[Fl])],n),n})(),KF=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoPagerTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),i_=(()=>{let n=class{constructor(){this.savePDF=new S,this.drawPDF=new S,this.exportClick=new S,this.dataChanged=new S}save(e){this.emitEvent(this.savePDF,e)}draw(e,i){this.emitEvent(this.drawPDF,{component:e,promise:i})}emitEvent(e,i){if(0===e.observers.length){if(En())throw new Error("Creating PDF requires including the PDFModule and adding the component.")}else e.emit(i)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();class iGt extends aw{}let ZF=(()=>{let n=class{constructor(){this.scroll=!1}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const oGt=n=>window.matchMedia(n).matches;let iJ=(()=>{let n=class{constructor(){this.matchMedia=oGt}matchesMedia(e){return!e||this.matchMedia((n=>({xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[n]||n))(e))}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),mw=(()=>{let n=class{constructor(){this.saveToExcel=new S,this.exportClick=new S}save(e){if(0===this.saveToExcel.observers.length){if(En())throw new Error("Saving excel requires including the ExcelModule and adding the component.")}else this.saveToExcel.emit(e)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),xz=(()=>{let n=class{constructor(e){this.templateRef=e,this._position="top"}set position(e){this._position=e}get position(){return this._position}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),M([p("position"),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"position",null),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),yw=(()=>{let n=class{constructor(e){this.ngZone=e,this.changes=new Z,this.elements=[],this.subscriptions=new Je,this.headerSubscription=new Je,this.bodySubscription=new Je,this.subscriptions.add(this.changes.subscribe(i=>this.scrollLeft(i)))}registerEmitter(e,i){this.unregister(i),this.elements.push({element:e,sourceType:i}),("body"===i||"header"===i)&&this.ngZone.runOutsideAngular(()=>{const s=Hi(e,"scroll").pipe(xe(({target:{scrollLeft:r}})=>({scrollLeft:r,sourceType:i}))),o=s.pipe(ry((r,a)=>r.scrollLeft===a.scrollLeft),dt(r=>!this.source||this.source===r.sourceType),lt(r=>this.source=r.sourceType)).subscribe(r=>this.changes.next(r));o.add(s.pipe(dt(r=>this.source&&this.source!==r.sourceType)).subscribe(()=>this.source=void 0)),"body"===i?this.bodySubscription.add(o):this.headerSubscription.add(o)})}destroy(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}scrollLeft({scrollLeft:e,sourceType:i}){this.ngZone.runOutsideAngular(()=>{this.elements.filter(s=>i!==s.sourceType).forEach(({element:s})=>s.scrollLeft=e)})}unregister(e){const i=this.elements.findIndex(s=>s.sourceType===e);i>-1&&("header"===e?(this.headerSubscription.unsubscribe(),this.headerSubscription=new Je):"body"===e&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new Je),this.elements.splice(i,1))}};return n.\u0275fac=function(e){return new(e||n)(V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[ce])],n),n})(),QF=(()=>{let n=class{constructor(){this.resizeSubscription=new Je(()=>{}),this.dispatcher=new Z,this.changes=this.dispatcher.asObservable().pipe(vX(100))}connect(e){this.resizeSubscription.add(e.subscribe(this.dispatcher))}destroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const sJ=n=>n.parent?sJ(n.parent):!!n.locked,QIe=(n,t)=>Object.assign({columns:qF([n]),locked:sJ(n)},t);let s_=(()=>{let n=class{constructor(){this.changes=new S,this.tables=[],this.batch=null}start(e){this.trackColumns(e);const i=(this.column.isColumnGroup?[e]:[]).concat(qF([e]));this.changes.emit({columns:i,locked:sJ(this.column),type:"start"})}resizeColumns(e){const i=QIe(this.column,{deltaPercent:e,type:"resizeColumn"});this.changes.emit(i)}resizeTable(e,i){const s=QIe(e,{delta:i,type:"resizeTable"});this.changes.emit(s)}resizedColumn(e){this.resizedColumns.push(e)}end(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}registerTable(e){return this.tables.push(e),()=>{this.tables.splice(this.tables.indexOf(e),1)}}measureColumns(e){null!==this.batch?this.batch.push(...e):this.autoFitBatch(e,()=>this.end())}autoFit(...e){const i=e.filter(s=>!s.isLocked);this.autoFitStart(i),this.autoFitBatch(this.batch,()=>{if(i.lengtho.isLocked);this.autoFitStart(s),this.autoFitBatch(this.batch,()=>this.end())}else this.end()})}trackColumns(e){this.resizedColumns=[],this.column=e}autoFitStart(e){if(this.batch=[],this.resizedColumns=[],0===e.length)return;const i=e[0].isLocked;this.changes.emit({type:"start",columns:e,locked:i}),this.changes.emit({type:"triggerAutoFit",columns:e,locked:i})}autoFitBatch(e,i){const s=e.length>0&&e[0].column.isLocked;(function(...n){const t=n[n.length-1];return"function"==typeof t&&n.pop(),P0(n,void 0).lift(new SCt(t))})(...this.tables.filter(r=>r.locked===s).map(r=>r.autoFit(e))).pipe(jn(1)).subscribe(r=>{this.changes.emit({columns:e.map(a=>a.column),type:"autoFitComplete",widths:r,locked:s}),i&&i()}),this.batch=null}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const wz=n=>!0===n||"string"==typeof n&&n.indexOf("row")>-1;class lGt extends aw{constructor(t){super(),this.originalEvent=t}}let o_=(()=>{let n=class{constructor(e,i,s,o,r){this.popupService=e,this.renderer=i,this.ngZone=s,this.localization=r,this.onClose=new Z,this.scrollSubscription=o.changes.subscribe(()=>this.destroy())}open(e,i,s,o="k-grid-filter-popup"){const r=Rt(s)&&this.popupRef===s;if(this.destroy(),!r){const a=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:a},popupAlign:{vertical:"top",horizontal:a},anchor:e,popupClass:o,content:i,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)}return this.popupRef}destroy(){this.popupRef&&(this.detachClose(),this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.destroy(),this.scrollSubscription.unsubscribe()}detachClose(){this.removeClick&&this.removeClick()}attachClose(e){this.detachClose(),this.ngZone.runOutsideAngular(()=>this.removeClick=this.renderer.listen("document","click",i=>{if(!((n,t)=>{for(;n;){if(t(n))return!0;n=n.parentNode}return!1})(i.target,s=>this.popupRef.popupElement===s||s===e)){const s=new lGt(i);this.onClose.next(s),s.isDefaultPrevented()||this.destroy()}}))}};return n.\u0275fac=function(e){return new(e||n)(V(Oi),V(Ie),V(ce),V(yw),V(J))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[Oi,Ie,ce,yw,J])],n),n})();const JIe=n=>{let t=!1;return()=>(t||(document.body.appendChild(n),t=!0),n)},eAe=n=>{const{clientTop:t,clientLeft:e}=(n=>n.ownerDocument.documentElement)(n),{pageYOffset:i,pageXOffset:s}=(n=>n.ownerDocument.defaultView)(n),{top:o,left:r}=n.getBoundingClientRect();return{top:o+i-t,left:r+s-e}},tAe=(n,t)=>0!=(4&t.compareDocumentPosition(n)),hGt=(n,t)=>n===t||0!=(16&t.compareDocumentPosition(n)),nAe=(n,t)=>{const e=eAe(n),{offsetWidth:i,offsetHeight:s}=n;return{left:e.left+(t?0:i),top:e.top,height:s}};let JF=(()=>{let n=class{constructor(){this.changes=new S,this.register=[],this.lastTarget=null}add(e){this.register.push(e)}remove(e){this.register=this.register.filter(i=>i!==e)}notifyDrag(e,i,s){const o=this.targetFor(i);this.lastTarget!==o&&(this.changes.next({draggable:e,mouseEvent:s,target:this.lastTarget,type:"leave"}),o&&this.changes.next({draggable:e,mouseEvent:s,target:o,type:"enter"}),this.lastTarget=o)}notifyDrop(e,i){this.changes.next({draggable:e,mouseEvent:i,target:this.lastTarget,type:"drop"}),this.lastTarget=null}targetFor(e){const i=hGt.bind(null,e);return this.register.find(({element:{nativeElement:s}})=>i(s))}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();const iAe=(n,t)=>{const e=n.querySelector(".k-icon");e.className=e.className.replace(/(plus|cancel)/,t?"plus":"cancel")},sAe=(n,t=null)=>{const e=n.querySelectorAll(".k-icon")[1],i=null==t?"":t?"k-i-lock":"k-i-unlock";e.className=e.className.replace(/(k-i-unlock|k-i-lock)/,"")+` ${i}`};let _w=(()=>{let n=class{constructor(e){this.santizer=e}create(e){this.dom=document.createElement("div"),(n=>{n.className="k-header k-drag-clue",n.style.position="absolute",n.style.zIndex="20000"})(this.dom);const i=this.santizer.sanitize(ys.HTML,e);this.dom.innerHTML=`\n \n \n \n ${i}\n `}attach(){return JIe(this.dom)}remove(){var e;this.dom&&this.dom.parentNode&&(e=this.dom,setTimeout(()=>document.body.removeChild(e)),this.dom=null)}show(){this.dom.style.display=""}hide(){this.dom.style.display="none"}enable(){iAe(this.dom,!0)}disable(){iAe(this.dom,!1)}removeLock(){sAe(this.dom)}toggleLock(e){sAe(this.dom,e)}move(e){this.dom.style.top=e.pageY+"px",this.dom.style.left=e.pageX+"px"}};return n.\u0275fac=function(e){return new(e||n)(V(ig))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[ig])],n),n})(),vw=(()=>{let n=class{create(){this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide()}attach(){return JIe(this.dom)}remove(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}hide(){this.dom.style.display="none"}position({left:e,top:i,height:s}){this.dom.style.display="block",this.dom.style.height=s+"px",this.dom.style.top=i+"px",this.dom.style.left=e-this.dom.offsetWidth/2+"px"}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),eO=(()=>{let n=class{constructor(){this.changes=new S}reorder(e){this.changes.emit(e)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();class fGt extends aw{constructor({column:t,newIndex:e,oldIndex:i}){super(),this.column=t,this.newIndex=e,this.oldIndex=i}}class gGt{constructor(t,e,i,s,o,r,a,l){this.dataRows=t,this.headerRows=e,this.isVirtual=i,this.hasPager=s,this.hasDetailTemplate=o,this.gridElement=r,this.virtualColumns=a,this.columns=l}get maxLogicalRowIndex(){return this.headerRows+(this.hasDetailTemplate?2*this.dataRows:this.dataRows)-1}}let mGt=0,r_=(()=>{let n=class{constructor(){this.prefix="k-grid"+mGt++}cellId(e,i){return`${this.prefix}-r${e}c${i}`}selectionCheckboxId(e){return`${this.prefix}-checkbox${e}`}selectAllCheckboxId(){return`${this.prefix}-select-all`}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[])],n),n})();const yGt={left:"0px",right:"0px"};let Br=(()=>{let n=class{constructor(){this.visibilityChange=new S,this.lockedChange=new S,this.stickyChange=new S,this.columnRangeChange=new S,this.columnsContainer=new bz(()=>[])}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get isLocked(){return this.lockedLeafColumns.length>0}get totalLevels(){return this.columnsContainer.totalLevels}get leafNamedColumns(){const e=um(this.list().filterSort(i=>!i.isColumnGroup)).filter(i=>i.matchesMedia&&i.displayTitle);return zh(e,[{field:"locked",dir:"desc"}])}get unlockedRootCount(){return this.list().rootColumns().filter(e=>!e.locked&&e.isVisible).length}stickyColumnsStyles(e){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(s=>s.sticky&&!s.locked&&s.isVisible)),0===this.stickyColumns.length)return yGt;const i=this.stickyColumns.reduce((s,o)=>(o.leafIndexe.leafIndex&&(s.right+=o.width),s),{left:0,right:0});return{left:`${i.left}px`,right:`${i.right}px`}}init(e,i){this.columnsContainer=e,this.list=i,this.stickyColumns=null}changeVisibility(e){this.stickyColumns=null,this.visibilityChange.emit(e)}changeLocked(e){this.stickyColumns=null,this.lockedChange.emit(e)}changeStuck(e){this.stickyColumns=null,this.stickyChange.emit(e)}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),bw=(()=>{class n{constructor(){this.changes=new Z}sort(e){this.changes.next(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();class _Gt{constructor(t){this.columns=t}}class oAe{constructor(t){this.columns=t}}function oJ(n,t){return"data"===t.type&&t.isEditing?t.data:n}class bGt{constructor(t){this.columns=t}}const aAe=(n,t)=>Dc(n,dm("k-grid-edit-cell"))&&Dc(n,Ql("kendo-grid"))===t,TGt={};let ao=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d,u,h,f,m,C,k,D,E,O,z,q,re,ie,Se,Te,Ee){this.supportService=e,this.selectionService=i,this.cellSelectionService=s,this.wrapper=o,this.groupInfoService=r,this.groupsService=a,this.changeNotification=l,this.detailsService=c,this.editService=d,this.filterService=u,this.pdfService=h,this.responsiveService=f,this.renderer=m,this.excelService=C,this.ngZone=k,this.scrollSyncService=D,this.domEvents=E,this.columnResizingService=O,this.changeDetectorRef=z,this.columnReorderService=q,this.columnInfoService=re,this.navigationService=ie,this.sortService=Se,this.scrollRequestService=Te,this.data=[],this.scrollable="scrollable",this.selectable=!1,this.trackBy=oJ,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 S,this.pageChange=new S,this.groupChange=new XQ(this.ngZone),this.sortChange=new S,this.selectionChange=new S,this.dataStateChange=new S,this.groupExpand=new S,this.groupCollapse=new S,this.detailExpand=new S,this.detailCollapse=new S,this.edit=new S,this.cancel=new S,this.save=new S,this.remove=new S,this.add=new S,this.cellClose=new S,this.cellClick=new XQ(this.ngZone),this.pdfExport=new S,this.excelExport=new S,this.columnResize=new XQ(this.ngZone),this.columnReorder=new S,this.columnVisibilityChange=new S,this.columnLockedChange=new S,this.columnStickyChange=new S,this.scrollBottom=new S,this.contentScroll=new S,this.columns=new wt,this.footer=new wt,this.selectionDirective=!1,this.columnsContainer=new bz(()=>this.columnList.filterHierarchy(be=>(be.matchesMedia=this.matchesMedia(be),be.isVisible))),this.view=new ZHt(()=>new KHt(this.data,this.skip,this.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=()=>null,Ii(PHt),this.localizationSubscription=Ee.changes.subscribe(({rtl:be})=>{this.rtl=be,this.direction=this.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(()=>this.columnList),this.columnInfoService.init(this.columnsContainer,()=>this.columnList),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(be=>{this.columnVisibilityChange.emit(new _Gt(be))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(be=>{this.columnLockedChange.emit(new oAe(be))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(be=>{this.columnStickyChange.emit(new bGt(be))}),this.groupExpandCollapseSubscription=((n,t,e,i)=>n.changes.pipe(dt(({group:s})=>Rt(s))).subscribe(s=>s.expand?t.emit(i(s)):e.emit(i(s))))(a,this.groupExpand,this.groupCollapse,({group:be,groupIndex:Ke,parentGroup:Re})=>({group:be,groupIndex:Ke,parentGroup:Re})),this.detailsServiceSubscription=((n,t,e,i)=>n.changes.pipe(dt(({dataItem:s})=>Rt(s))).subscribe(s=>s.expand?t.emit(s):e.emit(s)))(c,this.detailExpand,this.detailCollapse),this.filterSubscription=this.filterService.changes.subscribe(be=>{this.filterChange.emit(be)}),this.sortSubscription=this.sortService.changes.subscribe(be=>{this.sortChange.emit(be)}),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 YF(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}get skip(){return this._skip}set skip(e){e>=0&&(this._skip=e)}set sort(e){zQ(e)&&(this._sort=e)}get sort(){return this._sort}set group(e){zQ(e)&&(this._group=e)}get group(){return this._group}get showTopToolbar(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}get showBottomToolbar(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}get isLocked(){return this.lockedLeafColumns.length>0}get showTopPager(){return!this.isVirtual&&!1!==this.pageable&&["top","both"].indexOf(this.pageable.position)>-1}get showBottomPager(){return!this.isVirtual&&!1!==this.pageable&&"top"!==this.pageable.position}get hasPager(){return this.showTopPager||this.showBottomPager}get showGroupPanel(){return this.groupable&&!1!==this.groupable.enabled}get groupableEmptyText(){return this.groupable.emptyText}get marqueeSelection(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}set navigatable(e){this.navigable=e}get navigatable(){return this.navigable}set rowClass(e){if(En&&"function"!=typeof e)throw new Error(`rowClass must be a function, but received ${JSON.stringify(e)}.`);this._rowClass=e}get rowClass(){return this._rowClass}set rowSticky(e){if(En&&Rt(e)&&"function"!=typeof e)throw new Error(`rowSticky must be a function, but received ${JSON.stringify(e)}.`);Rt(e)&&(this._rowSticky=e)}get rowSticky(){return this._rowSticky}set rowSelected(e){if(En&&"function"!=typeof e)throw new Error(`rowSelected must be a function, but received ${JSON.stringify(e)}.`);this._rowSelected=e}get rowSelected(){return this._rowSelected}set cellSelected(e){if(En&&"function"!=typeof e)throw new Error(`cellSelected must be a function, but received ${JSON.stringify(e)}.`);this._cellSelected=e}get cellSelected(){return this._cellSelected}get activeCell(){return this.navigationService.activeCell}get activeRow(){return this.navigationService.activeRow}get dir(){return this.direction}get hostClasses(){return!0}get lockedClasses(){return this.lockedLeafColumns.length>0}get virtualClasses(){return this.isVirtual}get noScrollbarClass(){return 0===this.scrollbarWidth}get detailTemplate(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0}set detailTemplate(e){this._customDetailTemplate=e}get noRecordsTemplate(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0}set noRecordsTemplate(e){this._customNoRecordsTemplate=e}get pagerTemplate(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0}set pagerTemplate(e){this._customPagerTemplate=e}get toolbarTemplate(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0}set toolbarTemplate(e){this._customToolbarTemplate=e}get scrollbarWidth(){return this.supportService.scrollbarWidth}get headerPadding(){if(NF())return"";const e=Math.max(0,this.scrollbarWidth-1)+"px";return`0 ${this.rtl?0:e} 0 ${this.rtl?e:0}`}get hasGroupFooters(){return this.columnsContainer.hasGroupFooter}get showFooter(){return this.columnsContainer.hasFooter}get showGroupFooters(){return this.groupable&&this.groupable.showFooter}get ariaRowCount(){return this.totalColumnLevels+1+this.view.total}get ariaColCount(){return this.columnsContainer.leafColumnsToRender.length}get isVirtual(){return"virtual"===this.scrollable}get isScrollable(){return"none"!==this.scrollable}get visibleColumns(){return this.columnsContainer.allColumns}get lockedColumns(){return this.columnsContainer.lockedColumns}get nonLockedColumns(){return this.columnsContainer.nonLockedColumns}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get stickyColumns(){return this.columns.filter(e=>e.sticky)}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get leafColumns(){return this.columnsContainer.leafColumns}get totalColumnLevels(){return this.columnsContainer.totalLevels}get headerColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}get headerLeafColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}get lockedWidth(){const e=32*this.group.length;return um(this.lockedLeafColumns.toArray()).reduce((i,s)=>i+(s.width||0),e)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce((e,i)=>e+(i.width||0),0):this.columnsContainer.unlockedWidth}get selectableSettings(){if(this.selectionService)return this.selectionService.options}get columnMenuTemplate(){const e=this.columnMenuTemplates.first;return e?e.templateRef:null}get totalCount(){return this.isVirtual||!Rt(this.pageSize)?this.view.total:this.pageSize}expandRow(e){this.toggleDetailRowLegacy(e,!0)}collapseRow(e){this.toggleDetailRowLegacy(e,!1)}expandGroup(e){this.toggleGroupRowLegacy(e,!0)}collapseGroup(e){this.toggleGroupRowLegacy(e,!1)}resetGroupsState(){this.groupsService.reset()}expandGroupChildren(e){this.groupsService.expandChildren(e)}onDataChange(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),Rt(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}ngOnChanges(e){Io("data",e)&&this.onDataChange(),this.lockedLeafColumns.length&&Xo(["pageSize","skip","sort","group"],e)&&this.changeNotification.notify(),Xo(["pageSize","scrollable","virtualColumns"],e)&&this.updateNavigationMetadata(),Io("virtualColumns",e)&&(this.viewportColumns=this.leafViewportColumns=null),Io("height",e,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height",`${this.height}px`),Io("filterable",e)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe(jn(1))),Xo(["columnMenu","sortable","filterable"],e,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:Boolean(this.filterable),sort:Boolean(this.sortable)},this.columnMenu)),Io("scrollable",e)&&this.isScrollable&&this.ngZone.onStable.pipe(jn(1)).subscribe(()=>this.attachScrollSync()),Io("selectable",e)&&this.shouldResetSelection(e.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),Io("groupable",e,!0)&&(this.groupable=e.groupable.currentValue)}ngAfterViewInit(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}ngAfterContentChecked(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}ngAfterContentInit(){this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new YF(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(()=>this.verifySettings())}ngOnInit(){this.navigable&&this.navigationService.init(this.navigationMetadata())}ngOnDestroy(){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()}attachScrollSync(){NF()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=hz(this.footer).subscribe(e=>e.map(i=>i.nativeElement).filter(Rt).forEach(i=>this.scrollSyncService.registerEmitter(i,"footer")))))}editRow(e,i,s){if(this.editService.editRow(e,i),Rt(s)&&s.skipFocus)return;const o=`tr[data-kendo-grid-item-index="${e}"]`,r=s&&s.columnIndex,a=isNaN(r)?o:`${o} td[data-kendo-grid-column-index="${r}"]`;this.focusEditElement(a)}closeRow(e){this.editService.close(e)}addRow(e){if(!(e instanceof yy)){const s=Object.keys(e).reduce((n=>(t,e)=>(t[e]=new gc(n[e]),t))(e),{});e=new yy(s)}this.editService.addRow(e),this.focusEditElement(".k-grid-add-row")}editCell(e,i,s){const o=this.columnInstance(i);this.editService.editCell(e,o,s),this.focusEditElement(".k-grid-edit-cell")}closeCell(){return!this.editService.closeCell()}cancelCell(){this.editService.cancelCell()}isEditing(){return this.editService.isEditing()}isEditingCell(){return this.editService.isEditingCell()}saveAsPDF(){this.pdfService.save(this)}drawPDF(){const e=(()=>{let n,t;const e=new Promise((i,s)=>{n=o=>(i(o),e),t=o=>(s(o),e)});return e.resolve=n,e.reject=t,e})();return this.pdfService.draw(this,e),e}saveAsExcel(){this.excelService.save(this)}autoFitColumn(e){this.columnResizingService.autoFit(e)}autoFitColumns(e=this.columns){let i;i=e instanceof wt?e.toArray():e,this.columnResizingService.autoFit(...i)}notifyPageChange(e,i){"list"===e&&!this.isVirtual||this.pageChange.emit(i)}notifyScrollBottom(){"none"!==this.scrollable&&Kt(this.scrollBottom)&&this.ngZone.run(()=>this.scrollBottom.emit({sender:this}))}focusEditElement(e){this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(()=>{this.focusElementSubscription=this.ngZone.onStable.asObservable().pipe(jn(1)).subscribe(()=>{const i=this.wrapper.nativeElement;!this.setEditFocus(i.querySelector(e))&&this.isLocked&&this.setEditFocus(i.querySelector(`.k-grid-content ${e}`)),this.focusElementSubscription=null})})}focus(){return this.assertNavigable(),this.navigationService.focusCell()}focusCell(e,i){return this.assertNavigable(),this.navigationService.focusCell(e,i)}focusNextCell(e=!0){return this.assertNavigable(),this.navigationService.focusNextCell(e)}focusPrevCell(e=!0){return this.assertNavigable(),this.navigationService.focusPrevCell(e)}scrollTo(e){this.scrollRequestService.scrollTo(e)}reorderColumn(e,i,s={before:!1}){let r=hw(this.allColumnsForLevel(e.level))[i];!r||r.isLocked&&!e.isLocked&&1===this.columnsContainer.nonLockedColumns.length||(yz(r)&&!s.before&&(r=r.childColumns.last),this.reorder({before:s.before,source:e,target:r}))}set isDetailExpanded(e){this.detailsService.userCallback=e}get isDetailExpanded(){return this.detailsService.userCallback}set isGroupExpanded(e){this.groupsService.userCallback=e,this.groupable=Rt(e)}get isGroupExpanded(){return this.groupsService.userCallback}reorder({target:e,source:i,before:s,changeContainer:o}){this.ngZone.run(()=>{const r=hw(this.allColumnsForLevel(i.level));let a=r.indexOf(e);e.parent&&e.parent.isSpanColumn&&(a=r.indexOf(e.parent),s&&(e=e.parent));let l=r.indexOf(i);o&&(s&&0a&&a++);const c=new fGt({column:i,oldIndex:l,newIndex:a});this.columnReorder.emit(c),!c.isDefaultPrevented()&&(o&&this.columnLockedChange.emit(new oAe([i])),this.updateColumnIndices({columnsForLevel:r,source:i,target:e,before:s}),i.locked!==e.locked&&(i.locked=e.locked),this.columnsContainer.refresh(),this.changeDetectorRef.markForCheck())})}updateColumnIndices({columnsForLevel:e,source:i,target:s,before:o}){const r=zIe(e),a=r.indexOf(i);let l=0,c=0,d=1;i.isSpanColumn&&(d+=i.childColumns.length);let u=0;for(;u{o.isColumnGroup&&s.push(...o.childrenArray.sort((r,a)=>r.orderIndex-a.orderIndex))}),zIe(s).map((o,r)=>o.orderIndex=r),ei.level===e)}initSelectionService(){if(!this.selectable)return this.selectionService.ngOnDestroy(),void this.cellSelectionService.ngOnDestroy();!this.selectionDirective&&!Rt(this.defaultSelection)&&(this.defaultSelection=new XIe(this,this.changeDetectorRef));const e=this.selectable.cell,i=e?this.cellSelectionService:this.selectionService,s=e?this.selectionService:this.cellSelectionService;s.active&&(s.ngOnDestroy(),i.addSubscriptions(),s.active=!1),i.active=!0,i.init({cellSelected:e?this.cellSelected:void 0,rowSelected:e?void 0:this.rowSelected,selectable:this.selectable,view:this.view,columns:e?this.columnList.toArray():void 0}),!this.selectionDirective&&!this.selectableSettings.enabled&&this.defaultSelection.reset(),this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.selectionSubscription=e?this.cellSelectionService.changes.subscribe(o=>{this.ngZone.run(()=>this.selectionChange.emit(o))}):this.selectionService.changes.subscribe(o=>{this.ngZone.run(()=>this.selectionChange.emit(o))})}setEditFocus(e){if(e)return this.navigationService.tryFocus(e)}columnInstance(e){let i;if(i="number"==typeof e?this.columnsContainer.lockedLeafColumns.toArray().concat(this.columnsContainer.nonLockedLeafColumns.toArray())[e]:"string"==typeof e?this.columnList.filter(s=>s.field===e)[0]:e,!i&&En())throw new Error(`Invalid column ${e}`);return i}verifySettings(){if(En()){const e=this.lockedLeafColumns.length||this.columnMenu&&this.columnMenu.lock,i=this.stickyColumns.length||this.columnMenu&&this.columnMenu.stick;if(e&&this.detailTemplate)throw new Error("Having both detail template and locked columns is not supported.");if(this.lockedLeafColumns.length&&!this.nonLockedLeafColumns.length)throw new Error("There should be at least one non-locked column");if((e||this.virtualColumns)&&um(this.columnList.toArray()).filter(s=>!s.width&&!uM(s)).length)throw new Error((e?"Locked":"Virtual")+" columns feature requires all columns to have set width.");if(e&&!this.isScrollable)throw new Error("Locked columns are only supported when scrolling is enabled.");if(this.columnList.filter(uM).filter(s=>!s.hasChildren).length)throw new Error("ColumnGroupComponent should contain ColumnComponent or CommandColumnComponent.");if(this.columnList.filter(s=>s.locked&&s.parent&&!s.parent.isLocked).length)throw new Error("Locked child columns require their parent columns to be locked.");if((this.rowHeight||this.detailRowHeight)&&!this.isVirtual)throw new Error("Row height and detail row height settings require virtual scrolling mode to be enabled.");if(i&&um(this.columnList.toArray()).filter(s=>!s.width&&!uM(s)).length)throw new Error("Sticky columns feature requires all columns to have set width.");if(i&&!this.isScrollable)throw new Error("Sticky columns are only supported when scrolling is enabled.");if(i&&this.virtualColumns)throw new Error("Having both sticky columns and column virtualization is not supported.");if(this.rowSticky&&"virtual"===this.scrollable)throw new Error('Having both sticky rows and row virtualization (scrollable="virtual") is not supported.');if(this.rowSticky&&this.groupable)throw new Error("Having both sticky rows and grouping is not supported.");(n=>{um(n.toArray()).filter(WF).filter(({field:t})=>!(n=>!ya(n)&&BHt.test(n)&&"."!==n[0]&&"."!==n[n.length-1])(t)).forEach(({field:t})=>console.warn(`\n Grid column field name '${t}' does not look like a valid JavaScript identifier.\n Identifiers can contain only alphanumeric characters (including "$" or "_"), and may not start with a digit.\n Please use only valid identifier names to ensure error-free operation.\n `))})(this.columnList)}}autoGenerateColumns(){this.shouldGenerateColumns&&!this.columns.length&&this.view.length&&this.columns.reset(Object.keys(this.view.at(0)).map(e=>{let i=new oi;return i.field=e,i}))}attachStateChangesEmitter(){this.stateChangeSubscription=ii(this.pageChange.pipe(xe(e=>({filter:this.filter,group:this.group,skip:e.skip,sort:this.sort,take:e.take}))),this.sortChange.pipe(xe(e=>({filter:this.filter,group:this.group,skip:this.skip,sort:e,take:this.pageSize}))),this.groupChange.pipe(xe(e=>({filter:this.filter,group:e,skip:this.skip,sort:this.sort,take:this.pageSize}))),this.filterChange.pipe(xe(e=>({filter:e,group:this.group,skip:0,sort:this.sort,take:this.pageSize})))).subscribe(e=>{this.closeCell(),this.cancelCell(),this.dataStateChange.emit(e)})}attachEditHandlers(){!this.editService||(this.editServiceSubscription=this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))}emitCRUDEvent(e){const{action:i,rowIndex:s,formGroup:o}=e;let r=this.view.at(s-this.skip);switch("add"!==i&&!r&&(r=o.value),this.closeCell(),Object.assign(e,{dataItem:r,sender:this}),i){case"add":this.add.emit(e);break;case"cancel":this.cancel.emit(e);break;case"edit":this.edit.emit(e);break;case"remove":this.remove.emit(e);break;case"save":this.save.emit(e);break;case"cellClose":this.cellClose.emit(e)}}attachDomEventHandlers(){this.cellClickSubscription=this.domEvents.cellClick.subscribe(e=>{this.cellClick.emit(Object.assign({sender:this},e))})}attachElementEventHandlers(){if(NF())return;const e=this.wrapper.nativeElement,i=this.ariaRoot.nativeElement;this.ngZone.runOutsideAngular(()=>{const s=this.resizeCheck.bind(this),o=this.renderer.listen("window","resize",s),r=this.renderer.listen("window","orientationchange",s),a=this.renderer.listen("document","click",m=>{const C=document.activeElement;this.editService.shouldCloseCell()&&!Dc(m.target,dm("k-animation-container k-grid-ignore-click"))&&(!C||!Dc(C,dm("k-animation-container"))&&!aAe(C,this.wrapper.nativeElement))&&this.editService.closeCell(m)}),l=this.renderer.listen("window","blur",m=>{const C=document.activeElement;C&&!(Ql("input")(C)&&"file"===C.type&&aAe(C,this.wrapper.nativeElement))&&this.editService.closeCell(m),this.domEvents.windowBlur.emit(m)}),c=this.renderer.listen(e,"click",m=>{this.domEvents.click.emit(m)}),d=this.renderer.listen(e,"keydown",m=>{this.domEvents.keydown.emit(m)});let u=!1;const h=this.renderer.listen(i,"focusin",m=>{this.domEvents.focus.emit(m),u||(this.domEvents.focusIn.emit(m),u=!0)}),f=this.renderer.listen(i,"focusout",m=>{const C=m.relatedTarget||document.activeElement;!Dc(C,D=>D===i)&&(this.domEvents.focusOut.emit(m),u=!1)});this.detachElementEventHandlers=()=>{o(),r(),a(),l(),c(),d(),h(),f()}})}matchesMedia(e){return this.responsiveService.matchesMedia(e.media)}resizeCheck(){if(window.innerWidth!==this.cachedWindowWidth){this.cachedWindowWidth=window.innerWidth;let e=!1;this.columnList.filterHierarchy(i=>{const s=this.matchesMedia(i);return i.matchesMedia!==s&&(e=!0,i.matchesMedia=s),i.isVisible}),e&&this.ngZone.run(()=>{this.changeDetectorRef.markForCheck()})}}emitPDFExportEvent(){const e=new iGt;this.pdfExport.emit(e),e.isDefaultPrevented()||this.saveAsPDF()}syncHeaderHeight(e){return e.pipe(dt(()=>Rt(this.lockedHeader))).subscribe(()=>ZIe(this.lockedHeader.nativeElement.children[0],this.header.nativeElement.children[0]))}columnsContainerChange(){this.columnsContainerChangeSubscription=this.syncHeaderHeight(this.columnsContainer.changes.pipe(dt(()=>this.lockedColumns.length>0),ls(()=>this.ngZone.onStable.asObservable().pipe(jn(1)))))}handleColumnResize(){const e=this.columnResizingService.changes;this.columnResizingSubscription=e.pipe(lt(i=>{"start"===i.type?this.renderer.addClass(this.wrapper.nativeElement,"k-grid-column-resizing"):"end"===i.type&&this.renderer.removeClass(this.wrapper.nativeElement,"k-grid-column-resizing")}),dt(i=>"start"===i.type),ls(()=>e.pipe(et(e.pipe(dt(i=>"triggerAutoFit"===i.type))),dt(i=>"end"===i.type)))).subscribe(this.notifyResize.bind(this))}notifyResize(e){const i=e.resizedColumns.filter(s=>Hu(s.column.resizable)&&!s.column.isColumnGroup).map(s=>({column:s.column,newWidth:s.column.width,oldWidth:s.oldWidth}));this.columnResize.emit(i)}assertNavigable(){if(En()&&!this.navigable)throw new Error('The Grid should be configured as [navigable]="true" to control focus')}navigationMetadata(){const e=this.isVirtual,s=e?this.view.total:this.pageSize,o=this.editService.hasNewItem?1:0,r=wz(this.filterable)?1:0;return new gGt(s,this.totalColumnLevels+1+r+o,e,this.hasPager,Rt(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}updateNavigationMetadata(){this.navigationService.metadata=this.navigationMetadata()}applyAutoSize(){const e=this.columns.filter(i=>this.autoSize?!1!==i.autoSize:i.autoSize);e.length>0&&this.ngZone.onStable.pipe(jn(1)).subscribe(i=>this.autoFitColumns(e))}onColumnRangeChange(e){const i=this.viewportColumns=[],s=this.columnsContainer.nonLockedLeafColumns.toArray().slice(e.start,e.end+1);for(let o=0;o0){const o=s[0];let r=e.offset,a=i[0],l=0;for(;a!==o;)r-=a.isColumnGroup?0:a.width,l++,a=i[l];if(r>0){const c=this.columnsContainer.totalLevels;let d;for(let u=0;u<=c;u++){const h=u!o.isColumnGroup)}toggleDetailRowLegacy(e,i){const s="function"==typeof this.isDetailExpanded;if(En()&&s)throw new Error("The expandRow and collapseRow methods should not be called when using the kendoGridDetailsExpandBy directive or the isDetailExpanded callback. These methods are provided only for backwards compatibility with legacy versions.");!En()&&s||this.detailsService.isExpanded(e,null)!==i&&this.detailsService.toggleRow(e,null)}toggleGroupRowLegacy(e,i){const s="function"==typeof this.isGroupExpanded;if(En()&&s)throw new Error("The expandGroup and collapseGroup methods should not be called when using the kendoGridExpandGroupBy directive or the isGroupExpanded callback. These methods are provided only for backwards compatibility with legacy versions.");!En()&&s||this.groupsService.isExpanded({groupIndex:e})!==i&&this.groupsService.toggleRow({index:e})}shouldResetSelection(e){const i=e.previousValue;if(!i)return!1;const s=e.currentValue;return!s||!1===s.enabled||i.cell!==s.cell}};return n.\u0275fac=function(e){return new(e||n)(g(XF),g(mf),g(dw),g($),g(pw),g(gf),g(fw),g(t_),g(_a),g(Js),g(i_),g(iJ),g(Ie),g(mw),g(ce),g(yw),g(Gu),g(s_),g(Be),g(eO),g(Br),g(Qs),g(bw),g(cw),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,bo,4),Ce(s,pm,4),Ce(s,gw,4),Ce(s,KF,4),Ce(s,xz,4),Ce(s,cM,4)),2&e){let o;U(o=W())&&(i.columns=o),U(o=W())&&(i.detailTemplateChildren=o),U(o=W())&&(i.noRecordsTemplateChildren=o),U(o=W())&&(i.pagerTemplateChildren=o),U(o=W())&&(i.toolbarTemplateChildren=o),U(o=W())&&(i.columnMenuTemplates=o)}},viewQuery:function(e,i){if(1&e&&(Ae(QVt,5),Ae(JVt,5),Ae(e4t,7),Ae(t4t,5)),2&e){let s;U(s=W())&&(i.lockedHeader=s.first),U(s=W())&&(i.header=s.first),U(s=W())&&(i.ariaRoot=s.first),U(s=W())&&(i.footer=s)}},hostVars:11,hostBindings:function(e,i){2&e&&(fe("dir",i.dir),he("k-widget",i.hostClasses)("k-grid",i.hostClasses)("k-grid-lockedcolumns",i.lockedClasses)("k-grid-virtual",i.virtualClasses)("k-grid-no-scrollbar",i.noScrollbarClass))},inputs:{data:"data",scrollable:"scrollable",selectable:"selectable",trackBy:"trackBy",virtualColumns:"virtualColumns",filterable:"filterable",sortable:"sortable",pageable:"pageable",groupable:"groupable",navigable:"navigable",autoSize:"autoSize",resizable:"resizable",reorderable:"reorderable",loading:"loading",columnMenu:"columnMenu",hideHeader:"hideHeader",skip:"skip",sort:"sort",group:"group",navigatable:"navigatable",rowClass:"rowClass",rowSticky:"rowSticky",rowSelected:"rowSelected",cellSelected:"cellSelected",isDetailExpanded:"isDetailExpanded",isGroupExpanded:"isGroupExpanded",pageSize:"pageSize",height:"height",rowHeight:"rowHeight",detailRowHeight:"detailRowHeight",filter:"filter"},outputs:{filterChange:"filterChange",pageChange:"pageChange",groupChange:"groupChange",sortChange:"sortChange",selectionChange:"selectionChange",dataStateChange:"dataStateChange",groupExpand:"groupExpand",groupCollapse:"groupCollapse",detailExpand:"detailExpand",detailCollapse:"detailCollapse",edit:"edit",cancel:"cancel",save:"save",remove:"remove",add:"add",cellClose:"cellClose",cellClick:"cellClick",pdfExport:"pdfExport",excelExport:"excelExport",columnResize:"columnResize",columnReorder:"columnReorder",columnVisibilityChange:"columnVisibilityChange",columnLockedChange:"columnLockedChange",columnStickyChange:"columnStickyChange",scrollBottom:"scrollBottom",contentScroll:"contentScroll"},exportAs:["kendoGrid"],features:[we([XF,J,Br,mf,dw,t_,gf,pw,fw,_a,i_,ZF,{provide:Jl,useValue:TGt},{provide:An,useValue:"kendo.grid"},Js,iJ,ec,mw,yw,QF,cd,Gu,s_,o_,JF,_w,vw,eO,Qs,pf,r_,cw,bw]),st],decls:11,vars:15,consts:function(){let t,e,i,s,o,r,a,l,c,d,u,h,f,m,C,k,D,E,O,z,q,re,ie,Se,Te,Ee,be,Ke,Re,Qe,Ze,Ge,tt,Dt,Et,Bt,_i,Mn,qs,Ni,al,Ss,Vs,hh,oc,br,No,Rf,ur,Pl,bR,CR,xR,U6,O3e,R3e,P3e,L3e,N3e,B3e,V3e,z3e,H3e,G3e,j3e,$3e;return t=$localize`:kendo.grid.groupPanelEmpty|The label visible in the Grid group panel when it is empty␟30bcb3a2fbc22fcab6ca805e74b90adb8ba1ae96␟1430663748859427158:Drag a column header and drop it here to group by that column`,e=$localize`:kendo.grid.noRecords|The label visible in the Grid when there are no records␟ff9cfd4bf3e40305db251f2b6961796c0550b4b0␟1243399825085142134:No records available.`,i=$localize`:kendo.grid.pagerFirstPage|The label for the first page button in Grid pager␟b405dfc5ee42415daa08d54847d3010de1821111␟5647145449685906398:Go to the first page`,s=$localize`:kendo.grid.pagerPreviousPage|The label for the previous page button in Grid pager␟47aa4fe05f5a2577d3336971d7c44ce48802b860␟6745088753482690847:Go to the previous page`,o=$localize`:kendo.grid.pagerNextPage|The label for the next page button in Grid pager␟90031133fca899b4e491d9fc51128c1a184afb30␟5510985262435270859:Go to the next page`,r=$localize`:kendo.grid.pagerLastPage|The label for the last page button in Grid pager␟fe84f2ea868286ce03e50b6e55558c16d675c753␟4539768510520419313:Go to the last page`,a=$localize`:kendo.grid.pagerPage|The label before the current page number in the Grid pager␟89c1f616c25bb610824cd8a26473a03921df48bd␟5228228287003939680:Page`,l=$localize`:kendo.grid.pagerOf|The label before the total pages number in the Grid pager␟0c9abe48f5d4bd2cb51846712e41864fc64aad6a␟7004642096327889102:of`,c=$localize`:kendo.grid.pagerItems|The label after the total pages number in the Grid pager␟7c1704d11bfb77340485acd891439c2b6c6616ca␟700193548223931835:items`,d=$localize`:kendo.grid.pagerPageNumberInputTitle|The label for the pager input in the Grid pager␟f8bad8f2c7345e4fe531480e3034f7d3e954d383␟2090461908134774363:Page Number`,u=$localize`:kendo.grid.pagerItemsPerPage|The label for the page size chooser in the Grid pager␟3331fe7ec45f299afaa4c1e08ea25c493eda9144␟8838594644885628398:items per page`,h=$localize`:kendo.grid.filter|The label of the filter cell or icon␟21a04b7b090dac60e0449cb6e435b7e879173c75␟7977992299945497789:Filter`,f=$localize`:kendo.grid.filterEqOperator|The text of the equal filter operator␟8b31e1604d10a2f8709dcb1ed5c237e33cffc135␟4328959145426393682:Is equal to`,m=$localize`:kendo.grid.filterNotEqOperator|The text of the not equal filter operator␟d46e14d35d89d2fadf5c852abf5557643510a013␟8497658332767349737:Is not equal to`,C=$localize`:kendo.grid.filterIsNullOperator|The text of the is null filter operator␟078c50eb1fe8b2b43fcc40c5e7f4493152310c2f␟1298299704757177797:Is null`,k=$localize`:kendo.grid.filterIsNotNullOperator|The text of the is not null filter operator␟70b39eeaf2674907b2e59b414baf17e032b464dc␟8362279767336741540:Is not null`,D=$localize`:kendo.grid.filterIsEmptyOperator|The text of the is empty filter operator␟a4e77e444b4e9b63851ac818e20136212b06c750␟4762263229995523226:Is empty`,E=$localize`:kendo.grid.filterIsNotEmptyOperator|The text of the is not empty filter operator␟dee7553c341248e90aef4a8e7438c52e667e68be␟8245213618709258015:Is not empty`,O=$localize`:kendo.grid.filterStartsWithOperator|The text of the starts with filter operator␟da43b363b636156e3ccdbb64a0788bdeab51e992␟6087783423599420507:Starts with`,z=$localize`:kendo.grid.filterContainsOperator|The text of the contains filter operator␟5b568a46d2e34ebde7dd53a7e599cbbb7dc6bae1␟3831180413287131758:Contains`,q=$localize`:kendo.grid.filterNotContainsOperator|The text of the does not contain filter operator␟be06aa4fde7fa722c9de5a45f241ff595071d718␟7331253838216904826:Does not contain`,re=$localize`:kendo.grid.filterEndsWithOperator|The text of the ends with filter operator␟a54b2ecffb41f0603ceedc7ea5a40b7d130e2fa1␟3662435311670509156:Ends with`,ie=$localize`:kendo.grid.filterGteOperator|The text of the greater than or equal filter operator␟68471603db771d0304d02fe086da9701c16911c3␟4542824413455511831:Is greater than or equal to`,Se=$localize`:kendo.grid.filterGtOperator|The text of the greater than filter operator␟ae68acc0e18252a348bdfb32112996d81e5305de␟1527483349261806183:Is greater than`,Te=$localize`:kendo.grid.filterLteOperator|The text of the less than or equal filter operator␟e48d50a6422c616a00b95025adc5283aff4fa8cb␟4840714404733417604:Is less than or equal to`,Ee=$localize`:kendo.grid.filterLtOperator|The text of the less than filter operator␟c4d58f0e509cb7e37014715dd91546a724210d70␟498627126459578706:Is less than`,be=$localize`:kendo.grid.filterIsTrue|The text of the IsTrue boolean filter option␟d5f1e9028bc60c30e8f8e0f9cfeb872512446cea␟2361673238316312251:Is True`,Ke=$localize`:kendo.grid.filterIsFalse|The text of the IsFalse boolean filter option␟6d34731320e2536fd78f4a9e08f0b8dcd01edf3d␟7759366406135608407:Is False`,Re=$localize`:kendo.grid.filterBooleanAll|The text of the (All) boolean filter option␟4da1456a62bafe2614ed2bc05a2c790a64a4dd0b␟9215343856736761875:(All)`,Qe=$localize`:kendo.grid.filterAfterOrEqualOperator|The text of the after or equal date filter operator␟d7dac1bbc2372d578a9d2bca099de766043aed7e␟1964413288176201979:Is after or equal to`,Ze=$localize`:kendo.grid.filterAfterOperator|The text of the after date filter operator␟bff777df0d0831cc02679227422fab4ef2763fa9␟3078502182807244703:Is after`,Ge=$localize`:kendo.grid.filterBeforeOperator|The text of the before date filter operator␟35ef5cf367670f15432c9f8761bc85fbdb2b1830␟3348865631071358219:Is before`,tt=$localize`:kendo.grid.filterBeforeOrEqualOperator|The text of the before or equal date filter operator␟27a6b29ffbc1eb498de8d7af20051461a2e842ec␟6582064037090631388:Is before or equal to`,Dt=$localize`:kendo.grid.filterFilterButton|The text of the filter button␟4f1c08d0b056646cdb668da669e2e15825adfe4d␟5185263258022896121:Filter`,Et=$localize`:kendo.grid.filterClearButton|The text of the clear filter button␟06e4e4dadede6f91f261cdbb7fb174246a135238␟3031209415830321799:Clear`,Bt=$localize`:kendo.grid.filterAndLogic|The text of the And filter logic␟f73fbcc2f813d469e4a34491950ca01ea1ac8f60␟512662285155477884:And`,_i=$localize`:kendo.grid.filterOrLogic|The text of the Or filter logic␟04e64780de0fc1c3a9986997e0808ec53a5f2a63␟1964926727342405367:Or`,Mn=$localize`:kendo.grid.loading|The loading text␟781c049cc69efc30bc8053af9ace3cb4b04bd438␟5425510787229531767:Loading`,qs=$localize`:kendo.grid.columns|The text shown in the column menu for the columns item␟9b841399fbb3d81f2401f98b4f4763834b72a1e5␟5332162737795508854:Columns`,Ni=$localize`:kendo.grid.lock|The text shown in the column menu for the lock item␟f356cae509dec3dc1b7156326b9a0328a79c62a8␟5849203148124173556:Lock`,al=$localize`:kendo.grid.unlock|The text shown in the column menu for the unlock item␟f33355540003068372e39ba7f3def794869ea9f8␟6968586378603932789:Unlock`,Ss=$localize`:kendo.grid.setColumnPosition|The text shown in the column menu for the set column position item␟e5b09fd8ecea276841b1018a376a43d5f26cf187␟4152513791950180353:Set Column Position`,Vs=$localize`:kendo.grid.stick|The text shown in the column menu for the stick item␟31d7229bfb18a112e19a6e8040d7d2e261293dca␟2051035907018784050:Stick`,hh=$localize`:kendo.grid.unstick|The text shown in the column menu for the unstick item␟01d4c7e75b7fadc09544cf2277208d39b4eef86a␟7237321134369658080:Unstick`,oc=$localize`:kendo.grid.sortable|The label of the sort icon␟a692ba271be066ce379f942ff67094e1ea989f4c␟3824304972336788145:Sortable`,br=$localize`:kendo.grid.sortAscending|The text shown in the column menu for the sort ascending item␟96beffd8446c5455f3bbdc313c946db32df7dcc2␟6297762560864270240:Sort Ascending`,No=$localize`:kendo.grid.sortDescending|The text shown in the column menu for the sort descending item␟208d0538d4c2537a1cbf456941e34a2884053d52␟5605073536641230977:Sort Descending`,Rf=$localize`:kendo.grid.sortedAscending|The status announcement when a column is sorted ascending␟947c64329461efd9f8a9aa2c51acbbd099170aa5␟6275944032047713540:Sorted Ascending`,ur=$localize`:kendo.grid.sortedDescending|The status announcement when a column is sorted descending␟092a688d1b2b6d873bdc29beaaf43c3f45336581␟8155280769473236383:Sorted Descending`,Pl=$localize`:kendo.grid.sortedDefault|The status announcement when a column is no longer sorted␟66e99ea340974022c07c52a6f668f5573e7edab0␟5229177293891232538:Not Sorted`,bR=$localize`:kendo.grid.columnsApply|The text shown in the column menu or column chooser for the columns apply button␟04600bd6e362cf9da9f7f9c4666eab2c88eb6a90␟34213208292862969:Apply`,CR=$localize`:kendo.grid.columnsReset|The text shown in the column menu or column chooser for the columns reset button␟94d3b472d99994a5cca9930afd4cf0ac2774c382␟4465838259914958827:Reset`,xR=$localize`:kendo.grid.detailExpand|The title of the expand icon of detail rows.␟ad6629bb6e79235623cfce486ef48087dbe96fb5␟6952757249912226136:Expand Details`,U6=$localize`:kendo.grid.detailCollapse|The title of the collapse icon of detail rows.␟ace0c0a58fbb211e8678efb3bd6ac9bb587144c3␟6065477639036399169:Collapse Details`,O3e=$localize`:kendo.grid.filterDateToday|The text of the Today button of the Date filter.␟745058f85d92ee5228977277195262978828c4c8␟1656723147090613075:TODAY`,R3e=$localize`:kendo.grid.filterDateToggle|The title of the Toggle button of the Date filter.␟2c916ea2cbd37665e512219650c37dc17b9ef0c0␟15438307630389352:Toggle Calendar`,P3e=$localize`:kendo.grid.filterNumericDecrement|The title of the Decrement button of the Numeric filter.␟7f991d698abebb2e50570f9aef14126ae931c513␟534533728304192410:Decrement`,L3e=$localize`:kendo.grid.filterNumericIncrement|The title of the Increment button of the Numeric filter.␟25bc8b86968819d3f687aa6dde652800bd4b6b2a␟5462143714591662391:Increment`,N3e=$localize`:kendo.grid.selectionCheckboxLabel|The labels of the checkbox column checkboxes.␟be92546944c9cb75e92f8b968456d82a101fc35b␟8181603152758207780:Select Row`,B3e=$localize`:kendo.grid.selectAllCheckboxLabel|The label of the checkbox column select all checkbox.␟20fbea69eff950cbfcf690203ca6104e8346fa48␟6136285170059274319:Select All Rows`,V3e=$localize`:kendo.grid.pagerLabel|The label for the Grid pager␟03a0df03d11d80b3aeca50cf4827096a51a853fc␟941504587982751782:${"\ufffd0\ufffd"}:INTERPOLATION:`,z3e=$localize`:kendo.grid.filterInputLabel|The label of the filter row and menu inputs␟491dbf44b1ca040395b94229d00d4109af48e64c␟3836147469421132954:${"\ufffd0\ufffd"}:INTERPOLATION:`,H3e=$localize`:kendo.grid.filterMenuTitle|The title of the filter menu icon␟04e8a1bee6d2dd6edfc921e890fae44a01ceb18c␟7968307322474586314:${"\ufffd0\ufffd"}:INTERPOLATION:`,G3e=$localize`:kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown␟884eac0bb5b4a01ea36fea20ffa29c6dfe1987e0␟1505989735336544615:${"\ufffd0\ufffd"}:INTERPOLATION:`,j3e=$localize`:kendo.grid.filterMenuLogicDropDownLabel|The label of the filter menu logic dropdown␟c9ba4917588987b943dc414dc6ca108392d8cb40␟7212349983175276206:${"\ufffd0\ufffd"}:INTERPOLATION:`,$3e=$localize`:kendo.grid.columnMenu|The title of the column menu icon␟28d8b294e285a6c34641eb1c7982870b412ef106␟8738132440639204439:${"\ufffd0\ufffd"}:INTERPOLATION:`,[["kendoGridLocalizedMessages","","groupPanelEmpty",t,"noRecords",e,"pagerFirstPage",i,"pagerPreviousPage",s,"pagerNextPage",o,"pagerLastPage",r,"pagerPage",a,"pagerOf",l,"pagerItems",c,"pagerPageNumberInputTitle",d,"pagerItemsPerPage",u,"filter",h,"filterEqOperator",f,"filterNotEqOperator",m,"filterIsNullOperator",C,"filterIsNotNullOperator",k,"filterIsEmptyOperator",D,"filterIsNotEmptyOperator",E,"filterStartsWithOperator",O,"filterContainsOperator",z,"filterNotContainsOperator",q,"filterEndsWithOperator",re,"filterGteOperator",ie,"filterGtOperator",Se,"filterLteOperator",Te,"filterLtOperator",Ee,"filterIsTrue",be,"filterIsFalse",Ke,"filterBooleanAll",Re,"filterAfterOrEqualOperator",Qe,"filterAfterOperator",Ze,"filterBeforeOperator",Ge,"filterBeforeOrEqualOperator",tt,"filterFilterButton",Dt,"filterClearButton",Et,"filterAndLogic",Bt,"filterOrLogic",_i,"loading",Mn,"columns",qs,"lock",Ni,"unlock",al,"setColumnPosition",Ss,"stick",Vs,"unstick",hh,"sortable",oc,"sortAscending",br,"sortDescending",No,"sortedAscending",Rf,"sortedDescending",ur,"sortedDefault",Pl,"columnsApply",bR,"columnsReset",CR,"detailExpand",xR,"detailCollapse",U6,"filterDateToday",O3e,"filterDateToggle",R3e,"filterNumericDecrement",P3e,"filterNumericIncrement",L3e,"selectionCheckboxLabel",N3e,"selectAllCheckboxLabel",B3e,6,"pagerLabel","filterInputLabel","filterMenuTitle","filterMenuOperatorsDropDownLabel","filterMenuLogicDropDownLabel","columnMenu"],["pagerLabel",V3e,"filterInputLabel",z3e,"filterMenuTitle",H3e,"filterMenuOperatorsDropDownLabel",G3e,"filterMenuLogicDropDownLabel",j3e,"columnMenu",$3e],["class","k-toolbar k-grid-toolbar","position","top",4,"ngIf"],["class","k-grid-pager-top",3,"tabindex","template","pageSize","total","skip","options","pageChange",4,"ngIf"],[3,"text","groups","change",4,"ngIf"],["role","grid",1,"k-grid-aria-root"],["ariaRoot",""],[3,"ngIf"],[3,"tabindex","template","pageSize","total","skip","options","pageChange",4,"ngIf"],["class","k-toolbar k-grid-toolbar k-grid-toolbar-bottom","position","bottom",4,"ngIf"],["position","top",1,"k-toolbar","k-grid-toolbar"],[1,"k-grid-pager-top",3,"tabindex","template","pageSize","total","skip","options","pageChange"],[3,"text","groups","change"],["class","k-grid-header","role","presentation",3,"padding",4,"ngIf"],["kendoDraggable","","kendoGridSelectionMarquee","",3,"data","rowHeight","detailRowHeight","total","take","groups","groupable","skip","trackBy","columns","selectable","filterable","detailTemplate","noRecordsTemplate","rowClass","rowSticky","loading","isVirtual","virtualColumns","enableDrag","pageChange","scrollBottom","contentScroll"],["class","k-grid-footer",3,"padding",4,"ngIf"],["role","presentation",1,"k-grid-header"],["role","presentation","class","k-grid-header-locked",3,"width",4,"ngIf"],["role","presentation","data-scrollable","",1,"k-grid-header-wrap",3,"kendoGridResizableContainer","lockedWidth"],["header",""],["role","presentation",3,"virtualColumns"],["kendoGridColGroup","","role","presentation",3,"columns","groups","detailTemplate"],["kendoGridHeader","","role","presentation",3,"resizable","scrollable","columns","totalColumnLevels","sort","filter","filterable","groupable","reorderable","groups","sortable","columnMenu","columnMenuTemplate","lockedColumnsCount","totalColumnsCount","detailTemplate","tabIndex"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation",1,"k-grid-header-locked"],["lockedHeader",""],["role","presentation",3,"locked"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","sort","groups","filter","filterable","groupable","reorderable","sortable","columnMenu","columnMenuTemplate","totalColumnsCount","detailTemplate","tabIndex"],["role","presentation",1,"k-width-container"],[1,"k-grid-footer"],["class","k-grid-footer-locked",3,"width",4,"ngIf"],["data-scrollable","",1,"k-grid-footer-wrap",3,"kendoGridResizableContainer","lockedWidth"],["footer",""],["role","presentation"],["kendoGridColGroup","",3,"columns","groups","detailTemplate"],["kendoGridFooter","",3,"logicalRowIndex","scrollable","groups","columns","lockedColumnsCount","detailTemplate"],[1,"k-grid-footer-locked"],["kendoGridFooter","",3,"scrollable","groups","columns","detailTemplate","logicalRowIndex"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex",4,"ngIf"],["kendoGridTableBody","","kendoDraggable","","kendoGridSelectionMarquee","",3,"groups","data","skip","columns","selectable","filterable","noRecordsTemplate","detailTemplate","showGroupFooters","trackBy","rowClass","enableDrag"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate",4,"ngIf"],["kendoGridLoading","",4,"ngIf"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate"],["kendoGridLoading",""],[3,"tabindex","template","pageSize","total","skip","options","pageChange"],["position","bottom",1,"k-toolbar","k-grid-toolbar","k-grid-toolbar-bottom"]]},template:function(e,i){1&e&&(_n(0,0),function(n,t){const e=ks();!function(n,t,e){const s=Ba().index,o=[];if(n.firstCreatePass&&null===n.data[t]){for(let r=0;r0){const i=n.data[e];Yae(n,t,Array.isArray(i)?i:i.update,Hf()-ZE-1,KE)}KE=0,ZE=0}(ks(),bt(),n+20)}(1),b(2),v("ngIf",i.showTopToolbar),b(1),v("ngIf",i.showTopPager),b(1),v("ngIf",i.showGroupPanel),b(1),fe("aria-rowcount",i.ariaRowCount)("aria-colcount",i.ariaColCount),b(2),v("ngIf",i.isScrollable),b(1),v("ngIf",!i.isScrollable),b(1),v("ngIf",i.showBottomPager),b(1),v("ngIf",i.showBottomToolbar))},directives:function(){return[Mb,pt,dee,UJ,PAe,gAe,Jc,BIe,vJ,wJ,yJ,$Ae,d2e,cee,_J]},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}),M([p(),T("design:type",Object)],n.prototype,"data",void 0),M([p(),T("design:type",Number)],n.prototype,"pageSize",void 0),M([p(),T("design:type",Number)],n.prototype,"height",void 0),M([p(),T("design:type",Number)],n.prototype,"rowHeight",void 0),M([p(),T("design:type",Number)],n.prototype,"detailRowHeight",void 0),M([p(),T("design:type",Number),T("design:paramtypes",[Number])],n.prototype,"skip",null),M([p(),T("design:type",String)],n.prototype,"scrollable",void 0),M([p(),T("design:type",Object)],n.prototype,"selectable",void 0),M([p(),T("design:type",Array),T("design:paramtypes",[Array])],n.prototype,"sort",null),M([p(),T("design:type",Function)],n.prototype,"trackBy",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Array),T("design:paramtypes",[Array])],n.prototype,"group",null),M([p(),T("design:type",Boolean)],n.prototype,"virtualColumns",void 0),M([p(),T("design:type",Object)],n.prototype,"filterable",void 0),M([p(),T("design:type",Object)],n.prototype,"sortable",void 0),M([p(),T("design:type",Object)],n.prototype,"pageable",void 0),M([p(),T("design:type",Object)],n.prototype,"groupable",void 0),M([p(),T("design:type",Boolean)],n.prototype,"navigable",void 0),M([p(),T("design:type",Boolean),T("design:paramtypes",[Boolean])],n.prototype,"navigatable",null),M([p(),T("design:type",Boolean)],n.prototype,"autoSize",void 0),M([p(),T("design:type",Function),T("design:paramtypes",[Function])],n.prototype,"rowClass",null),M([p(),T("design:type",Function),T("design:paramtypes",[Function])],n.prototype,"rowSticky",null),M([p(),T("design:type",Function),T("design:paramtypes",[Function])],n.prototype,"rowSelected",null),M([p(),T("design:type",Function),T("design:paramtypes",[Function])],n.prototype,"cellSelected",null),M([p(),T("design:type",Boolean)],n.prototype,"resizable",void 0),M([p(),T("design:type",Boolean)],n.prototype,"reorderable",void 0),M([p(),T("design:type",Boolean)],n.prototype,"loading",void 0),M([p(),T("design:type",Object)],n.prototype,"columnMenu",void 0),M([p(),T("design:type",Boolean)],n.prototype,"hideHeader",void 0),M([Q(),T("design:type",S)],n.prototype,"filterChange",void 0),M([Q(),T("design:type",S)],n.prototype,"pageChange",void 0),M([Q(),T("design:type",S)],n.prototype,"groupChange",void 0),M([Q(),T("design:type",S)],n.prototype,"sortChange",void 0),M([Q(),T("design:type",S)],n.prototype,"selectionChange",void 0),M([Q(),T("design:type",S)],n.prototype,"dataStateChange",void 0),M([Q(),T("design:type",S)],n.prototype,"groupExpand",void 0),M([Q(),T("design:type",S)],n.prototype,"groupCollapse",void 0),M([Q(),T("design:type",S)],n.prototype,"detailExpand",void 0),M([Q(),T("design:type",S)],n.prototype,"detailCollapse",void 0),M([Q(),T("design:type",S)],n.prototype,"edit",void 0),M([Q(),T("design:type",S)],n.prototype,"cancel",void 0),M([Q(),T("design:type",S)],n.prototype,"save",void 0),M([Q(),T("design:type",S)],n.prototype,"remove",void 0),M([Q(),T("design:type",S)],n.prototype,"add",void 0),M([Q(),T("design:type",S)],n.prototype,"cellClose",void 0),M([Q(),T("design:type",S)],n.prototype,"cellClick",void 0),M([Q(),T("design:type",S)],n.prototype,"pdfExport",void 0),M([Q(),T("design:type",S)],n.prototype,"excelExport",void 0),M([Q(),T("design:type",S)],n.prototype,"columnResize",void 0),M([Q(),T("design:type",S)],n.prototype,"columnReorder",void 0),M([Q(),T("design:type",S)],n.prototype,"columnVisibilityChange",void 0),M([Q(),T("design:type",S)],n.prototype,"columnLockedChange",void 0),M([Q(),T("design:type",S)],n.prototype,"columnStickyChange",void 0),M([Q(),T("design:type",S)],n.prototype,"scrollBottom",void 0),M([Q(),T("design:type",S)],n.prototype,"contentScroll",void 0),M([fi(bo),T("design:type",wt)],n.prototype,"columns",void 0),M([G("attr.dir"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"dir",null),M([G("class.k-widget"),G("class.k-grid"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([G("class.k-grid-lockedcolumns"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"lockedClasses",null),M([G("class.k-grid-virtual"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"virtualClasses",null),M([G("class.k-grid-no-scrollbar"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"noScrollbarClass",null),M([fi(pm),T("design:type",wt)],n.prototype,"detailTemplateChildren",void 0),M([fi(gw),T("design:type",wt)],n.prototype,"noRecordsTemplateChildren",void 0),M([fi(KF),T("design:type",wt)],n.prototype,"pagerTemplateChildren",void 0),M([fi(xz),T("design:type",wt)],n.prototype,"toolbarTemplateChildren",void 0),M([fi(cM),T("design:type",wt)],n.prototype,"columnMenuTemplates",void 0),M([at("lockedHeader",{static:!1}),T("design:type",Object)],n.prototype,"lockedHeader",void 0),M([at("header",{static:!1}),T("design:type",Object)],n.prototype,"header",void 0),M([lc("footer"),T("design:type",wt)],n.prototype,"footer",void 0),M([at("ariaRoot",{static:!0}),T("design:type",$)],n.prototype,"ariaRoot",void 0),M([p(),T("design:type",Function),T("design:paramtypes",[Function])],n.prototype,"isDetailExpanded",null),M([p(),T("design:type",Function),T("design:paramtypes",[Function])],n.prototype,"isGroupExpanded",null),n=M([T("design:paramtypes",[XF,mf,dw,$,pw,gf,fw,t_,_a,Js,i_,iJ,Ie,mw,ce,yw,Gu,s_,Be,eO,Br,Qs,bw,cw,J])],n),n})();class DGt{constructor(t=0,e,i){this.total=t,this.rowHeight=e,this.detailRowHeight=i,this.offsets=[],this.heights=[];let s=0;for(let o=0;othis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}isExpanded(t){return this.height(t)>this.rowHeight}index(t){if(t<0)return;const e=this.offsets.reduce((i,s,o)=>void 0!==i?i:s===t?o:s>t?o-1:void 0,void 0);return void 0===e?this.total-1:e}offset(t){return this.offsets[t]}totalHeight(){return this.heights.reduce((t,e)=>t+e,0)}updateRowHeight(t,e){this.total>0&&(this.heights[t]+=e,this.offsets=((n,t,e)=>[...n.slice(0,t+1),...n.slice(t+1).map(i=>i+e)])(this.offsets,t,e))}}class Tz{constructor(t){this.offset=t}}class rJ{constructor(t,e){this.skip=t,this.take=e}}class lAe{}class EGt{constructor(t){this.scrollObservable=t,this.firstLoaded=0}create(t,e,i,s){this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+i,this.take=i,this.total=s,this.lastScrollTop=0;const o=new Hs(new Tz(this.rowHeightService.offset(e)));return this.subscription=an.create(r=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(a=>this.onScroll(a,r))}).subscribe(r=>o.next(r)),o}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollTop:t,offsetHeight:e,scrollHeight:i,clientHeight:s},o){if(this.lastScrollTop===t)return;const r=this.lastScrollTop>=t;this.lastScrollTop=t;let a=this.rowHeightService.index(t),l=this.rowHeightService.offset(a);const c=this.rowHeightService.index(t+e);if(!r)if(c>=this.lastLoaded&&this.lastLoaded0&&(a-=d,l=this.rowHeightService.offset(a)),this.firstLoaded=a,o.next(new Tz(l));let u=this.firstLoaded+this.take;this.lastLoaded=Math.min(u,this.total),u=u>this.total?this.total-this.firstLoaded:this.take,o.next(new rJ(this.firstLoaded,this.take))}else i-s-t<2&&o.next(new lAe);if(r&&a{for(let i=0,s=0;idAe(n,t,e=>e.hasAttribute("data-kendo-grid-item-index")?1:0),hAe={},aJ=new ot("grid-scroll-service-factory");function RGt(n){return new EGt(n)}const pAe=n=>{const t=n.wheelDeltaY;return n.wheelDelta&&(void 0===t||t)?n.wheelDelta:n.detail&&n.axis===n.VERTICAL_AXIS?10*-n.detail:0},lJ=n=>n?n.nativeElement:null;let gAe=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d,u,h,f,m,C,k,D,E,O){this.changeNotification=s,this.suspendService=o,this.groupsService=r,this.ngZone=a,this.renderer=l,this.scrollSyncService=c,this.resizeService=d,this.editService=u,this.supportService=h,this.navigationService=f,this.localization=C,this.columnResizingService=k,this.changeDetector=D,this.pdfService=E,this.columnInfo=O,this.groups=[],this.skip=0,this.columns=new bz(()=>[]),this.selectable=!1,this.groupable=!1,this.trackBy=oJ,this.contentScroll=new S,this.pageChange=new S,this.scrollBottom=new S,this.columnsStartIdx=0,this.resizeSensors=new wt,this.dispatcher=new Z,this.containerScrollTop=0,this.scrollLeft=0,this.rtl=!1,this.scroller=e(this.dispatcher),this.subscriptions=i.changes.subscribe(z=>this.detailExpand(z)).add(m.requests.subscribe(z=>this.scrollTo(z)))}get hostClass(){return!0}get hostRole(){return"presentation"}get showFooter(){return this.groupable&&this.groupable.showFooter}get totalWidth(){if(this.virtualColumns&&this.columns.unlockedWidth)return this.columns.unlockedWidth}get lockedLeafColumns(){return this.columns.lockedLeafColumns}get nonLockedLeafColumns(){return this.columns.nonLockedLeafColumns}get nonLockedColumnsToRender(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedLeafColumns}get leafColumns(){return this.columns.leafColumnsToRender}get lockedWidth(){const e=32*this.groups.length;return um(this.lockedLeafColumns.toArray()).reduce((i,s)=>i+(s.width||0),e)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return NHt(um(this.nonLockedColumnsToRender.toArray()))}get isLocked(){return this.lockedLeafColumns.length>0}ngOnInit(){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(ii(this.columns.changes,this.resizeService.changes).subscribe(()=>{this.virtualColumns&&this.ngZone.run(()=>{this.updateViewportColumns(),this.changeDetector.markForCheck()})})),this.subscriptions.add(this.localization.changes.subscribe(({rtl:e})=>this.rtl=e))}ngOnChanges(e){e.skip&&e.skip.firstChange&&e.skip.currentValue>0&&this.handleInitialScrollToSkip(),Io("skip",e)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),Xo(["total","take"],e)&&this.init(),this.rebind=!1}ngDoCheck(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}ngAfterViewInit(){this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService()}ngAfterViewChecked(){const e=this.isLocked;e&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=e}syncRowsHeight(){this.lockedContainer&&ZIe(this.lockedTable.nativeElement,this.table.nativeElement)}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}init(){this.suspendService.scroll||(this.rowHeightService=new DGt(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),NF()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}lockedScroll(){if(!this.suspendService.scroll){const e=this.lockedContainer.nativeElement.scrollTop;e!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=e)}}lockedMousewheel(e){if(!e.ctrlKey){((n,t)=>{const e=pAe(n),i=t.scrollTop;0===i&&0{this.subscriptions.add(Hi(this.container.nativeElement,"scroll").pipe(xe(e=>e.target),dt(()=>!this.suspendService.scroll),lt(e=>{this.onContainerScroll(e),this.resetNavigationViewport(),this.virtualColumns&&this.handleColumnScroll();const i=this.navigationService.viewport||hAe,s=this.navigationService.columnViewport||hAe;this.contentScroll.emit({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,startRow:i.firstItemIndex,endRow:i.lastItemIndex,startColumn:s.firstItemIndex,endColumn:s.lastItemIndex})})).subscribe(this.dispatcher))}),this.scrollSyncService.registerEmitter(this.container.nativeElement,"body"))}createScroller(){this.cleanupScroller();const e=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total);this.skipScroll=!1,this.scrollerSubscription=e.pipe(dt(i=>i instanceof rJ),dt(()=>{const i=this.skipScroll;return this.skipScroll=!1,!i}),lt(()=>this.rebind=!0)).subscribe(i=>this.ngZone.run(()=>this.pageChange.emit(i))),this.scrollerSubscription.add(e.pipe(dt(i=>i instanceof Tz)).subscribe(this.scroll.bind(this))),this.scrollerSubscription.add(e.pipe(dt(i=>i instanceof lAe)).subscribe(()=>this.scrollBottom.emit()))}scroll({offset:e=0}){this.isVirtual&&[lJ(this.table),lJ(this.lockedTable)].filter(Rt).forEach(((n,t)=>e=>n.setStyle(e,"transform",`translateY(${t}px)`))(this.renderer,e)),this.resetNavigationViewport()}onContainerScroll({scrollTop:e}){this.containerScrollTop=e,this.lockedContainer&&(this.lockedContainer.nativeElement.scrollTop=e)}handleInitialScrollToSkip(){const i=this.changeNotification.changes.pipe(dt(()=>this.isVirtual&&this.skip>0&&this.total>0)).subscribe(s=>{this.scrollTo({row:this.skip}),i.unsubscribe()})}handleRowSync(){const e=()=>Rt(this.lockedContainer);return ii(this.changeNotification.changes,this.groupsService.changes.pipe(dt(e),ZB((()=>this.ngZone.onStable.asObservable().pipe(jn(1)))())),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe(dt(s=>"end"===s.type)),this.supportService.changes).pipe(lt(()=>this.resetNavigationViewport()),dt(e)).subscribe(()=>{const s=this.container.nativeElement.scrollTop,o=this.container.nativeElement.scrollLeft;this.syncRowsHeight(),this.syncContainerHeight(),this.lockedContainer.nativeElement.scrollTop=this.container.nativeElement.scrollTop=s,this.container.nativeElement.scrollLeft=o,this.resizeSensors.forEach(r=>r.acceptSize())})}handleRowNavigationLocked(){return this.navigationService.changes.pipe(dt(()=>Rt(this.lockedContainer)),my(10)).subscribe(e=>{if(this.lockedLeafColumns.length<=e.prevColIndex&&e.colIndex0?32:0)))}else if(0===i&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{const s=uAe(0,this.table.nativeElement.rows);if(s){const o=((n,t)=>dAe(n,t,e=>rw(e,cAe)?0:parseInt(e.getAttribute("colSpan"),10)||1))(i,s.cells);o&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(o))}}}resetNavigationViewport(){if(!this.container||!this.navigationService.enabled||!this.navigationService.needsViewport()||0===this.data.length)return;const{scrollTop:e,offsetHeight:i}=this.container.nativeElement,s=e+i,o=this.rowHeightService.index(e);let r=this.rowHeightService.index(s);const a=this.rowHeightService.offset(r);r>0&&a+this.rowHeight>s&&r--;let c=o,d=r;if(Rt(this.detailTemplate)){c*=2,d*=2,this.rowHeightService.offset(o)+this.rowHeights;this.rowHeightService.isExpanded(r)&&!m&&d++}this.navigationService.setViewport(c,d)}cleanupScroller(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}initResizeService(){this.resizeService.connect(ii(...this.resizeSensors.map(e=>e.resize)))}syncContainerHeight(){[lJ(this.lockedContainer)].filter(Rt).map(e=>{e.style.height="";let i=this.container.nativeElement.offsetHeight;return((n,t)=>this.table.nativeElement.offsetWidth>this.container.nativeElement.clientWidth)()&&(i-=this.supportService.scrollbarWidth),{el:e,height:i}}).forEach((n=>({el:t,height:e})=>n.setStyle(t,"height",`${e}px`))(this.renderer))}updateViewportColumns(e){const i=this.columns.nonLockedLeafColumns.toArray();let{startIdx:s,endIdx:o,offset:r}=e||this.calculateViewportColumns();const a=Math.max(0,s-1),l=Math.min(o+1,i.length-1);if(a=a;d--)r-=i[d].width;let c=i.slice(a,l+1);if(this.viewportColumnsWidth=c.reduce((d,u)=>d+u.width,0),a>0){const d=new bo;d.width=r,c.unshift(d)}this.viewportColumns=new wt,this.viewportColumns.reset(c),this.columnsStartIdx=a,this.columnsEndIdx=l,this.columnInfo.columnRangeChange.emit({start:a,end:l,offset:r}),e||this.updateColumnViewport(s,o)}handleColumnScroll(){const i=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==i){this.scrollLeft=i;const s=this.calculateViewportColumns();this.updateColumnViewport(s.startIdx,s.endIdx),(s.startIdx{this.ngZone.run(()=>{this.updateViewportColumns(s),this.changeDetector.markForCheck()})}))}}updateColumnViewport(e,i){const s=this.lockedLeafColumns.length,o=this.nonLockedLeafColumns.toArray(),r=s+e+(this.detailTemplate&&e>0?1:0);let a=s+i+(this.detailTemplate?1:0);for(let l=0;lo&&(a=u,d=c-(h.width||0)),c>=r){l=u;break}}return!l&&u>0&&(l=s.length-1),{startIdx:a,endIdx:l,offset:d}}viewportWidthChange(){return this.viewportColumns.toArray().reduce((i,s)=>i+s.width,0)!==this.viewportColumnsWidth}normalizeScrollLeft(e){return this.rtl?function(n,t,e){let i=n;return e<0?i=-n:e>0&&(i=t.scrollWidth-t.offsetWidth-n),i}(e,this.container.nativeElement,this.supportService.rtlScrollLeft):e}elementScrollLeft(e){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft}};return n.\u0275fac=function(e){return new(e||n)(g(aJ),g(t_),g(fw),g(ZF),g(gf),g(ce),g(Ie),g(yw),g(QF),g(_a),g(XF),g(Qs),g(cw),g(J),g(s_),g(Be),g(i_),g(Br))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-list"]],viewQuery:function(e,i){if(1&e&&(Ae(y4t,7),Ae(_4t,5),Ae(v4t,5),Ae(b4t,7),Ae(Kr,5)),2&e){let s;U(s=W())&&(i.container=s.first),U(s=W())&&(i.lockedContainer=s.first),U(s=W())&&(i.lockedTable=s.first),U(s=W())&&(i.table=s.first),U(s=W())&&(i.resizeSensors=s)}},hostVars:3,hostBindings:function(e,i){2&e&&(fe("role",i.hostRole),he("k-grid-container",i.hostClass))},inputs:{groups:"groups",skip:"skip",columns:"columns",selectable:"selectable",groupable:"groupable",trackBy:"trackBy",data:"data",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",virtualColumns:"virtualColumns",isVirtual:"isVirtual"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[we([{provide:aJ,useValue:RGt}]),st],decls:14,vars:33,consts:[["class","k-grid-content-locked","role","presentation",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"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["kendoGridLoading","",4,"ngIf"],["role","presentation",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"],["role","presentation",1,"k-width-container"],["kendoGridLoading",""]],template:function(e,i){1&e&&(A(0,x4t,10,30,"div",0),y(1,"div",1,2),y(3,"div",3),y(4,"table",4,5),P(6,"colgroup",6),P(7,"tbody",7),_(),A(8,w4t,1,0,"kendo-resize-sensor",8),_(),A(9,S4t,1,0,"kendo-resize-sensor",8),y(10,"div",9),P(11,"div"),_(),A(12,T4t,2,2,"div",10),_(),A(13,k4t,1,0,"div",11)),2&e&&(v("ngIf",i.isLocked),b(1),v("kendoGridResizableContainer",i.lockedLeafColumns.length)("lockedWidth",i.lockedWidth+1),b(3),yt("width",i.nonLockedWidth,"px"),v("virtualColumns",i.virtualColumns),b(2),v("groups",i.isLocked?si(32,LF):i.groups)("columns",i.nonLockedColumnsToRender)("detailTemplate",i.detailTemplate),b(1),v("skipGroupDecoration",i.isLocked)("data",i.data)("groups",i.groups)("showGroupFooters",i.showFooter)("columns",i.nonLockedColumnsToRender)("allColumns",i.nonLockedLeafColumns)("detailTemplate",i.detailTemplate)("noRecordsTemplate",i.noRecordsTemplate)("lockedColumnsCount",i.lockedLeafColumns.length)("totalColumnsCount",i.leafColumns.length)("skip",i.skip)("selectable",i.selectable)("trackBy",i.trackBy)("filterable",i.filterable)("rowClass",i.rowClass)("rowSticky",i.rowSticky)("virtualColumns",i.virtualColumns),b(1),v("ngIf",i.isLocked),b(1),v("ngIf",i.isLocked||i.virtualColumns),b(2),yt("height",i.totalHeight,"px"),b(1),v("ngIf",i.virtualColumns),b(1),v("ngIf",i.loading))},directives:function(){return[pt,vJ,wJ,yJ,cee,lr,Kr,_J]},encapsulation:2}),M([G("class.k-grid-container"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClass",null),M([G("attr.role"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"hostRole",null),M([p(),T("design:type",Array)],n.prototype,"data",void 0),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([p(),T("design:type",Number)],n.prototype,"total",void 0),M([p(),T("design:type",Number)],n.prototype,"rowHeight",void 0),M([p(),T("design:type",Number)],n.prototype,"stickyRowHeight",void 0),M([p(),T("design:type",Number)],n.prototype,"detailRowHeight",void 0),M([p(),T("design:type",Number)],n.prototype,"take",void 0),M([p(),T("design:type",Number)],n.prototype,"skip",void 0),M([p(),T("design:type",bz)],n.prototype,"columns",void 0),M([p(),T("design:type",pm)],n.prototype,"detailTemplate",void 0),M([p(),T("design:type",gw)],n.prototype,"noRecordsTemplate",void 0),M([p(),T("design:type",Object)],n.prototype,"selectable",void 0),M([p(),T("design:type",Object)],n.prototype,"groupable",void 0),M([p(),T("design:type",Object)],n.prototype,"filterable",void 0),M([p(),T("design:type",Function)],n.prototype,"rowClass",void 0),M([p(),T("design:type",Function)],n.prototype,"rowSticky",void 0),M([p(),T("design:type",Boolean)],n.prototype,"loading",void 0),M([p(),T("design:type",Function)],n.prototype,"trackBy",void 0),M([p(),T("design:type",Boolean)],n.prototype,"virtualColumns",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isVirtual",void 0),M([Q(),T("design:type",S)],n.prototype,"contentScroll",void 0),M([Q(),T("design:type",S)],n.prototype,"pageChange",void 0),M([Q(),T("design:type",S)],n.prototype,"scrollBottom",void 0),M([at("container",{static:!0}),T("design:type",$)],n.prototype,"container",void 0),M([at("lockedContainer",{static:!1}),T("design:type",$)],n.prototype,"lockedContainer",void 0),M([at("lockedTable",{static:!1}),T("design:type",$)],n.prototype,"lockedTable",void 0),M([at("table",{static:!0}),T("design:type",$)],n.prototype,"table",void 0),M([lc(Kr),T("design:type",wt)],n.prototype,"resizeSensors",void 0),n=M([qn(0,Rn(aJ)),T("design:paramtypes",[Object,t_,fw,ZF,gf,ce,Ie,yw,QF,_a,XF,Qs,cw,J,s_,Be,i_,Br])],n),n})(),fm=(()=>{let n=class extends XIe{constructor(e,i){super(e,i),this.grid=e}ngOnInit(){!1===this.grid.selectable&&(this.grid.selectable=!0),this.grid.selectionDirective=this}ngOnDestroy(){super.destroy()}};return n.\u0275fac=function(e){return new(e||n)(g(ao),g(Be))},n.\u0275dir=R({type:n,selectors:[["","kendoGridSelectBy",""]],features:[N]}),n=M([T("design:paramtypes",[ao,Be])],n),n})();let kz=(()=>{class n extends yl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,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",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"},features:[N]}),M([p(),T("design:type",String)],n.prototype,"groupPanelEmpty",void 0),M([p(),T("design:type",String)],n.prototype,"noRecords",void 0),M([p(),T("design:type",String)],n.prototype,"pagerLabel",void 0),M([p(),T("design:type",String)],n.prototype,"pagerFirstPage",void 0),M([p(),T("design:type",String)],n.prototype,"pagerLastPage",void 0),M([p(),T("design:type",String)],n.prototype,"pagerPreviousPage",void 0),M([p(),T("design:type",String)],n.prototype,"pagerNextPage",void 0),M([p(),T("design:type",String)],n.prototype,"pagerPage",void 0),M([p(),T("design:type",String)],n.prototype,"pagerItemsPerPage",void 0),M([p(),T("design:type",String)],n.prototype,"pagerOf",void 0),M([p(),T("design:type",String)],n.prototype,"pagerItems",void 0),M([p(),T("design:type",String)],n.prototype,"pagerPageNumberInputTitle",void 0),M([p(),T("design:type",String)],n.prototype,"filter",void 0),M([p(),T("design:type",String)],n.prototype,"filterInputLabel",void 0),M([p(),T("design:type",String)],n.prototype,"filterMenuTitle",void 0),M([p(),T("design:type",String)],n.prototype,"filterMenuOperatorsDropDownLabel",void 0),M([p(),T("design:type",String)],n.prototype,"filterMenuLogicDropDownLabel",void 0),M([p(),T("design:type",String)],n.prototype,"filterEqOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterNotEqOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterIsNullOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterIsNotNullOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterIsEmptyOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterIsNotEmptyOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterStartsWithOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterContainsOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterNotContainsOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterEndsWithOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterGteOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterGtOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterLteOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterLtOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterIsTrue",void 0),M([p(),T("design:type",String)],n.prototype,"filterIsFalse",void 0),M([p(),T("design:type",String)],n.prototype,"filterBooleanAll",void 0),M([p(),T("design:type",String)],n.prototype,"filterAfterOrEqualOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterAfterOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterBeforeOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterBeforeOrEqualOperator",void 0),M([p(),T("design:type",String)],n.prototype,"filterFilterButton",void 0),M([p(),T("design:type",String)],n.prototype,"filterClearButton",void 0),M([p(),T("design:type",String)],n.prototype,"filterAndLogic",void 0),M([p(),T("design:type",String)],n.prototype,"filterOrLogic",void 0),M([p(),T("design:type",String)],n.prototype,"loading",void 0),M([p(),T("design:type",String)],n.prototype,"columnMenu",void 0),M([p(),T("design:type",String)],n.prototype,"setColumnPosition",void 0),M([p(),T("design:type",String)],n.prototype,"columns",void 0),M([p(),T("design:type",String)],n.prototype,"lock",void 0),M([p(),T("design:type",String)],n.prototype,"unlock",void 0),M([p(),T("design:type",String)],n.prototype,"stick",void 0),M([p(),T("design:type",String)],n.prototype,"unstick",void 0),M([p(),T("design:type",String)],n.prototype,"sortable",void 0),M([p(),T("design:type",String)],n.prototype,"sortAscending",void 0),M([p(),T("design:type",String)],n.prototype,"sortDescending",void 0),M([p(),T("design:type",String)],n.prototype,"sortedAscending",void 0),M([p(),T("design:type",String)],n.prototype,"sortedDescending",void 0),M([p(),T("design:type",String)],n.prototype,"sortedDefault",void 0),M([p(),T("design:type",String)],n.prototype,"columnsApply",void 0),M([p(),T("design:type",String)],n.prototype,"columnsReset",void 0),M([p(),T("design:type",String)],n.prototype,"detailExpand",void 0),M([p(),T("design:type",String)],n.prototype,"detailCollapse",void 0),M([p(),T("design:type",String)],n.prototype,"filterDateToday",void 0),M([p(),T("design:type",String)],n.prototype,"filterDateToggle",void 0),M([p(),T("design:type",String)],n.prototype,"filterNumericDecrement",void 0),M([p(),T("design:type",String)],n.prototype,"filterNumericIncrement",void 0),M([p(),T("design:type",String)],n.prototype,"selectionCheckboxLabel",void 0),M([p(),T("design:type",String)],n.prototype,"selectAllCheckboxLabel",void 0),n})();var dJ;let Mb=dJ=class extends kz{constructor(t){super(),this.service=t}};var uJ;Mb.\u0275fac=function(t){return new(t||Mb)(g(J))},Mb.\u0275dir=R({type:Mb,selectors:[["","kendoGridLocalizedMessages",""]],features:[we([{provide:kz,useExisting:He(()=>dJ)}]),N]}),Mb=dJ=M([T("design:paramtypes",[J])],Mb);let Eb=uJ=class extends kz{constructor(t){super(),this.service=t}get override(){return!0}};Eb.\u0275fac=function(t){return new(t||Eb)(g(J))},Eb.\u0275cmp=K({type:Eb,selectors:[["kendo-grid-messages"]],features:[we([{provide:kz,useExisting:He(()=>uJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Eb=uJ=M([T("design:paramtypes",[J])],Eb);let hJ=(()=>{let n=class{constructor(e,i){this.localization=e,this.columnInfoService=i,this.columns=[],this.groups=[],this.filterRowClass=!0}addStickyStyles(e){return this.columnInfoService.stickyColumnsStyles(e)}filterLabel(e){const i=this.localization.get("filterInputLabel")||"";return Zl(i,"columnName",e.title||e.field)}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Br))},n.\u0275cmp=K({type:n,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-filter-row",i.filterRowClass)},inputs:{columns:"columns",groups:"groups",filter:"filter",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:D4t,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","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"ngStyle","column","filter","logicalRowIndex","logicalColIndex"]],template:function(e,i){1&e&&(A(0,M4t,1,2,"td",0),A(1,E4t,1,2,"td",1),A(2,I4t,1,8,"td",2)),2&e&&(v("ngForOf",i.groups),b(1),v("ngIf",null==i.detailTemplate?null:i.detailTemplate.templateRef),b(1),v("ngForOf",i.columns))},directives:function(){return[Wn,pt,pJ,yM,zo]},encapsulation:2}),M([p(),T("design:type",Array)],n.prototype,"columns",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([p(),T("design:type",pm)],n.prototype,"detailTemplate",void 0),M([p(),T("design:type",Number)],n.prototype,"logicalRowIndex",void 0),M([p(),T("design:type",Number)],n.prototype,"lockedColumnsCount",void 0),M([G("class.k-filter-row"),T("design:type",Boolean)],n.prototype,"filterRowClass",void 0),n=M([T("design:paramtypes",[J,Br])],n),n})();const tO=n=>{if(n)return Ly(n)?{filters:tO(n.filters),logic:n.logic}:Array.isArray(n)?n.map(tO):(n=>(n=>{const t={};if(Object.assign(t,n),n.constructor!==Object){const e=n.constructor.prototype;Object.getOwnPropertyNames(e).forEach(i=>{"constructor"!==i&&e.hasOwnProperty(i)&&(t[i]=n[i])})}return t})(n))(n)};let pJ=(()=>{let n=class{constructor(){this._templateContext={}}get filter(){return this._filter}set filter(e){this._filter=tO(e)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}get hasTemplate(){return Rt(this.column.filterCellTemplateRef)}get isFilterable(){return Rt(this.column)&&!ya(this.column.field)&&this.column.filterable}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["","kendoGridFilterCell",""]],inputs:{filter:"filter",column:"column"},attrs:A4t,decls:1,vars:1,consts:[[3,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&A(0,L4t,3,3,"ng-template",0),2&e&&v("ngIf",i.isFilterable)},directives:function(){return[pt,Dh,tg,AAe,zs]},encapsulation:2}),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object),T("design:paramtypes",[Object])],n.prototype,"filter",null),n})();const vAe=(n=>t=>Object.keys(n).reduce((e,i)=>(e[n[i]]=t.get(i),e),{}))({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterAfterOrEqualOperator:"after-eq",filterAfterOperator:"after",filterBeforeOrEqualOperator:"before-eq",filterBeforeOperator:"before"}),Dz=n=>n.map(t=>t.toJSON());let ss=(()=>{class n{constructor(e,i){this.operator=e,this.localization=i,this.messages=vAe(this.localization),this._text=this.messages[this.operator],this.localization.changes.subscribe(this.refreshText.bind(this))}get text(){return this._text}set text(e){this._text=ya(e)?this.messages[this.operator]:e}toJSON(){return{text:this.text,value:this.operator}}refreshText(){const e=this._text===this.messages[this.operator];this.messages=vAe(this.localization),e&&(this._text=this.messages[this.operator])}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,inputs:{text:"text"}}),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"text",null),n})();const hM=(n,t,e,i)=>Rt(t)&&Rt(t.filters)&&t.filters.length>n?t.filters[n]:((n,t,e)=>((t=t||{filters:[],logic:"and"}).filters[n]=e,e))(n,t,{field:e,operator:i}),pM=n=>[{text:n.get("filterAndLogic"),value:"and"},{text:n.get("filterOrLogic"),value:"or"}],fJ=n=>Rt(n.filters)?n.filters.reduce((t,e)=>t.concat(Ly(e)?fJ(e):[e]),[]):[],bAe=(n,t)=>{Rt(n)&&Rt(n.filters)&&(n.filters=n.filters.filter(e=>Ly(e)?(bAe(e,t),e.filters.length):e.field!==t))},nO=(n,t)=>fJ(n||{}).filter(e=>e.field===t),gJ=(n,t)=>(bAe(n,t),n),Mz=n=>t=>Object.keys(n).map(e=>({text:t.get(e),value:n[e]}));let fM=(()=>{class n{constructor(e){this.filterService=e,this.operatorList=new wt}get hostClasses(){return!0}get operators(){return this._operators.length?this._operators:this.defaultOperators}set operators(e){this._operators=e}ngAfterContentInit(){this.operationListSubscription=hz(this.operatorList).pipe(xe(e=>e.toArray()),xe(Dz)).subscribe(e=>{this.operators=e})}ngOnDestroy(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}filterByField(e){return((n,t)=>{let[e]=nO(n,t);return e})(this.filter,e)}filtersByField(e){return nO(this.filter,e)}removeFilter(e){return gJ(this.filter,e)}updateFilter(e){const i=this.filter||{filters:[],logic:"and"};let[s]=fJ(i).filter(o=>o.field===e.field);return Rt(s)?Object.assign(s,e):i.filters.push(e),i}applyFilter(e){this.filterService.filter(e)}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,contentQueries:function(e,i,s){if(1&e&&Ce(s,ss,4),2&e){let o;U(o=W())&&(i.operatorList=o)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-filtercell",i.hostClasses)}}),M([G("class.k-filtercell"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([fi(ss),T("design:type",wt)],n.prototype,"operatorList",void 0),n})();const CAe=Mz({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let xAe=(()=>{class n extends fM{constructor(e,i){super(e),this.localization=i,this.operator="eq",this.step=1,this.spinners=!0,this.defaultOperators=CAe(this.localization)}set format(e){this._format=e}get format(){return ya(this._format)?this.columnFormat:this._format}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!ya(this.column.format)?GQ(this.column.format):"n2"}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=CAe(this.localization),this.operatorList.length&&(this.operators=Dz(this.operatorList.toArray()))}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,inputs:{operator:"operator",step:"step",spinners:"spinners",format:"format",column:"column",filter:"filter",min:"min",max:"max",decimals:"decimals"},features:[N]}),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",String)],n.prototype,"operator",void 0),M([p(),T("design:type",Number)],n.prototype,"step",void 0),M([p(),T("design:type",Number)],n.prototype,"min",void 0),M([p(),T("design:type",Number)],n.prototype,"max",void 0),M([p(),T("design:type",Boolean)],n.prototype,"spinners",void 0),M([p(),T("design:type",Number)],n.prototype,"decimals",void 0),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"format",null),n})(),Ez=(()=>{let n=class extends xAe{constructor(e,i){super(e,i),this.localization=i,this.filterDelay=500,this.showOperators=!0}messageFor(e){return this.localization.get(e)}get columnLabel(){const e=this.localization.get("filterInputLabel")||"";return Zl(e,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(e){return new(e||n)(g(Js),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[N],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(e,i){1&e&&(y(0,"kendo-grid-filter-wrapper-cell",0),y(1,"kendo-numerictextbox",1),P(2,"kendo-numerictextbox-messages",2),_(),_()),2&e&&(v("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("showOperators",i.showOperators),b(1),v("columnLabel",i.columnLabel)("filterDelay",i.filterDelay)("autoCorrect",!0)("value",null==i.currentFilter?null:i.currentFilter.value)("format",i.format)("decimals",i.decimals)("spinners",i.spinners)("min",i.min)("max",i.max)("step",i.step),b(1),v("increment",i.messageFor("filterNumericIncrement"))("decrement",i.messageFor("filterNumericDecrement")))},directives:function(){return[gM,Ki,Mc,Zh,Zv]},encapsulation:2}),M([p(),T("design:type",Number)],n.prototype,"filterDelay",void 0),M([p(),T("design:type",Boolean)],n.prototype,"showOperators",void 0),n=M([T("design:paramtypes",[Js,J])],n),n})(),Zh=(()=>{let n=class{constructor(e,i,s,o){this.element=s,this.renderer=o,this.change=new S,this.composing=!1,this.filterDelay=500,this.changeRequests=new Z,this.accessor=e[0],i.runOutsideAngular(()=>{const r=o.listen(s.nativeElement,"compositionstart",()=>this.composing=!0),a=o.listen(s.nativeElement,"compositionend",()=>this.composing=!1);this.unsubscribeEvents=()=>{r(),a()}})}set value(e){this.accessor.writeValue(e)}set disabled(e){this.accessor.setDisabledState(e)}ngAfterViewInit(){this.addAriaAttributes(),this.accessor.registerOnChange(e=>this.filterDelay>0?this.changeRequests.next(e):this.change.emit(e)),this.subscribeChanges()}ngOnChanges(e){Io("filterDelay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.unsubscribeChanges(),this.unsubscribeEvents()}subscribeChanges(){this.changeRequestsSubscription=this.changeRequests.pipe(cg(this.filterDelay),dt(()=>!this.composing)).subscribe(e=>this.change.emit(e))}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}addAriaAttributes(){const e=this.columnLabel;if(this.kendoInput&&this.kendoInput.focusableId&&Ft()){const i=this.element.nativeElement.querySelector(`#${this.kendoInput.focusableId}`);this.renderer.setAttribute(i,"aria-label",e)}else this.renderer.setAttribute(this.element.nativeElement,"aria-label",e)}};return n.\u0275fac=function(e){return new(e||n)(g(es,2),g(ce),g($),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","kendoFilterInput",""]],contentQueries:function(e,i,s){if(1&e&&Ce(s,Ds,7),2&e){let o;U(o=W())&&(i.kendoInput=o.first)}},inputs:{filterDelay:"filterDelay",value:"value",columnLabel:"columnLabel"},features:[st]}),M([ct(Ds,{static:!0}),T("design:type",Object)],n.prototype,"kendoInput",void 0),M([p(),T("design:type",Number)],n.prototype,"filterDelay",void 0),M([p(),T("design:type",String)],n.prototype,"columnLabel",void 0),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"value",null),n=M([qn(0,sT()),qn(0,Rn(es)),T("design:paramtypes",[Array,ce,$,Ie])],n),n})();const qGt=new Set(["isnull","isnotnull","isempty","isnotempty"]),Iz=n=>qGt.has(n);let wAe=(()=>{class n extends fM{constructor(e){super(e),this.operators=[]}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){const e=this.currentFilter;return this._operator||(this._operator=e?e.operator:this.defaultOperator),this._operator}set currentOperator(e){this._operator=e;const i=Iz(e);this.filterInputDisabled=i,i?this.applyNoValueFilter(e):!VQ(e)&&Rt(this.currentFilter)&&this.onChange(this.currentFilter.value)}get defaultOperator(){return ya(this._defaultOperator)?this.operators&&this.operators.length?this.operators[0].value:"eq":this._defaultOperator}set defaultOperator(e){this._defaultOperator=e}set filterInputDisabled(e){!this.input||(this.input.disabled=e)}ngAfterContentInit(){Rt(this.input)&&(this.changeSubscription=this.input.change.subscribe(this.onChange.bind(this)),this.filterInputDisabled=Iz(this.currentOperator))}ngOnDestroy(){super.ngOnDestroy(),this.changeSubscription&&this.changeSubscription.unsubscribe()}onChange(e){(!ya(e)||this.filterByField(this.column.field))&&this.filterChange(ya(e)?this.removeFilter(this.column.field):this.updateFilter({field:this.column.field,operator:this.currentOperator,value:e}))}onClear(){this.onChange(null),this.filterInputDisabled=Iz(this.defaultOperator)}applyNoValueFilter(e){this.filterChange(this.updateFilter({field:this.column.field,operator:e,value:null}))}ngOnChanges(e){Io("filter",e,!1)&&(this._operator=null,this.filterInputDisabled=Iz(this.currentOperator))}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,contentQueries:function(e,i,s){if(1&e&&Ce(s,Zh,5),2&e){let o;U(o=W())&&(i.input=o.first)}},inputs:{operators:"operators",defaultOperator:"defaultOperator",column:"column",filter:"filter"},features:[N,st]}),M([p(),T("design:type",Array)],n.prototype,"operators",void 0),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([ct(Zh,{static:!1}),T("design:type",Zh)],n.prototype,"input",void 0),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"defaultOperator",null),n})();const XGt=["isnull","isnotnull","isempty","isnotempty"];let gM=(()=>{let n=class extends wAe{constructor(e){super(e),this.showOperators=!0}get hostClasses(){return!0}get overrideBaseClasses(){return!1}get showButton(){const e=this.currentFilter;return Rt(e)&&(!ya(e.value)||XGt.indexOf(String(e.operator))>=0)}filterChange(e){this.applyFilter(e)}};return n.\u0275fac=function(e){return new(e||n)(g(Js))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(e,i){2&e&&he("k-filtercell-wrapper",i.hostClasses)("k-filtercell",i.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[N],ngContentSelectors:BQ,decls:2,vars:4,consts:[[3,"showOperators","operators","showButton","value","clear","valueChange"]],template:function(e,i){1&e&&(Xt(),mt(0),y(1,"kendo-grid-filter-cell-operators",0),se("clear",function(){return i.onClear()})("valueChange",function(o){return i.currentOperator=o}),_()),2&e&&(b(1),v("showOperators",i.showOperators)("operators",i.operators)("showButton",i.showButton)("value",i.currentOperator))},directives:function(){return[mJ]},encapsulation:2}),M([G("class.k-filtercell-wrapper"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([G("class.k-filtercell"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"overrideBaseClasses",null),M([p(),T("design:type",Boolean)],n.prototype,"showOperators",void 0),n=M([T("design:paramtypes",[Js])],n),n})();const YGt=Mz({filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let SAe=(()=>{class n extends fM{constructor(e,i){super(e),this.localization=i,this.operator="contains"}get currentFilter(){return this.filterByField((this.column||{}).field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=YGt(this.localization),this.operatorList.length&&(this.operators=Dz(this.operatorList.toArray()))}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,inputs:{operator:"operator",column:"column",filter:"filter"},features:[N]}),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",String)],n.prototype,"operator",void 0),n})(),mM=(()=>{let n=class extends SAe{constructor(e,i){super(e,i),this.filterDelay=500,this.showOperators=!0}get columnLabel(){const e=this.localization.get("filterInputLabel")||"";return Zl(e,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(e){return new(e||n)(g(Js),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[N],decls:2,vars:8,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",1,"k-textbox",3,"columnLabel","filterDelay","ngModel"]],template:function(e,i){1&e&&(y(0,"kendo-grid-filter-wrapper-cell",0),P(1,"input",1),_()),2&e&&(v("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("showOperators",i.showOperators),b(1),v("columnLabel",i.columnLabel)("filterDelay",i.filterDelay)("ngModel",null==i.currentFilter?null:i.currentFilter.value))},directives:[gM,pg,Mc,Zh,Xc,zp],encapsulation:2}),M([p(),T("design:type",Number)],n.prototype,"filterDelay",void 0),M([p(),T("design:type",Boolean)],n.prototype,"showOperators",void 0),n=M([T("design:paramtypes",[Js,J])],n),n})(),mJ=(()=>{let n=class{constructor(e){this.localization=e,this.clearText="Clear",this.operators=[],this.showOperators=!0,this.valueChange=new S,this.clear=new S}get hostClasses(){return!0}onChange(e){this.valueChange.emit(e)}clearClick(){return this.clear.emit(),!1}clearKeydown(e){(e.keyCode===_e.Enter||e.keyCode===_e.Space)&&this.clear.emit()}dropdownKeydown(e){e.defaultPrevented||e.keyCode===_e.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),e.preventDefault())}ngOnInit(){this.localization.changes.subscribe(()=>this.clearText=this.localization.get("filterClearButton"))}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(e,i){if(1&e&&Ae(N4t,5),2&e){let s;U(s=W())&&(i.dropdown=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-filtercell-operator",i.hostClasses)},inputs:{operators:"operators",showOperators:"showOperators",showButton:"showButton",value:"value"},outputs:{valueChange:"valueChange",clear:"clear"},decls:3,vars:5,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","",1,"k-button","k-button-icon",3,"ngClass","title","click","keydown"],[1,"k-icon","k-i-filter-clear"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown"],["dropdown",""]],template:function(e,i){1&e&&(A(0,B4t,2,5,"kendo-dropdownlist",0),y(1,"button",1),se("click",function(){return i.clearClick()})("keydown",function(o){return i.clearKeydown(o)}),P(2,"span",2),_()),2&e&&(v("ngIf",i.showOperators),b(1),v("ngClass",Yt(3,V4t,i.showButton))("title",i.clearText))},directives:[pt,Mc,Un,bn],encapsulation:2}),M([G("class.k-filtercell-operator"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([at("dropdown",{static:!1}),T("design:type",bn)],n.prototype,"dropdown",void 0),M([p(),T("design:type",Array)],n.prototype,"operators",void 0),M([p(),T("design:type",Boolean)],n.prototype,"showButton",void 0),M([p(),T("design:type",Boolean)],n.prototype,"showOperators",void 0),M([p(),T("design:type",String)],n.prototype,"value",void 0),M([Q(),T("design:type",S)],n.prototype,"valueChange",void 0),M([Q(),T("design:type",S)],n.prototype,"clear",void 0),n=M([T("design:paramtypes",[J])],n),n})();const KGt=Mz({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let TAe=(()=>{let n=class extends fM{constructor(e,i,s){super(e),this.localization=s,this.showOperators=!0,this.defaultOperators=KGt(this.localization),this.column=i}set valueField(e){this._valueField=e}get valueField(){return this._valueField?this._valueField:this.column.field}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:"contains"}};return n.\u0275fac=function(e){return new(e||n)(g(Js),g(oi),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",valueField:"valueField",filter:"filter",data:"data"},features:[N],decls:2,vars:7,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","valueField","value"]],template:function(e,i){1&e&&(y(0,"kendo-grid-filter-wrapper-cell",0),P(1,"kendo-autocomplete",1),_()),2&e&&(v("column",i.column)("filter",i.filter)("operators",i.operators)("showOperators",i.showOperators),b(1),v("data",i.data)("valueField",i.valueField)("value",null==i.currentFilter?null:i.currentFilter.value))},directives:[gM,mi,Zh],encapsulation:2}),M([p(),T("design:type",Boolean)],n.prototype,"showOperators",void 0),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Array)],n.prototype,"data",void 0),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"valueField",null),n=M([T("design:paramtypes",[Js,oi,J])],n),n})(),kAe=(()=>{class n extends fM{constructor(e,i){super(e),this.localization=i,this.operator="eq",this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}get hostClasses(){return!0}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,hostVars:2,hostBindings:function(e,i){2&e&&he("k-filtercell-boolean",i.hostClasses)},inputs:{column:"column",filter:"filter"},features:[N]}),M([G("class.k-filtercell-boolean"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),n})(),Az=(()=>{let n=class extends kAe{constructor(e,i,s){super(e,i),this.cd=s}localizationChange(){super.localizationChange(),this.cd.markForCheck()}get columnLabel(){const e=this.localization.get("filterInputLabel")||"";return Zl(e,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(e){return new(e||n)(g(Js),g(J),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-boolean-filter-cell"]],features:[N],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(e,i){1&e&&(y(0,"kendo-grid-filter-wrapper-cell",0),P(1,"kendo-dropdownlist",1),_()),2&e&&(v("column",i.column)("filter",i.filter)("showOperators",!1)("defaultOperator",i.operator),b(1),v("columnLabel",i.columnLabel)("defaultItem",i.defaultItem)("data",i.items)("popupSettings",si(10,xIe))("valuePrimitive",!0)("value",null==i.currentFilter?null:i.currentFilter.value))},directives:[gM,bn,Zh,Mc],encapsulation:2}),n=M([T("design:paramtypes",[Js,J,Be])],n),n})();const DAe=Mz({filterEqOperator:"eq",filterNotEqOperator:"neq",filterAfterOrEqualOperator:"gte",filterAfterOperator:"gt",filterBeforeOrEqualOperator:"lte",filterBeforeOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let MAe=(()=>{class n extends fM{constructor(e,i){super(e),this.localization=i,this.operator="gte",this.activeView="month",this.bottomView="month",this.topView="century",this.weekNumber=!1,this.defaultOperators=DAe(this.localization)}get currentFilter(){return this.filterByField(this.column.field)}set format(e){this._format=e}get format(){return ya(this._format)?this.columnFormat:this._format}get columnFormat(){return this.column&&!ya(this.column.format)?GQ(this.column.format):"d"}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=DAe(this.localization),this.operatorList.length&&(this.operators=Dz(this.operatorList.toArray()))}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,inputs:{operator:"operator",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",format:"format",column:"column",filter:"filter",min:"min",max:"max",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder"},features:[N]}),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",String)],n.prototype,"operator",void 0),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"format",null),M([p(),T("design:type",Date)],n.prototype,"min",void 0),M([p(),T("design:type",Date)],n.prototype,"max",void 0),M([p(),T("design:type",Object)],n.prototype,"formatPlaceholder",void 0),M([p(),T("design:type",String)],n.prototype,"placeholder",void 0),M([p(),T("design:type",String)],n.prototype,"activeView",void 0),M([p(),T("design:type",String)],n.prototype,"bottomView",void 0),M([p(),T("design:type",String)],n.prototype,"topView",void 0),M([p(),T("design:type",Boolean)],n.prototype,"weekNumber",void 0),n})(),Fz=(()=>{let n=class extends MAe{constructor(e,i){super(e,i),this.localization=i,this.showOperators=!0}messageFor(e){return this.localization.get(e)}get columnLabel(){const e=this.localization.get("filterInputLabel")||"";return Zl(e,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(e){return new(e||n)(g(Js),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[N],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(e,i){1&e&&(y(0,"kendo-grid-filter-wrapper-cell",0),y(1,"kendo-datepicker",1),P(2,"kendo-datepicker-messages",2),_(),_()),2&e&&(v("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("showOperators",i.showOperators),b(1),v("columnLabel",i.columnLabel)("value",null==i.currentFilter?null:i.currentFilter.value)("format",i.format)("formatPlaceholder",i.formatPlaceholder)("placeholder",i.placeholder)("activeView",i.activeView)("bottomView",i.bottomView)("topView",i.topView)("min",i.min)("max",i.max)("weekNumber",i.weekNumber),b(1),v("toggle",i.messageFor("filterDateToggle"))("today",i.messageFor("filterDateToday")))},directives:[gM,Dn,Zh,Mc,cb],encapsulation:2}),M([p(),T("design:type",Boolean)],n.prototype,"showOperators",void 0),n=M([T("design:paramtypes",[Js,J])],n),n})(),yJ=(()=>{let n=class{constructor(){this.columns=[],this.groups=[]}get columnsToRender(){return n_(this.columns)}trackBy(e,i){return e}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate"},attrs:z4t,decls:1,vars:1,consts:[[3,"ngIf"],[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(e,i){1&e&&A(0,$4t,3,4,"ng-template",0),2&e&&v("ngIf",!0)},directives:[pt,Wn],encapsulation:2}),M([p(),T("design:type",Array)],n.prototype,"columns",void 0),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([p(),T("design:type",pm)],n.prototype,"detailTemplate",void 0),n})(),_J=(()=>{let n=class{constructor(e){this.localization=e,this.hostClass=!0}get loadingText(){return this.localization.get("loading")}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-loading-mask",i.hostClass)},attrs:U4t,decls:4,vars:1,consts:[[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"]],template:function(e,i){1&e&&(y(0,"span",0),H(1),_(),P(2,"div",1),P(3,"div",2)),2&e&&(b(1),un(i.loadingText))},encapsulation:2}),M([G("class.k-loading-mask"),T("design:type",Boolean)],n.prototype,"hostClass",void 0),n=M([T("design:paramtypes",[J])],n),n})(),vJ=(()=>{let n=class{constructor(e,i,s,o){this.el=e,this.renderer=i,this.resizeService=s,this.grid=o,this.enabled=!1}set lockedWidth(e){this._lockedWidth=e,this.enabled&&(this.attachResize(),this.resize())}set kendoGridResizableContainer(e){const i=e!==this.enabled;this.enabled=e,i&&(this.attachResize(),this.resize())}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}attachResize(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}resize(){if(this.grid&&this.grid.wrapper){const i=Math.max(this.grid.wrapper.nativeElement.clientWidth-this._lockedWidth,0);this.renderer.setStyle(this.el.nativeElement,"width",this.enabled&&i>0?i+"px":"")}}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(QF),g(ao,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),M([p("lockedWidth"),T("design:type",Number),T("design:paramtypes",[Number])],n.prototype,"lockedWidth",null),M([p(),T("design:type",Boolean),T("design:paramtypes",[Boolean])],n.prototype,"kendoGridResizableContainer",null),n=M([qn(3,gt()),T("design:paramtypes",[$,Ie,QF,ao])],n),n})(),iO=(()=>{let n=class{constructor(e){this.viewContainerRef=e}set templateContext(e){this.removeView(),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))}ngOnDestroy(){this.removeView()}removeView(){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0)}};return n.\u0275fac=function(e){return new(e||n)(g(Gt))},n.\u0275dir=R({type:n,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),M([p(),T("design:type",Object),T("design:paramtypes",[Object])],n.prototype,"templateContext",null),n=M([T("design:paramtypes",[Gt])],n),n})(),Ib=(()=>{let n=class{constructor(e){this.root=e,this.active=!0,this.children=[],this.root.registerGroup(this)}get focusableChildren(){return this.children.filter(e=>e.canFocus())}get isActive(){return this.active}ngOnDestroy(){this.root.unregisterGroup(this)}registerElement(e){this.unregisterElement(e),this.children.push(e)}unregisterElement(e){this.children=this.children.filter(i=>i!==e)}isNavigable(){const e=this.focusableChildren;return 1===e.length&&e[0].isNavigable()}canFocus(){return this.focusableChildren.length>0}focus(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}activate(){this.toggleState(!0)}deactivate(){this.toggleState(!1)}hasFocus(){return this.children.reduce((e,i)=>e||i.hasFocus(),!1)}toggleState(e){this.active!==e&&(this.active=e,this.children.forEach(i=>i.toggle(e)))}};return n.\u0275fac=function(e){return new(e||n)(V(pf))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[pf])],n),n})(),ZGt=0,yM=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c){this.focusGroup=e,this.element=i,this.columnInfoService=s,this.idService=o,this.navigationService=r,this.renderer=a,this.zone=l,this.cellContext=c,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=ZGt++}get id(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}get ariaColIndex(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}ngOnInit(){!this.navigationService.enabled||(this.navigationChange=this.navigationService.changes.subscribe(e=>this.onNavigationChange(e)))}ngDoCheck(){!this.navigationService.enabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}ngOnChanges(e){if(!this.navigationService.enabled)return;const i=Object.keys(e);if(1===i.length&&"groupItem"===i[0]||-1===this.logicalColIndex)return;const s=e.logicalColIndex,o=e.logicalRowIndex,r=s&&!s.isFirstChange()?s.previousValue:this.logicalColIndex,a=o&&!o.isFirstChange()?o.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(r,a,this),this.registerChanges(),this.updateElement()}ngOnDestroy(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}onNavigationChange(e){(this.logicalColIndex===e.colIndex&&this.logicalRowIndex===e.rowIndex||this.logicalColIndex===e.prevColIndex&&this.logicalRowIndex===e.prevRowIndex)&&this.updateElement()}updateElement(){const e=this.element.nativeElement;this.renderer.setAttribute(e,"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(()=>this.isFocused()&&e.focus()),this.renderer.addClass(e,"k-state-focused")),this.headerLabelText&&e.setAttribute("aria-label","")):(this.renderer.removeClass(e,"k-state-focused"),this.headerLabelText&&e.setAttribute("aria-label",this.headerLabelText))}microtask(e){this.zone.runOutsideAngular(()=>Promise.resolve(null).then(e))}registerChanges(){this.logicalSlaveCell||this.navigationService.registerCell(this)}registerNoChanges(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}isFocusable(){return this.navigationService.isCellFocusable(this)}isFocused(){return this.navigationService.isCellFocused(this)}};return n.\u0275fac=function(e){return new(e||n)(g(Ib),g($),g(Br),g(r_),g(Qs),g(Ie),g(ce),g(Jl,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(e,i){2&e&&fe("id",i.id)("aria-colindex",i.ariaColIndex)},inputs:{logicalSlaveCell:"logicalSlaveCell",colSpan:"colSpan",rowSpan:"rowSpan",dataRowIndex:"dataRowIndex",detailExpandCell:"detailExpandCell",logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",colIndex:"colIndex",groupItem:"groupItem",dataItem:"dataItem",headerLabelText:"headerLabelText"},features:[we([{provide:Ib,deps:[pf],useClass:Ib}]),st]}),M([p(),T("design:type",Number)],n.prototype,"logicalColIndex",void 0),M([p(),T("design:type",Number)],n.prototype,"logicalRowIndex",void 0),M([p(),T("design:type",Boolean)],n.prototype,"logicalSlaveCell",void 0),M([p(),T("design:type",Number)],n.prototype,"colIndex",void 0),M([p(),T("design:type",Number)],n.prototype,"colSpan",void 0),M([p(),T("design:type",Number)],n.prototype,"rowSpan",void 0),M([p(),T("design:type",Object)],n.prototype,"groupItem",void 0),M([p(),T("design:type",Number)],n.prototype,"dataRowIndex",void 0),M([p(),T("design:type",Object)],n.prototype,"dataItem",void 0),M([p(),T("design:type",Boolean)],n.prototype,"detailExpandCell",void 0),M([p(),T("design:type",String)],n.prototype,"headerLabelText",void 0),M([G("attr.id"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"id",null),M([G("attr.aria-colindex"),T("design:type",Number),T("design:paramtypes",[])],n.prototype,"ariaColIndex",null),n=M([qn(7,gt()),qn(7,Rn(Jl)),T("design:paramtypes",[Ib,$,Br,r_,Qs,Ie,ce,Object])],n),n})(),JGt=0,Oz=(()=>{let n=class{constructor(e,i){this.idService=e,this.navigation=i,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=JGt++}get hostRole(){return this.logicalSlaveRow?"presentation":"row"}get ariaRowIndex(){return this.logicalRowIndex+1}get ariaOwns(){if(!this.navigation.enabled||this.logicalSlaveRow||0===this.logicalSlaveCellsCount)return;const e=[],i=this.logicalCellsCount+this.logicalSlaveCellsCount;for(let s=this.logicalCellsCount;s{let n=class{constructor(e){this.intlService=e}transform(e,i,s){if(!ya(i)){const o=pa(i)(e);return ya(s)?o:this.formatValue(s,o)}return e}formatValue(e,i){const s=this.intlService;return HQ(e)&&e.match(tjt)?s.format(e,i):s.toString(i,e)}};return n.\u0275fac=function(e){return new(e||n)(g(kn,16))},n.\u0275pipe=zl({name:"valueOf",type:n,pure:!1}),n=M([T("design:paramtypes",[kn])],n),n})();const njt=({columns:n})=>Math.max(1,(n=>n.filter(t=>Hu(t.resizable)&&t.isVisible))(n).length),EAe=n=>t=>t.querySelector(n),CJ=(n,t="td")=>e=>e.querySelectorAll(`${t}:not(.k-group-cell):not(.k-hierarchy-cell)`)[n],Rz=n=>n.offsetWidth,xJ=(...n)=>t=>n.reduce((e,i)=>e?i(e):0,t);let wJ=(()=>{let n=class{constructor(e,i,s,o,r){this.element=e,this.renderer=i,this.service=s,this.zone=o,this.cdr=r,this.locked=!1,this.firstResize=!1}get minWidth(){return this.firstResize?0:null}ngOnInit(){const e=this.service.changes.pipe(dt(i=>this.locked===i.locked));this.subscription=e.pipe(dt(i=>"start"===i.type),lt(this.initState.bind(this)),xe(njt),ls(i=>e.pipe(dt(s=>"resizeTable"===s.type),xe(s=>s.delta),function(n,t=null){return function(i){return i.lift(new PCt(n,t))}}(i)))).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}initState(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=Rz(this.element.nativeElement))}resize(e){if(!this.virtualColumns||this.locked){const i=e.reduce((o,r)=>o+r,0);this.renderer.setStyle(this.element.nativeElement,"width",this.originalWidth+i+"px")}this.cdr.detectChanges()}autoFitObservable(e){return an.create(i=>{this.zone.runOutsideAngular(()=>{this.renderer.addClass(this.element.nativeElement,"k-autofitting"),this.cdr.detectChanges();const s=e.map(this.measureColumn.bind(this));this.renderer.removeClass(this.element.nativeElement,"k-autofitting"),i.next(s)})})}measureColumn(e){const i=this.element.nativeElement,s=xJ((n=>t=>t.querySelectorAll("thead>tr")[n])(e.level),CJ(e.headerIndex,"th"),Rz)(i);let o=0;(!e.isParentSpan||e.isParentSpan&&e.isLastInSpan)&&(o=xJ(EAe("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),CJ(e.index),Rz)(i));const r=xJ(EAe("tfoot>tr"),CJ(e.index),Rz)(i);return Math.max(s,o,r)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(s_),g(ce),g(Be))},n.\u0275dir=R({type:n,selectors:[["table"]],hostVars:2,hostBindings:function(e,i){2&e&&yt("min-width",i.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),M([p(),T("design:type",Boolean)],n.prototype,"locked",void 0),M([p(),T("design:type",Boolean)],n.prototype,"virtualColumns",void 0),M([G("style.min-width"),T("design:type",Number),T("design:paramtypes",[])],n.prototype,"minWidth",null),n=M([T("design:paramtypes",[$,Ie,s_,ce,Be])],n),n})(),a_=(()=>{let n=class{static exports(){return[oi,$u,hm,$F,pm,Mc]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut],XA,ha]}),n})();var SJ;let Cw=SJ=class extends ss{constructor(t){super("contains",t)}};var TJ;Cw.\u0275fac=function(t){return new(t||Cw)(g(J))},Cw.\u0275cmp=K({type:Cw,selectors:[["kendo-filter-contains-operator"]],features:[we([{provide:ss,useExisting:He(()=>SJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Cw=SJ=M([T("design:paramtypes",[J])],Cw);let xw=TJ=class extends ss{constructor(t){super("doesnotcontain",t)}};var kJ;xw.\u0275fac=function(t){return new(t||xw)(g(J))},xw.\u0275cmp=K({type:xw,selectors:[["kendo-filter-not-contains-operator"]],features:[we([{provide:ss,useExisting:He(()=>TJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),xw=TJ=M([T("design:paramtypes",[J])],xw);let ww=kJ=class extends ss{constructor(t){super("endswith",t)}};var DJ;ww.\u0275fac=function(t){return new(t||ww)(g(J))},ww.\u0275cmp=K({type:ww,selectors:[["kendo-filter-endswith-operator"]],features:[we([{provide:ss,useExisting:He(()=>kJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),ww=kJ=M([T("design:paramtypes",[J])],ww);let Sw=DJ=class extends ss{constructor(t){super("eq",t)}};var MJ;Sw.\u0275fac=function(t){return new(t||Sw)(g(J))},Sw.\u0275cmp=K({type:Sw,selectors:[["kendo-filter-eq-operator"]],features:[we([{provide:ss,useExisting:He(()=>DJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Sw=DJ=M([T("design:paramtypes",[J])],Sw);let Tw=MJ=class extends ss{constructor(t){super("isempty",t)}};var EJ;Tw.\u0275fac=function(t){return new(t||Tw)(g(J))},Tw.\u0275cmp=K({type:Tw,selectors:[["kendo-filter-isempty-operator"]],features:[we([{provide:ss,useExisting:He(()=>MJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Tw=MJ=M([T("design:paramtypes",[J])],Tw);let kw=EJ=class extends ss{constructor(t){super("isnotempty",t)}};var IJ;kw.\u0275fac=function(t){return new(t||kw)(g(J))},kw.\u0275cmp=K({type:kw,selectors:[["kendo-filter-isnotempty-operator"]],features:[we([{provide:ss,useExisting:He(()=>EJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),kw=EJ=M([T("design:paramtypes",[J])],kw);let Dw=IJ=class extends ss{constructor(t){super("isnotnull",t)}};var AJ;Dw.\u0275fac=function(t){return new(t||Dw)(g(J))},Dw.\u0275cmp=K({type:Dw,selectors:[["kendo-filter-isnotnull-operator"]],features:[we([{provide:ss,useExisting:He(()=>IJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Dw=IJ=M([T("design:paramtypes",[J])],Dw);let Mw=AJ=class extends ss{constructor(t){super("isnull",t)}};var FJ;Mw.\u0275fac=function(t){return new(t||Mw)(g(J))},Mw.\u0275cmp=K({type:Mw,selectors:[["kendo-filter-isnull-operator"]],features:[we([{provide:ss,useExisting:He(()=>AJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Mw=AJ=M([T("design:paramtypes",[J])],Mw);let Ew=FJ=class extends ss{constructor(t){super("neq",t)}};var OJ;Ew.\u0275fac=function(t){return new(t||Ew)(g(J))},Ew.\u0275cmp=K({type:Ew,selectors:[["kendo-filter-neq-operator"]],features:[we([{provide:ss,useExisting:He(()=>FJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Ew=FJ=M([T("design:paramtypes",[J])],Ew);let Iw=OJ=class extends ss{constructor(t){super("startswith",t)}};var RJ;Iw.\u0275fac=function(t){return new(t||Iw)(g(J))},Iw.\u0275cmp=K({type:Iw,selectors:[["kendo-filter-startswith-operator"]],features:[we([{provide:ss,useExisting:He(()=>OJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Iw=OJ=M([T("design:paramtypes",[J])],Iw);let Aw=RJ=class extends ss{constructor(t){super("gt",t)}};var PJ;Aw.\u0275fac=function(t){return new(t||Aw)(g(J))},Aw.\u0275cmp=K({type:Aw,selectors:[["kendo-filter-gt-operator"]],features:[we([{provide:ss,useExisting:He(()=>RJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Aw=RJ=M([T("design:paramtypes",[J])],Aw);let Fw=PJ=class extends ss{constructor(t){super("gte",t)}};var LJ;Fw.\u0275fac=function(t){return new(t||Fw)(g(J))},Fw.\u0275cmp=K({type:Fw,selectors:[["kendo-filter-gte-operator"]],features:[we([{provide:ss,useExisting:He(()=>PJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Fw=PJ=M([T("design:paramtypes",[J])],Fw);let Ow=LJ=class extends ss{constructor(t){super("lt",t)}};var NJ;Ow.\u0275fac=function(t){return new(t||Ow)(g(J))},Ow.\u0275cmp=K({type:Ow,selectors:[["kendo-filter-lt-operator"]],features:[we([{provide:ss,useExisting:He(()=>LJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Ow=LJ=M([T("design:paramtypes",[J])],Ow);let Rw=NJ=class extends ss{constructor(t){super("lte",t)}};var BJ;Rw.\u0275fac=function(t){return new(t||Rw)(g(J))},Rw.\u0275cmp=K({type:Rw,selectors:[["kendo-filter-lte-operator"]],features:[we([{provide:ss,useExisting:He(()=>NJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Rw=NJ=M([T("design:paramtypes",[J])],Rw);let Pw=BJ=class extends ss{constructor(t){super("after",t)}toJSON(){return{text:this.text,value:"gt"}}};var VJ;Pw.\u0275fac=function(t){return new(t||Pw)(g(J))},Pw.\u0275cmp=K({type:Pw,selectors:[["kendo-filter-after-operator"]],features:[we([{provide:ss,useExisting:He(()=>BJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Pw=BJ=M([T("design:paramtypes",[J])],Pw);let Lw=VJ=class extends ss{constructor(t){super("after-eq",t)}toJSON(){return{text:this.text,value:"gte"}}};var zJ;Lw.\u0275fac=function(t){return new(t||Lw)(g(J))},Lw.\u0275cmp=K({type:Lw,selectors:[["kendo-filter-after-eq-operator"]],features:[we([{provide:ss,useExisting:He(()=>VJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Lw=VJ=M([T("design:paramtypes",[J])],Lw);let Nw=zJ=class extends ss{constructor(t){super("before-eq",t)}toJSON(){return{text:this.text,value:"lte"}}};var HJ;Nw.\u0275fac=function(t){return new(t||Nw)(g(J))},Nw.\u0275cmp=K({type:Nw,selectors:[["kendo-filter-before-eq-operator"]],features:[we([{provide:ss,useExisting:He(()=>zJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Nw=zJ=M([T("design:paramtypes",[J])],Nw);let Bw=HJ=class extends ss{constructor(t){super("before",t)}toJSON(){return{text:this.text,value:"lt"}}};Bw.\u0275fac=function(t){return new(t||Bw)(g(J))},Bw.\u0275cmp=K({type:Bw,selectors:[["kendo-filter-before-operator"]],features:[we([{provide:ss,useExisting:He(()=>HJ)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Bw=HJ=M([T("design:paramtypes",[J])],Bw);const sjt=[mJ,Cw,xw,ww,Sw,Tw,kw,Dw,Mw,Ew,Iw,Aw,Fw,Ow,Rw,Pw,Lw,Nw,Bw],ojt=[Ut,nA,PC,iK,nK,v2,U2,ql,a_];let _M=(()=>{let n=class{static exports(){return[...sjt]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[...ojt],Ut,nA,PC,iK,nK,v2,U2,ql,a_]}),n})(),IAe=(()=>{class n{constructor(e,i){this.host=e,this.resolver=i}ngOnInit(){this.component=this.host.createComponent(this.resolver.resolveComponentFactory(this.componentType())),this.initComponent({column:this.column,filter:this.filter})}ngOnDestroy(){this.component&&(this.component.destroy(),this.component=null)}ngOnChanges(e){Xo(["column","filter"],e)&&this.initComponent({column:this.column,filter:this.filter})}initComponent({column:e,filter:i}){const s=this.component.instance;s.column=e,s.filter=i}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,inputs:{column:"column",filter:"filter"},features:[st]}),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),n})(),AAe=(()=>{let n=class extends IAe{constructor(e,i){super(e,i)}componentType(){return ya(this.column.filter)?mM:(n=>({boolean:Az,date:Fz,numeric:Ez,text:mM}[this.column.filter]))()}};return n.\u0275fac=function(e){return new(e||n)(g(Gt),g(qr))},n.\u0275dir=R({type:n,selectors:[["","kendoFilterCellHost",""]],features:[N]}),n=M([T("design:paramtypes",[Gt,qr])],n),n})(),GJ=(()=>{let n=class{static exports(){return[hJ,pJ,dM,mJ,mM,Ez,TAe,Az,Fz,_M.exports()]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[_M],_M]}),n})(),jJ=(()=>{let n=class{constructor(e,i){this.host=e,this.renderer=i}ngAfterViewInit(){this.renderer.addClass(this.host.numericInput.nativeElement,"k-pager-nav")}};return n.\u0275fac=function(e){return new(e||n)(g(Ki),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","kendoGridPagerInput",""]]}),n=M([T("design:paramtypes",[Ki,Ie])],n),n})(),$J=(()=>{let n=class{constructor(e,i){this.host=e,this.renderer=i,this.keydownHandler=s=>{s.keyCode===_e.Escape&&this.host.isOpen&&(s.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){const e=this.host.wrapper.nativeElement;this.renderer.addClass(e,"k-pager-nav"),e.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}};return n.\u0275fac=function(e){return new(e||n)(g(bn),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","kendoGridPagerDropDown",""]]}),n=M([T("design:paramtypes",[bn,Ie])],n),n})();const FAe=n=>(({buttonCount:n=10,info:t=!0,type:e="numeric",pageSizes:i=!1,previousNext:s=!0,responsive:o=!0,position:r="bottom"})=>({buttonCount:n,info:t,pageSizes:!0===i?[5,10,20]:i,previousNext:s,type:e,responsive:o,position:r}))(!0===n?{}:n);let UJ=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d){this.pagerContext=e,this.navigationService=i,this.element=s,this.renderer=o,this.zone=r,this.localizationService=a,this.cellContext=l,this.focusRoot=c,this.focusGroup=d,this.total=0,this.skip=1,this.pageChange=new S,this.pagerWrapClass=!0,this.gridPagerClass=!0,this.widgetClass=!0,this.settings=FAe({}),this.subscriptions=new Je,this._templateContext={},this._isFocused=!1,this.resizeHandler=()=>{const u=this.element.nativeElement;if(this.template||!u)return;const h=u.offsetWidth;h<600?(this.renderer.removeClass(u,"k-pager-md"),this.renderer.addClass(u,"k-pager-sm")):h>=600&&h<768?(this.renderer.addClass(u,"k-pager-md"),this.renderer.removeClass(u,"k-pager-sm")):this.clearResponsiveClasses()}}set options(e){this.settings=FAe(e)}get isFocused(){return this._isFocused}get pagerAriaLabel(){return this.navigationService.enabled?this.pagerLabel:void 0}get pagerLabel(){const e=this.localizationService.get("pagerLabel")||"";return Zl(Zl(e,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}get focusTrapTabIndex(){return this.focusGroup.isActive?"0":"-1"}onFocusIn(e){this.navigationService.enabled&&(e.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}onFocusOut(){this.navigationService.enabled&&(this._isFocused=!1)}onEscape(){this.navigationService.enabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}onEnter(e){this.navigationService.enabled&&e.target===this.element.nativeElement&&(this.focusRoot.activate(),this.focusFirstElement())}navigateToPreviousPage(e){this.shouldTriggerPageChange(e.target,this.currentPage>1)&&this.pagerContext.prevPage()}navigateToNextPage(e){this.shouldTriggerPageChange(e.target,this.currentPage1)&&this.pagerContext.changePage(0)}navigateToLastPage(e){this.shouldTriggerPageChange(e.target,this.currentPage{"start"===i?e.relatedTarget===this.element.nativeElement?this.focusFirstElement():this.focusLastElement():this.focusFirstElement()})}clearResponsiveClasses(){const e=this.element.nativeElement;this.renderer.removeClass(e,"k-pager-sm"),this.renderer.removeClass(e,"k-pager-md")}shouldTriggerPageChange(e,i){return this.navigationService.enabled&&e===this.element.nativeElement&&i}focusFirstElement(){const e=FIe(this.element.nativeElement,!0);e&&e.focus()}focusLastElement(){const e=((n,t=!0)=>((n,t,e=!0)=>{let i=null;return ff(n,s=>(t(s)&&(i=s),!1),e),i})(n,e=>VF(e,t),!1))(this.element.nativeElement,!0);e&&e.focus()}updateCellContext(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}};return n.\u0275fac=function(e){return new(e||n)(g(ec),g(Qs),g($),g(Ie),g(ce),g(J),g(Jl,8),g(pf),g(Ib))},n.\u0275cmp=K({type:n,selectors:[["kendo-pager"]],hostVars:9,hostBindings:function(e,i){1&e&&se("focusin",function(o){return i.onFocusIn(o)})("focusout",function(){return i.onFocusOut()})("keydown.escape",function(){return i.onEscape()})("keydown.enter",function(o){return i.onEnter(o)})("keydown.arrowleft",function(o){return i.navigateToPreviousPage(o)})("keydown.pageup",function(o){return i.navigateToPreviousPage(o)})("keydown.arrowright",function(o){return i.navigateToNextPage(o)})("keydown.pagedown",function(o){return i.navigateToNextPage(o)})("keydown.home",function(o){return i.navigateToFirstPage(o)})("keydown.end",function(o){return i.navigateToLastPage(o)}),2&e&&(fe("aria-label",i.pagerAriaLabel),he("k-pager-wrap",i.pagerWrapClass)("k-grid-pager",i.gridPagerClass)("k-widget",i.widgetClass)("k-state-focused",i.isFocused))},inputs:{total:"total",skip:"skip",options:"options",pageSize:"pageSize",template:"template"},outputs:{pageChange:"pageChange"},features:[we([{provide:gz,useValue:!0},{provide:pf,deps:[gz],useClass:pf},{provide:Ib,deps:[pf],useClass:Ib}]),st],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(e,i){1&e&&(A(0,W4t,1,2,"div",0),A(1,q4t,1,2,"ng-container",1),A(2,ezt,7,6,"ng-container",2),A(3,tzt,1,2,"div",0),A(4,nzt,1,0,"kendo-resize-sensor",3)),2&e&&(v("ngIf",i.navigationService.enabled),b(1),v("ngIf",null==i.template?null:i.template.templateRef),b(1),v("ngIf",!(null!=i.template&&i.template.templateRef)),b(1),v("ngIf",i.navigationService.enabled),b(1),v("ngIf",i.settings.responsive))},directives:function(){return[pt,zs,WJ,XJ,YJ,qJ,KJ,ZJ,Kr]},encapsulation:2}),M([p(),T("design:type",Number)],n.prototype,"total",void 0),M([p(),T("design:type",Number)],n.prototype,"skip",void 0),M([p(),T("design:type",Number)],n.prototype,"pageSize",void 0),M([p(),T("design:type",Object),T("design:paramtypes",[Object])],n.prototype,"options",null),M([p(),T("design:type",KF)],n.prototype,"template",void 0),M([Q(),T("design:type",S)],n.prototype,"pageChange",void 0),M([G("class.k-pager-wrap"),T("design:type",Boolean)],n.prototype,"pagerWrapClass",void 0),M([G("class.k-grid-pager"),T("design:type",Boolean)],n.prototype,"gridPagerClass",void 0),M([G("class.k-widget"),T("design:type",Boolean)],n.prototype,"widgetClass",void 0),M([G("class.k-state-focused"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"isFocused",null),M([G("attr.aria-label"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"pagerAriaLabel",null),M([Zn("focusin",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"onFocusIn",null),M([Zn("focusout"),T("design:type",Function),T("design:paramtypes",[]),T("design:returntype",void 0)],n.prototype,"onFocusOut",null),M([Zn("keydown.escape"),T("design:type",Function),T("design:paramtypes",[]),T("design:returntype",void 0)],n.prototype,"onEscape",null),M([Zn("keydown.enter",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"onEnter",null),M([Zn("keydown.arrowleft",["$event"]),Zn("keydown.pageup",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"navigateToPreviousPage",null),M([Zn("keydown.arrowright",["$event"]),Zn("keydown.pagedown",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"navigateToNextPage",null),M([Zn("keydown.home",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"navigateToFirstPage",null),M([Zn("keydown.end",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"navigateToLastPage",null),n=M([qn(6,gt()),qn(6,Rn(Jl)),T("design:paramtypes",[ec,Qs,$,Ie,ce,J,Object,pf,Ib])],n),n})(),vM=(()=>{class n{constructor(e,i,s){this.localization=e,this.pagerContext=i,this.cd=s,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}textFor(e){return this.localization.get(e)}changePage(e){return this.pagerContext.changePage(e),!1}ngOnInit(){this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n}),n})(),WJ=(()=>{let n=class extends vM{constructor(e,i,s,o){super(e,i,s),this.navigationService=o}get disabled(){return 1===this.currentPage||!this.total}onChanges({total:e,skip:i,pageSize:s}){this.total=e,this.skip=i,this.pageSize=s,this.cd.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(ec),g(Be),g(Qs))},n.\u0275cmp=K({type:n,selectors:[["kendo-pager-prev-buttons"]],features:[N],decls:4,vars:16,consts:[[3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],[3,"ngClass"]],template:function(e,i){1&e&&(y(0,"span",0),se("click",function(){return 1!==i.currentPage&&i.changePage(0)})("keydown.enter",function(){return 1!==i.currentPage&&i.changePage(0)}),P(1,"span",1),_(),y(2,"span",0),se("click",function(){return 1!==i.currentPage&&i.changePage(i.currentPage-2)})("keydown.enter",function(){return 1!==i.currentPage&&i.changePage(i.currentPage-2)}),P(3,"span",1),_()),2&e&&(v("kendoGridFocusable",!i.disabled)("title",i.textFor("pagerFirstPage"))("ngClass",Yt(10,izt,i.disabled)),b(1),v("ngClass",si(12,szt)),fe("aria-label",i.textFor("pagerFirstPage")),b(1),v("kendoGridFocusable",!i.disabled)("title",i.textFor("pagerPreviousPage"))("ngClass",Yt(13,wIe,i.disabled)),b(1),v("ngClass",si(15,ozt)),fe("aria-label",i.textFor("pagerPreviousPage")))},directives:[Mc,Un],encapsulation:2,changeDetection:0}),n=M([T("design:paramtypes",[J,ec,Be,Qs])],n),n})(),qJ=(()=>{let n=class extends vM{constructor(e,i,s,o){super(e,i,s),this.navigationService=o}get disabled(){return this.currentPage===this.totalPages||!this.total}onChanges({total:e,skip:i,pageSize:s}){this.total=e,this.skip=i,this.pageSize=s,this.cd.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(ec),g(Be),g(Qs))},n.\u0275cmp=K({type:n,selectors:[["kendo-pager-next-buttons"]],features:[N],decls:4,vars:16,consts:[["tabindex","0",3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],[3,"ngClass"]],template:function(e,i){1&e&&(y(0,"span",0),se("click",function(){return i.currentPage!==i.totalPages&&i.changePage(i.currentPage)})("keydown.enter",function(){return i.currentPage!==i.totalPages&&i.changePage(i.currentPage)}),P(1,"span",1),_(),y(2,"span",0),se("click",function(){return i.currentPage!==i.totalPages&&i.changePage(i.totalPages-1)})("keydown.enter",function(){return i.currentPage!==i.totalPages&&i.changePage(i.totalPages-1)}),P(3,"span",1),_()),2&e&&(v("kendoGridFocusable",!i.disabled)("title",i.textFor("pagerNextPage"))("ngClass",Yt(10,wIe,i.disabled)),b(1),v("ngClass",si(12,rzt)),fe("aria-label",i.textFor("pagerNextPage")),b(1),v("kendoGridFocusable",!i.disabled)("title",i.textFor("pagerLastPage"))("ngClass",Yt(13,azt,i.disabled)),b(1),v("ngClass",si(15,lzt)),fe("aria-label",i.textFor("pagerLastPage")))},directives:[Mc,Un],encapsulation:2,changeDetection:0}),n=M([T("design:paramtypes",[J,ec,Be,Qs])],n),n})(),XJ=(()=>{let n=class extends vM{constructor(e,i,s){super(e,s,i),this.pagerContext=s,this.numbersWrapClass=!0}get buttons(){let e=[];for(let i=this.start;i<=this.end;i++)e.push(i);return e}get end(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}get start(){const e=this.currentPage,i=this.buttonCount;if(e>i){const s=e%i;return 0===s?e-i+1:e-s+1}return 1}pageLabel(e){const i=this.textFor("pagerPage");return i?i+" "+e:e.toString()}onSelectChange(e){const i=e.target,s=Number(i.value);Number.isNaN(s)?this.changePage("previousButtons"===i.value?this.start-2:this.end):this.changePage(s-1)}onChanges({total:e,skip:i,pageSize:s}){this.total=e,this.skip=i,this.pageSize=s,this.cd.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Be),g(ec))},n.\u0275cmp=K({type:n,selectors:[["kendo-pager-numeric-buttons"]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-pager-numbers-wrap",i.numbersWrapClass)},inputs:{buttonCount:"buttonCount"},features:[N],decls:8,vars:9,consts:[["kendoGridFocusable","","tabindex","0",1,"k-dropdown","k-pager-nav",3,"value","change"],["class","k-link","value","previousButtons",4,"ngIf"],[3,"value","ngClass",4,"ngFor","ngForOf"],["value","nextButtons","class","k-link",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],["value","previousButtons",1,"k-link"],[3,"value","ngClass"],["value","nextButtons",1,"k-link"],["kendoGridFocusable","","tabindex","0",1,"k-link","k-pager-nav",3,"click","keydown.enter"],["kendoGridFocusable","","tabindex","0",3,"ngClass","click","keydown.enter"]],template:function(e,i){1&e&&(y(0,"select",0),se("change",function(o){return i.onSelectChange(o)}),A(1,czt,2,1,"option",1),A(2,uzt,2,7,"option",2),A(3,hzt,2,1,"option",3),_(),y(4,"ul",4),A(5,pzt,3,1,"li",5),A(6,gzt,3,5,"li",6),A(7,mzt,3,1,"li",5),_()),2&e&&(v("value",i.currentPage.toString()),b(1),v("ngIf",i.start>1),b(1),v("ngForOf",i.buttons),b(1),v("ngIf",i.end1),b(1),v("ngForOf",i.buttons),b(1),v("ngIf",i.end{let n=class extends vM{constructor(e,i,s,o,r){super(e,i,r),this.pagerContext=i,this.zone=s,this.navigationService=o,this.handleKeyDown=a=>{let l=this.numericInput.value||this.current;a.keyCode===_e.Enter&&(a.preventDefault(),l!==this.current&&this.zone.run(()=>{this.changePage(l-1)}))},this.handleBlur=()=>{const a=this.numericInput.value;a?a!==this.current&&this.zone.run(()=>{this.changePage(a-1)}):this.numericInput.writeValue(this.current)}}get current(){return this.hasPages?this.currentPage:0}get hasPages(){return 0!==this.totalPages}onChanges({total:e,skip:i,pageSize:s}){this.total=e,this.skip=i,this.pageSize=s,this.cd.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(ec),g(ce),g(Qs),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-pager-input"]],viewQuery:function(e,i){if(1&e&&Ae(Ki,5),2&e){let s;U(s=W())&&(i.numericInput=s.first)}},features:[N],decls:4,vars:18,consts:[[3,"ngClass"],["kendoGridPagerInput","","tabindex","0","format","n0",3,"kendoGridFocusable","spinners","decimals","disabled","value","min","max","autoCorrect","title","kendoEventsOutsideAngular"]],template:function(e,i){1&e&&(y(0,"span",0),H(1),P(2,"kendo-numerictextbox",1),H(3),_()),2&e&&(v("ngClass",si(14,_zt)),b(1),_t(" ",i.textFor("pagerPage")," "),b(1),v("kendoGridFocusable",i.hasPages)("spinners",!1)("decimals",0)("disabled",!i.hasPages)("value",i.current)("min",i.hasPages?1:0)("max",i.totalPages)("autoCorrect",!0)("title",i.textFor("pagerPageNumberInputTitle"))("kendoEventsOutsideAngular",di(15,vzt,i.handleKeyDown,i.handleBlur)),b(1),ty(" ",i.textFor("pagerOf")," ",i.totalPages," "))},directives:[Un,Ki,jJ,Mc,lr],encapsulation:2}),M([at(Ki,{static:!1}),T("design:type",Ki)],n.prototype,"numericInput",void 0),n=M([T("design:paramtypes",[J,ec,ce,Qs,Be])],n),n})(),KJ=(()=>{let n=class extends vM{constructor(e,i,s){super(e,s,i),this.pagerContext=s}get maxItems(){return Math.min(this.currentPage*this.pageSize,this.total)}get currentPageText(){return this.total?(this.currentPage-1)*this.pageSize+1:0}get classes(){return!0}onChanges({total:e,skip:i,pageSize:s}){this.total=e,this.skip=i,this.pageSize=s,this.cd.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Be),g(ec))},n.\u0275cmp=K({type:n,selectors:[["kendo-pager-info"]],hostVars:4,hostBindings:function(e,i){2&e&&he("k-pager-info",i.classes)("k-label",i.classes)},features:[N],decls:1,vars:5,template:function(e,i){1&e&&H(0),2&e&&zG("",i.currentPageText," - ",i.maxItems," ",i.textFor("pagerOf")," ",i.total," ",i.textFor("pagerItems"),"")},encapsulation:2,changeDetection:0}),M([G("class.k-pager-info"),G("class.k-label"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"classes",null),n=M([T("design:paramtypes",[J,Be,ec])],n),n})(),ZJ=(()=>{let n=class extends vM{constructor(e,i,s,o){super(e,s,i),this.pagerContext=s,this.navigationService=o,this._pageSizes=[]}get pageSizes(){return this._pageSizes}set pageSizes(e){let i=[];e.forEach(s=>{i.push("number"==typeof s?{text:s.toString(),value:s}:s)}),this.pageSize&&!i.some(s=>s.value===this.pageSize)&&(i=[{text:this.pageSize.toString(),value:this.pageSize},...i]),this._pageSizes=i}get classes(){return!0}get showInitialPageSize(){return 0===this.pageSizes.filter(e=>"number"==typeof e.value?e.value===Number(this.pageSize):this.total===Number(this.pageSize)).length}pageSizeChange(e){this.pageSize="number"==typeof e?e:this.total,this.pagerContext.changePageSize(this.pageSize)}getValue(e){return"number"==typeof e.value?e.value:this.total}onChanges({total:e,skip:i,pageSize:s}){this.total=e,this.skip=i,this.pageSize="number"==typeof s?s:this.total,this.cd.markForCheck()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Be),g(ec),g(Qs))},n.\u0275cmp=K({type:n,selectors:[["kendo-pager-page-sizes"]],hostVars:4,hostBindings:function(e,i){2&e&&he("k-pager-sizes",i.classes)("k-label",i.classes)},inputs:{pageSizes:"pageSizes"},features:[N],decls:3,vars:5,consts:[["kendoGridPagerDropDown","","tabindex","0","kendoGridFocusable","","textField","text","valueField","value",3,"data","valuePrimitive","value","valueChange"],["dropdownlist",""],[3,"for","text"]],template:function(e,i){if(1&e&&(y(0,"kendo-dropdownlist",0,1),se("valueChange",function(o){return i.pageSizeChange(o)}),_(),P(2,"kendo-label",2)),2&e){const s=ki(1);v("data",i.pageSizes)("valuePrimitive",!0)("value",i.pageSize),b(2),v("for",s)("text",i.textFor("pagerItemsPerPage"))}},directives:[bn,$J,Mc,Uke],encapsulation:2,changeDetection:0}),M([p(),T("design:type",Array),T("design:paramtypes",[Array])],n.prototype,"pageSizes",null),M([G("class.k-pager-sizes"),G("class.k-label"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"classes",null),n=M([T("design:paramtypes",[J,Be,ec,Qs])],n),n})();const ljt=[Ut,v2,PRt,mTe,Du,a_];let OAe=(()=>{let n=class{static exports(){return[UJ,WJ,qJ,XJ,YJ,KJ,ZJ,KF,$J,jJ]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[...ljt]]}),n})(),RAe=(()=>{let n=class{constructor(e,i){this.groupsService=e,this.groupInfoService=i,this.skipGroupDecoration=!1,this.hasDetails=!1,this.totalColumnsCount=0,this.groups=[],this.isExpanded=!1}get groupItemClass(){return!0}ngDoCheck(){const e={group:this.item.data,groupIndex:this.item.index,parentGroup:mz(this.item.parentGroup)};this.isExpanded=this.groupsService.isExpanded(e)}prefixGroupCell(e){return new Array(e.level)}toggleGroup(e){return this.groupsService.toggleRow(e),!1}groupSpan(e){const i=(this.groups||[]).length,s=this.hasDetails?1:0;if(this.hasGroupHeaderColumn)return i+1+s-e.level;let o=_z(this.columns);return this.skipGroupDecoration?o:i+o+s-e.level}logicalColSpan(){return this.skipGroupDecoration?1:this.totalColumnsCount}ariaRole(){return this.skipGroupDecoration?"presentation":"gridcell"}formatForGroup(e){return this.groupInfoService.formatForGroup(e)}groupTitle(e){return this.groupInfoService.groupTitle(e)}groupHeaderTemplate(e){return this.groupInfoService.groupHeaderTemplate(e)}};return n.\u0275fac=function(e){return new(e||n)(g(gf),g(pw))},n.\u0275cmp=K({type:n,selectors:[["","kendoGridGroupHeader",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-grouping-row",i.groupItemClass)},inputs:{skipGroupDecoration:"skipGroupDecoration",hasDetails:"hasDetails",totalColumnsCount:"totalColumnsCount",groups:"groups",rowIndex:"rowIndex",logicalRowIndex:"logicalRowIndex",item:"item",hasGroupHeaderColumn:"hasGroupHeaderColumn",groupHeaderColumns:"groupHeaderColumns",columns:"columns"},attrs:bzt,decls:3,vars:3,consts:[[3,"ngIf"],["aria-selected","false","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngIf"],[4,"ngIf"],["class","k-group-cell","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell"],["aria-selected","false","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[1,"k-reset"],["href","#","tabindex","-1","role","presentation",1,"k-icon",3,"ngClass","click"],[3,"templateContext"],["role","gridcell","aria-selected","false","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngFor","ngForOf"],["role","gridcell","aria-selected","false","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(A(0,xzt,1,1,"ng-template",0),A(1,Mzt,3,9,"td",1),A(2,Fzt,2,1,"ng-container",2)),2&e&&(v("ngIf",!i.skipGroupDecoration),b(1),v("ngIf",!(i.skipGroupDecoration&&i.hasGroupHeaderColumn)),b(1),v("ngIf",i.hasGroupHeaderColumn))},directives:[pt,Wn,yM,Un,iO,zs],pipes:[bJ],encapsulation:2}),M([p(),T("design:type",Number)],n.prototype,"rowIndex",void 0),M([p(),T("design:type",Number)],n.prototype,"logicalRowIndex",void 0),M([p(),T("design:type",Object)],n.prototype,"item",void 0),M([p(),T("design:type",Boolean)],n.prototype,"skipGroupDecoration",void 0),M([p(),T("design:type",Boolean)],n.prototype,"hasDetails",void 0),M([p(),T("design:type",Number)],n.prototype,"totalColumnsCount",void 0),M([p(),T("design:type",Boolean)],n.prototype,"hasGroupHeaderColumn",void 0),M([p(),T("design:type",Array)],n.prototype,"groupHeaderColumns",void 0),M([p(),T("design:type",Object)],n.prototype,"columns",void 0),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([G("class.k-grouping-row"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"groupItemClass",null),n=M([T("design:paramtypes",[gf,pw])],n),n})(),Vw=(()=>{let n=class{constructor(e,i){this.element=e,this.service=i,this.context={},this.enter=new S,this.leave=new S,this.drop=new S,this.subscriptions=new Je}ngOnInit(){this.service.add(this);const e=this.service.changes.pipe(dt(({target:i})=>i===this));this.subscriptions.add(e.pipe(dt(({type:i})=>"leave"===i)).subscribe(i=>{this.leave.next(this.eventArgs(i))})),this.subscriptions.add(e.pipe(dt(({type:i})=>"enter"===i)).subscribe(i=>{this.enter.next(this.eventArgs(i))})),this.subscriptions.add(e.pipe(dt(({type:i})=>"drop"===i)).subscribe(i=>{this.drop.next(this.eventArgs(i))}))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}eventArgs(e){return{target:this,mouseEvent:e.mouseEvent,draggable:e.draggable}}};return n.\u0275fac=function(e){return new(e||n)(g($),g(JF))},n.\u0275dir=R({type:n,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),M([p(),T("design:type",Object)],n.prototype,"context",void 0),M([Q(),T("design:type",S)],n.prototype,"enter",void 0),M([Q(),T("design:type",S)],n.prototype,"leave",void 0),M([Q(),T("design:type",S)],n.prototype,"drop",void 0),n=M([T("design:paramtypes",[$,JF])],n),n})();const cjt=({field:n})=>ya(n),djt=({groups:n,field:t})=>n.some(e=>e.field===t),mjt=pz(({target:n,field:t})=>n.field===t,jQ(({target:n})=>n.lastTarget,({groups:n,field:t})=>n.map(e=>e.field).indexOf(t)===n.length-1));let PAe=(()=>{let n=class{constructor(e,i,s,o,r){this.hint=e,this.cue=i,this.groupInfoService=s,this.localization=o,this.cd=r,this.change=new S,this.groups=[],this.dropTargets=new wt,this.groupTitles=[],this.subscription=new Je}get groupHeaderClass(){return!0}set text(e){this.emptyText=e}get text(){return this.emptyText?this.emptyText:this.localization.get("groupPanelEmpty")}ngAfterViewInit(){this.subscription.add(hz(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngOnInit(){this.subscription.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngDoCheck(){const e=this.groups.map(i=>this.groupInfoService.groupTitle(i));(e.length!==this.groupTitles.length||e.some((i,s)=>i!==this.groupTitles[s]))&&(this.groupTitles=e,this.cd.markForCheck())}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe()}directionChange(e){const i=this.groups.findIndex(o=>o.field===e.field),s=[...this.groups.slice(0,i),e,...this.groups.slice(i+1)];this.change.emit(s)}insert(e,i){const s=this.groups.filter(o=>o.field!==e);(s.length||0===this.groups.length)&&this.change.emit([...s.slice(0,i),{field:e},...s.slice(i)])}remove(e){this.change.emit(this.groups.filter(i=>i.field!==e.field))}canDrop(e,i){return!("groupIndicator"===e.type?mjt:(n=>pz(cjt,djt,(n=>({field:t})=>!n.isGroupable(t))(this.groupInfoService)))())({field:e.field,groups:this.groups,target:i})}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;const e=this.dropTargets.reduce((o,r)=>ii(o,r.enter),Ys([])),i=this.dropTargets.reduce((o,r)=>ii(o,r.leave),Ys([])),s=this.dropTargets.reduce((o,r)=>ii(o,r.drop),Ys([]));this.targetSubscription.add(e.pipe(lt(o=>this.hint.removeLock()),dt(({draggable:o,target:r})=>this.canDrop(o.context,r.context)),lt(this.enter.bind(this)),ZB(s.pipe(et(i.pipe(lt(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}enter({draggable:e,target:i}){this.hint.enable();let s=i.context.lastTarget||tAe(e.element.nativeElement,i.element.nativeElement);this.localization.rtl&&(s=!s),this.cue.position(nAe(i.element.nativeElement,s))}leave(){this.hint.disable(),this.cue.hide()}drop({target:e,draggable:i}){const s=i.context.field,o=this.dropTargets.toArray().indexOf(e);this.insert(s,o)}};return n.\u0275fac=function(e){return new(e||n)(g(_w),g(vw),g(pw),g(J),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-group-panel"]],viewQuery:function(e,i){if(1&e&&Ae(Vw,5),2&e){let s;U(s=W())&&(i.dropTargets=s)}},hostVars:4,hostBindings:function(e,i){2&e&&he("k-grouping-header",i.groupHeaderClass)("k-grouping-header-flex",i.groupHeaderClass)},inputs:{groups:"groups",text:"text"},outputs:{change:"change"},decls:3,vars:3,consts:[[3,"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(e,i){1&e&&(A(0,Ozt,2,3,"ng-template",0),A(1,Lzt,2,10,"div",1),A(2,Nzt,2,2,"div",2)),2&e&&(v("ngIf",0===i.groups.length),b(1),v("ngForOf",i.groups),b(1),v("ngIf",0!==i.groups.length))},directives:function(){return[pt,Wn,Vw,QJ,LAe,Jc]},encapsulation:2,changeDetection:0}),M([Q(),T("design:type",S)],n.prototype,"change",void 0),M([G("class.k-grouping-header"),G("class.k-grouping-header-flex"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"groupHeaderClass",null),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"text",null),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([lc(Vw),T("design:type",wt)],n.prototype,"dropTargets",void 0),n=M([T("design:paramtypes",[_w,vw,pw,J,Be])],n),n})(),LAe=(()=>{let n=class{constructor(){this.directionChange=new S,this.remove=new S}get groupIndicatorClass(){return!0}get dir(){return this.group.dir?this.group.dir:"asc"}toggleDirection(){return this.directionChange.emit({dir:"asc"===this.dir?"desc":"asc",field:this.group.field}),!1}removeDescriptor(){return this.remove.emit({dir:this.group.dir,field:this.group.field}),!1}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["","kendoGroupIndicator",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-group-indicator",i.groupIndicatorClass)},inputs:{group:"group",groupTitle:"groupTitle"},outputs:{directionChange:"directionChange",remove:"remove"},attrs:Bzt,decls:5,vars:5,consts:[["href","#","tabindex","-1",1,"k-link",3,"click"],[1,"k-icon"],["tabindex","-1",1,"k-button","k-button-icon","k-bare",3,"click"],[1,"k-icon","k-i-group-delete"]],template:function(e,i){1&e&&(y(0,"a",0),se("click",function(){return i.toggleDirection()}),P(1,"span",1),H(2),_(),y(3,"a",2),se("click",function(){return i.removeDescriptor()}),P(4,"span",3),_()),2&e&&(b(1),he("k-i-sort-asc-sm","asc"===i.dir)("k-i-sort-desc-sm","desc"===i.dir),b(1),_t(" ",i.groupTitle,""))},encapsulation:2,changeDetection:0}),M([Q(),T("design:type",S)],n.prototype,"directionChange",void 0),M([Q(),T("design:type",S)],n.prototype,"remove",void 0),M([p(),T("design:type",Object)],n.prototype,"group",void 0),M([p(),T("design:type",String)],n.prototype,"groupTitle",void 0),M([G("class.k-group-indicator"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"groupIndicatorClass",null),n})();const Pz=n=>t=>new RegExp(`(^| )${n}( |$)`).test(t.className),_jt=pz(Pz("k-i-group-delete"),Pz("k-button-icon")),vjt=pz(Pz("k-i-sort-asc-sm"),Pz("k-i-sort-desc-sm")),bjt=jQ(BF(_jt),BF(vjt),BF(VF),BF(Ql("label"))),NAe=({clientX:n,clientY:t})=>document.elementFromPoint(n,t);let QJ=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c){this.draggable=e,this.element=i,this.zone=s,this.service=o,this.hint=r,this.cue=a,this.nav=l,this.renderer=c,this.context={},this.drag=new S,this.subscriptions=new Je}set enableDrag(e){this.enabled=e,this.updateTouchAction()}get hostClass(){return this.enabled}ngOnInit(){this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe(dt(e=>this.enabled),dt(({originalEvent:{target:e}})=>e===this.element.nativeElement||bjt(e)),lt(e=>{const i=e.originalEvent;e.isTouch||i.preventDefault(),this.nav.navigateTo(i.target)}),ls((n=>t=>Vt(t).pipe(my(150),et(n)))(this.draggable.kendoRelease)),lt(e=>{this.hint.create(this.context.hint),this.cue.create()}),ls(e=>this.draggable.kendoDrag.pipe(lt(i=>{i.isTouch&&i.originalEvent.preventDefault()}),lt(this.hint.attach()),lt(this.cue.attach()),et(this.draggable.kendoRelease),xe(i=>({move:i,down:e})))),lt(this.performDrag.bind(this)),ZB(this.draggable.kendoRelease)).subscribe(this.drop.bind(this))))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}drop(e){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,e)}performDrag({move:e}){this.hint.move(e);const i=this.elementUnderCursor(e);i&&this.service.notifyDrag(this,i,e),this.drag.emit({draggable:this,mouseEvent:e})}elementUnderCursor(e){this.hint.hide();let i=NAe(e);return i&&/k-grouping-dropclue/.test(i.className)&&(i=((n,t)=>{n.style.display="none";const e=t();return n.style.display="block",e})(i,NAe.bind(this,e))),this.hint.show(),i}updateTouchAction(){!this.element||(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}};return n.\u0275fac=function(e){return new(e||n)(g(Jc,1),g($),g(ce),g(JF),g(_w),g(vw),g(Qs),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-grid-draggable-header",i.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),M([p(),T("design:type",Object)],n.prototype,"context",void 0),M([p(),T("design:type",Boolean),T("design:paramtypes",[Boolean])],n.prototype,"enableDrag",null),M([Q(),T("design:type",S)],n.prototype,"drag",void 0),M([G("class.k-grid-draggable-header"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClass",null),n=M([qn(0,Md()),T("design:paramtypes",[Jc,$,ce,JF,_w,vw,Qs,Ie])],n),n})(),BAe=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),Lz=(()=>{let n=class{static exports(){return[zF,HF,GF]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,a_,BAe]]}),n})();const xjt={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc"},JJ=(...n)=>Object.assign({},xjt,...n),VAe=(n,t)=>!1!==n.filter&&t.field&&t.filterable,zAe=(n,t)=>!1!==n.sort&&t.field&&t.sortable,HAe=(n,t)=>n.lock&&t.lockable&&!(t.parent&&!t.parent.isSpanColumn),GAe=n=>!1!==n.columnChooser;let Nz=(()=>{let n=class{constructor(e,i,s,o){this.filterService=e,this.popupService=i,this.localization=s,this.navigationService=o,this.tabIndex="-1"}get hasFilters(){return nO(this.filter,(this.column||{}).field).length>0}get filterLabel(){const e=this.localization.get("filterMenuTitle")||"";return Zl(e,"columnName",this.column.title||this.column.field)}toggle(e,i){return this.popupRef=this.popupService.open(e,i,this.popupRef),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()),!1}close(){this.popupService.destroy(),this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}};return n.\u0275fac=function(e){return new(e||n)(g(Js),g(o_),g(J),g(Qs))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(e,i){if(1&e&&(Ae(TIe,7),Ae(kIe,7,ve)),2&e){let s;U(s=W())&&(i.anchor=s.first),U(s=W())&&(i.template=s.first)}},inputs:{tabIndex:"tabIndex",column:"column",filter:"filter"},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(e,i){if(1&e){const s=ht();y(0,"a",0,1),se("click",function(){Le(s);const r=ki(1),a=ki(4);return i.toggle(r,a)})("keydown.enter",function(r){return r.stopImmediatePropagation()}),P(2,"span",2),_(),A(3,Vzt,1,2,"ng-template",null,3,Ls)}2&e&&(v("ngClass",Yt(3,zzt,i.hasFilters))("tabindex",i.tabIndex),fe("title",i.filterLabel))},directives:function(){return[Un,tee]},encapsulation:2}),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([at("anchor",{static:!0}),T("design:type",$)],n.prototype,"anchor",void 0),M([at("template",{static:!0,read:ve}),T("design:type",ve)],n.prototype,"template",void 0),M([p(),T("design:type",String)],n.prototype,"tabIndex",void 0),n=M([T("design:paramtypes",[Js,o_,J,Qs])],n),n})(),zw=(()=>{let n=class{constructor(e){this.closeMenu=new S,this.menuTabbingService=e}close(){this.closeMenu.emit()}};return n.\u0275fac=function(e){return new(e||n)(V(Fl))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=M([T("design:paramtypes",[Fl])],n),n})(),sO=(()=>{let n=class{constructor(e,i,s,o){this.popupService=e,this.localization=i,this.service=s,this.navigationService=o,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.closeSubscription=s.closeMenu.subscribe(this.close.bind(this))}get isActive(){return this.hasFilter&&nO(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(e=>e.field===this.column.field)}get hasFilter(){return VAe(this.settings,this.column)}get hasSort(){return zAe(this.settings,this.column)}get hasColumnChooser(){return GAe(this.settings)}get hasLock(){return HAe(this.settings,this.column)}get hasStick(){return((n,t)=>this.settings.stick&&t.stickable&&!(t.parent&&!t.parent.isSpanColumn))(0,this.column)}get hasPosition(){return((n,t)=>this.settings.setColumnPosition&&(t.stickable||t.lockable)&&!(t.parent&&!t.parent.isSpanColumn))(0,this.column)}ngOnChanges(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}ngOnDestroy(){this.close(),this.closeSubscription.unsubscribe()}toggle(e,i,s){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(i,s,this.popupRef,"k-grid-columnmenu-popup"),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}close(){this.popupService.destroy(),this.popupRef=null,this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}get columnMenuTitle(){const e=this.localization.get("columnMenu")||"";return Zl(e,"columnName",this.column.title||this.column.field)}getExpandedState(e){return"object"==typeof e&&e.expanded}};return n.\u0275fac=function(e){return new(e||n)(g(o_),g(J),g(zw),g(Qs))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-column-menu"]],viewQuery:function(e,i){if(1&e&&(Ae(TIe,7),Ae(kIe,7,ve)),2&e){let s;U(s=W())&&(i.anchor=s.first),U(s=W())&&(i.template=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-grid-column-menu-standalone",i.standalone)},inputs:{standalone:"standalone",settings:"settings",sortable:"sortable",tabIndex:"tabIndex",column:"column",sort:"sort",filter:"filter",columnMenuTemplate:"columnMenuTemplate"},features:[we([zw,Fl]),st],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(e,i){if(1&e){const s=ht();y(0,"a",0,1),se("click",function(r){Le(s);const a=ki(1),l=ki(4);return i.toggle(r,a,l)})("keydown.enter",function(r){return r.stopImmediatePropagation()}),P(2,"span",2),_(),A(3,Gzt,1,5,"ng-template",null,3,Ls),A(5,Yzt,7,6,"ng-template",null,4,Ls)}2&e&&(v("ngClass",Yt(3,Kzt,i.isActive))("tabindex",i.tabIndex),fe("title",i.columnMenuTitle))},directives:function(){return[Un,zs,see,pt,iee,lO,Uz,qz,Wz,$z,aO]},encapsulation:2}),M([G("class.k-grid-column-menu-standalone"),p(),T("design:type",Boolean)],n.prototype,"standalone",void 0),M([p(),T("design:type",Object)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"settings",void 0),M([p(),T("design:type",Object)],n.prototype,"sort",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Object)],n.prototype,"sortable",void 0),M([p(),T("design:type",ve)],n.prototype,"columnMenuTemplate",void 0),M([p(),T("design:type",String)],n.prototype,"tabIndex",void 0),M([at("anchor",{static:!0}),T("design:type",$)],n.prototype,"anchor",void 0),M([at("template",{static:!0,read:ve}),T("design:type",ve)],n.prototype,"template",void 0),n=M([T("design:paramtypes",[o_,J,zw,Qs])],n),n})();const Bz=(...n)=>Object.assign.apply(null,[{}].concat(n)),jAe=(n,t)=>n.parent===t.parent||GIe(t)&&jAe(n,t.parent),Ljt=jQ(({draggable:n})=>["column","columnGroup"].indexOf(n.context.type)>=0,({draggable:n})=>n.context.column.reorderable,({draggable:n})=>!GIe(n.context.column),({draggable:n,target:t})=>n.element.nativeElement!==t.element.nativeElement,({draggable:n,target:t})=>jAe(n.context.column,t.context.column),BF(({draggable:n})=>!Hu(n.context.column.locked)&&(({parent:n})=>!Hu(n))(n.context.column)&&n.context.lastColumn),({draggable:n,target:t})=>!1!==n.context.column.lockable||n.context.column.isLocked===t.context.column.isLocked);let $Ae=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d){this.popupService=e,this.hint=i,this.cue=s,this.reorderService=o,this.idService=r,this.sortService=a,this.localization=l,this.columnInfoService=c,this.cd=d,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 wt,this.subscription=new Je}get headerClass(){return!this.scrollable}get sortableLabel(){return this.localization.get("sortable")}get unlockedColumnsCount(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}sortColumn(e){this.sortService.sort(this.toggleSort(e))}onSortClick(e,i,s){const o=i.target;e.headerTemplateRef&&o!==s&&Boolean(UQ(o,AIe,s))||this.sortColumn(e)}onHeaderKeydown(e,i){if(i.keyCode===_e.ArrowDown&&i.altKey&&this.showFilterMenu){i.preventDefault(),i.stopImmediatePropagation();const s=this.filterMenus.find(o=>o.column===e);s.toggle(s.anchor.nativeElement,s.template)}if(i.keyCode===_e.ArrowDown&&i.altKey&&this.showColumnMenu(e)){i.preventDefault(),i.stopImmediatePropagation();const s=this.columnMenus.find(o=>o.column===e);s.toggle(null,s.anchor.nativeElement,s.template)}!this.sortable||i.defaultPrevented||!1===e.sortable||i.keyCode===_e.Enter&&Rt(e.field)&&this.sortService.sort(this.toggleSort(e))}showSortNumbering(e){const{showIndexes:i}=JJ(this.sortable);return i&&this.sort&&this.sort.filter(({dir:s})=>Rt(s)).length>1&&this.sortOrder(e.field)>0}sortOrder(e){return this.sort.filter(({dir:i})=>Rt(i)).findIndex(i=>i.field===e)+1}sortIcon(e){const i=this.sortDescriptor(e);return{"k-icon":Rt(i.dir),"k-i-sort-desc-sm":"desc"===i.dir,"k-i-sort-asc-sm":"asc"===i.dir}}sortState(e){if(!this.isSortable(e))return;const i=this.sortDescriptor(e.field);return"asc"===i.dir?"ascending":"desc"===i.dir?"descending":void 0}sortStatus(e){if(!this.sortedFields[e.field]||!this.isSortable(e))return;let i="sortedDefault";const s=this.sortDescriptor(e.field);return"asc"===s.dir?i="sortedAscending":"desc"===s.dir&&(i="sortedDescending"),this.localization.get(i)}toggleSort(e){const{allowUnsort:i,mode:s,initialDirection:o}=JJ(this.sortable,e.sortable),r=this.toggleDirection(e.field,i,o);return"single"===s?[r]:[...this.sort.filter(a=>a.field!==e.field),r]}ngAfterViewInit(){this.subscription.add(hz(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngDoCheck(){this._leafColumns=n_(this.columns||[]).filter(e=>!uM(e))}ngOnChanges(e){const i=e.sort;i&&!i.isFirstChange()&&i.currentValue.forEach(s=>{this.sortedFields[s.field]=!0})}ngOnInit(){this.subscription.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}selectAllCheckboxId(){return this.idService.selectAllCheckboxId()}get selectAllCheckboxLabel(){return this.localization.get("selectAllCheckboxLabel")}isFirstOnRow(e,i){const s=o=>o&&(this.columnsForLevel(o.level).indexOf(o)>0||s(o.parent));return 0===i&&!this.groups.length&&!this.detailTemplate&&s(e.parent)}logicalColumnIndex(e){const i=e.leafIndex;return Rt(i)?i+(Rt(this.detailTemplate)?1:0):-1}get showFilterMenu(){return!this.columnMenu&&(n=>"string"==typeof n&&n.indexOf("menu")>-1)(this.filterable)}get showFilterRow(){return wz(this.filterable)}showColumnMenu(e){return this.columnMenu&&e.columnMenu&&(this.columnMenuTemplate||e.columnMenuTemplates.length||((n,t)=>GAe(n)||HAe(n,t)||zAe(n,t)||VAe(n,t))(this.columnMenu,e))}isFilterable(e){return!ya(e.field)&&!0===e.filterable}canDrop(e,i){return this.reorderable&&Ljt({draggable:e,target:i})}shouldActivate(e){const i=this.reorderable&&e.reorderable;return!(!i&&!WF(e))&&(this.groupable&&WF(e)&&!1!==e.groupable||i)}isSortable(e){return!ya(e.field)&&Hu(this.sortable)&&Hu(e.sortable)}isCheckboxColumn(e){return VIe(e)&&!e.templateRef}trackByIndex(e,i){return e}addStickyStyles(e){const i=this.columnInfoService.stickyColumnsStyles(e);return Object.assign({},e.style,i)}toggleDirection(e,i,s){const o=this.sortDescriptor(e),[r,a]=(n=>"asc"===n?["asc","desc"]:["desc","asc"])(s);let l=r;return o.dir===r?l=a:o.dir===a&&i&&(l=void 0),{dir:l,field:e}}columnsForLevel(e){const i=this.columns?this.columns.filter(s=>s.level===e):[];return hw(n_(i))}isColumnGroupComponent(e){return uM(e)}get columnLevels(){return new Array((this.totalColumnLevels||0)+1)}sortDescriptor(e){return this.sort.find(i=>i.field===e)||{field:e}}get leafColumns(){return this._leafColumns}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;const e=ii(...this.dropTargets.map(o=>o.enter)),i=ii(...this.dropTargets.map(o=>o.leave)),s=ii(...this.dropTargets.map(o=>o.drop));this.targetSubscription.add(e.pipe(lt(({target:o,draggable:r})=>{if("groupIndicator"===r.context.type)return;const a=Hu(o.context.column.isLocked),l=Hu(r.context.column.isLocked);(this.lockedColumnsCount>0||a||l)&&this.hint.toggleLock(a)}),dt(({draggable:o,target:r})=>this.canDrop(o,r)),ls(this.trackMove.bind(this,i,s)),xe(o=>Bz(o,{before:this.calculateBefore(o),changeContainer:o.changeContainer})),xe(this.normalizeTarget.bind(this)),lt(this.enter.bind(this)),ls(o=>s.pipe(xe(()=>o),et(i.pipe(lt(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}normalizeTarget(e){let i=e.target;const s=i.context.column.parent;if(s&&s.isSpanColumn){const o=this.dropTargets.toArray(),r=o.find(c=>c.context.column.parent===s),a=o.indexOf(r);i=o[a+(e.before?0:s.childColumns.length-1)]}return Bz(e,{target:i})}trackMove(e,i,s){const o=s.target.context.column,r=this.columnsForLevel(o.level),a=r.indexOf(o),c=s.draggable.context.column.isLocked!==o.isLocked;return c&&(o.locked?a===r.length-1:0===a)?s.draggable.drag.pipe(et(e),et(i),xe(({mouseEvent:d})=>Bz({changeContainer:!0},s,{mouseEvent:d}))):Vt(Bz({changeContainer:c},s))}calculateBefore({draggable:e,target:i,mouseEvent:s,changeContainer:o=!1}){const r=i.element.nativeElement;let a=!1;if(o){const{left:l}=eAe(r);a=l+r.offsetWidth/2>s.pageX,this.localization.rtl&&(a=!a)}else a=tAe(e.element.nativeElement,r);return a}enter({target:e,before:i}){this.hint.enable(),this.localization.rtl&&(i=!i),this.cue.position(nAe(e.element.nativeElement,i))}leave(){this.hint.disable(),this.cue.hide()}drop({draggable:e,target:i,before:s,changeContainer:o}){this.reorderService.reorder({before:s,changeContainer:o,source:e.context.column,target:i.context.column})}};return n.\u0275fac=function(e){return new(e||n)(g(o_),g(_w),g(vw),g(eO),g(r_),g(bw),g(J),g(Br),g(Be))},n.\u0275cmp=K({type:n,selectors:[["","kendoGridHeader",""]],viewQuery:function(e,i){if(1&e&&(Ae(Vw,5),Ae(Nz,5),Ae(sO,5)),2&e){let s;U(s=W())&&(i.dropTargets=s),U(s=W())&&(i.filterMenus=s),U(s=W())&&(i.columnMenus=s)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-grid-header",i.headerClass)},inputs:{columns:"columns",groups:"groups",sort:"sort",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",totalColumnsCount:"totalColumnsCount",totalColumnLevels:"totalColumnLevels",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",filter:"filter",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[st],attrs:Zzt,decls:1,vars:1,consts:[[3,"ngIf"],["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"],["ngFor","",3,"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"],["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",""],[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"],["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(e,i){1&e&&A(0,S8t,2,2,"ng-template",0),2&e&&v("ngIf",!0)},directives:function(){return[pt,Wn,Oz,yM,Vw,Jc,QJ,Un,zo,iO,Nz,sO,eee,Mc,XAe,hJ]},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 }"]}),M([p(),T("design:type",Number)],n.prototype,"totalColumnLevels",void 0),M([p(),T("design:type",Array)],n.prototype,"columns",void 0),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([p(),T("design:type",pm)],n.prototype,"detailTemplate",void 0),M([p(),T("design:type",Boolean)],n.prototype,"scrollable",void 0),M([p(),T("design:type",Object)],n.prototype,"filterable",void 0),M([p(),T("design:type",Array)],n.prototype,"sort",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Object)],n.prototype,"sortable",void 0),M([p(),T("design:type",Boolean)],n.prototype,"groupable",void 0),M([p(),T("design:type",Number)],n.prototype,"lockedColumnsCount",void 0),M([p(),T("design:type",Boolean)],n.prototype,"resizable",void 0),M([p(),T("design:type",Boolean)],n.prototype,"reorderable",void 0),M([p(),T("design:type",Boolean)],n.prototype,"columnMenu",void 0),M([p(),T("design:type",ve)],n.prototype,"columnMenuTemplate",void 0),M([p(),T("design:type",Number)],n.prototype,"totalColumnsCount",void 0),M([p(),T("design:type",String)],n.prototype,"tabIndex",void 0),M([G("class.k-grid-header"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"headerClass",null),M([lc(Vw),T("design:type",wt)],n.prototype,"dropTargets",void 0),M([lc(Nz),T("design:type",wt)],n.prototype,"filterMenus",void 0),M([lc(sO),T("design:type",wt)],n.prototype,"columnMenus",void 0),n=M([T("design:paramtypes",[o_,_w,vw,eO,r_,bw,J,Br,Be])],n),n})();const UAe=n=>n.nativeElement.parentElement.offsetWidth,WAe=n=>um(n).filter(t=>!t.isColumnGroup),Vjt=({originalEvent:n})=>{n.stopPropagation(),n.preventDefault()},qAe=n=>!(!n.parent||!n.parent.isSpanColumn);let XAe=(()=>{let n=class{constructor(e,i,s,o,r,a){this.draggable=e,this.element=i,this.service=s,this.zone=o,this.cdr=r,this.localization=a,this.columns=[],this.subscriptions=new Je,this.rtl=!1}get visible(){return this.column.resizable?"block":"none"}get leftStyle(){return Hu(this.rtl)?0:null}get rightStyle(){return Hu(this.rtl)?null:0}autoFit(){const e=WAe(this.columns),i=qF([this.column]).filter(o=>Hu(o.resizable)),s=i.map(o=>{const r=qAe(o),a=!!r&&o.parent.childColumns.last===o,l=((n,t)=>{let e=0,i=0,s=0;for(;eo.width=0),this.service.measureColumns(s)}ngOnInit(){const e=this.service.changes.pipe(dt(()=>this.column.resizable),dt(i=>Rt(i.columns.find(s=>s===this.column))));this.subscriptions.add(e.pipe(dt(i=>"start"===i.type)).subscribe(this.initState.bind(this))),this.subscriptions.add(e.pipe(dt(i=>"resizeColumn"===i.type)).subscribe(this.resize.bind(this))),this.subscriptions.add(this.service.changes.pipe(dt(i=>"start"===i.type),dt(this.shouldUpdate.bind(this)),jn(1)).subscribe(this.initColumnWidth.bind(this))),this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe(lt(Vjt),lt(()=>this.service.start(this.column)),ls((n=>t=>Vt(t).pipe(my(150),et(n)))(this.draggable.kendoRelease)),ls(((n,t)=>e=>t.kendoDrag.pipe(et(t.kendoRelease.pipe(lt(()=>n.end()))),xe(({pageX:i})=>({originalX:e.pageX,pageX:i}))))(this.service,this.draggable))).subscribe(({pageX:i,originalX:s})=>{const r=((n,t)=>n/(this.column.resizeStartWidth||this.column.width)*100)(i-s);this.service.resizeColumns(r)}))),this.subscriptions.add(e.pipe(dt(i=>"autoFitComplete"===i.type)).subscribe(this.sizeToFit.bind(this))),this.subscriptions.add(e.pipe(dt(i=>"triggerAutoFit"===i.type)).subscribe(this.autoFit.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(({rtl:i})=>this.rtl=i))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}shouldUpdate(){return!WAe(this.columns).map(e=>e.width).some(VQ)}initColumnWidth(){this.column.width=UAe(this.element)}initState(){this.column.resizeStartWidth=UAe(this.element),this.service.resizedColumn({column:this.column,oldWidth:this.column.resizeStartWidth})}resize({deltaPercent:e}){let i=((n,t)=>{const e=t<0?-1:1;return Math.ceil(Math.abs(t)/100*n)*e})(this.column.resizeStartWidth,e);Hu(this.rtl)&&(i*=-1);const s=Math.max(this.column.resizeStartWidth+i,this.column.minResizableWidth),o=s>this.column.minResizableWidth?i:this.column.minResizableWidth-this.column.resizeStartWidth;this.updateWidth(this.column,s),this.service.resizeTable(this.column,o)}sizeToFit({columns:e,widths:i}){const s=e.indexOf(this.column),o=Math.max(...i.map(a=>a[s]))+1,r=o-this.column.resizeStartWidth;this.updateWidth(this.column,o),this.service.resizeTable(this.column,r)}updateWidth(e,i){e.width=i,this.cdr.markForCheck()}columnsForLevel(e){return n_(this.columns?this.columns.filter(i=>i.level===e):[])}};return n.\u0275fac=function(e){return new(e||n)(g(Jc,1),g($),g(s_),g(ce),g(Be),g(J))},n.\u0275dir=R({type:n,selectors:[["","kendoGridColumnHandle",""]],hostVars:6,hostBindings:function(e,i){1&e&&se("dblclick",function(){return i.autoFit()}),2&e&&yt("display",i.visible)("left",i.leftStyle)("right",i.rightStyle)},inputs:{columns:"columns",column:"column"}}),M([p(),T("design:type",Array)],n.prototype,"columns",void 0),M([p(),T("design:type",bo)],n.prototype,"column",void 0),M([G("style.display"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"visible",null),M([G("style.left"),T("design:type",Number),T("design:paramtypes",[])],n.prototype,"leftStyle",null),M([G("style.right"),T("design:type",Number),T("design:paramtypes",[])],n.prototype,"rightStyle",null),M([Zn("dblclick"),T("design:type",Function),T("design:paramtypes",[]),T("design:returntype",void 0)],n.prototype,"autoFit",null),n=M([qn(0,Md()),T("design:paramtypes",[Jc,$,s_,ce,Be,J])],n),n})(),eee=(()=>{let n=class{constructor(e,i,s,o){this.selectionService=e,this.el=i,this.renderer=s,this.ngZone=o,this.selectAllChange=new S,this.type="checkbox",this.stateSet=!1,this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this))})}ngAfterContentChecked(){this.setState()}ngOnChanges(){this.stateSet=!0}ngOnDestroy(){this.destroyClick&&this.destroyClick()}onClick(){const i=!(!(()=>{if(!Ft())return;const n=window.navigator.userAgent,t=n.indexOf("MSIE "),e=n.indexOf("Trident/");return t>0||e>0})()||void 0!==this.selectionService.selectAllState)||this.el.nativeElement.checked,s=this.selectionService.options;this.selectAllChange.emit(i?"checked":"unchecked"),s.enabled&&"multiple"===s.mode&&this.ngZone.run(()=>{this.selectionService.updateAll(i)})}setState(){const e=this.stateSet?this.stateToBool():this.selectionService.selectAllState,i=this.el.nativeElement;this.renderer.setProperty(i,"indeterminate",!Rt(e)),this.renderer.setProperty(i,"checked",!!Rt(e)&&e)}stateToBool(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}};return n.\u0275fac=function(e){return new(e||n)(g(mf),g($),g(Ie),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(e,i){2&e&&fe("type",i.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[st]}),M([p(),T("design:type",String)],n.prototype,"state",void 0),M([Q(),T("design:type",S)],n.prototype,"selectAllChange",void 0),M([G("attr.type"),T("design:type",String)],n.prototype,"type",void 0),n=M([T("design:paramtypes",[mf,$,Ie,ce])],n),n})();const YAe=({value:n,operator:t})=>!ya(n)||(n=>"isnull"===n||"isnotnull"===n||"isempty"===n||"isnotempty"===n)(t),KAe=(n,t,e)=>n.reduce((i,s)=>i||(s.filters?KAe(s.filters,t,s):s.field===t?e:i),void 0),Ujt=(n,t,e="and")=>{const i=KAe((n||{}).filters||[],t);return Rt(i)?i.logic:e};let tee=(()=>{let n=class{constructor(e,i,s,o,r){this.parentService=e,this.childService=i,this.localization=s,this.cd=o,this.close=new S,this.actionsClass="k-action-buttons k-button-group",this._templateContext={},this.menuTabbingService=r}get filter(){return this._filter}set filter(e){this._filter=tO(e)}get childFilter(){return Rt(this._childFilter)||(this._childFilter={filters:nO(this.filter,(this.column||{}).field),logic:Ujt(this.filter,(this.column||{}).field)}),this._childFilter}ngOnInit(){this.subscription=this.childService.changes.subscribe(e=>this._childFilter=e),this.subscription.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngAfterViewChecked(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}get disabled(){return!this.childFilter.filters.some(YAe)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}get hasTemplate(){return Rt(this.column)&&Rt(this.column.filterMenuTemplateRef)}submit(){const e=(n=>(n.filters=n.filters.filter(YAe),n))(this.childFilter);if(e.filters.length){const i=this.filter||{filters:[],logic:"and"};gJ(i,this.column.field),i.filters.push(e),this.parentService.filter(i)}return this.close.emit(),!1}reset(){const e=this.filter||{filters:[],logic:"and"};gJ(e,this.column.field),this.parentService.filter(e),this.close.emit()}onTab(e,i){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(e.preventDefault(),"reset"===i?this.disabled?this.menuTabbingService.firstFocusable.focus():this.filterButton.nativeElement.focus():this.menuTabbingService.firstFocusable.focus())}get clearText(){return this.localization.get("filterClearButton")}get filterText(){return this.localization.get("filterFilterButton")}};return n.\u0275fac=function(e){return new(e||n)(g(Js,4),g(Js),g(J),g(Be),g(Fl))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(e,i){if(1&e&&(Ae(T8t,5),Ae(k8t,5)),2&e){let s;U(s=W())&&(i.resetButton=s.first),U(s=W())&&(i.filterButton=s.first)}},inputs:{actionsClass:"actionsClass",menuTabbingService:"menuTabbingService",filter:"filter",column:"column",isLast:"isLast",isExpanded:"isExpanded"},outputs:{close:"close"},features:[we([Js,Fl])],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",3,"keydown.tab"],["resetButton",""],["type","submit",1,"k-button","k-primary",3,"disabled","keydown.tab"],["filterButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(y(0,"form",0),se("submit",function(){return i.submit()})("reset",function(){return i.reset()}),y(1,"div",1),_n(2,2),A(3,D8t,2,4,"ng-container",3),A(4,I8t,2,1,"ng-container",3),vn(),y(5,"div",4),y(6,"button",5,6),se("keydown.tab",function(o){return i.onTab(o,"reset")}),H(8),_(),y(9,"button",7,8),se("keydown.tab",function(o){return i.onTab(o,"filter")}),H(11),_(),_(),_(),_()),2&e&&(b(2),v("ngSwitch",i.hasTemplate),b(1),v("ngSwitchCase",!1),b(1),v("ngSwitchCase",!0),b(1),v("ngClass",i.actionsClass),b(3),un(i.clearText),b(1),v("disabled",i.disabled),b(2),un(i.filterText))},directives:function(){return[gk,pk,OC,Dh,tg,Un,JAe,pt,zs]},encapsulation:2}),M([Q(),T("design:type",S)],n.prototype,"close",void 0),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isLast",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isExpanded",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),M([p(),T("design:type",Object),T("design:paramtypes",[Object])],n.prototype,"filter",null),M([p(),T("design:type",String)],n.prototype,"actionsClass",void 0),M([at("resetButton",{static:!1}),T("design:type",$)],n.prototype,"resetButton",void 0),M([at("filterButton",{static:!1}),T("design:type",$)],n.prototype,"filterButton",void 0),n=M([qn(0,za()),T("design:paramtypes",[Js,Js,J,Be,Fl])],n),n})(),Vz=(()=>{let n=class extends wAe{constructor(e){super(null),this.localizationService=e}get hostClasses(){return!1}ngAfterViewInit(){this.isFirstDropDown&&this.filterService&&this.filterService.menuTabbingService&&(this.filterService.menuTabbingService.firstFocusable=this.firstOperatorDropDown,this.firstOperatorDropDown.focus())}operatorChange(e){this.currentOperator=e}filterChange(e){this.applyFilter(e)}get currentFilter(){return this._currentFilter}set currentFilter(e){this._currentFilter=e}updateFilter(e){return Object.assign(this.currentFilter,e),this.filter}onChange(e){this.filterChange(this.updateFilter({field:this.column.field,operator:this.currentOperator,value:e}))}onShiftTab(e){e.stopImmediatePropagation(),(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.isFirstDropDown&&this.filterService.menuTabbingService.lastFocusable&&(e.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get filterMenuDropDownLabel(){const e=this.localizationService.get("filterMenuOperatorsDropDownLabel")||"";return Zl(e,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-filter-menu-input-wrapper"]],viewQuery:function(e,i){if(1&e&&Ae(bn,5),2&e){let s;U(s=W())&&(i.firstOperatorDropDown=s.first)}},inputs:{currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService"},features:[N],ngContentSelectors:BQ,decls:2,vars:4,consts:[["kendoFilterMenuDropDown","","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","value","valuePrimitive","valueChange","keydown.shift.tab"]],template:function(e,i){1&e&&(Xt(),y(0,"kendo-dropdownlist",0),se("valueChange",function(o){return i.operatorChange(o)})("keydown.shift.tab",function(o){return i.onShiftTab(o)}),_(),mt(1)),2&e&&v("filterMenuDropDownLabel",i.filterMenuDropDownLabel)("data",i.operators)("value",i.currentOperator)("valuePrimitive",!0)},directives:function(){return[bn,bM]},encapsulation:2}),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),M([at(bn,{static:!1}),T("design:type",bn)],n.prototype,"firstOperatorDropDown",void 0),M([p(),T("design:type",Object),T("design:paramtypes",[Object])],n.prototype,"currentFilter",null),n=M([T("design:paramtypes",[J])],n),n})(),ZAe=(()=>{let n=class{constructor(e){this.localizationService=e,this.operators=[]}get columnLabel(){const e=this.localizationService.get("filterInputLabel")||"";return Zl(e,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-string-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService"},decls:2,vars:11,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",1,"k-textbox",3,"columnLabel","filterDelay","ngModel"]],template:function(e,i){1&e&&(y(0,"kendo-grid-filter-menu-input-wrapper",0),P(1,"input",1),_()),2&e&&(v("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("currentFilter",i.currentFilter)("filterService",i.filterService)("isFirstDropDown",i.isFirstDropDown)("menuTabbingService",i.menuTabbingService),b(1),v("columnLabel",i.columnLabel)("filterDelay",0)("ngModel",null==i.currentFilter?null:i.currentFilter.value))},directives:[Vz,pg,Zh,Xc,zp],encapsulation:2}),M([p(),T("design:type",Array)],n.prototype,"operators",void 0),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",String)],n.prototype,"operator",void 0),M([p(),T("design:type",Object)],n.prototype,"currentFilter",void 0),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),n=M([T("design:paramtypes",[J])],n),n})(),oO=(()=>{let n=class extends SAe{constructor(e){super(null,e),this.logicOperators=pM(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return hM(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return hM(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}get filterMenuDropDownLabel(){const e=this.localization.get("filterMenuLogicDropDownLabel")||"";return Zl(e,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=pM(this.localization),super.localizationChange()}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-string-filter-menu"]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-filtercell",i.hostClasses)},inputs:{filter:"filter",extra:"extra",column:"column",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[N],decls:3,vars:9,consts:[[3,"currentFilter","operators","filterService","column","filter","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService"]],template:function(e,i){1&e&&(P(0,"kendo-grid-string-filter-menu-input",0),A(1,A8t,1,4,"kendo-dropdownlist",1),A(2,F8t,1,6,"kendo-grid-string-filter-menu-input",2)),2&e&&(v("currentFilter",i.firstFilter)("operators",i.operators)("filterService",i.filterService)("column",i.column)("filter",i.filter)("isFirstDropDown",!0)("menuTabbingService",i.menuTabbingService),b(1),v("ngIf",i.extra),b(1),v("ngIf",i.extra))},directives:function(){return[ZAe,pt,bn,bM]},encapsulation:2}),M([G("class.k-filtercell"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Boolean)],n.prototype,"extra",void 0),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),n=M([T("design:paramtypes",[J])],n),n})(),zz=(()=>{let n=class extends xAe{constructor(e){super(null,e),this.logicOperators=pM(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return hM(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return hM(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}get filterMenuDropDownLabel(){const e=this.localization.get("filterMenuLogicDropDownLabel")||"";return Zl(e,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=pM(this.localization),super.localizationChange()}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-numeric-filter-menu"]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-filtercell",i.hostClasses)},inputs:{filter:"filter",extra:"extra",column:"column",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[N],decls:3,vars:15,consts:[[3,"currentFilter","operators","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService","isFirstDropDown"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService"]],template:function(e,i){1&e&&(P(0,"kendo-grid-numeric-filter-menu-input",0),A(1,O8t,1,4,"kendo-dropdownlist",1),A(2,R8t,1,12,"kendo-grid-numeric-filter-menu-input",2)),2&e&&(v("currentFilter",i.firstFilter)("operators",i.operators)("filterService",i.filterService)("column",i.column)("filter",i.filter)("format",i.format)("decimals",i.decimals)("spinners",i.spinners)("min",i.min)("max",i.max)("step",i.step)("menuTabbingService",i.menuTabbingService)("isFirstDropDown",!0),b(1),v("ngIf",i.extra),b(1),v("ngIf",i.extra))},directives:function(){return[QAe,pt,bn,bM]},encapsulation:2}),M([G("class.k-filtercell"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Boolean)],n.prototype,"extra",void 0),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),n=M([T("design:paramtypes",[J])],n),n})(),QAe=(()=>{let n=class{constructor(e){this.localization=e,this.operators=[],this.step=1,this.spinners=!0}messageFor(e){return this.localization.get(e)}get columnLabel(){const e=this.localization.get("filterInputLabel")||"";return Zl(e,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-numeric-filter-menu-input"]],inputs:{operators:"operators",step:"step",spinners:"spinners",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",min:"min",max:"max",decimals:"decimals",format:"format"},decls:3,vars:20,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(e,i){1&e&&(y(0,"kendo-grid-filter-menu-input-wrapper",0),y(1,"kendo-numerictextbox",1),P(2,"kendo-numerictextbox-messages",2),_(),_()),2&e&&(v("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("currentFilter",i.currentFilter)("filterService",i.filterService)("isFirstDropDown",i.isFirstDropDown)("menuTabbingService",i.menuTabbingService),b(1),v("columnLabel",i.columnLabel)("filterDelay",0)("autoCorrect",!0)("value",null==i.currentFilter?null:i.currentFilter.value)("format",i.format)("decimals",i.decimals)("spinners",i.spinners)("min",i.min)("max",i.max)("step",i.step),b(1),v("increment",i.messageFor("filterNumericIncrement"))("decrement",i.messageFor("filterNumericDecrement")))},directives:[Vz,Ki,Zh,Zv],encapsulation:2}),M([p(),T("design:type",Array)],n.prototype,"operators",void 0),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",String)],n.prototype,"operator",void 0),M([p(),T("design:type",Object)],n.prototype,"currentFilter",void 0),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),M([p(),T("design:type",Number)],n.prototype,"step",void 0),M([p(),T("design:type",Number)],n.prototype,"min",void 0),M([p(),T("design:type",Number)],n.prototype,"max",void 0),M([p(),T("design:type",Boolean)],n.prototype,"spinners",void 0),M([p(),T("design:type",Number)],n.prototype,"decimals",void 0),M([p(),T("design:type",String)],n.prototype,"format",void 0),n=M([T("design:paramtypes",[J])],n),n})(),Hz=(()=>{let n=class extends MAe{constructor(e){super(null,e),this.logicOperators=pM(this.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return hM(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return hM(1,this.filter,(this.column||{}).field,this.operator)}logicChange(e){this.filter.logic=e}get filterMenuDropDownLabel(){const e=this.localization.get("filterMenuLogicDropDownLabel")||"";return Zl(e,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=pM(this.localization),super.localizationChange()}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-date-filter-menu"]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-filtercell",i.hostClasses)},inputs:{filter:"filter",extra:"extra",column:"column",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[N],decls:3,vars:18,consts:[[3,"currentFilter","operators","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService"]],template:function(e,i){1&e&&(P(0,"kendo-grid-date-filter-menu-input",0),A(1,P8t,1,4,"kendo-dropdownlist",1),A(2,L8t,1,15,"kendo-grid-date-filter-menu-input",2)),2&e&&(v("currentFilter",i.firstFilter)("operators",i.operators)("filterService",i.filterService)("column",i.column)("filter",i.filter)("activeView",i.activeView)("bottomView",i.bottomView)("topView",i.topView)("format",i.format)("formatPlaceholder",i.formatPlaceholder)("placeholder",i.placeholder)("min",i.min)("max",i.max)("weekNumber",i.weekNumber)("isFirstDropDown",!0)("menuTabbingService",i.menuTabbingService),b(1),v("ngIf",i.extra),b(1),v("ngIf",i.extra))},directives:function(){return[e2e,pt,bn,bM]},encapsulation:2}),M([G("class.k-filtercell"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Boolean)],n.prototype,"extra",void 0),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),n=M([T("design:paramtypes",[J])],n),n})(),rO=(()=>{let n=class{constructor(e,i){this.hostElement=e,this.renderer=i}ngAfterViewInit(){this.radioButtonEl=this.hostElement.nativeElement,this.renderer.setAttribute(this.hostElement.nativeElement,"aria-label",this.columnLabel)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie))},n.\u0275dir=R({type:n,selectors:[["","kendoFilterMenuRadioButton",""]],inputs:{columnLabel:"columnLabel"}}),M([p(),T("design:type",String)],n.prototype,"columnLabel",void 0),n=M([T("design:paramtypes",[$,Ie])],n),n})(),Gz=(()=>{let n=class extends kAe{constructor(e){super(null,e),this.filter={filters:[],logic:"and"},this.idPrefix=cs()}get hostClasses(){return!1}ngAfterViewInit(){this.filterService.menuTabbingService.firstFocusable=this.radioButtons.first.radioButtonEl,this.radioButtons.first.radioButtonEl.focus()}radioId(e){return`${this.idPrefix}_${e}`}onChange(e,i){this.applyFilter(this.updateFilter({field:this.column.field,operator:"eq",value:e})),this.filterService.menuTabbingService.firstFocusable=i}isSelected(e){return this.filtersByField(this.column.field).some(({value:i})=>i===e)}onShiftTab(e){(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.filterService.menuTabbingService.lastFocusable&&(e.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get columnLabel(){const e=this.localization.get("filterInputLabel")||"";return Zl(e,"columnName",this.column.title||this.column.field)}};return n.\u0275fac=function(e){return new(e||n)(g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-boolean-filter-menu"]],viewQuery:function(e,i){if(1&e&&Ae(rO,5),2&e){let s;U(s=W())&&(i.radioButtons=s)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-filtercell",i.hostClasses)},inputs:{filter:"filter",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[N],decls:2,vars:1,consts:[[1,"k-radio-list","k-reset"],[4,"ngFor","ngForOf"],["type","radio","kendoFilterMenuRadioButton","",1,"k-radio",3,"columnLabel","name","checked","change","keydown.shift.tab"],["input",""],[1,"k-radio-label"]],template:function(e,i){1&e&&(y(0,"ul",0),A(1,N8t,5,6,"li",1),_()),2&e&&(b(1),v("ngForOf",i.items))},directives:[Wn,rO],encapsulation:2}),M([G("class.k-filtercell"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"hostClasses",null),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),M([lc(rO),T("design:type",wt)],n.prototype,"radioButtons",void 0),n=M([T("design:paramtypes",[J])],n),n})(),JAe=(()=>{let n=class extends IAe{constructor(e,i){super(e,i)}componentType(){return Rt(this.column)&&!ya(this.column.filter)?(n=>({boolean:Gz,date:Hz,numeric:zz,text:oO}[this.column.filter]))():oO}initComponent(e){super.initComponent(e),this.component.instance.filterService=this.filterService,this.component.instance.menuTabbingService=this.menuTabbingService}};return n.\u0275fac=function(e){return new(e||n)(g(Gt),g(qr))},n.\u0275dir=R({type:n,selectors:[["","kendoFilterMenuHost",""]],inputs:{filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[N]}),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),n=M([T("design:paramtypes",[Gt,qr])],n),n})(),e2e=(()=>{let n=class{constructor(e,i){this.popupService=e,this.localizationService=i,this.operators=[]}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}open(e){this.subscription=this.popupService.onClose.pipe(dt(()=>e.isActive)).subscribe(i=>i.preventDefault())}messageFor(e){return this.localizationService.get(e)}get columnLabel(){const e=this.localizationService.get("filterInputLabel")||"";return Zl(e,"columnName",this.column?this.column.title||this.column.field:"")}};return n.\u0275fac=function(e){return new(e||n)(g(o_),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-date-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",menuTabbingService:"menuTabbingService",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",isFirstDropDown:"isFirstDropDown"},decls:4,vars:22,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","value","placeholder","formatPlaceholder","format","min","max","activeView","bottomView","topView","weekNumber","open"],["picker",""],[3,"toggle","today"]],template:function(e,i){if(1&e){const s=ht();y(0,"kendo-grid-filter-menu-input-wrapper",0),y(1,"kendo-datepicker",1,2),se("open",function(){Le(s);const r=ki(2);return i.open(r)}),P(3,"kendo-datepicker-messages",3),_(),_()}2&e&&(v("column",i.column)("filter",i.filter)("operators",i.operators)("defaultOperator",i.operator)("currentFilter",i.currentFilter)("filterService",i.filterService)("isFirstDropDown",i.isFirstDropDown)("menuTabbingService",i.menuTabbingService),b(1),v("columnLabel",i.columnLabel)("filterDelay",0)("value",null==i.currentFilter?null:i.currentFilter.value)("placeholder",i.placeholder)("formatPlaceholder",i.formatPlaceholder)("format",i.format)("min",i.min)("max",i.max)("activeView",i.activeView)("bottomView",i.bottomView)("topView",i.topView)("weekNumber",i.weekNumber),b(2),v("toggle",i.messageFor("filterDateToggle"))("today",i.messageFor("filterDateToday")))},directives:[Vz,Dn,Zh,cb],encapsulation:2}),M([p(),T("design:type",Array)],n.prototype,"operators",void 0),M([p(),T("design:type",oi)],n.prototype,"column",void 0),M([p(),T("design:type",Object)],n.prototype,"filter",void 0),M([p(),T("design:type",String)],n.prototype,"operator",void 0),M([p(),T("design:type",Object)],n.prototype,"currentFilter",void 0),M([p(),T("design:type",Js)],n.prototype,"filterService",void 0),M([p(),T("design:type",Fl)],n.prototype,"menuTabbingService",void 0),M([p(),T("design:type",String)],n.prototype,"format",void 0),M([p(),T("design:type",Object)],n.prototype,"formatPlaceholder",void 0),M([p(),T("design:type",String)],n.prototype,"placeholder",void 0),M([p(),T("design:type",Date)],n.prototype,"min",void 0),M([p(),T("design:type",Date)],n.prototype,"max",void 0),M([p(),T("design:type",String)],n.prototype,"activeView",void 0),M([p(),T("design:type",String)],n.prototype,"bottomView",void 0),M([p(),T("design:type",String)],n.prototype,"topView",void 0),M([p(),T("design:type",Boolean)],n.prototype,"weekNumber",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isFirstDropDown",void 0),n=M([T("design:paramtypes",[o_,J])],n),n})(),bM=(()=>{let n=class{constructor(e){this.host=e,this.keydownHandler=i=>{i.keyCode===_e.Escape&&this.host.isOpen&&(i.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){const e=this.host.wrapper.nativeElement;e.setAttribute("aria-label",this.filterMenuDropDownLabel),e.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}};return n.\u0275fac=function(e){return new(e||n)(g(bn))},n.\u0275dir=R({type:n,selectors:[["","kendoFilterMenuDropDown",""]],inputs:{filterMenuDropDownLabel:"filterMenuDropDownLabel"}}),M([p(),T("design:type",String)],n.prototype,"filterMenuDropDownLabel",void 0),n=M([T("design:paramtypes",[bn])],n),n})(),jz=(()=>{let n=class{static exports(){return[oO,UF,zz,Hz,Gz,bM,rO,_M.exports()]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[_M],_M]}),n})(),nee=(()=>{let n=class{constructor(e,i,s){this.element=e,this.ngZone=i,this.renderer=s,this.reset=new S,this.apply=new S,this.columnChange=new S,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-action-buttons",this.unlockedCount=0}get className(){return!0}set columns(e){this._columns=e.filter(i=>!1!==i.includeInChooser),this.allColumns=e,this.updateColumnState()}get columns(){return this._columns}isDisabled(e){return!(this.allowHideAll||this.hasFiltered||e.hidden||this.columns.find(i=>i!==e&&!i.hidden))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!e.locked&&!e.hidden}ngOnInit(){!this.element||this.ngZone.runOutsideAngular(()=>{this.domSubscriptions=this.renderer.listen(this.element.nativeElement,"click",e=>{if(rw(e.target,"k-checkbox"))if(this.autoSync){const i=parseInt(e.target.getAttribute("data-index"),10),s=this.columns[i],o=!e.target.checked;Boolean(s.hidden)!==o&&this.ngZone.run(()=>{s.hidden=o,this.columnChange.emit([s])})}else this.updateDisabled()})})}ngOnChanges(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))}ngOnDestroy(){this.domSubscriptions&&this.domSubscriptions()}cancelChanges(){this.forEachCheckBox((e,i)=>{e.checked=!this.columns[i].hidden}),this.updateDisabled(),this.reset.emit()}applyChanges(){const e=[];this.forEachCheckBox((i,s)=>{const o=this.columns[s],r=!i.checked;Boolean(o.hidden)!==r&&(o.hidden=r,e.push(o))}),this.updateDisabled(),this.apply.emit(e)}onTab(e){this.isLast&&(e.preventDefault(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}forEachCheckBox(e){const i=this.element.nativeElement.getElementsByClassName("k-checkbox"),s=i.length;for(let o=0;o{i.checked&&e.push({checkbox:i,index:s}),i.disabled=!1}),this.allowHideAll||1!==e.length||this.hasFiltered){if(this.hasLocked&&!this.hasUnlockedFiltered){const i=this.columns,s=e.filter(o=>!i[o.index].locked);1===s.length&&(s[0].checkbox.disabled=!0)}}else e[0].checkbox.disabled=!0}updateColumnState(){this.hasLocked=this.allColumns.filter(i=>i.locked&&(!i.hidden||!1!==i.includeInChooser)).length>0,this.hasVisibleLocked=this.allColumns.filter(i=>i.locked&&!i.hidden).length>0,this.unlockedCount=this.columns.filter(i=>!i.locked&&!i.hidden).length;const e=this.allColumns.filter(i=>!1===i.includeInChooser&&!i.hidden);e.length?(this.hasFiltered=e.length>0,this.hasUnlockedFiltered=e.filter(i=>!i.locked).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}};return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(Ie))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnlist"]],viewQuery:function(e,i){if(1&e&&Ae(B8t,5),2&e){let s;U(s=W())&&(i.applyButton=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&he("k-column-list-wrapper",i.className)},inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll",actionsClass:"actionsClass",columns:"columns",applyText:"applyText",resetText:"resetText",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[st],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",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button",3,"click"],["type","button",1,"k-button","k-primary",3,"keydown.tab","click"],["applyButton",""]],template:function(e,i){1&e&&(y(0,"div",0),A(1,V8t,4,4,"label",1),_(),A(2,z8t,6,3,"div",2)),2&e&&(b(1),v("ngForOf",i.columns),b(1),v("ngIf",!i.autoSync))},directives:[Wn,pt,Un],encapsulation:2}),M([G("class.k-column-list-wrapper"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"className",null),M([Q(),T("design:type",S)],n.prototype,"reset",void 0),M([Q(),T("design:type",S)],n.prototype,"apply",void 0),M([Q(),T("design:type",S)],n.prototype,"columnChange",void 0),M([p(),T("design:type",Array),T("design:paramtypes",[Array])],n.prototype,"columns",null),M([p(),T("design:type",Boolean)],n.prototype,"autoSync",void 0),M([p(),T("design:type",Boolean)],n.prototype,"allowHideAll",void 0),M([p(),T("design:type",String)],n.prototype,"applyText",void 0),M([p(),T("design:type",String)],n.prototype,"resetText",void 0),M([p(),T("design:type",String)],n.prototype,"actionsClass",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isLast",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isExpanded",void 0),M([p(),T("design:type",zw)],n.prototype,"service",void 0),M([at("applyButton",{static:!1}),T("design:type",$)],n.prototype,"applyButton",void 0),n=M([T("design:paramtypes",[$,ce,Ie])],n),n})(),t2e=(()=>{let n=class{constructor(e,i,s,o,r,a){this.localization=e,this.columnInfoService=i,this.popupService=s,this.ngZone=o,this.renderer=r,this.changeDetector=a,this.autoSync=!1,this.allowHideAll=!0}get columns(){return this.columnInfoService.leafNamedColumns}ngOnDestroy(){this.close()}toggle(e,i){if(this.popupRef)this.close();else{const s=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:e,content:i,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:s},popupAlign:{vertical:"top",horizontal:s}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.ngZone.runOutsideAngular(()=>this.closeClick=this.renderer.listen("document","click",({target:o})=>{Dc(o,r=>r===this.popupRef.popupElement||r===e)||this.close()}))}}onApply(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}onChange(e){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e)}close(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}detachClose(){this.closeClick&&(this.closeClick(),this.closeClick=null)}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Br),g(Oi),g(ce),g(Ie),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-column-chooser"]],inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:5,vars:1,consts:[["type","button",1,"k-button","k-bare","k-button-icon",3,"click"],["anchor",""],[1,"k-icon","k-i-columns"],["template",""],[1,"k-column-chooser-title"],[3,"columns","applyText","resetText","autoSync","allowHideAll","apply","columnChange"]],template:function(e,i){if(1&e){const s=ht();y(0,"button",0,1),se("click",function(){Le(s);const r=ki(1),a=ki(4);return i.toggle(r,a)}),P(2,"span",2),_(),A(3,H8t,3,6,"ng-template",null,3,Ls)}2&e&&fe("title",i.localization.get("columns"))},directives:[nee],encapsulation:2}),M([p(),T("design:type",Boolean)],n.prototype,"autoSync",void 0),M([p(),T("design:type",Boolean)],n.prototype,"allowHideAll",void 0),n=M([T("design:paramtypes",[J,Br,Oi,ce,Ie,Be])],n),n})(),CM=(()=>{class n{constructor(){this.hostClass=!0}ngOnInit(){if(En()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}close(){this.service.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,hostVars:2,hostBindings:function(e,i){2&e&&he("k-columnmenu-item-wrapper",i.hostClass)},inputs:{service:"service"}}),M([p(),T("design:type",zw)],n.prototype,"service",void 0),M([G("class.k-columnmenu-item-wrapper"),T("design:type",Boolean)],n.prototype,"hostClass",void 0),n})(),$z=(()=>{let n=class extends CM{constructor(e,i,s,o){super(),this.localization=e,this.columnInfoService=i,this.changeDetector=s,this.hostElement=o,this.expand=new S,this.collapse=new S,this.expanded=!1,this.isLast=!1,this.actionsClass="k-columnmenu-actions"}get columns(){return this.columnInfoService.leafNamedColumns}onApply(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Br),g(Be),g($))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[N],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(e,i){1&e&&(y(0,"kendo-grid-columnmenu-item",0),se("collapse",function(){return i.onCollapse()})("expand",function(){return i.onExpand()}),A(1,G8t,1,9,"ng-template",1),_()),2&e&&v("text",i.localization.get("columns"))("expanded",i.expanded)},directives:function(){return[Fb,Ab,nee]},encapsulation:2}),M([Q(),T("design:type",S)],n.prototype,"expand",void 0),M([Q(),T("design:type",S)],n.prototype,"collapse",void 0),M([p(),T("design:type",Boolean)],n.prototype,"expanded",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isLast",void 0),n=M([T("design:paramtypes",[J,Br,Be,$])],n),n})(),aO=(()=>{let n=class extends CM{constructor(e,i){super(),this.localization=e,this.hostElement=i,this.expand=new S,this.collapse=new S,this.expanded=!1,this.isLast=!1,this.actionsClass="k-columnmenu-actions"}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}};return n.\u0275fac=function(e){return new(e||n)(g(J),g($))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[N],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(e,i){1&e&&(y(0,"kendo-grid-columnmenu-item",0),se("collapse",function(){return i.onCollapse()})("expand",function(){return i.onExpand()}),A(1,j8t,1,6,"ng-template",1),_()),2&e&&v("text",i.localization.get("filter"))("expanded",i.expanded)},directives:function(){return[Fb,Ab,tee]},encapsulation:2}),M([Q(),T("design:type",S)],n.prototype,"expand",void 0),M([Q(),T("design:type",S)],n.prototype,"collapse",void 0),M([p(),T("design:type",Boolean)],n.prototype,"expanded",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isLast",void 0),n=M([T("design:paramtypes",[J,$])],n),n})(),Ab=(()=>{let n=class{constructor(e){this.templateRef=e}};return n.\u0275fac=function(e){return new(e||n)(g(ve,8))},n.\u0275dir=R({type:n,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),n=M([qn(0,gt()),T("design:paramtypes",[ve])],n),n})(),Fb=(()=>{let n=class{constructor(){this.itemClick=new S,this.expand=new S,this.collapse=new S,this.contentState="collapsed"}get iconClass(){return`k-i-${this.icon}`}ngOnChanges(e){e.expanded&&this.updateContentState()}onClick(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}updateContentState(){this.contentState=this.expanded?"expanded":"collapsed"}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,Ab,5),2&e){let o;U(o=W())&&(i.contentTemplate=o.first)}},inputs:{expanded:"expanded",icon:"icon",text:"text",selected:"selected",disabled:"disabled"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[st],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(e,i){1&e&&(y(0,"div",0),se("click",function(o){return i.onClick(o)})("keydown.enter",function(o){return i.onClick(o)}),A(1,$8t,1,1,"span",1),H(2),_(),A(3,U8t,3,2,"div",2)),2&e&&(he("k-state-selected",i.selected)("k-state-disabled",i.disabled),fe("aria-expanded",i.expanded),b(1),v("ngIf",i.icon),b(1),_t(" ",i.text," "),b(1),v("ngIf",i.contentTemplate))},directives:[pt,Un,zs],encapsulation:2,data:{animation:[fc("state",[Tr("collapsed",zt({display:"none"})),Tr("expanded",zt({display:"block"})),Go("collapsed => expanded",[zt({height:"0px",display:"block"}),Xi("100ms ease-in",zt({height:"*"}))]),Go("expanded => collapsed",[zt({height:"*"}),Xi("100ms ease-in",zt({height:"0px"}))])])]}}),M([Q(),T("design:type",S)],n.prototype,"itemClick",void 0),M([Q(),T("design:type",S)],n.prototype,"expand",void 0),M([Q(),T("design:type",S)],n.prototype,"collapse",void 0),M([p(),T("design:type",String)],n.prototype,"icon",void 0),M([p(),T("design:type",String)],n.prototype,"text",void 0),M([p(),T("design:type",Boolean)],n.prototype,"selected",void 0),M([p(),T("design:type",Boolean)],n.prototype,"disabled",void 0),M([p(),T("design:type",Boolean)],n.prototype,"expanded",void 0),M([ct(Ab,{static:!1}),T("design:type",Ab)],n.prototype,"contentTemplate",void 0),n})(),iee=(()=>{let n=class extends CM{constructor(e,i,s){super(),this.localization=e,this.sortService=i,this.renderer=s}get sortedAsc(){const e=this.descriptor;return e&&(!e.dir||"asc"===e.dir)}get sortedDesc(){const e=this.descriptor;return e&&"desc"===e.dir}toggleSort(e){const i=this.service.column.field,{mode:s,allowUnsort:o}=JJ(this.service.sortable),r=this.descriptor,a="multiple"===s?this.service.sort.filter(l=>l.field!==i):[];if(r&&r.dir===e){if(!o)return}else a.push({field:i,dir:e});this.sortService.sort(a),this.close()}get descriptor(){return[].concat(this.service.sort||[]).find(e=>e.field===this.service.column.field)}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(bw),g(Ie))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-sort"]],features:[N],decls:2,vars:4,consts:[["icon","sort-asc-sm",3,"text","selected","itemClick"],["icon","sort-desc-sm",3,"text","selected","itemClick"]],template:function(e,i){1&e&&(y(0,"kendo-grid-columnmenu-item",0),se("itemClick",function(){return i.toggleSort("asc")}),_(),y(1,"kendo-grid-columnmenu-item",1),se("itemClick",function(){return i.toggleSort("desc")}),_()),2&e&&(v("text",i.localization.get("sortAscending"))("selected",i.sortedAsc),b(1),v("text",i.localization.get("sortDescending"))("selected",i.sortedDesc))},directives:[Fb],encapsulation:2}),n=M([T("design:paramtypes",[J,bw,Ie])],n),n})(),Uz=(()=>{let n=class extends CM{constructor(e,i,s){super(),this.localization=e,this.columnInfoService=i,this.changeDetector=s}get text(){return this.localization.get(this.locked?"unlock":"lock")}get icon(){return this.locked?"unlock":"lock"}get disabled(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(e){let i=this.service.column;for(;i.parent;)i=i.parent;const s=[i],o=[];for(;s.length;){const r=s.shift();r.locked=e,o.push(r),r.hasChildren&&s.push(...r.childrenArray)}this.columnInfoService.changeLocked(o)}get locked(){return this.service.column.locked}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Br),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-lock"]],features:[N],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(e,i){1&e&&(y(0,"kendo-grid-columnmenu-item",0),se("itemClick",function(){return i.toggleColumn()}),_()),2&e&&v("text",i.text)("icon",i.icon)("disabled",i.disabled)},directives:[Fb],encapsulation:2}),n=M([T("design:paramtypes",[J,Br,Be])],n),n})(),Wz=(()=>{let n=class extends CM{constructor(e,i){super(),this.localization=e,this.hostElement=i,this.expand=new S,this.collapse=new S,this.expanded=!1,this.actionsClass="k-columnmenu-actions",this._isLast=!1}set isLast(e){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=e}get isLast(){return this._isLast}onTab(e,i){this.isLast&&i&&(e.preventDefault(),e.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}onExpand(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}getLastFocusableItem(){const e=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return e[this.expanded?e.length-1:0]}};return n.\u0275fac=function(e){return new(e||n)(g(J),g($))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",isLast:"isLast",showLock:"showLock",showStick:"showStick"},outputs:{expand:"expand",collapse:"collapse"},features:[N],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(e,i){1&e&&(y(0,"kendo-grid-columnmenu-item",0),se("keydown.tab",function(o){return i.onTab(o,!i.expanded)})("collapse",function(){return i.onCollapse()})("expand",function(){return i.onExpand()}),A(1,X8t,2,2,"ng-template",1),_()),2&e&&v("text",i.localization.get("setColumnPosition"))("expanded",i.expanded)},directives:function(){return[Fb,Ab,pt,Uz,qz]},encapsulation:2}),M([Q(),T("design:type",S)],n.prototype,"expand",void 0),M([Q(),T("design:type",S)],n.prototype,"collapse",void 0),M([p(),T("design:type",Boolean)],n.prototype,"expanded",void 0),M([p(),T("design:type",Boolean)],n.prototype,"showLock",void 0),M([p(),T("design:type",Boolean)],n.prototype,"showStick",void 0),M([p(),T("design:type",Boolean),T("design:paramtypes",[Boolean])],n.prototype,"isLast",null),n=M([T("design:paramtypes",[J,$])],n),n})(),lO=(()=>{let n=class{constructor(e,i,s){this.hostElement=e,this.renderer=i,this.ngZone=s,this._isFirst=!1,this._isLast=!1,this.subs=new Je,this.onTab=o=>{if(o.keyCode===_e.Tab&&(this.isFirst&&o.shiftKey&&o.target===this.columnMenuItems[0]&&(o.preventDefault(),this.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),this.isLast&&!o.shiftKey)){const r=this.getLastColumnMenuItem(),a=this.menuItemComponent.expanded;r===o.target&&!a&&(o.preventDefault(),this.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}}set isFirst(e){if(e){const i=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=i,this.ngZone.runOutsideAngular(()=>{const s=this.renderer.listen(i,"keydown",this.onTab);this.subs.add(s)})}this._isFirst=e}get isFirst(){return this._isFirst}set isLast(e){if(this.columnMenuItems){if(e){const i=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=i,this.ngZone.runOutsideAngular(()=>{const s=this.renderer.listen(i,"keydown",this.onTab);this.subs.add(s)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=e}}get isLast(){return this._isLast}ngAfterViewInit(){this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(e=>this.renderer.setAttribute(e,"tabindex","0")),this.menuItemComponent instanceof aO&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}getLastColumnMenuItem(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}isExpandableItem(){return this.menuItemComponent instanceof aO||this.menuItemComponent instanceof $z||this.menuItemComponent instanceof Wz}};return n.\u0275fac=function(e){return new(e||n)(g($),g(Ie),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),M([p("kendoGridColumnMenuItem"),T("design:type",Object)],n.prototype,"menuItemComponent",void 0),n=M([T("design:paramtypes",[$,Ie,ce])],n),n})(),see=(()=>{let n=class{constructor(e,i){this.service=e,this.ngZone=i}ngAfterContentInit(){!this.columnMenuItems.length||(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe(jn(1)).subscribe(()=>this.service.menuTabbingService.firstFocusable.focus()))}};return n.\u0275fac=function(e){return new(e||n)(g(zw),g(ce))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,lO,5),2&e){let o;U(o=W())&&(i.columnMenuItems=o)}},ngContentSelectors:BQ,decls:1,vars:0,template:function(e,i){1&e&&(Xt(),mt(0))},encapsulation:2}),M([fi(lO,{descendants:!0}),T("design:type",wt)],n.prototype,"columnMenuItems",void 0),n=M([T("design:paramtypes",[zw,ce])],n),n})(),qz=(()=>{let n=class extends CM{constructor(e,i,s){super(),this.localization=e,this.columnInfoService=i,this.changeDetector=s}get text(){return this.localization.get(this.sticky?"unstick":"stick")}get icon(){return this.sticky?"unstick":"stick"}get disabled(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(e){let i=this.service.column;for(;i.parent;)i=i.parent;const s=[i],o=[];for(;s.length;){const r=s.shift();r.sticky=e,o.push(r),r.hasChildren&&s.push(...r.childrenArray)}this.columnInfoService.changeStuck(o)}get sticky(){return this.service.column.sticky}};return n.\u0275fac=function(e){return new(e||n)(g(J),g(Br),g(Be))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-columnmenu-stick"]],features:[N],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(e,i){1&e&&(y(0,"kendo-grid-columnmenu-item",0),se("itemClick",function(){return i.toggleColumn()}),_()),2&e&&v("text",i.text)("icon",i.icon)("disabled",i.disabled)},directives:[Fb],encapsulation:2}),n=M([T("design:paramtypes",[J,Br,Be])],n),n})(),oee=(()=>{let n=class{static exports(){return[t2e,aO,Fb,Ab,iee,Uz,qz,Wz,$z,cM,see,lO,sO]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,jz]]}),n})();const qjt=[Ut,Lz,GJ,jz,a_,BAe,oee];let n2e=(()=>{let n=class{static exports(){return[jF,eee]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[...qjt]]}),n})();var ree;let gm=ree=class extends bo{constructor(t){super(t),this.parent=t}get templateRef(){return this.template?this.template.templateRef:void 0}};var aee;gm.\u0275fac=function(t){return new(t||gm)(g(bo,13))},gm.\u0275cmp=K({type:gm,selectors:[["kendo-grid-command-column"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,ju,5),2&t){let s;U(s=W())&&(e.template=s.first)}},features:[we([{provide:bo,useExisting:He(()=>ree)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),M([ct(ju,{static:!1}),T("design:type",ju)],gm.prototype,"template",void 0),gm=ree=M([qn(0,za()),qn(0,Md()),qn(0,gt()),T("design:paramtypes",[bo])],gm);let yf=aee=class extends bo{constructor(t){super(t),this.parent=t,this.isCheckboxColumn=!0}get templateRef(){return this.template?this.template.templateRef:void 0}};yf.\u0275fac=function(t){return new(t||yf)(g(bo,13))},yf.\u0275cmp=K({type:yf,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,ju,5),2&t){let s;U(s=W())&&(e.template=s.first)}},inputs:{showSelectAll:"showSelectAll"},features:[we([{provide:bo,useExisting:He(()=>aee)}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),M([p(),T("design:type",Boolean)],yf.prototype,"showSelectAll",void 0),M([ct(ju,{static:!1}),T("design:type",ju)],yf.prototype,"template",void 0),yf=aee=M([qn(0,za()),qn(0,Md()),qn(0,gt()),T("design:paramtypes",[bo])],yf);let lee=(()=>{let n=class{constructor(e,i,s,o){this.selectionService=e,this.el=i,this.renderer=s,this.ngZone=o,this.type="checkbox",this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this)),this.destroyKeyDown=this.renderer.listen(this.el.nativeElement,"keydown",this.onKeyDown.bind(this))})}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyClick&&this.destroyClick(),this.destroyKeyDown&&this.destroyKeyDown()}onClick(){this.selectionService.options.enabled&&this.ngZone.run(()=>{const e=this.selectionService.toggleByIndex(this.itemIndex);e.ctrlKey=!0,e.shiftKey=!1,this.selectionService.changes.emit(e)})}onKeyDown(e){e.keyCode===_e.Enter&&this.onClick()}setCheckedState(){this.renderer.setProperty(this.el.nativeElement,"checked",this.selectionService.isSelected(this.itemIndex))}};return n.\u0275fac=function(e){return new(e||n)(g(mf),g($),g(Ie),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridSelectionCheckbox",""]],hostVars:1,hostBindings:function(e,i){2&e&&fe("type",i.type)},inputs:{itemIndex:["kendoGridSelectionCheckbox","itemIndex"]}}),M([p("kendoGridSelectionCheckbox"),T("design:type",Number)],n.prototype,"itemIndex",void 0),M([G("attr.type"),T("design:type",String)],n.prototype,"type",void 0),n=M([T("design:paramtypes",[mf,$,Ie,ce])],n),n})(),cee=(()=>{let n=class{constructor(e,i,s,o,r,a,l,c,d,u,h,f,m){this.detailsService=e,this.groupsService=i,this.changeNotification=s,this.editService=o,this.localization=r,this.ngZone=a,this.renderer=l,this.element=c,this.domEvents=d,this.selectionService=u,this.cellSelectionService=h,this.columnInfoService=f,this.navigationService=m,this.columns=[],this.groups=[],this.skip=0,this.noRecordsText=this.localization.get("noRecords"),this.isLocked=!1,this.skipGroupDecoration=!1,this.showGroupFooters=!1,this.lockedColumnsCount=0,this.totalColumnsCount=0,this.trackBy=oJ,this.rowClass=()=>null,this.cellKeydownSubscription=this.navigationService.cellKeydown.subscribe(C=>this.cellKeydownHandler(C)),this.trackByWrapper=this.trackByWrapper.bind(this),this.trackByColumns=this.trackByColumns.bind(this)}get newDataItem(){return this.editService.newDataItem}get unlockedColumnsCount(){return this.totalColumnsCount-this.lockedColumnsCount-(this.allColumns||this.columns).length}isAriaSelected(e,i){return this.cellSelectionService.isCellSelected(e,i)||this.isRowSelected(e)?"true":"false"}toggleRow(e,i){return this.detailsService.toggleRow(e,i),!1}isExpanded(e){return this.detailsService.isExpanded(e.index,e.data)}detailButtonStyles(e){return this.isExpanded(e)?"k-i-minus":"k-i-plus"}detailButtonTitle(e){const i=this.isExpanded(e)?"detailCollapse":"detailExpand";return this.localization.get(i)}isGroup(e){return"group"===e.type}isDataItem(e){return!this.isGroup(e)&&!this.isFooter(e)}isFooter(e){return"footer"===e.type}isFooterItemInExpandedGroup(e){return this.isInExpandedGroup({data:e.data,index:e.groupIndex,parentGroup:e.group.parentGroup})}isDataItemInExpandedGroup(e){return this.isInExpandedGroup({data:e.group.data,index:e.groupIndex,parentGroup:e.group.parentGroup})}isInExpandedGroup(e){return this.groupsService.isInExpandedGroup(e)}isParentGroupExpanded(e){return this.groupsService.isInExpandedGroup(e.parentGroup)}isOdd(e){return e.index%2!=0}isSelectable(){return this.selectable&&!1!==this.selectable.enabled}isRowSelected(e){return this.selectionService.isSelected(e.index)}trackByWrapper(e,i){return"data"===i.type&&(i.isEditing=this.editService.hasEdited(i.index)),this.trackBy(e,i)}trackByColumns(e,i){return this.virtualColumns?e:i}ngDoCheck(){this.groupHeaderColumns=this.hasGroupHeaderColumn?n_(this.skipGroupDecoration?this.columns:this.columns.toArray().slice(1)):[],this.groupHeaderSlaveCellsCount=this.isLocked?this.hasGroupHeaderColumn?this.columnsContainer.nonLockedColumnsToRender.length:1:0}ngAfterViewChecked(){this.rowSticky&&this.applyStickyRowsStyling()}ngOnChanges(e){Io("columns",e,!1)&&this.changeNotification.notify()}logicalRowIndex(e){let i=this.skip+e;this.hasDetailTemplate&&(i*=2);const s=1+i,o=this.editService.hasNewItem?1:0,r=wz(this.filterable)?1:0;return s+(this.columnInfoService.totalLevels+r+o)}addRowLogicalIndex(){return this.columnInfoService.totalLevels+1+(wz(this.filterable)?1:0)}logicalColIndex(e){return Rt(e.leafIndex)?e.leafIndex+(this.hasDetailTemplate?1:0):-1}ngOnInit(){this.ngZone.runOutsideAngular(()=>{const i=this.clickHandler.bind(this),s=this.renderer.listen(this.element.nativeElement,"mousedown",i),o=this.renderer.listen(this.element.nativeElement,"mouseup",i),r=this.renderer.listen(this.element.nativeElement,"click",i),a=this.renderer.listen(this.element.nativeElement,"contextmenu",i),l=this.renderer.listen(this.element.nativeElement,"touchstart",i),c=this.renderer.listen(this.element.nativeElement,"touchend",i);this.clickSubscription=()=>{s(),o(),r(),a()},this.touchSubscription=()=>{l(),c()}});let e=this.localization.get("noRecords");this.localization.changes.subscribe(()=>{this.noRecordsText===e&&(this.noRecordsText=this.localization.get("noRecords"),e=this.noRecordsText)})}ngOnDestroy(){this.clickSubscription&&this.clickSubscription(),this.touchSubscription&&this.touchSubscription(),this.cellKeydownSubscription.unsubscribe(),clearTimeout(this.clickTimeout)}isEditingCell(e,i){return this.editService.isEditing()&&this.editService.isEditedColumn(e,i)}isEditingRow(e){return this.editService.isEditing()&&this.editService.hasEdited(e)}get hasGroupHeaderColumn(){return this.columnsContainer.hasGroupHeaderColumn}get columnsContainer(){return this.columnInfoService.columnsContainer}get columnsSpan(){return _z(this.columns)}get allColumnsSpan(){return _z(this.allColumns||this.columns)}get colSpan(){return this.columnsSpan+this.groups.length+(this.hasDetailTemplate?1:0)}get footerColumns(){return this.isLocked?this.columnsContainer.lockedColumnsToRender:this.columnsContainer.nonLockedColumnsToRender}showGroupHeader(e){return!e.data.skipHeader}addStickyColumnStyles(e){const i=this.columnInfoService.stickyColumnsStyles(e);return Object.assign({},e.style,i)}resizeHandler(){this.applyStickyRowsStyling()}get hasDetailTemplate(){return Rt(this.detailTemplate)}clickHandler(e){const i=this.element.nativeElement,s=this.eventTarget(e);let o,r,a,l,c=s;do{o=Dc(c,Ql("td")),r=Dc(o,Ql("tr")),a=Dc(r,Ql("tbody")),c=a,l=UQ(c,dm("k-grid"),i)}while(a&&a!==i&&!l);if(o&&!rw(o,cAe)&&!rw(r,"k-grouping-row k-group-footer k-detail-row k-grid-norecords")&&a===i&&!l&&(this.editService.preventCellClose(),!(s!==o&&VF(s,!1)||Ql("label")(s)||rw(s,"k-icon")||UQ(s,dm("k-widget k-grid-ignore-click"),o)))){const u=this.cellClickArgs(o,r,e);"mousedown"===e.type||"touchstart"===e.type?this.domEvents.cellMousedown.emit(u):"mouseup"===e.type||"touchend"===e.type?this.domEvents.cellMouseup.emit(u):(u.isEditedColumn||!this.editService.closeCell(e))&&("click"===e.type?this.clickTimeout=setTimeout(()=>{this.emitCellClick(u)},0):this.emitCellClick(u))}}emitCellClick(e){this.domEvents.cellClick.emit(Object.assign(e,{isEdited:e.isEditedRow||e.isEditedColumn}))}cellKeydownHandler(e){e.keyCode===_e.Enter&&this.clickHandler(e)}cellClickArgs(e,i,s){const o=((n,t)=>{let e=0;for(let i=0;i[].slice.call(n))(this.element.nativeElement.querySelectorAll(".k-grid-row-sticky"));if(e.length){let s=0;const o=[];e.forEach(r=>{const a=r.getBoundingClientRect().height;o.push({accumulatedHeight:s,rowHeight:a}),s+=a}),e.forEach((r,a)=>{this.renderer.setStyle(r,"top",`${o[a].accumulatedHeight}px`),this.renderer.setStyle(r,"bottom",s-o[a].accumulatedHeight-o[a].rowHeight+"px")})}}};return n.\u0275fac=function(e){return new(e||n)(g(t_),g(gf),g(fw),g(_a),g(J),g(ce),g(Ie),g($),g(Gu),g(mf),g(dw),g(Br),g(Qs))},n.\u0275cmp=K({type:n,selectors:[["","kendoGridTableBody",""]],inputs:{columns:"columns",groups:"groups",skip:"skip",noRecordsText:"noRecordsText",isLocked:"isLocked",skipGroupDecoration:"skipGroupDecoration",showGroupFooters:"showGroupFooters",lockedColumnsCount:"lockedColumnsCount",totalColumnsCount:"totalColumnsCount",trackBy:"trackBy",rowClass:"rowClass",allColumns:"allColumns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",data:"data",selectable:"selectable",filterable:"filterable",virtualColumns:"virtualColumns",rowSticky:"rowSticky"},features:[st],attrs:Y8t,decls:4,vars:5,consts:[[3,"ngIf"],["class","k-grid-norecords",4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],[3,"resize",4,"ngIf"],["kendoGridLogicalRow","",1,"k-grid-add-row","k-grid-edit-row",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-hierarchy-cell","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",3,"rowIndex","columnIndex","isNew","column","dataItem","k-grid-content-sticky","ngClass","left","ngStyle","logicalRowIndex","logicalColIndex","colSpan",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell"],["kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell",3,"logicalRowIndex","logicalColIndex"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",3,"rowIndex","columnIndex","isNew","column","dataItem","ngClass","ngStyle","logicalRowIndex","logicalColIndex","colSpan"],[1,"k-grid-norecords"],[3,"ngIf","templateContext"],[4,"ngIf"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","k-grid-row-sticky","ngClass","k-alt","k-master-row","k-grid-edit-row","k-state-selected",4,"ngIf"],["class","k-detail-row","kendoGridLogicalRow","",3,"k-alt","dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount",4,"ngIf"],["class","k-group-footer","kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","ngClass"],["class","k-hierarchy-cell","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell",4,"ngIf"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",3,"rowIndex","columnIndex","column","dataItem","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","k-grid-content-sticky","k-touch-action-none","k-touch-action-auto","ngClass","k-grid-edit-cell","ngStyle","k-state-selected",4,"ngFor","ngForOf","ngForTrackBy"],["kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell"],["class","k-icon","href","#","tabindex","-1",3,"ngClass","click",4,"ngIf"],["href","#","tabindex","-1",1,"k-icon",3,"ngClass","click"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",3,"rowIndex","columnIndex","column","dataItem","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","ngClass","ngStyle"],["kendoGridLogicalRow","",1,"k-detail-row",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount"],["class","k-group-cell",4,"ngFor","ngForOf"],[1,"k-hierarchy-cell"],["kendoGridLogicalCell","","role","gridcell","aria-selected","false",1,"k-detail-cell",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","colIndex","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-group-cell"],["kendoGridLogicalRow","",1,"k-group-footer",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf","ngForTrackBy"],["kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex"],[3,"templateContext"],[3,"resize"]],template:function(e,i){1&e&&(A(0,e6t,4,8,"ng-template",0),A(1,s6t,4,6,"tr",1),A(2,w6t,4,4,"ng-template",2),A(3,S6t,1,0,"kendo-resize-sensor",3)),2&e&&(v("ngIf",i.editService.hasNewItem),b(1),v("ngIf",0===(null==i.data?null:i.data.length)||null==i.data),b(1),v("ngForOf",i.data)("ngForTrackBy",i.trackByWrapper),b(1),v("ngIf",i.rowSticky))},directives:function(){return[pt,Wn,Oz,yM,i2e,Un,zo,iO,RAe,zs,Kr]},encapsulation:2}),M([p(),T("design:type",Array)],n.prototype,"columns",void 0),M([p(),T("design:type",Array)],n.prototype,"allColumns",void 0),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([p(),T("design:type",pm)],n.prototype,"detailTemplate",void 0),M([p(),T("design:type",gw)],n.prototype,"noRecordsTemplate",void 0),M([p(),T("design:type",Array)],n.prototype,"data",void 0),M([p(),T("design:type",Number)],n.prototype,"skip",void 0),M([p(),T("design:type",Object)],n.prototype,"selectable",void 0),M([p(),T("design:type",Object)],n.prototype,"filterable",void 0),M([p(),T("design:type",String)],n.prototype,"noRecordsText",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isLocked",void 0),M([p(),T("design:type",Boolean)],n.prototype,"skipGroupDecoration",void 0),M([p(),T("design:type",Boolean)],n.prototype,"showGroupFooters",void 0),M([p(),T("design:type",Number)],n.prototype,"lockedColumnsCount",void 0),M([p(),T("design:type",Number)],n.prototype,"totalColumnsCount",void 0),M([p(),T("design:type",Boolean)],n.prototype,"virtualColumns",void 0),M([p(),T("design:type",Function)],n.prototype,"trackBy",void 0),M([p(),T("design:type",Function)],n.prototype,"rowSticky",void 0),M([p(),T("design:type",Function)],n.prototype,"rowClass",void 0),n=M([T("design:paramtypes",[t_,gf,fw,_a,J,ce,Ie,$,Gu,mf,dw,Br,Qs])],n),n})(),i2e=(()=>{let n=class{constructor(e,i,s,o){this.editService=e,this.idService=i,this.localizationService=s,this.cellContext=o,this.isNew=!1,this._templateContext={},this._editTemplateContext={}}get commandCellClass(){return this.isCommand(this.column)}set rowIndex(e){this._rowIndex=e,this.updateCellContext()}get rowIndex(){return this._rowIndex}get isEdited(){if(!this.editService.isEditing()&&!this.isNew||!this.isColumnEditable)return!1;const e=this.editService.columnContext(this.rowIndex,this.column);return this.isFieldEditable(e,this.column)}get formGroup(){return this.editService.context(this.rowIndex).group}get templateContext(){return this._templateContext}get editTemplateContext(){return this._editTemplateContext.$implicit=this.formGroup,this._editTemplateContext.isNew=this.isNew,this._editTemplateContext.column=this.column,this._editTemplateContext.dataItem=this.dataItem,this._editTemplateContext.formGroup=this.formGroup,this._editTemplateContext.rowIndex=this.rowIndex,this._editTemplateContext}get format(){if(WF(this.column)&&!ya(this.column.format))return GQ(this.column.format)}get isBoundColumn(){return this.column.field&&!this.column.templateRef}get isCheckboxColumn(){return VIe(this.column)&&!this.column.templateRef}get selectionCheckboxId(){return this.idService.selectionCheckboxId(this.rowIndex)}get selectionCheckboxLabel(){return this.localizationService.get("selectionCheckboxLabel")}get isSpanColumn(){return YQ(this.column)&&!this.column.templateRef}get childColumns(){return n_([this.column])}get isColumnEditable(){return!(!this.column||this.isCommand(this.column))&&!1!==this.column.editable}ngDoCheck(){this.updateCellContext()}ngOnChanges(e){this.updateTemplateContext()}ngAfterContentChecked(){this.updateTemplateContext()}isCommand(e){return e instanceof gm}isFieldEditable(e,i){return!!Rt(e)&&(!!Rt(i.editTemplate)||Rt(e.group)&&Rt(e.group.get(i.field)))}updateCellContext(){this.cellContext&&(this.cellContext.rowIndex=this._rowIndex)}updateTemplateContext(){if(!this.column.templateRef)return;const e=this._templateContext;e.isNew=this.isNew,e.column=this.column,e.dataItem=this.dataItem,e.rowIndex=this.rowIndex,e.columnIndex=this.columnIndex,e.$implicit=this.dataItem}};return n.\u0275fac=function(e){return new(e||n)(g(_a),g(r_),g(J),g(Jl,8))},n.\u0275cmp=K({type:n,selectors:[["","kendoGridCell",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-command-cell",i.commandCellClass)},inputs:{isNew:"isNew",rowIndex:"rowIndex",column:"column",columnIndex:"columnIndex",dataItem:"dataItem"},features:[st],attrs:T6t,decls:3,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngIf"],["ngFor","",3,"ngForOf"],[1,"k-checkbox",3,"kendoGridSelectionCheckbox"],[4,"ngIf"],[3,"ngSwitch",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoGridFocusable","",3,"format","formControl",4,"ngSwitchCase"],["type","checkbox","class","k-checkbox","kendoGridFocusable","",3,"formControl",4,"ngSwitchCase"],["type","text","class","k-textbox","kendoGridFocusable","",3,"formControl",4,"ngSwitchDefault"],["kendoGridFocusable","",3,"format","formControl"],["type","checkbox","kendoGridFocusable","",1,"k-checkbox",3,"formControl"],["type","text","kendoGridFocusable","",1,"k-textbox",3,"formControl"]],template:function(e,i){1&e&&(_n(0,0),A(1,A6t,5,6,"ng-container",1),A(2,V6t,3,2,"ng-container",1),vn()),2&e&&(v("ngSwitch",i.isEdited),b(1),v("ngSwitchCase",!1),b(1),v("ngSwitchCase",!0))},directives:[Dh,tg,pt,zs,Wn,Mc,lee,pL,Ki,Xc,RC,Dn,bU,pg],pipes:[bJ],encapsulation:2}),M([G("class.k-command-cell"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"commandCellClass",null),M([p(),T("design:type",Object)],n.prototype,"column",void 0),M([p(),T("design:type",Number)],n.prototype,"columnIndex",void 0),M([p(),T("design:type",Boolean)],n.prototype,"isNew",void 0),M([p(),T("design:type",Number),T("design:paramtypes",[Number])],n.prototype,"rowIndex",null),M([p(),T("design:type",Object)],n.prototype,"dataItem",void 0),n=M([qn(3,gt()),qn(3,Rn(Jl)),T("design:paramtypes",[_a,r_,J,Object])],n),n})(),s2e=(()=>{let n=class extends af{constructor(e,i,s,o,r,a){super(s,o,null,r,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(e){e.preventDefault(),this.editService.beginEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(e){return new(e||n)(g(_a),g(Jl),g($),g(Ie),g(J),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(e,i){1&e&&se("click",function(o){return i.onClick(o)}),2&e&&(yt("display",i.visible),he("k-grid-edit-command",i.commandClass))},features:[N]}),M([G("style.display"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"visible",null),M([G("class.k-grid-edit-command"),T("design:type",Boolean)],n.prototype,"commandClass",void 0),M([Zn("click",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"onClick",null),n=M([qn(1,Rn(Jl)),T("design:paramtypes",[_a,Object,$,Ie,J,ce])],n),n})(),o2e=(()=>{let n=class extends af{constructor(e,i,s,o,r,a){super(s,o,null,r,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(e){e.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(e){return new(e||n)(g(_a),g(Jl),g($),g(Ie),g(J),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(e,i){1&e&&se("click",function(o){return i.onClick(o)}),2&e&&(yt("display",i.visible),he("k-grid-cancel-command",i.commandClass))},features:[N]}),M([G("style.display"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"visible",null),M([G("class.k-grid-cancel-command"),T("design:type",Boolean)],n.prototype,"commandClass",void 0),M([Zn("click",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"onClick",null),n=M([qn(1,Rn(Jl)),T("design:paramtypes",[_a,Object,$,Ie,J,ce])],n),n})(),r2e=(()=>{let n=class extends af{constructor(e,i,s,o,r,a){super(s,o,null,r,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(e){e.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(e){return new(e||n)(g(_a),g(Jl),g($),g(Ie),g(J),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(e,i){1&e&&se("click",function(o){return i.onClick(o)}),2&e&&(yt("display",i.visible),he("k-grid-save-command",i.commandClass))},features:[N]}),M([G("style.display"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"visible",null),M([G("class.k-grid-save-command"),T("design:type",Boolean)],n.prototype,"commandClass",void 0),M([Zn("click",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"onClick",null),n=M([qn(1,Rn(Jl)),T("design:paramtypes",[_a,Object,$,Ie,J,ce])],n),n})(),a2e=(()=>{let n=class extends af{constructor(e,i,s,o,r,a){super(s,o,null,r,a),this.editService=e,this.cellContext=i,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(e){e.preventDefault(),this.editService.remove(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}};return n.\u0275fac=function(e){return new(e||n)(g(_a),g(Jl),g($),g(Ie),g(J),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(e,i){1&e&&se("click",function(o){return i.onClick(o)}),2&e&&(yt("display",i.visible),he("k-grid-remove-command",i.commandClass))},features:[N]}),M([G("style.display"),T("design:type",String),T("design:paramtypes",[])],n.prototype,"visible",null),M([G("class.k-grid-remove-command"),T("design:type",Boolean)],n.prototype,"commandClass",void 0),M([Zn("click",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"onClick",null),n=M([qn(1,Rn(Jl)),T("design:paramtypes",[_a,Object,$,Ie,J,ce])],n),n})(),l2e=(()=>{let n=class extends af{constructor(e,i,s,o,r){super(i,s,null,o,r),this.editService=e}onClick(e){e.preventDefault(),this.editService.beginAdd()}get commandClass(){return!0}};return n.\u0275fac=function(e){return new(e||n)(g(_a),g($),g(Ie),g(J),g(ce))},n.\u0275dir=R({type:n,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(e,i){1&e&&se("click",function(o){return i.onClick(o)}),2&e&&he("k-grid-add-command",i.commandClass)},features:[N]}),M([Zn("click",["$event"]),T("design:type",Function),T("design:paramtypes",[Object]),T("design:returntype",void 0)],n.prototype,"onClick",null),M([G("class.k-grid-add-command"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"commandClass",null),n=M([T("design:paramtypes",[_a,$,Ie,J,ce])],n),n})();const Yjt=[Ut,nA,PC,a_,Lz,kY,U2,Du];let c2e=(()=>{let n=class{static exports(){return[gm,yf,lee,ju,gw,uw,s2e,o2e,r2e,a2e,l2e]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[...Yjt]]}),n})(),d2e=(()=>{let n=class{constructor(e){this.columnInfoService=e,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0}get footerClass(){return!this.scrollable}get columnsToRender(){return n_(this.columns||[])}logicalColumnIndex(e){const i=e.leafIndex;return Rt(i)?i+(Rt(this.detailTemplate)?1:0):-1}addStickyStyles(e){const i=this.columnInfoService.stickyColumnsStyles(e);return Object.assign({},e.style,i)}};return n.\u0275fac=function(e){return new(e||n)(g(Br))},n.\u0275cmp=K({type:n,selectors:[["","kendoGridFooter",""]],hostVars:2,hostBindings:function(e,i){2&e&&he("k-grid-footer",i.footerClass)},inputs:{columns:"columns",groups:"groups",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex",detailTemplate:"detailTemplate",scrollable:"scrollable"},attrs:z6t,decls:1,vars:1,consts:[[3,"ngIf"],["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(e,i){1&e&&A(0,U6t,4,9,"ng-template",0),2&e&&v("ngIf",!0)},directives:[pt,Oz,Wn,yM,Un,zo,iO],encapsulation:2}),M([p(),T("design:type",Array)],n.prototype,"columns",void 0),M([p(),T("design:type",Array)],n.prototype,"groups",void 0),M([p(),T("design:type",pm)],n.prototype,"detailTemplate",void 0),M([p(),T("design:type",Boolean)],n.prototype,"scrollable",void 0),M([p(),T("design:type",Number)],n.prototype,"lockedColumnsCount",void 0),M([p(),T("design:type",Number)],n.prototype,"logicalRowIndex",void 0),M([G("class.k-grid-footer"),T("design:type",Boolean),T("design:paramtypes",[])],n.prototype,"footerClass",null),n=M([T("design:paramtypes",[Br])],n),n})();const Kjt=[Ut,a_];let u2e=(()=>{let n=class{static exports(){return[]}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[...Kjt]]}),n})(),dee=(()=>{let n=class{constructor(e){this.grid=e,this.context={}}set position(e){this.context.position=e}get toolbarTemplateRef(){return this.grid.toolbarTemplate?this.grid.toolbarTemplate.templateRef:void 0}};return n.\u0275fac=function(e){return new(e||n)(g(ao))},n.\u0275cmp=K({type:n,selectors:[["kendo-grid-toolbar"]],inputs:{position:"position"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&A(0,q6t,1,2,void 0,0),2&e&&v("ngIf",i.toolbarTemplateRef)},directives:[pt,zs],encapsulation:2}),M([p(),T("design:type",String),T("design:paramtypes",[String])],n.prototype,"position",null),n=M([T("design:paramtypes",[ao])],n),n})();Lz.exports(),a_.exports(),c2e.exports(),n2e.exports(),u2e.exports(),OAe.exports(),GJ.exports(),jz.exports(),oee.exports();let n7t=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,Lz,a_,c2e,n2e,u2e,OAe,GJ,jz,Du,oee]]}),n})();Ql("KENDO-GRID-LIST"),Ql("TABLE");const g7t=["kendohfGrid"];function m7t(n,t){if(1&n&&P(0,"kendo-grid-column",7),2&n){const e=t.$implicit;v("field",e.field)("title",e.title)("hidden",e.hidden)}}const y7t=function(){return{mode:"single"}},_7t=function(){return{filter:!0}},v7t=function(){return{allowUnsort:!1,mode:"single"}};class Ob{constructor(t){this.store=t,this.hfSort=[{field:"sa2_main16",dir:"asc"}],this.hfColumns=Ime,this.destroyed$=new Z,this.sa2FilterResult$.pipe(lt(()=>{this.loadHeadFactorGridData()}),et(this.destroyed$)).subscribe(),this.rankingList$.pipe(lt(()=>{this.loadHeadFactorGridData()}),et(this.destroyed$)).subscribe(),this.selectedSA2Code16$.pipe(lt(e=>{e&&e.length>0?(this.selectedSA2Code16[0]!=e[0]&&(this.selectedSA2Code16=[e[0]]),this.scrollToSelection()):this.selectedSA2Code16=[]}),et(this.destroyed$)).subscribe()}scrollToSelection(){setTimeout(()=>{let e=this.kendoGrid.nativeElement.querySelector(".k-state-selected");e&&e.scrollIntoView()},200)}loadHeadFactorGridData(){let t=this.store.selectSnapshot(i=>i.heatriskassessment.analysisResult.sa2FilterResult),e=Kp(t,this.filter);this.gvHeatFactorBinder={data:zh(e,this.hfSort),total:e.length}}hfSortChange(t){this.hfSort=t,this.loadHeadFactorGridData()}filterChange(t){this.filter=t,this.loadHeadFactorGridData()}selectionChange(t){var e=this;return Xe(function*(){let i=t.selectedRows[0].dataItem.sa2_main16;yield e.store.dispatch(new Gn.SetSelectedSA2Code16([i])).toPromise()})()}getRowClass(t){let e={};return e[t.dataItem.cssclass]=!0,e}ngOnInit(){this.selectedSA2Code16=[]}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}Ob.\u0275fac=function(t){return new(t||Ob)(g(zi))},Ob.\u0275cmp=K({type:Ob,selectors:[["app-heatrisk-sa2-hf"]],viewQuery:function(t,e){if(1&t&&Ae(g7t,5,$),2&t){let i;U(i=W())&&(e.kendoGrid=i.first)}},decls:10,vars:17,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"k-indicator-container","gridtophead"],[1,"gridcontainerheader"],["fxFlex","1 1 auto",1,"heatriskgrid",2,"height","300px"],["kendoGridSelectBy","sa2_main16",3,"data","loading","sort","selectable","filter","columnMenu","reorderable","resizable","selectedKeys","rowClass","sortable","sortChange","selectionChange","filterChange"],["kendohfGrid",""],["filter","numeric",3,"field","title","hidden",4,"ngFor","ngForOf"],["filter","numeric",3,"field","title","hidden"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"div",1),H(2,"Please click "),y(3,"mat-icon",2),H(4,"more_vert"),_(),H(5," on the columns for more functionality"),_(),y(6,"div",3),y(7,"kendo-grid",4,5),se("sortChange",function(s){return e.hfSortChange(s)})("selectionChange",function(s){return e.selectionChange(s)})("filterChange",function(s){return e.filterChange(s)}),A(9,m7t,1,3,"kendo-grid-column",6),_(),_(),_()),2&t&&(b(7),yt("height",100,"%"),v("data",e.gvHeatFactorBinder)("loading",e.loading)("sort",e.hfSort)("selectable",si(14,y7t))("filter",e.filter)("columnMenu",si(15,_7t))("reorderable",!0)("resizable",!0)("selectedKeys",e.selectedSA2Code16)("rowClass",e.getRowClass)("sortable",si(16,v7t)),b(2),v("ngForOf",e.hfColumns))},directives:[po,fo,wo,gl,ja,ao,fm,Wn,oi],styles:[""]}),nt([rn(n=>n.heatriskassessment.analysisResult.sa2FilterResult)],Ob.prototype,"sa2FilterResult$",void 0),nt([rn(n=>n.heatriskassessment.rankingList)],Ob.prototype,"rankingList$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA2Code16)],Ob.prototype,"selectedSA2Code16$",void 0);const b7t=["kendocfGrid"];function C7t(n,t){if(1&n&&P(0,"kendo-grid-column",7),2&n){const e=t.$implicit;v("field",e.field)("title",e.title)("hidden",e.hidden)}}const x7t=function(){return{filter:!0}},w7t=function(){return{mode:"single"}},S7t=function(){return{allowUnsort:!1,mode:"single"}};class Rb{constructor(t){this.store=t,this.cfSort=[{field:"sa2_main16",dir:"asc"}],this.cfColumns=Ame,this.destroyed$=new Z,this.sa2FilterResult$.pipe(lt(()=>{this.loadColdFactorGridData()}),et(this.destroyed$)).subscribe(),this.rankingList$.pipe(lt(()=>{this.loadColdFactorGridData()}),et(this.destroyed$)).subscribe(),this.selectedSA2Code16$.pipe(lt(e=>{e&&e.length>0?(this.selectedSA2Code16[0]!=e[0]&&(this.selectedSA2Code16=[e[0]]),this.scrollToSelection()):this.selectedSA2Code16=[]}),et(this.destroyed$)).subscribe()}scrollToSelection(){setTimeout(()=>{let e=this.kendoGrid.nativeElement.querySelector(".k-state-selected");e&&e.scrollIntoView()},200)}loadColdFactorGridData(){let t=this.store.selectSnapshot(i=>i.heatriskassessment.analysisResult.sa2FilterResult),e=Kp(t,this.filter);this.gvColdFactorBinder={data:zh(e,this.cfSort),total:e.length}}getRowClass(t){let e={};return e[t.dataItem.cssclass]=!0,e}filterChange(t){this.filter=t,this.loadColdFactorGridData()}cfSortChange(t){this.cfSort=t,this.loadColdFactorGridData()}selectionChange(t){var e=this;return Xe(function*(){let i=t.selectedRows[0].dataItem.sa2_main16;yield e.store.dispatch(new Gn.SetSelectedSA2Code16([i])).toPromise()})()}ngOnInit(){this.selectedSA2Code16=[],console.log("on cf grid init")}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}Rb.\u0275fac=function(t){return new(t||Rb)(g(zi))},Rb.\u0275cmp=K({type:Rb,selectors:[["app-heatrisk-sa2-cf"]],viewQuery:function(t,e){if(1&t&&Ae(b7t,5,$),2&t){let i;U(i=W())&&(e.kendoGrid=i.first)}},decls:10,vars:17,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"k-indicator-container","gridtophead"],[1,"gridcontainerheader"],["fxFlex","1 1 auto",1,"heatriskgrid",2,"height","300px"],["kendoGridSelectBy","sa2_main16",3,"data","loading","sort","filter","columnMenu","selectable","selectedKeys","rowClass","reorderable","resizable","sortable","filterChange","sortChange","selectionChange"],["kendocfGrid",""],["filter","numeric",3,"field","title","hidden",4,"ngFor","ngForOf"],["filter","numeric",3,"field","title","hidden"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"div",1),H(2,"Please click "),y(3,"mat-icon",2),H(4,"more_vert"),_(),H(5," on the columns for more functionality"),_(),y(6,"div",3),y(7,"kendo-grid",4,5),se("filterChange",function(s){return e.filterChange(s)})("sortChange",function(s){return e.cfSortChange(s)})("selectionChange",function(s){return e.selectionChange(s)}),A(9,C7t,1,3,"kendo-grid-column",6),_(),_(),_()),2&t&&(b(7),yt("height",100,"%"),v("data",e.gvColdFactorBinder)("loading",e.loading)("sort",e.cfSort)("filter",e.filter)("columnMenu",si(14,x7t))("selectable",si(15,w7t))("selectedKeys",e.selectedSA2Code16)("rowClass",e.getRowClass)("reorderable",!0)("resizable",!0)("sortable",si(16,S7t)),b(2),v("ngForOf",e.cfColumns))},directives:[po,fo,wo,gl,ja,ao,fm,Wn,oi],styles:[""]}),nt([rn(n=>n.heatriskassessment.analysisResult.sa2FilterResult)],Rb.prototype,"sa2FilterResult$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA2Code16)],Rb.prototype,"selectedSA2Code16$",void 0),nt([rn(n=>n.heatriskassessment.rankingList)],Rb.prototype,"rankingList$",void 0);let T7t=1,k7t=1;class I2e{constructor(){this.time=0,this.channels=new Map,this.animations=new Map,this.playing=!1,this.lastEngineTime=-1}addChannel(t){const{delay:e=0,duration:i=Number.POSITIVE_INFINITY,rate:s=1,repeat:o=1}=t,r=T7t++,a={time:0,delay:e,duration:i,rate:s,repeat:o};return this._setChannelTime(a,this.time),this.channels.set(r,a),r}removeChannel(t){this.channels.delete(t);for(const[e,i]of this.animations)i.channel===t&&this.detachAnimation(e)}isFinished(t){const e=this.channels.get(t);return void 0!==e&&this.time>=e.delay+e.duration*e.repeat}getTime(t){if(void 0===t)return this.time;const e=this.channels.get(t);return void 0===e?-1:e.time}setTime(t){this.time=Math.max(0,t);const e=this.channels.values();for(const s of e)this._setChannelTime(s,this.time);const i=this.animations.values();for(const s of i){const{animation:o,channel:r}=s;o.setTime(this.getTime(r))}}play(){this.playing=!0}pause(){this.playing=!1,this.lastEngineTime=-1}reset(){this.setTime(0)}attachAnimation(t,e){const i=k7t++;return this.animations.set(i,{animation:t,channel:e}),t.setTime(this.getTime(e)),i}detachAnimation(t){this.animations.delete(t)}update(t){this.playing&&(-1===this.lastEngineTime&&(this.lastEngineTime=t),this.setTime(this.time+(t-this.lastEngineTime)),this.lastEngineTime=t)}_setChannelTime(t,e){const i=e-t.delay;i>=t.duration*t.repeat?t.time=t.duration*t.rate:(t.time=Math.max(0,i)%t.duration,t.time*=t.rate)}}class D7t{constructor(t,e,i){this.id=t,this.context=i,this._loadCount=0,this._subscribers=new Set,this.setData(e)}subscribe(t){this._subscribers.add(t)}unsubscribe(t){this._subscribers.delete(t)}inUse(){return this._subscribers.size>0}delete(){}getData(){return this.isLoaded?this._error?Promise.reject(this._error):this._content:this._loader.then(()=>this.getData())}setData(t,e){if(t===this._data&&!e)return;this._data=t;const i=++this._loadCount;let s=t;"string"==typeof t&&(s=q3(t)),s instanceof Promise?(this.isLoaded=!1,this._loader=s.then(o=>{this._loadCount===i&&(this.isLoaded=!0,this._error=null,this._content=o)}).catch(o=>{this._loadCount===i&&(this.isLoaded=!0,this._error=o||!0)})):(this.isLoaded=!0,this._error=null,this._content=t);for(const o of this._subscribers)o.onChange(this.getData())}}class M7t{constructor({gl:t,protocol:e}){this.protocol=e||"resource://",this._context={gl:t,resourceManager:this},this._resources={},this._consumers={},this._pruneRequest=null}contains(t){return!!t.startsWith(this.protocol)||t in this._resources}add({resourceId:t,data:e,forceUpdate:i=!1,persistent:s=!0}){let o=this._resources[t];o?o.setData(e,i):(o=new D7t(t,e,this._context),this._resources[t]=o),o.persistent=s}remove(t){const e=this._resources[t];e&&(e.delete(),delete this._resources[t])}unsubscribe({consumerId:t}){const e=this._consumers[t];if(e){for(const i in e){const s=e[i];s.resource&&s.resource.unsubscribe(s)}delete this._consumers[t],this.prune()}}subscribe({resourceId:t,onChange:e,consumerId:i,requestId:s="default"}){const{_resources:o,protocol:r}=this;t.startsWith(r)&&(o[t=t.replace(r,"")]||this.add({resourceId:t,data:null,persistent:!1}));const a=o[t];if(this._track(i,s,a,e),a)return a.getData()}prune(){this._pruneRequest||(this._pruneRequest=setTimeout(()=>this._prune(),0))}finalize(){for(const t in this._resources)this._resources[t].delete()}_track(t,e,i,s){const o=this._consumers,r=o[t]=o[t]||{},a=r[e]||{};a.resource&&(a.resource.unsubscribe(a),a.resource=null,this.prune()),i&&(r[e]=a,a.onChange=s,a.resource=i,i.subscribe(a))}_prune(){this._pruneRequest=null;for(const t of Object.keys(this._resources)){const e=this._resources[t];!e.persistent&&!e.inUse()&&(e.delete(),delete this._resources[t])}}}const E7t=[{name:"geometry",vs:"\nstruct VertexGeometry {\n vec4 position;\n vec3 worldPosition;\n vec3 worldPositionAlt;\n vec3 normal;\n vec2 uv;\n vec3 pickingColor;\n} geometry;\n",fs:"\n#define SMOOTH_EDGE_RADIUS 0.5\n\nstruct FragmentGeometry {\n vec2 uv;\n} geometry;\n\nfloat smoothedge(float edge, float x) {\n return smoothstep(edge - SMOOTH_EDGE_RADIUS, edge + SMOOTH_EDGE_RADIUS, x);\n}\n"},AW],I7t=["vs:DECKGL_FILTER_SIZE(inout vec3 size, VertexGeometry geometry)","vs:DECKGL_FILTER_GL_POSITION(inout vec4 position, VertexGeometry geometry)","vs:DECKGL_FILTER_COLOR(inout vec4 color, VertexGeometry geometry)","fs:DECKGL_FILTER_COLOR(inout vec4 color, FragmentGeometry geometry)"];function A7t(n){const t=SA.getDefaultProgramManager(n);for(const e of E7t)t.addDefaultModule(e);for(const e of I7t)t.addShaderHook(e);return t}const R7t=Object.seal({layerManager:null,resourceManager:null,deck:null,gl:null,stats:null,shaderCache:null,pickingFBO:null,mousePosition:null,userData:{}});class P7t{constructor(t,{deck:e,stats:i,viewport:s,timeline:o}={}){this.lastRenderedLayers=[],this.layers=[],this.resourceManager=new M7t({gl:t,protocol:"deck://"}),this.context=yn(Ne({},R7t),{layerManager:this,gl:t,deck:e,programManager:t&&A7t(t),stats:i||new m3({id:"deck.gl"}),viewport:s||new H3({id:"DEFAULT-INITIAL-VIEWPORT"}),timeline:o||new I2e,resourceManager:this.resourceManager}),this._nextLayers=null,this._needsRedraw="Initial render",this._needsUpdate=!1,this._debug=!1,this.activateViewport=this.activateViewport.bind(this),Object.seal(this)}finalize(){this.resourceManager.finalize();for(const t of this.layers)this._finalizeLayer(t)}needsRedraw(t={clearRedrawFlags:!1}){let e=this._needsRedraw;t.clearRedrawFlags&&(this._needsRedraw=!1);for(const i of this.layers){const s=i.getNeedsRedraw(t);e=e||s}return e}needsUpdate(){return this._nextLayers&&this._nextLayers!==this.lastRenderedLayers?"layers changed":this._needsUpdate}setNeedsRedraw(t){this._needsRedraw=this._needsRedraw||t}setNeedsUpdate(t){this._needsUpdate=this._needsUpdate||t}getLayers({layerIds:t=null}={}){return t?this.layers.filter(e=>t.find(i=>0===e.id.indexOf(i))):this.layers}setProps(t){"debug"in t&&(this._debug=t.debug),"userData"in t&&(this.context.userData=t.userData),"layers"in t&&(this._nextLayers=t.layers),"onError"in t&&(this.context.onError=t.onError)}setLayers(t,e){yc("layerManager.setLayers",this,e,t),this.lastRenderedLayers=t,t=x3(t,Boolean);for(const i of t)i.context=this.context;return this._updateLayers(this.layers,t),this}updateLayers(){const t=this.needsUpdate();t&&(this.setNeedsRedraw("updating layers: ".concat(t)),this.setLayers(this._nextLayers||this.lastRenderedLayers,t)),this._nextLayers=null}activateViewport(t){return yc("layerManager.activateViewport",this,t),t&&(this.context.viewport=t),this}_handleError(t,e,i){i.raiseError(e,"".concat(t," of ").concat(i))}_updateLayers(t,e){const i={};for(const r of t)i[r.id]?$n.warn("Multiple old layers with same id ".concat(r.id))():i[r.id]=r;const s=[];this._updateSublayersRecursively(e,i,s),this._finalizeOldLayers(i);let o=!1;for(const r of s)if(r.hasUniformTransition()){o=!0;break}this._needsUpdate=o,this.layers=s}_updateSublayersRecursively(t,e,i){for(const s of t){s.context=this.context;const o=e[s.id];null===o&&$n.warn("Multiple new layers with same id ".concat(s.id))(),e[s.id]=null;let r=null;try{this._debug&&o!==s&&s.validateProps(),o?(this._transferLayerState(o,s),this._updateLayer(s)):this._initializeLayer(s),i.push(s),r=s.isComposite&&s.getSubLayers()}catch(a){this._handleError("matching",a,s)}r&&this._updateSublayersRecursively(r,e,i)}}_finalizeOldLayers(t){for(const e in t){const i=t[e];i&&this._finalizeLayer(i)}}_initializeLayer(t){try{t._initialize(),t.lifecycle="Initialized"}catch(e){this._handleError("initialization",e,t)}}_transferLayerState(t,e){e._transferState(t),e.lifecycle="Matched. State transferred from previous layer",e!==t&&(t.lifecycle="Discarded. Awaiting garbage collection")}_updateLayer(t){try{t._update()}catch(e){this._handleError("update",e,t)}}_finalizeLayer(t){this._needsRedraw=this._needsRedraw||"finalized ".concat(t),t.lifecycle="No longer matched. Awaiting garbage collection";try{t._finalize(),t.lifecycle="Finalized! Awaiting garbage collection"}catch(e){this._handleError("finalization",e,t)}}}class L7t{constructor(t={}){this.views=[],this.width=100,this.height=100,this.viewState={},this.controllers={},this.timeline=t.timeline,this._viewports=[],this._viewportMap={},this._isUpdating=!1,this._needsRedraw="Initial render",this._needsUpdate=!0,this._eventManager=t.eventManager,this._eventCallbacks={onViewStateChange:t.onViewStateChange,onInteractionStateChange:t.onInteractionStateChange},Object.seal(this),this.setProps(t)}finalize(){for(const t in this.controllers)this.controllers[t]&&this.controllers[t].finalize();this.controllers={}}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}setNeedsUpdate(t){this._needsUpdate=this._needsUpdate||t,this._needsRedraw=this._needsRedraw||t}updateViewStates(){for(const t in this.controllers){const e=this.controllers[t];e&&e.updateTransition()}}getViewports(t){return t?this._viewports.filter(e=>e.containsPixel(t)):this._viewports}getViews(){const t={};return this.views.forEach(e=>{t[e.id]=e}),t}getView(t){return"string"==typeof t?this.views.find(e=>e.id===t):t}getViewState(t){const e=this.getView(t),i=e&&this.viewState[e.getViewStateId()]||this.viewState;return e?e.filterViewState(i):i}getViewport(t){return this._viewportMap[t]}unproject(t,e){const i=this.getViewports(),s={x:t[0],y:t[1]};for(let o=i.length-1;o>=0;--o){const r=i[o];if(r.containsPixel(s)){const a=t.slice();return a[0]-=r.x,a[1]-=r.y,r.unproject(a,e)}}return null}setProps(t){"views"in t&&this._setViews(t.views),"viewState"in t&&this._setViewState(t.viewState),("width"in t||"height"in t)&&this._setSize(t.width,t.height),this._isUpdating||this._update()}_update(){this._isUpdating=!0,this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._needsUpdate&&(this._needsUpdate=!1,this._rebuildViewports()),this._isUpdating=!1}_setSize(t,e){(t!==this.width||e!==this.height)&&(this.width=t,this.height=e,this.setNeedsUpdate("Size changed"))}_setViews(t){t=x3(t,Boolean),this._diffViews(t,this.views)&&this.setNeedsUpdate("views changed"),this.views=t}_setViewState(t){t?(!qk(t,this.viewState)&&this.setNeedsUpdate("viewState changed"),this.viewState=t):$n.warn("missing `viewState` or `initialViewState`")()}_onViewStateChange(t,e){e.viewId=t,this._eventCallbacks.onViewStateChange&&this._eventCallbacks.onViewStateChange(e)}_createController(t,e){return new(0,e.type)(Ne({timeline:this.timeline,eventManager:this._eventManager,onViewStateChange:this._onViewStateChange.bind(this,e.id),onStateChange:this._eventCallbacks.onInteractionStateChange,makeViewport:o=>t._getViewport(o,{width:o.width,height:o.height})},e))}_updateController(t,e,i,s){let o=t.controller;return o?(o=yn(Ne(Ne(Ne({},e),t.props),o),{id:t.id,x:i.x,y:i.y,width:i.width,height:i.height}),s?s.setProps(o):s=this._createController(t,o),s):null}_rebuildViewports(){const{width:t,height:e,views:i}=this,s=this.controllers;this._viewports=[],this.controllers={};let o=!1;for(let r=i.length;r--;){const a=i[r],l=this.getViewState(a),c=a.makeViewport({width:t,height:e,viewState:l});let d=s[a.id];a.controller&&!d&&(o=!0),(o||!a.controller)&&d&&(d.finalize(),d=null),this.controllers[a.id]=this._updateController(a,l,c,d),this._viewports.unshift(c)}for(const r in s)s[r]&&!this.controllers[r]&&s[r].finalize();this._buildViewportMap()}_buildViewportMap(){this._viewportMap={},this._viewports.forEach(t=>{t.id&&(this._viewportMap[t.id]=this._viewportMap[t.id]||t)})}_diffViews(t,e){return t.length!==e.length||t.some((i,s)=>!t[s].equals(e[s]))}}const N7t=/([0-9]+\.?[0-9]*)(%|px)/;function Kz(n){switch(typeof n){case"number":return{position:n,relative:!1};case"string":const t=n.match(N7t);if(t&&t.length>=3){const e="%"===t[2],i=parseFloat(t[1]);return{position:e?i/100:i,relative:e}}default:throw new Error("Could not parse position string ".concat(n))}}function Zz(n,t){return n.relative?Math.round(n.position*t):n.position}const uO=()=>{},A2e={transitionEasing:n=>n,transitionInterruption:1,onTransitionStart:uO,onTransitionInterrupt:uO,onTransitionEnd:uO};class V7t{constructor(t,e={}){this.ControllerState=t,this.props=Ne(Ne({},A2e),e),this.propsInTransition=null,this.transition=new kA(e.timeline),this.onViewStateChange=e.onViewStateChange||uO,this.onStateChange=e.onStateChange||uO,this._onTransitionUpdate=this._onTransitionUpdate.bind(this)}finalize(){this.transition.cancel()}getViewportInTransition(){return this.propsInTransition}processViewStateChange(t){let e=!1;const i=this.props;if(t=Ne(Ne({},A2e),t),this.props=t,this._shouldIgnoreViewportChange(i,t))return e;if(this._isTransitionEnabled(t)){const{interruption:s,endProps:o}=this.transition.settings,r=Ne(Ne({},i),2===s?o:this.propsInTransition||i);this._triggerTransition(r,t),e=!0}else this.transition.cancel();return e}updateTransition(){this.transition.update()}_isTransitionEnabled(t){const{transitionDuration:e,transitionInterpolator:i}=t;return(e>0||"auto"===e)&&Boolean(i)}_isUpdateDueToCurrentTransition(t){return!!this.transition.inProgress&&this.transition.settings.interpolator.arePropsEqual(t,this.propsInTransition)}_shouldIgnoreViewportChange(t,e){return this.transition.inProgress?3===this.transition.settings.interruption||this._isUpdateDueToCurrentTransition(e):!this._isTransitionEnabled(e)||e.transitionInterpolator.arePropsEqual(t,e)}_triggerTransition(t,e){const i=new this.ControllerState(t),s=new this.ControllerState(e).shortestPathFrom(i),{transitionInterpolator:o}=e,r=o.getDuration?o.getDuration(t,e):e.transitionDuration;if(0===r)return;const a=e.transitionInterpolator.initializeProps(t,s);this.propsInTransition={},this.duration=r,this.transition.start({duration:r,easing:e.transitionEasing,interpolator:e.transitionInterpolator,interruption:e.transitionInterruption,startProps:a.start,endProps:a.end,onStart:e.onTransitionStart,onUpdate:this._onTransitionUpdate,onInterrupt:this._onTransitionEnd(e.onTransitionInterrupt),onEnd:this._onTransitionEnd(e.onTransitionEnd)}),this.onStateChange({inTransition:!0}),this.updateTransition()}_onTransitionEnd(t){return e=>{this.propsInTransition=null,this.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1}),t(e)}}_onTransitionUpdate(t){const{time:e,settings:{interpolator:i,startProps:s,endProps:o,duration:r,easing:a}}=t,l=a(e/r),c=i.interpolateProps(s,o,l);this.propsInTransition=new this.ControllerState(Ne(Ne({},this.props),c)).getViewportProps(),this.onViewStateChange({viewState:this.propsInTransition,oldViewState:this.props})}}const F2e=["longitude","latitude","zoom","bearing","pitch"],H7t=["longitude","latitude","zoom"];class O2e extends class{constructor(t={}){Array.isArray(t)&&(t={compare:t,extract:t,required:t});const{compare:e,extract:i,required:s}=t;this._propsToCompare=e,this._propsToExtract=i,this._requiredProps=s}arePropsEqual(t,e){for(const i of this._propsToCompare||Object.keys(e))if(!(i in t)||!(i in e)||!Fv(t[i],e[i]))return!1;return!0}initializeProps(t,e){let i;if(this._propsToExtract){const s={},o={};for(const r of this._propsToExtract)s[r]=t[r],o[r]=e[r];i={start:s,end:o}}else i={start:t,end:e};return this._checkRequiredProps(i.start),this._checkRequiredProps(i.end),i}interpolateProps(t,e,i){return e}getDuration(t,e){return e.transitionDuration}_checkRequiredProps(t){!this._requiredProps||this._requiredProps.forEach(e=>{const i=t[e];wu(Number.isFinite(i)||Array.isArray(i),"".concat(e," is required for transition"))})}}{constructor(t={}){super((Array.isArray(t)?t:t.transitionProps)||{compare:F2e,extract:F2e,required:H7t}),this.opts=t}initializeProps(t,e){const i=super.initializeProps(t,e),{makeViewport:s,around:o}=this.opts;if(s&&o){const r=s(t),a=s(e),l=r.unproject(o);i.start.around=o,Object.assign(i.end,{around:a.project(l),aroundPosition:l,width:e.width,height:e.height})}return i}interpolateProps(t,e,i){const s={};for(const o of this._propsToExtract)s[o]=Ty(t[o]||0,e[o]||0,i);if(e.aroundPosition){const o=this.opts.makeViewport(Ne(Ne({},e),s));Object.assign(s,o.panByPosition(e.aroundPosition,Ty(t.around,e.around,i)))}return s}}const Pb={transitionDuration:0},G7t={transitionDuration:300,transitionEasing:n=>n,transitionInterruption:1},Jz=n=>1-(1-n)*(1-n),xM_WHEEL=["wheel"],xM_PAN=["panstart","panmove","panend"],xM_PINCH=["pinchstart","pinchmove","pinchend"],xM_TRIPLE_PAN=["tripanstart","tripanmove","tripanend"],xM_DOUBLE_TAP=["doubletap"],xM_KEYBOARD=["keydown"];class q7t extends class{constructor(t){this._viewportProps=this._applyConstraints(t)}getViewportProps(){return this._viewportProps}getState(){return this._state}shortestPathFrom(t){return this._viewportProps}_applyConstraints(t){return t}}{constructor({makeViewport:t,width:e,height:i,latitude:s,longitude:o,zoom:r,bearing:a=0,pitch:l=0,altitude:c=1.5,maxZoom:d=20,minZoom:u=0,maxPitch:h=60,minPitch:f=0,startPanLngLat:m,startZoomLngLat:C,startRotatePos:k,startBearing:D,startPitch:E,startZoom:O,normalize:z}={}){wu(Number.isFinite(o)),wu(Number.isFinite(s)),wu(Number.isFinite(r)),super({width:e,height:i,latitude:s,longitude:o,zoom:r,bearing:a,pitch:l,altitude:c,maxZoom:d,minZoom:u,maxPitch:h,minPitch:f,normalize:z}),this._state={startPanLngLat:m,startZoomLngLat:C,startRotatePos:k,startBearing:D,startPitch:E,startZoom:O},this.makeViewport=t}panStart({pos:t}){return this._getUpdatedState({startPanLngLat:this._unproject(t)})}pan({pos:t,startPos:e}){const i=this._state.startPanLngLat||this._unproject(e);if(!i)return this;const o=this.makeViewport(this._viewportProps).panByPosition(i,t);return this._getUpdatedState(o)}panEnd(){return this._getUpdatedState({startPanLngLat:null})}rotateStart({pos:t}){return this._getUpdatedState({startRotatePos:t,startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}rotate({pos:t,deltaAngleX:e=0,deltaAngleY:i=0}){const{startRotatePos:s,startBearing:o,startPitch:r}=this._state;if(!s||!Number.isFinite(o)||!Number.isFinite(r))return this;let a;return a=t?this._calculateNewPitchAndBearing(yn(Ne({},this._getRotationParams(t,s)),{startBearing:o,startPitch:r})):{bearing:o+e,pitch:r+i},this._getUpdatedState(a)}rotateEnd(){return this._getUpdatedState({startBearing:null,startPitch:null})}zoomStart({pos:t}){return this._getUpdatedState({startZoomLngLat:this._unproject(t),startZoom:this._viewportProps.zoom})}zoom({pos:t,startPos:e,scale:i}){let{startZoom:s,startZoomLngLat:o}=this._state;Number.isFinite(s)||(s=this._viewportProps.zoom,o=this._unproject(e)||this._unproject(t));const r=this._calculateNewZoom({scale:i,startZoom:s}),a=this.makeViewport(yn(Ne({},this._viewportProps),{zoom:r}));return this._getUpdatedState(Ne({zoom:r},a.panByPosition(o,t)))}zoomEnd(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}zoomIn(t=2){return this._zoomFromCenter(t)}zoomOut(t=2){return this._zoomFromCenter(1/t)}moveLeft(t=100){return this._panFromCenter([t,0])}moveRight(t=100){return this._panFromCenter([-t,0])}moveUp(t=100){return this._panFromCenter([0,t])}moveDown(t=100){return this._panFromCenter([0,-t])}rotateLeft(t=15){return this._getUpdatedState({bearing:this._viewportProps.bearing-t})}rotateRight(t=15){return this._getUpdatedState({bearing:this._viewportProps.bearing+t})}rotateUp(t=10){return this._getUpdatedState({pitch:this._viewportProps.pitch+t})}rotateDown(t=10){return this._getUpdatedState({pitch:this._viewportProps.pitch-t})}shortestPathFrom(t){const e=t.getViewportProps(),i=Ne({},this._viewportProps),{bearing:s,longitude:o}=i;return Math.abs(s-e.bearing)>180&&(i.bearing=s<0?s+360:s-360),Math.abs(o-e.longitude)>180&&(i.longitude=o<0?o+360:o-360),i}_zoomFromCenter(t){const{width:e,height:i}=this._viewportProps;return this.zoom({pos:[e/2,i/2],scale:t})}_panFromCenter(t){const{width:e,height:i}=this._viewportProps;return this.pan({startPos:[e/2,i/2],pos:[e/2+t[0],i/2+t[1]]})}_getUpdatedState(t){return new this.constructor(Ne(Ne(Ne({makeViewport:this.makeViewport},this._viewportProps),this._state),t))}_applyConstraints(t){const{maxZoom:e,minZoom:i,zoom:s}=t;t.zoom=_3(s,i,e);const{maxPitch:o,minPitch:r,pitch:a}=t;t.pitch=_3(a,r,o);const{normalize:l=!0}=t;return l&&Object.assign(t,function({width:n,height:t,longitude:e,latitude:i,zoom:s,pitch:o=0,bearing:r=0}){(e<-180||e>180)&&(e=G_e(e+180,360)-180),(r<-180||r>180)&&(r=G_e(r+180,360)-180);let a=new Lk({width:n,height:t,longitude:e,latitude:i,zoom:s}),l=a.project([e,85.05113])[1],c=a.project([e,-85.05113])[1],d=0;return c-l0?d=l:c0?l=s+e*(r-s):e<0&&(l=s-e*(o-s)),{pitch:l,bearing:i+180*t}}_getRotationParams(t,e){const i=t[0]-e[0],s=t[1]-e[1],o=t[1],r=e[1],{width:a,height:l}=this._viewportProps,c=i/a;let d=0;return s>0?Math.abs(l-r)>5&&(d=s/(r-l)*1.2):s<0&&r>5&&(d=1-o/r),d=Math.min(1,Math.max(-1,d)),{deltaScaleX:c,deltaScaleY:d}}}class X7t extends class{constructor(t,e={}){this.ControllerState=t,this.controllerState=null,this.controllerStateProps=null,this.eventManager=null,this.transitionManager=new V7t(t,yn(Ne({},e),{onViewStateChange:this._onTransition.bind(this),onStateChange:this._setInteractionState.bind(this)}));const i=this.linearTransitionProps;this._transition=i&&yn(Ne({},G7t),{transitionInterpolator:new O2e({transitionProps:i})}),this._events=null,this._interactionState={isDragging:!1},this._customEvents=[],this.onViewStateChange=null,this.onStateChange=null,this.handleEvent=this.handleEvent.bind(this),this.setProps(e)}get linearTransitionProps(){return null}set events(t){this.toggleEvents(this._customEvents,!1),this.toggleEvents(t,!0),this._customEvents=t,this.setProps(this.controllerStateProps)}finalize(){for(const t in this._events)this._events[t]&&this.eventManager.off(t,this.handleEvent);this.transitionManager.finalize()}handleEvent(t){const{ControllerState:e}=this;this.controllerState=new e(Ne(Ne({makeViewport:this.makeViewport},this.controllerStateProps),this._state));const i=this._eventStartBlocked;switch(t.type){case"panstart":return!i&&this._onPanStart(t);case"panmove":return this._onPan(t);case"panend":return this._onPanEnd(t);case"pinchstart":return!i&&this._onPinchStart(t);case"pinchmove":return this._onPinch(t);case"pinchend":return this._onPinchEnd(t);case"tripanstart":return!i&&this._onTriplePanStart(t);case"tripanmove":return this._onTriplePan(t);case"tripanend":return this._onTriplePanEnd(t);case"doubletap":return this._onDoubleTap(t);case"wheel":return this._onWheel(t);case"keydown":return this._onKeyDown(t);default:return!1}}getCenter(t){const{x:e,y:i}=this.controllerStateProps,{offsetCenter:s}=t;return[s.x-e,s.y-i]}isPointInBounds(t,e){const{width:i,height:s}=this.controllerStateProps;if(e&&e.handled)return!1;const o=t[0]>=0&&t[0]<=i&&t[1]>=0&&t[1]<=s;return o&&e&&e.stopPropagation(),o}isFunctionKeyPressed(t){const{srcEvent:e}=t;return Boolean(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}isDragging(){return this._interactionState.isDragging}blockEvents(t){const e=setTimeout(()=>{this._eventStartBlocked===e&&(this._eventStartBlocked=null)},t);this._eventStartBlocked=e}setProps(t){"onViewStateChange"in t&&(this.onViewStateChange=t.onViewStateChange),"onStateChange"in t&&(this.onStateChange=t.onStateChange),"makeViewport"in t&&(this.makeViewport=t.makeViewport),"dragMode"in t&&(this.dragMode=t.dragMode),this.controllerStateProps=t,"eventManager"in t&&this.eventManager!==t.eventManager&&(this.eventManager=t.eventManager,this._events={},this.toggleEvents(this._customEvents,!0)),"transitionInterpolator"in t||(t.transitionInterpolator=this._getTransitionProps().transitionInterpolator),this.transitionManager.processViewStateChange(t);let{inertia:e}=t;!0===e&&(e=300),this.inertia=e;const{scrollZoom:i=!0,dragPan:s=!0,dragRotate:o=!0,doubleClickZoom:r=!0,touchZoom:a=!0,touchRotate:l=!1,keyboard:c=!0}=t,d=Boolean(this.onViewStateChange);this.toggleEvents(xM_WHEEL,d&&i),this.toggleEvents(xM_PAN,d&&(s||o)),this.toggleEvents(xM_PINCH,d&&(a||l)),this.toggleEvents(xM_TRIPLE_PAN,d&&l),this.toggleEvents(xM_DOUBLE_TAP,d&&r),this.toggleEvents(xM_KEYBOARD,d&&c),this.scrollZoom=i,this.dragPan=s,this.dragRotate=o,this.doubleClickZoom=r,this.touchZoom=a,this.touchRotate=l,this.keyboard=c}updateTransition(){this.transitionManager.updateTransition()}toggleEvents(t,e){this.eventManager&&t.forEach(i=>{this._events[i]!==e&&(this._events[i]=e,e?this.eventManager.on(i,this.handleEvent):this.eventManager.off(i,this.handleEvent))})}updateViewport(t,e={},i={}){const s=Ne(Ne({},t.getViewportProps()),e),o=this.controllerState!==t;if(this._state=t.getState(),this._setInteractionState(i),o){const r=this.controllerState?this.controllerState.getViewportProps():null;this.onViewStateChange&&this.onViewStateChange({viewState:s,interactionState:this._interactionState,oldViewState:r})}}_onTransition(t){this.onViewStateChange&&(t.interactionState=this._interactionState,this.onViewStateChange(t))}_setInteractionState(t){Object.assign(this._interactionState,t),this.onStateChange&&this.onStateChange(this._interactionState)}_onPanStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;let i=this.isFunctionKeyPressed(t)||t.rightButton;(this.invertPan||"pan"===this.dragMode)&&(i=!i);const s=this.controllerState[i?"panStart":"rotateStart"]({pos:e});return this._panMove=i,this.updateViewport(s,Pb,{isDragging:!0}),!0}_onPan(t){return!!this.isDragging()&&(this._panMove?this._onPanMove(t):this._onPanRotate(t))}_onPanEnd(t){return!!this.isDragging()&&(this._panMove?this._onPanMoveEnd(t):this._onPanRotateEnd(t))}_onPanMove(t){if(!this.dragPan)return!1;const e=this.getCenter(t),i=this.controllerState.pan({pos:e});return this.updateViewport(i,Pb,{isDragging:!0,isPanning:!0}),!0}_onPanMoveEnd(t){const{inertia:e}=this;if(this.dragPan&&e&&t.velocity){const i=this.getCenter(t),o=this.controllerState.pan({pos:[i[0]+t.velocityX*e/2,i[1]+t.velocityY*e/2]}).panEnd();this.updateViewport(o,yn(Ne({},this._getTransitionProps()),{transitionDuration:e,transitionEasing:Jz}),{isDragging:!1,isPanning:!0})}else{const i=this.controllerState.panEnd();this.updateViewport(i,null,{isDragging:!1,isPanning:!1})}return!0}_onPanRotate(t){if(!this.dragRotate)return!1;const e=this.getCenter(t),i=this.controllerState.rotate({pos:e});return this.updateViewport(i,Pb,{isDragging:!0,isRotating:!0}),!0}_onPanRotateEnd(t){const{inertia:e}=this;if(this.dragRotate&&e&&t.velocity){const i=this.getCenter(t),o=this.controllerState.rotate({pos:[i[0]+t.velocityX*e/2,i[1]+t.velocityY*e/2]}).rotateEnd();this.updateViewport(o,yn(Ne({},this._getTransitionProps()),{transitionDuration:e,transitionEasing:Jz}),{isDragging:!1,isRotating:!0})}else{const i=this.controllerState.rotateEnd();this.updateViewport(i,null,{isDragging:!1,isRotating:!1})}return!0}_onWheel(t){if(!this.scrollZoom)return!1;t.preventDefault();const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const{speed:i=.01,smooth:s=!1}=this.scrollZoom,{delta:o}=t;let r=2/(1+Math.exp(-Math.abs(o*i)));o<0&&0!==r&&(r=1/r);const a=this.controllerState.zoom({pos:e,scale:r});return this.updateViewport(a,yn(Ne({},this._getTransitionProps({around:e})),{transitionDuration:s?250:1}),{isZooming:!0,isPanning:!0}),!0}_onTriplePanStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const i=this.controllerState.rotateStart({pos:e});return this.updateViewport(i,Pb,{isDragging:!0}),!0}_onTriplePan(t){if(!this.touchRotate||!this.isDragging())return!1;const e=this.getCenter(t);e[0]-=t.deltaX;const i=this.controllerState.rotate({pos:e});return this.updateViewport(i,Pb,{isDragging:!0,isRotating:!0}),!0}_onTriplePanEnd(t){if(!this.isDragging())return!1;const{inertia:e}=this;if(this.touchRotate&&e&&t.velocityY){const i=this.getCenter(t),s=[i[0],i[1]+=t.velocityY*e/2],o=this.controllerState.rotate({pos:s});this.updateViewport(o,yn(Ne({},this._getTransitionProps()),{transitionDuration:e,transitionEasing:Jz}),{isDragging:!1,isRotating:!0}),this.blockEvents(e)}else{const i=this.controllerState.rotateEnd();this.updateViewport(i,null,{isDragging:!1,isRotating:!1})}return!0}_onPinchStart(t){const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const i=this.controllerState.zoomStart({pos:e}).rotateStart({pos:e});return this._startPinchRotation=t.rotation,this._lastPinchEvent=t,this.updateViewport(i,Pb,{isDragging:!0}),!0}_onPinch(t){if(!this.touchZoom&&!this.touchRotate||!this.isDragging())return!1;let e=this.controllerState;if(this.touchZoom){const{scale:i}=t,s=this.getCenter(t);e=e.zoom({pos:s,scale:i})}if(this.touchRotate){const{rotation:i}=t;e=e.rotate({deltaAngleX:this._startPinchRotation-i})}return this.updateViewport(e,Pb,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),this._lastPinchEvent=t,!0}_onPinchEnd(t){if(!this.isDragging())return!1;const{inertia:e,_lastPinchEvent:i}=this;if(this.touchZoom&&e&&i&&t.scale!==i.scale){const s=this.getCenter(t);let o=this.controllerState.rotateEnd();const r=Math.log2(t.scale),a=(r-Math.log2(i.scale))/(t.deltaTime-i.deltaTime),l=Math.pow(2,r+a*e/2);o=o.zoom({pos:s,scale:l}).zoomEnd(),this.updateViewport(o,yn(Ne({},this._getTransitionProps({around:s})),{transitionDuration:e,transitionEasing:Jz}),{isDragging:!1,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:!1}),this.blockEvents(e)}else{const s=this.controllerState.zoomEnd().rotateEnd();this.updateViewport(s,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1})}return this._startPinchRotation=null,this._lastPinchEvent=null,!0}_onDoubleTap(t){if(!this.doubleClickZoom)return!1;const e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;const i=this.isFunctionKeyPressed(t),s=this.controllerState.zoom({pos:e,scale:i?.5:2});return this.updateViewport(s,this._getTransitionProps({around:e}),{isZooming:!0,isPanning:!0}),this.blockEvents(100),!0}_onKeyDown(t){if(!this.keyboard)return!1;const e=this.isFunctionKeyPressed(t),{zoomSpeed:i,moveSpeed:s,rotateSpeedX:o,rotateSpeedY:r}=this.keyboard,{controllerState:a}=this;let l;const c={};switch(t.srcEvent.code){case"Minus":l=e?a.zoomOut(i).zoomOut(i):a.zoomOut(i),c.isZooming=!0;break;case"Equal":l=e?a.zoomIn(i).zoomIn(i):a.zoomIn(i),c.isZooming=!0;break;case"ArrowLeft":e?(l=a.rotateLeft(o),c.isRotating=!0):(l=a.moveLeft(s),c.isPanning=!0);break;case"ArrowRight":e?(l=a.rotateRight(o),c.isRotating=!0):(l=a.moveRight(s),c.isPanning=!0);break;case"ArrowUp":e?(l=a.rotateUp(r),c.isRotating=!0):(l=a.moveUp(s),c.isPanning=!0);break;case"ArrowDown":e?(l=a.rotateDown(r),c.isRotating=!0):(l=a.moveDown(s),c.isPanning=!0);break;default:return!1}return this.updateViewport(l,this._getTransitionProps(),c),!0}_getTransitionProps(t){const{_transition:e}=this;return e?t?yn(Ne({},e),{transitionInterpolator:new O2e(yn(Ne({},t),{transitionProps:this.linearTransitionProps,makeViewport:this.controllerState.makeViewport}))}):e:Pb}}{constructor(t){t.dragMode=t.dragMode||"pan",super(q7t,t)}setProps(t){const e=this.controllerStateProps;super.setProps(t),(!e||e.height!==t.height)&&this.updateViewport(new this.ControllerState(Ne(Ne({makeViewport:this.makeViewport},this.controllerStateProps),this._state)))}get linearTransitionProps(){return["longitude","latitude","zoom","bearing","pitch"]}}let Y7t=(()=>{class n extends class{constructor(t={}){const{id:e=null,x:i=0,y:s=0,width:o="100%",height:r="100%",projectionMatrix:a=null,fovy:l=50,near:c=.1,far:d=1e3,modelMatrix:u=null,viewportInstance:h=null,type:f=H3}=t;wu(!h||h instanceof H3),this.viewportInstance=h,this.id=e||this.constructor.displayName||"view",this.type=f,this.props=yn(Ne({},t),{id:this.id,projectionMatrix:a,fovy:l,near:c,far:d,modelMatrix:u}),this._parseDimensions({x:i,y:s,width:o,height:r}),this.equals=this.equals.bind(this),Object.seal(this)}equals(t){return this===t||(this.viewportInstance?t.viewportInstance&&this.viewportInstance.equals(t.viewportInstance):qk(this.props,t.props))}makeViewport({width:t,height:e,viewState:i}){if(this.viewportInstance)return this.viewportInstance;i=this.filterViewState(i);const s=this.getDimensions({width:t,height:e});return this._getViewport(i,s)}getViewStateId(){switch(typeof this.props.viewState){case"string":return this.props.viewState;case"object":return this.props.viewState&&this.props.viewState.id;default:return this.id}}filterViewState(t){if(this.props.viewState&&"object"==typeof this.props.viewState){if(!this.props.viewState.id)return this.props.viewState;const e=Ne({},t);for(const i in this.props.viewState)"id"!==i&&(e[i]=this.props.viewState[i]);return e}return t}getDimensions({width:t,height:e}){return{x:Zz(this._x,t),y:Zz(this._y,e),width:Zz(this._width,t),height:Zz(this._height,e)}}_getControllerProps(t){let e=this.props.controller;return e?!0===e?t:("function"==typeof e&&(e={type:e}),Ne(Ne({},t),e)):null}_getViewport(t,e){const{type:i}=this;return new i(Ne(Ne(Ne({},t),this.props),e))}_parseDimensions({x:t,y:e,width:i,height:s}){this._x=Kz(t),this._y=Kz(e),this._width=Kz(i),this._height=Kz(s)}}{constructor(e){super(yn(Ne({},e),{type:sve}))}get controller(){return this._getControllerProps({type:X7t})}}return n.displayName="MapView",n})();const K7t=[255,255,255],Z7t=1;let Q7t=0;class J7t{constructor(t={}){const{color:e=K7t}=t,{intensity:i=Z7t}=t;this.id=t.id||"ambient-".concat(Q7t++),this.color=e,this.intensity=i,this.type="ambient"}}const e$t=[255,255,255],t$t=1,n$t=[0,0,-1];let i$t=0;class P2e{constructor(t={}){const{color:e=e$t}=t,{intensity:i=t$t}=t,{direction:s=n$t}=t,{_shadow:o=!1}=t;this.id=t.id||"directional-".concat(i$t++),this.color=e,this.intensity=i,this.type="directional",this.direction=new on(s).normalize().toArray(),this.shadow=o}getProjectedLight(){return this}}class L2e{constructor(t={}){const{id:e="effect"}=t;this.id=e,this.props=Ne({},t)}preRender(){}getModuleParameters(){}cleanup(){}}class _ee extends class{constructor(t,e={}){const{id:i="pass"}=e;this.id=i,this.gl=t,this.props=Ne({},e)}setProps(t){Object.assign(this.props,t)}render(){}cleanup(){}}{render(t){return xy(this.gl,{framebuffer:t.target}),this._drawLayers(t)}_drawLayers(t){const{viewports:e,views:i,onViewportActive:s,clearCanvas:o=!0}=t;t.pass=t.pass||"unknown";const r=this.gl;o&&function(n){xy(n,{viewport:[0,0,n.drawingBufferWidth,n.drawingBufferHeight]}),n.clear(16640)}(r);const a=[];for(const l of e){const c=l.viewport||l,d=i&&i[c.id];s(c);const u=this._getDrawLayerParams(c,t);t.view=d;const h=c.subViewports||[c];for(const f of h){t.viewport=f;const m=this._drawLayersInViewport(r,t,u);a.push(m)}}return a}_getDrawLayerParams(t,{layers:e,pass:i,layerFilter:s,effects:o,moduleParameters:r}){const a=[],l=N2e(),c={viewport:t,isPicking:i.startsWith("picking"),renderPass:i};for(let d=0;dd9(t,c))}const l={totalCount:e.length,visibleCount:0,compositeCount:0,pickableCount:0};xy(t,{viewport:a});for(let c=0;c{const r=s.props._offset,a=s.id,l=s.parent&&s.parent.id;let c;if(l&&!(l in t)&&i(s.parent,!1),l in e){const d=e[l]=e[l]||N2e(t[l],t);c=d(s,o),e[a]=d}else Number.isFinite(r)?(c=r+(t[l]||0),e[a]=null):c=n;return o&&c>=n&&(n=c+1),t[a]=c,c};return i}class a$t extends _ee{constructor(t,e){super(t,e),this.shadowMap=new Lh(t,{width:1,height:1,parameters:{10241:9729,10240:9729,10242:33071,10243:33071}}),this.depthBuffer=new Sk(t,{format:33189,width:1,height:1}),this.fbo=new Wa(t,{id:"shadowmap",width:1,height:1,attachments:{36064:this.shadowMap,36096:this.depthBuffer}})}render(t){const e=this.fbo;jp(this.gl,{depthRange:[0,1],depthTest:!0,blend:!1,clearColor:[1,1,1,1]},()=>{const i=t.viewports[0],s=Ck(this.gl),o=i.width*s,r=i.height*s;(o!==e.width||r!==e.height)&&e.resize({width:o,height:r}),super.render(yn(Ne({},t),{target:e,pass:"shadow"}))})}shouldDrawLayer(t){return!1!==t.props.shadowEnabled}getModuleParameters(){return{drawToShadowMap:!0}}delete(){this.fbo&&(this.fbo.delete(),this.fbo=null),this.shadowMap&&(this.shadowMap.delete(),this.shadowMap=null),this.depthBuffer&&(this.depthBuffer.delete(),this.depthBuffer=null)}}const d$t=R3(function({viewport:n,center:t}){return new Nd(n.viewProjectionMatrix).invert().transform(t)}),u$t=R3(function({viewport:n,shadowMatrices:t}){const e=[],i=n.pixelUnprojectionMatrix,s=n.isGeospatial?void 0:1,o=[[0,0,s],[n.width,0,s],[0,n.height,s],[n.width,n.height,s],[0,0,-1],[n.width,0,-1],[0,n.height,-1],[n.width,n.height,-1]].map(r=>function(n,t){const[e,i,s]=n,o=IA([e,i,s],t);return Number.isFinite(s)?o:[o[0],o[1],0]}(r,i));for(const r of t){const a=r.clone().translate(new on(n.center).negate()),l=o.map(d=>a.transform(d)),c=(new Nd).ortho({left:Math.min(...l.map(d=>d[0])),right:Math.max(...l.map(d=>d[0])),bottom:Math.min(...l.map(d=>d[1])),top:Math.max(...l.map(d=>d[1])),near:Math.min(...l.map(d=>-d[2])),far:Math.max(...l.map(d=>-d[2]))});e.push(c.multiplyRight(r))}return e}),h$t=[0,0,0,1],p$t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],vee={name:"shadow",dependencies:[AW],vs:"\nconst int max_lights = 2;\nuniform mat4 shadow_uViewProjectionMatrices[max_lights];\nuniform vec4 shadow_uProjectCenters[max_lights];\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform int shadow_uLightId;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nvec4 shadow_setVertexPosition(vec4 position_commonspace) {\n if (shadow_uDrawShadowMap) {\n return project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[shadow_uLightId], shadow_uProjectCenters[shadow_uLightId]);\n }\n if (shadow_uUseShadowMap) {\n for (int i = 0; i < max_lights; i++) {\n if(i < int(shadow_uLightCount)) {\n vec4 shadowMap_position = project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[i], shadow_uProjectCenters[i]);\n shadow_vPosition[i] = (shadowMap_position.xyz / shadowMap_position.w + 1.0) / 2.0;\n }\n }\n }\n return gl_Position;\n}\n",fs:"\nconst int max_lights = 2;\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform sampler2D shadow_uShadowMap0;\nuniform sampler2D shadow_uShadowMap1;\nuniform vec4 shadow_uColor;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nconst vec4 bitPackShift = vec4(1.0, 255.0, 65025.0, 16581375.0);\nconst vec4 bitUnpackShift = 1.0 / bitPackShift;\nconst vec4 bitMask = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n\nfloat shadow_getShadowWeight(vec3 position, sampler2D shadowMap) {\n vec4 rgbaDepth = texture2D(shadowMap, position.xy);\n\n float z = dot(rgbaDepth, bitUnpackShift);\n return smoothstep(0.001, 0.01, position.z - z);\n}\n\nvec4 shadow_filterShadowColor(vec4 color) {\n if (shadow_uDrawShadowMap) {\n vec4 rgbaDepth = fract(gl_FragCoord.z * bitPackShift);\n rgbaDepth -= rgbaDepth.gbaa * bitMask;\n return rgbaDepth;\n }\n if (shadow_uUseShadowMap) {\n float shadowAlpha = 0.0;\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[0], shadow_uShadowMap0);\n if(shadow_uLightCount > 1.0) {\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[1], shadow_uShadowMap1);\n }\n shadowAlpha *= shadow_uColor.a / shadow_uLightCount;\n float blendedAlpha = shadowAlpha + color.a * (1.0 - shadowAlpha);\n\n return vec4(\n mix(color.rgb, shadow_uColor.rgb, shadowAlpha / blendedAlpha),\n blendedAlpha\n );\n }\n return color;\n}\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n position = shadow_setVertexPosition(geometry.position);\n ","fs:DECKGL_FILTER_COLOR":"\n color = shadow_filterShadowColor(color);\n "},getUniforms:(n={},t={})=>{if(n.drawToShadowMap||n.shadowMaps&&n.shadowMaps.length>0){const{shadowEnabled:e=!0}=n;return e&&n.shadowMatrices&&n.shadowMatrices.length>0?function(n={},t={}){const e={shadow_uDrawShadowMap:Boolean(n.drawToShadowMap),shadow_uUseShadowMap:!!n.shadowMaps&&n.shadowMaps.length>0,shadow_uColor:n.shadowColor||h$t,shadow_uLightId:n.shadowLightId||0,shadow_uLightCount:n.shadowMatrices.length},i=d$t({viewport:n.viewport,center:t.project_uCenter}),s=[],o=u$t({shadowMatrices:n.shadowMatrices,viewport:n.viewport}).slice();for(let r=0;r0?n.shadowMaps[r]:n.dummyShadowMap;return e}(n,t):{shadow_uDrawShadowMap:!1,shadow_uUseShadowMap:!1}}return{}}},_$t={color:[255,255,255],intensity:1},B2e=[{color:[255,255,255],intensity:1,direction:[-1,3,-1]},{color:[255,255,255],intensity:.9,direction:[1,-8,-2.5]}],v$t=[0,0,0,200/255];class V2e extends L2e{constructor(t){super(t),this.ambientLight=null,this.directionalLights=[],this.pointLights=[],this.shadowColor=v$t,this.shadowPasses=[],this.shadowMaps=[],this.dummyShadowMap=null,this.shadow=!1,this.programManager=null;for(const e in t){const i=t[e];switch(i.type){case"ambient":this.ambientLight=i;break;case"directional":this.directionalLights.push(i);break;case"point":this.pointLights.push(i)}}this._applyDefaultLights(),this.shadow=this.directionalLights.some(e=>e.shadow)}preRender(t,{layers:e,layerFilter:i,viewports:s,onViewportActive:o,views:r}){if(this.shadow){this.shadowMatrices=this._createLightMatrix(),0===this.shadowPasses.length&&this._createShadowPasses(t),this.programManager||(this.programManager=SA.getDefaultProgramManager(t),vee&&this.programManager.addDefaultModule(vee)),this.dummyShadowMap||(this.dummyShadowMap=new Lh(t,{width:1,height:1}));for(let a=0;ai.getProjectedLight({layer:t})),pointLights:this.pointLights.map(i=>i.getProjectedLight({layer:t}))},e}cleanup(){for(const t of this.shadowPasses)t.delete();this.shadowPasses.length=0,this.shadowMaps.length=0,this.dummyShadowMap&&(this.dummyShadowMap.delete(),this.dummyShadowMap=null),this.shadow&&this.programManager&&(this.programManager.removeDefaultModule(vee),this.programManager=null)}_createLightMatrix(){const t=[];for(const e of this.directionalLights){const i=(new Nd).lookAt({eye:new on(e.direction).negate()});t.push(i)}return t}_createShadowPasses(t){for(let e=0;et instanceof V2e)||this._internalEffects.push(b$t)}}class x$t extends _ee{}const z2e={blendFunc:[1,0,32771,0],blendEquation:32774};class H2e extends _ee{render(t){t.pickingFBO?(this.useAlpha=!0,this._drawPickingBuffer(t)):(this.useAlpha=!1,super.render(t))}_drawPickingBuffer({layers:t,layerFilter:e,views:i,viewports:s,onViewportActive:o,pickingFBO:r,deviceRect:{x:a,y:l,width:c,height:d},pass:u="picking",redrawReason:h,pickZ:f}){const m=this.gl;return this.pickZ=f,jp(m,yn(Ne({scissorTest:!0,scissor:[a,l,c,d],clearColor:[0,0,0,0],depthMask:!0,depthTest:!0,depthRange:[0,1],colorMask:[!0,!0,!0,!0]},z2e),{blend:!f}),()=>{super.render({target:r,layers:t,layerFilter:e,views:i,viewports:s,onViewportActive:o,pass:u,redrawReason:h})})}shouldDrawLayer(t){return t.props.pickable}getModuleParameters(){return{pickingActive:1,pickingAttribute:this.pickZ,lightSources:{}}}getLayerParameters(t,e){const i=this.pickZ?{blend:!1}:yn(Ne({},z2e),{blend:!0,blendColor:[0,0,0,this.useAlpha?(e+1)/255:1]});return Ne(Ne({},t.props.parameters),i)}}class S$t{constructor(t){this.gl=t,this.layerFilter=null,this.drawPickingColors=!1,this.drawLayersPass=new x$t(t),this.pickLayersPass=new H2e(t),this.renderCount=0,this._needsRedraw="Initial render",this.renderBuffers=[],this.lastPostProcessEffect=null}setProps(t){"layerFilter"in t&&this.layerFilter!==t.layerFilter&&(this.layerFilter=t.layerFilter,this._needsRedraw="layerFilter changed"),"drawPickingColors"in t&&this.drawPickingColors!==t.drawPickingColors&&(this.drawPickingColors=t.drawPickingColors,this._needsRedraw="drawPickingColors changed")}renderLayers(t){const e=this.drawPickingColors?this.pickLayersPass:this.drawLayersPass;t.layerFilter=this.layerFilter,t.effects=t.effects||[],t.target=t.target||Wa.getDefaultFramebuffer(this.gl),this._preRender(t.effects,t);const i=this.lastPostProcessEffect?this.renderBuffers[0]:t.target,s=e.render(yn(Ne({},t),{target:i}));this._postRender(t.effects,t),this.renderCount++,yc("deckRenderer.renderLayers",this,s,t)}needsRedraw(t={clearRedrawFlags:!1}){const e=this._needsRedraw;return t.clearRedrawFlags&&(this._needsRedraw=!1),e}finalize(){const{renderBuffers:t}=this;for(const e of t)e.delete();t.length=0}_preRender(t,e){let i=null;for(const s of t)s.preRender(this.gl,e),s.postRender&&(i=s);i&&this._resizeRenderBuffers(),this.lastPostProcessEffect=i}_resizeRenderBuffers(){const{renderBuffers:t}=this;0===t.length&&t.push(new Wa(this.gl),new Wa(this.gl));for(const e of t)e.resize()}_postRender(t,e){const{renderBuffers:i}=this,s={inputBuffer:i[0],swapBuffer:i[1],target:null};for(const o of t)if(o.postRender){if(o===this.lastPostProcessEffect){s.target=e.target,o.postRender(this.gl,s);break}const r=o.postRender(this.gl,s);s.inputBuffer=r,s.swapBuffer=r===i[0]?i[1]:i[0]}}}const T$t={pickedColor:null,pickedLayer:null,pickedObjectIndex:-1};function k$t({pickedColors:n,layers:t,deviceX:e,deviceY:i,deviceRadius:s,deviceRect:o}){if(n){const{x:r,y:a,width:l,height:c}=o;let d=s*s,u=-1,h=0;for(let f=0;fd)h+=4*l;else for(let k=0;k=0){const E=k+r-e,O=E*E+C;O<=d&&(d=O,u=h)}h+=4}}if(u>=0){const f=n[u+3]-1,m=n.slice(u,u+4),C=t[f];if(C){const k=C.decodePickingColor(m),D=Math.floor(u/4/l);return{pickedColor:m,pickedLayer:C,pickedObjectIndex:k,pickedX:r+(u/4-D*l),pickedY:a+D}}$n.error("Picked non-existent layer. Is picking buffer corrupt?")()}}return T$t}function G2e({pickInfo:n,mode:t,viewports:e,layerFilter:i,pixelRatio:s,x:o,y:r,z:a}){const l=n&&n.pickedLayer,d=function(n,t,e){for(let i=n.length-1;i>=0;i--){const s=n[i];if(s.containsPixel(t)&&(!e||e(s)))return s}return n[0]}(e,{x:o,y:r},i&&l&&(h=>i({layer:l,viewport:h,isPicking:!0,renderPass:"picking:".concat(t)}))),u=d&&d.unproject([o-d.x,r-d.y],{targetZ:a});return{color:null,layer:null,viewport:d,index:-1,picked:!1,x:o,y:r,pixel:[o,r],coordinate:u,devicePixel:n&&[n.pickedX,n.pickedY],pixelRatio:s}}function M$t(n){const{pickInfo:t,lastPickedInfo:e,mode:i,layers:s}=n,{pickedColor:o,pickedLayer:r,pickedObjectIndex:a}=t,l=r?[r]:[];if("hover"===i){const u=e.index,h=e.layerId,f=r&&r.props.id;if(f!==h||a!==u){if(f!==h){const m=s.find(C=>C.props.id===h);m&&l.unshift(m)}e.layerId=f,e.index=a,e.info=null}}const c=G2e(n),d=new Map;return d.set(null,c),l.forEach(u=>{let h=Ne({},c);u===r&&(h.color=o,h.index=a,h.picked=!0),h=j2e({layer:u,info:h,mode:i}),u===r&&"hover"===i&&(e.info=h),d.set(h.layer.id,h),"hover"===i&&h.layer.updateAutoHighlight(h)}),d}function j2e({layer:n,info:t,mode:e}){for(;n&&t;){const i=t.layer||null;t.sourceLayer=i,t.layer=n,t=n.getPickingInfo({info:t,mode:e,sourceLayer:i}),n=n.parent}return t}class I$t{constructor(t){this.gl=t,this.pickingFBO=null,this.pickLayersPass=new H2e(t),this.layerFilter=null,this.lastPickedInfo={index:-1,layerId:null,info:null}}setProps(t){"layerFilter"in t&&(this.layerFilter=t.layerFilter),"_pickable"in t&&(this._pickable=t._pickable)}finalize(){this.pickingFBO&&this.pickingFBO.delete(),this.depthFBO&&(this.depthFBO.color.delete(),this.depthFBO.delete())}pickObject(t){return this._pickClosestObject(t)}pickObjects(t){return this._pickVisibleObjects(t)}getLastPickedObject({x:t,y:e,layers:i,viewports:s},o=this.lastPickedInfo.info){const r=o&&o.layer&&o.layer.id,a=o&&o.viewport&&o.viewport.id,l=r?i.find(h=>h.id===r):null,c=a&&s.find(h=>h.id===a)||s[0],d=c&&c.unproject([t-c.x,e-c.y]),u={x:t,y:e,viewport:c,coordinate:d,layer:l};return l?Ne(Ne({},o),u):Object.assign(u,{color:null,object:null,index:-1})}_resizeBuffer(){const{gl:t}=this;return this.pickingFBO||(this.pickingFBO=new Wa(t),Wa.isSupported(t,{colorBufferFloat:!0})&&(this.depthFBO=new Wa(t),this.depthFBO.attach({36064:new Lh(t,{format:hs(t)?34836:6408,type:5126})}))),this.pickingFBO.resize({width:t.canvas.width,height:t.canvas.height}),this.depthFBO&&this.depthFBO.resize({width:t.canvas.width,height:t.canvas.height}),this.pickingFBO}_getPickable(t){if(!1===this._pickable)return null;const e=t.filter(i=>i.isPickable()&&!i.isComposite);return e.length>255?($n.warn("Too many pickable layers, only picking the first 255")(),e.slice(0,255)):e.length?e:null}_pickClosestObject({layers:t,views:e,viewports:i,x:s,y:o,radius:r=0,depth:a=1,mode:l="query",unproject3D:c,onViewportActive:d}){if(!(t=this._getPickable(t)))return{result:[],emptyInfo:G2e({viewports:i,x:s,y:o})};this._resizeBuffer();const u=Ck(this.gl),h=t9(this.gl,[s,o],!0),f=[h.x+Math.floor(h.width/2),h.y+Math.floor(h.height/2)],m=Math.round(r*u),{width:C,height:k}=this.pickingFBO,D=this._getPickingRect({deviceX:f[0],deviceY:f[1],deviceRadius:m,deviceWidth:C,deviceHeight:k});let E;const O=[],z={};for(let q=0;q=0){const o=n.slice(i,i+4),r=o.join(",");if(!e.has(r)){const a=t[s];a?e.set(r,{pickedColor:o,pickedLayer:a,pickedObjectIndex:a.decodePickingColor(o)}):$n.error("Picked non-existent layer. Is picking buffer corrupt?")()}}}return Array.from(e.values())}({pickedColors:this._drawAndSample({layers:t,views:e,viewports:i,onViewportActive:d,deviceRect:{x:f,y:D,width:C.x+C.width-f,height:m-D},pass:"picking:".concat(l),redrawReason:l}),layers:t}),q=new Map,re=Number.isFinite(c);for(let ie=0;ie=c);ie++){const Se=z[ie];let Te={color:Se.pickedColor,layer:null,index:Se.pickedObjectIndex,picked:!0,x:s,y:o,width:r,height:a,pixelRatio:u};Te=j2e({layer:Se.pickedLayer,info:Te,mode:l}),q.has(Te.object)||q.set(Te.object,Te)}return Array.from(q.values())}_drawAndSample({layers:t,views:e,viewports:i,onViewportActive:s,deviceRect:o,pass:r,redrawReason:a,pickZ:l}){if(t.length<1)return null;const c=l?this.depthFBO:this.pickingFBO;this.pickLayersPass.render({layers:t,layerFilter:this.layerFilter,views:e,viewports:i,onViewportActive:s,pickingFBO:c,deviceRect:o,pass:r,redrawReason:a,pickZ:l});const{x:d,y:u,width:h,height:f}=o,m=new(l?Float32Array:Uint8Array)(h*f*4);return y3(c,{sourceX:d,sourceY:u,sourceWidth:h,sourceHeight:f,target:m}),m}_getPickingRect({deviceX:t,deviceY:e,deviceRadius:i,deviceWidth:s,deviceHeight:o}){const r=Math.max(0,t-i),a=Math.max(0,e-i),l=Math.min(s,t+i+1)-r,c=Math.min(o,e+i+1)-a;return l<=0||c<=0?null:{x:r,y:a,width:l,height:c}}}const A$t={zIndex:1,position:"absolute",pointerEvents:"none",color:"#a0a7b4",backgroundColor:"#29323c",padding:"10px",top:0,left:0,display:"none"};class F$t{constructor(t){const e=t.parentElement;e&&(this.el=document.createElement("div"),this.el.className="deck-tooltip",Object.assign(this.el.style,A$t),e.appendChild(this.el)),this.isVisible=!1}setTooltip(t,e,i){const s=this.el;if("string"==typeof t)s.innerText=t;else{if(!t)return this.isVisible=!1,void(s.style.display="none");"text"in t&&(s.innerText=t.text),"html"in t&&(s.innerHTML=t.html),"className"in t&&(s.className=t.className),Object.assign(s.style,t.style)}this.isVisible=!0,s.style.display="block",s.style.transform="translate(".concat(e,"px, ").concat(i,"px)")}remove(){this.el&&this.el.remove()}}const R$t={name:"JSON",extensions:["json","geojson"],mimeTypes:["application/json","application/geo+json"],testText:function(n){const t=n[0],e=n[n.length-1];return"{"===t&&"}"===e||"["===t&&"]"===e},parseTextSync:JSON.parse},hO="8.5.4",e8=sr.CO.deck&&sr.CO.deck.VERSION;if(e8&&e8!==hO)throw new Error("deck.gl - multiple versions detected: ".concat(e8," vs ").concat(hO));e8||($n.log(1,"deck.gl ".concat(hO))(),sr.CO.deck=Object.assign(sr.CO.deck||{},{VERSION:hO,version:hO,log:$n,_registerLoggers:function(n){C9=n}}),function(n){const t=Pve();n=Array.isArray(n)?n:[n];for(const e of n){const i=Z9(e);t.find(s=>i===s)||t.unshift(i)}}([R$t,[Qve,{imagebitmap:{premultiplyAlpha:"none"}}]]));const P$t=sr.CO.deck;class t8 extends wy{static isSupported(t,e=[]){const i=hs(t),s=p9(t,"TIMER_QUERY");let o=i||s;for(const r of e)switch(r){case"queries":o=o&&i;break;case"timers":o=o&&s;break;default:nn(!1)}return o}constructor(t,e={}){super(t,e),this.target=null,this._queryPending=!1,this._pollingPromise=null,Object.seal(this)}beginTimeElapsedQuery(){return this.begin(35007)}beginOcclusionQuery({conservative:t=!1}={}){return this.begin(t?36202:35887)}beginTransformFeedbackQuery(){return this.begin(35976)}begin(t){return this._queryPending||(this.target=t,this.gl2.beginQuery(this.target,this.handle)),this}end(){return this._queryPending||this.target&&(this.gl2.endQuery(this.target),this.target=null,this._queryPending=!0),this}isResultAvailable(){if(!this._queryPending)return!1;const t=this.gl2.getQueryParameter(this.handle,34919);return t&&(this._queryPending=!1),t}isTimerDisjoint(){return this.gl2.getParameter(36795)}getResult(){return this.gl2.getQueryParameter(this.handle,34918)}getTimerMilliseconds(){return this.getResult()/1e6}createPoll(t=Number.POSITIVE_INFINITY){if(this._pollingPromise)return this._pollingPromise;let e=0;return this._pollingPromise=new Promise((i,s)=>{const o=()=>{this.isResultAvailable()?(i(this.getResult()),this._pollingPromise=null):e++>t?(s("Timed out"),this._pollingPromise=null):requestAnimationFrame(o)};requestAnimationFrame(o)}),this._pollingPromise}_createHandle(){return t8.isSupported(this.gl)?this.gl2.createQuery():null}_deleteHandle(){this.gl2.deleteQuery(this.handle)}}function $2e(n){return"undefined"!=typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame(n):clearTimeout(n)}const U2e=(0,sr.jU)()&&"undefined"!=typeof document;let $$t=0;class U$t{constructor(t={}){const{onCreateContext:e=(k=>sye(k)),onAddHTML:i=null,onInitialize:s=(()=>{}),onRender:o=(()=>{}),onFinalize:r=(()=>{}),onError:a,gl:l=null,glOptions:c={},debug:d=!1,createFramebuffer:u=!1,autoResizeViewport:h=!0,autoResizeDrawingBuffer:f=!0,stats:m=NC.get("animation-loop-".concat($$t++))}=t;let{useDevicePixels:C=!0}=t;"useDevicePixelRatio"in t&&(Ln.deprecated("useDevicePixelRatio","useDevicePixels")(),C=t.useDevicePixelRatio),this.props={onCreateContext:e,onAddHTML:i,onInitialize:s,onRender:o,onFinalize:r,onError:a,gl:l,glOptions:c,debug:d,createFramebuffer:u},this.gl=l,this.needsRedraw=null,this.timeline=null,this.stats=m,this.cpuTime=this.stats.get("CPU Time"),this.gpuTime=this.stats.get("GPU Time"),this.frameRate=this.stats.get("Frame Rate"),this._initialized=!1,this._running=!1,this._animationFrameId=null,this._nextFramePromise=null,this._resolveNextFrame=null,this._cpuStartTime=0,this.setProps({autoResizeViewport:h,autoResizeDrawingBuffer:f,useDevicePixels:C}),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this._pageLoadPromise=null,this._onMousemove=this._onMousemove.bind(this),this._onMouseleave=this._onMouseleave.bind(this)}delete(){this.stop(),this._setDisplay(null)}setNeedsRedraw(t){return nn("string"==typeof t),this.needsRedraw=this.needsRedraw||t,this}setProps(t){return"autoResizeViewport"in t&&(this.autoResizeViewport=t.autoResizeViewport),"autoResizeDrawingBuffer"in t&&(this.autoResizeDrawingBuffer=t.autoResizeDrawingBuffer),"useDevicePixels"in t&&(this.useDevicePixels=t.useDevicePixels),this}start(t={}){if(this._running)return this;this._running=!0;const e=this._getPageLoadPromise().then(()=>!this._running||this._initialized?null:(this._createWebGLContext(t),this._createFramebuffer(),this._startEventHandling(),this._initializeCallbackData(),this._updateCallbackData(),this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._gpuTimeQuery=t8.isSupported(this.gl,["timers"])?new t8(this.gl):null,this._initialized=!0,this.onInitialize(this.animationProps))).then(i=>{this._running&&(this._addCallbackData(i||{}),!1!==i&&this._startLoop())});return this.props.onError&&e.catch(this.props.onError),this}redraw(){return this.isContextLost()||(this._beginTimers(),this._setupFrame(),this._updateCallbackData(),this._renderFrame(this.animationProps),this._clearNeedsRedraw(),this.offScreen&&this.gl.commit&&this.gl.commit(),this._resolveNextFrame&&(this._resolveNextFrame(this),this._nextFramePromise=null,this._resolveNextFrame=null),this._endTimers()),this}stop(){return this._running&&(this._finalizeCallbackData(),$2e(this._animationFrameId),this._nextFramePromise=null,this._resolveNextFrame=null,this._animationFrameId=null,this._running=!1),this}attachTimeline(t){return this.timeline=t,this.timeline}detachTimeline(){this.timeline=null}waitForRender(){return this.setNeedsRedraw("waitForRender"),this._nextFramePromise||(this._nextFramePromise=new Promise(t=>{this._resolveNextFrame=t})),this._nextFramePromise}toDataURL(){var t=this;return Xe(function*(){return t.setNeedsRedraw("toDataURL"),yield t.waitForRender(),t.gl.canvas.toDataURL()})()}isContextLost(){return this.gl.isContextLost()}onCreateContext(...t){return this.props.onCreateContext(...t)}onInitialize(...t){return this.props.onInitialize(...t)}onRender(...t){return this.props.onRender(...t)}onFinalize(...t){return this.props.onFinalize(...t)}getHTMLControlValue(t,e=1){const i=document.getElementById(t);return i?Number(i.value):e}setViewParameters(){return Ln.removed("AnimationLoop.setViewParameters","AnimationLoop.setProps")(),this}_startLoop(){const t=()=>{!this._running||(this.redraw(),this._animationFrameId=this._requestAnimationFrame(t))};$2e(this._animationFrameId),this._animationFrameId=this._requestAnimationFrame(t)}_getPageLoadPromise(){return this._pageLoadPromise||(this._pageLoadPromise=U2e?new Promise((t,e)=>{U2e&&"complete"===document.readyState?t(document):window.addEventListener("load",()=>{t(document)})}):Promise.resolve({})),this._pageLoadPromise}_setDisplay(t){this.display&&(this.display.delete(),this.display.animationLoop=null),t&&(t.animationLoop=this),this.display=t}_requestAnimationFrame(t){this.display&&this.display.requestAnimationFrame(t)||function(n){"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame(n):setTimeout(n,1e3/60)}(t)}_renderFrame(...t){this.display?this.display._renderFrame(...t):this.onRender(...t)}_clearNeedsRedraw(){this.needsRedraw=null}_setupFrame(){this._resizeCanvasDrawingBuffer(),this._resizeViewport(),this._resizeFramebuffer()}_initializeCallbackData(){this.animationProps={gl:this.gl,stop:this.stop,canvas:this.gl.canvas,framebuffer:this.framebuffer,useDevicePixels:this.useDevicePixels,needsRedraw:null,startTime:Date.now(),engineTime:0,tick:0,tock:0,time:0,_timeline:this.timeline,_loop:this,_animationLoop:this,_mousePosition:null}}_updateCallbackData(){const{width:t,height:e,aspect:i}=this._getSizeAndAspect();(t!==this.animationProps.width||e!==this.animationProps.height)&&this.setNeedsRedraw("drawing buffer resized"),i!==this.animationProps.aspect&&this.setNeedsRedraw("drawing buffer aspect changed"),this.animationProps.width=t,this.animationProps.height=e,this.animationProps.aspect=i,this.animationProps.needsRedraw=this.needsRedraw,this.animationProps.engineTime=Date.now()-this.animationProps.startTime,this.timeline&&this.timeline.update(this.animationProps.engineTime),this.animationProps.tick=Math.floor(this.animationProps.time/1e3*60),this.animationProps.tock++,this.animationProps.time=this.timeline?this.timeline.getTime():this.animationProps.engineTime,this.animationProps._offScreen=this.offScreen}_finalizeCallbackData(){this.onFinalize(this.animationProps)}_addCallbackData(t){"object"==typeof t&&null!==t&&(this.animationProps=Object.assign({},this.animationProps,t))}_createWebGLContext(t){if(this.offScreen=t.canvas&&"undefined"!=typeof OffscreenCanvas&&t.canvas instanceof OffscreenCanvas,t=Object.assign({},t,this.props.glOptions),this.gl=this.props.gl?i9(this.props.gl,t):this.onCreateContext(t),!f3(this.gl))throw new Error("AnimationLoop.onCreateContext - illegal context returned");(function(n){xy(n,e9)})(this.gl),this._createInfoDiv()}_createInfoDiv(){if(this.gl.canvas&&this.props.onAddHTML){const t=document.createElement("div");document.body.appendChild(t),t.style.position="relative";const e=document.createElement("div");e.style.position="absolute",e.style.left="10px",e.style.bottom="10px",e.style.width="300px",e.style.background="white",t.appendChild(this.gl.canvas),t.appendChild(e);const i=this.props.onAddHTML(e);i&&(e.innerHTML=i)}}_getSizeAndAspect(){const t=this.gl.drawingBufferWidth,e=this.gl.drawingBufferHeight;let i=1;const{canvas:s}=this.gl;return s&&s.clientHeight?i=s.clientWidth/s.clientHeight:t>0&&e>0&&(i=t/e),{width:t,height:e,aspect:i}}_resizeViewport(){this.autoResizeViewport&&this.gl.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}_resizeCanvasDrawingBuffer(){this.autoResizeDrawingBuffer&&function(n,t={}){if(n.canvas)return void function(n,t,e){let i="width"in e?e.width:n.canvas.clientWidth,s="height"in e?e.height:n.canvas.clientHeight;(!i||!s)&&(Ln.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,i=n.canvas.width||1,s=n.canvas.height||1),n.luma=n.luma||{},n.luma.canvasSizeInfo=n.luma.canvasSizeInfo||{};const o=n.luma.canvasSizeInfo;if(o.clientWidth!==i||o.clientHeight!==s||o.devicePixelRatio!==t){let r=t;const a=Math.floor(i*r),l=Math.floor(s*r);n.canvas.width=a,n.canvas.height=l,(n.drawingBufferWidth!==a||n.drawingBufferHeight!==l)&&(Ln.warn("Device pixel ratio clamped")(),r=Math.min(n.drawingBufferWidth/i,n.drawingBufferHeight/s),n.canvas.width=Math.floor(i*r),n.canvas.height=Math.floor(s*r)),Object.assign(n.luma.canvasSizeInfo,{clientWidth:i,clientHeight:s,devicePixelRatio:t})}}(n,function(n){const t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(n)?n<=0?1:n:n?t:1}(t.useDevicePixels),t);const e=n.getExtension("STACKGL_resize_drawingbuffer");e&&"width"in t&&"height"in t&&e.resize(t.width,t.height)}(this.gl,{useDevicePixels:this.useDevicePixels})}_createFramebuffer(){this.props.createFramebuffer&&(this.framebuffer=new Wa(this.gl))}_resizeFramebuffer(){this.framebuffer&&this.framebuffer.resize({width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight})}_beginTimers(){this.frameRate.timeEnd(),this.frameRate.timeStart(),this._gpuTimeQuery&&this._gpuTimeQuery.isResultAvailable()&&!this._gpuTimeQuery.isTimerDisjoint()&&this.stats.get("GPU Time").addTime(this._gpuTimeQuery.getTimerMilliseconds()),this._gpuTimeQuery&&this._gpuTimeQuery.beginTimeElapsedQuery(),this.cpuTime.timeStart()}_endTimers(){this.cpuTime.timeEnd(),this._gpuTimeQuery&&this._gpuTimeQuery.end()}_startEventHandling(){const{canvas:t}=this.gl;t&&(t.addEventListener("mousemove",this._onMousemove),t.addEventListener("mouseleave",this._onMouseleave))}_onMousemove(t){this.animationProps._mousePosition=[t.offsetX,t.offsetY]}_onMouseleave(t){this.animationProps._mousePosition=null}}var W$t=Pt(524),n8=Pt.n(W$t);const q$t={mousedown:1,mousemove:2,mouseup:4};(function(n){const t=n.prototype.handler;n.prototype.handler=function(i){const s=this.store;i.button>0&&"pointerdown"===i.type&&(function(n,t){for(let e=0;e=0&&(this.pressed=!0),2&i&&0===e.which&&(i=4),this.pressed&&(4&i&&(this.pressed=!1),this.callback(this.manager,i,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}}(n8().MouseInput);const Z$t=n8().Manager,mm=n8(),Q$t=mm?[[mm.Pan,{event:"tripan",pointers:3,threshold:0,enable:!1}],[mm.Rotate,{enable:!1}],[mm.Pinch,{enable:!1}],[mm.Swipe,{enable:!1}],[mm.Pan,{threshold:0,enable:!1}],[mm.Press,{enable:!1}],[mm.Tap,{event:"doubletap",taps:2,enable:!1}],[mm.Tap,{event:"anytap",enable:!1}],[mm.Tap,{enable:!1}]]:null,X2e={tripan:["rotate","pinch","pan"],rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},J$t={doubletap:["tap"]},eUt={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},Cee={KEY_EVENTS:["keydown","keyup"],MOUSE_EVENTS:["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],WHEEL_EVENTS:["wheel","mousewheel"]},tUt={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",tripan:"tripan",tripanstart:"tripan",tripanmove:"tripan",tripanup:"tripan",tripandown:"tripan",tripanleft:"tripan",tripanright:"tripan",tripanend:"tripan",tripancancel:"tripan",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},Y2e={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},nUt="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",wM="undefined"!=typeof window?window:global;"undefined"!=typeof global?global:window,"undefined"!=typeof document&&document;let K2e=!1;try{const n={get passive(){return K2e=!0,!0}};wM.addEventListener("test",n,n),wM.removeEventListener("test",n,n)}catch(n){}const iUt=-1!==nUt.indexOf("firefox"),{WHEEL_EVENTS:sUt}=Cee,Q2e=4.000244140625;class aUt{constructor(t,e,i={}){this.element=t,this.callback=e,this.options=Object.assign({enable:!0},i),this.events=sUt.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach(s=>t.addEventListener(s,this.handleEvent,!!K2e&&{passive:!1}))}destroy(){this.events.forEach(t=>this.element.removeEventListener(t,this.handleEvent))}enableEventType(t,e){"wheel"===t&&(this.options.enable=e)}handleEvent(t){if(!this.options.enable)return;let e=t.deltaY;wM.WheelEvent&&(iUt&&t.deltaMode===wM.WheelEvent.DOM_DELTA_PIXEL&&(e/=wM.devicePixelRatio),t.deltaMode===wM.WheelEvent.DOM_DELTA_LINE&&(e*=40));const i={x:t.clientX,y:t.clientY};0!==e&&e%Q2e==0&&(e=Math.floor(e/Q2e)),t.shiftKey&&e&&(e*=.25),this._onWheel(t,-e,i)}_onWheel(t,e,i){this.callback({type:"wheel",center:i,delta:e,srcEvent:t,pointerType:"mouse",target:t.target})}}const{MOUSE_EVENTS:lUt}=Cee,J2e="pointermove",eFe="pointerover",tFe="pointerout",nFe="pointerleave";class cUt{constructor(t,e,i={}){this.element=t,this.callback=e,this.pressed=!1,this.options=Object.assign({enable:!0},i),this.enableMoveEvent=this.options.enable,this.enableLeaveEvent=this.options.enable,this.enableOutEvent=this.options.enable,this.enableOverEvent=this.options.enable,this.events=lUt.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach(s=>t.addEventListener(s,this.handleEvent))}destroy(){this.events.forEach(t=>this.element.removeEventListener(t,this.handleEvent))}enableEventType(t,e){t===J2e&&(this.enableMoveEvent=e),t===eFe&&(this.enableOverEvent=e),t===tFe&&(this.enableOutEvent=e),t===nFe&&(this.enableLeaveEvent=e)}handleEvent(t){this.handleOverEvent(t),this.handleOutEvent(t),this.handleLeaveEvent(t),this.handleMoveEvent(t)}handleOverEvent(t){this.enableOverEvent&&"mouseover"===t.type&&this.callback({type:eFe,srcEvent:t,pointerType:"mouse",target:t.target})}handleOutEvent(t){this.enableOutEvent&&"mouseout"===t.type&&this.callback({type:tFe,srcEvent:t,pointerType:"mouse",target:t.target})}handleLeaveEvent(t){this.enableLeaveEvent&&"mouseleave"===t.type&&this.callback({type:nFe,srcEvent:t,pointerType:"mouse",target:t.target})}handleMoveEvent(t){if(this.enableMoveEvent)switch(t.type){case"mousedown":t.button>=0&&(this.pressed=!0);break;case"mousemove":0===t.which&&(this.pressed=!1),this.pressed||this.callback({type:J2e,srcEvent:t,pointerType:"mouse",target:t.target});break;case"mouseup":this.pressed=!1}}}const{KEY_EVENTS:dUt}=Cee;class uUt{constructor(t,e,i={}){this.element=t,this.callback=e,this.options=Object.assign({enable:!0},i),this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=dUt.concat(i.events||[]),this.handleEvent=this.handleEvent.bind(this),t.tabIndex=i.tabIndex||0,t.style.outline="none",this.events.forEach(s=>t.addEventListener(s,this.handleEvent))}destroy(){this.events.forEach(t=>this.element.removeEventListener(t,this.handleEvent))}enableEventType(t,e){"keydown"===t&&(this.enableDownEvent=e),"keyup"===t&&(this.enableUpEvent=e)}handleEvent(t){const e=t.target||t.srcElement;"INPUT"===e.tagName&&"text"===e.type||"TEXTAREA"===e.tagName||(this.enableDownEvent&&"keydown"===t.type&&this.callback({type:"keydown",srcEvent:t,key:t.key,target:t.target}),this.enableUpEvent&&"keyup"===t.type&&this.callback({type:"keyup",srcEvent:t,key:t.key,target:t.target}))}}const oFe="contextmenu";class hUt{constructor(t,e,i={}){this.element=t,this.callback=e,this.options=Object.assign({enable:!0},i),this.handleEvent=this.handleEvent.bind(this),t.addEventListener("contextmenu",this.handleEvent)}destroy(){this.element.removeEventListener("contextmenu",this.handleEvent)}enableEventType(t,e){t===oFe&&(this.options.enable=e)}handleEvent(t){!this.options.enable||this.callback({type:oFe,center:{x:t.clientX,y:t.clientY},srcEvent:t,pointerType:"mouse",target:t.target})}}const pUt={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4},rFe={srcElement:"root",priority:0};class TUt{constructor(t){this.eventManager=t,this.handlers=[],this.handlersByElement=new Map,this.handleEvent=this.handleEvent.bind(this),this._active=!1}isEmpty(){return!this._active}add(t,e,i,s=!1,o=!1){const{handlers:r,handlersByElement:a}=this;i&&("object"!=typeof i||i.addEventListener)&&(i={srcElement:i}),i=i?Object.assign({},rFe,i):rFe;let l=a.get(i.srcElement);l||(l=[],a.set(i.srcElement,l));const c={type:t,handler:e,srcElement:i.srcElement,priority:i.priority};s&&(c.once=!0),o&&(c.passive=!0),r.push(c),this._active=this._active||!c.passive;let d=l.length-1;for(;d>=0&&!(l[d].priority>=c.priority);)d--;l.splice(d+1,0,c)}remove(t,e){const{handlers:i,handlersByElement:s}=this;for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.type===t&&r.handler===e){i.splice(o,1);const a=s.get(r.srcElement);a.splice(a.indexOf(r),1),0===a.length&&s.delete(r.srcElement)}}this._active=i.some(o=>!o.passive)}handleEvent(t){if(this.isEmpty())return;const e=this._normalizeEvent(t);let i=t.srcEvent.target;for(;i&&i!==e.rootElement;){if(this._emit(e,i),e.handled)return;i=i.parentNode}this._emit(e,"root")}_emit(t,e){const i=this.handlersByElement.get(e);if(i){let s=!1;const o=()=>{t.handled=!0},r=()=>{t.handled=!0,s=!0},a=[];for(let l=0;l{const o=this.manager.get(s);o&&X2e[s].forEach(r=>{o.recognizeWith(r)})});for(const s in e.recognizerOptions){const o=this.manager.get(s);if(o){const r=e.recognizerOptions[s];delete r.enable,o.set(r)}}this.wheelInput=new aUt(t,this._onOtherEvent,{enable:!1}),this.moveInput=new cUt(t,this._onOtherEvent,{enable:!1}),this.keyInput=new uUt(t,this._onOtherEvent,{enable:!1,tabIndex:e.tabIndex}),this.contextmenuInput=new hUt(t,this._onOtherEvent,{enable:!1});for(const[s,o]of this.events)o.isEmpty()||(this._toggleRecognizer(o.recognizerName,!0),this.manager.on(s,o.handleEvent))}destroy(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}on(t,e,i){this._addEventHandler(t,e,i,!1)}once(t,e,i){this._addEventHandler(t,e,i,!0)}watch(t,e,i){this._addEventHandler(t,e,i,!1,!0)}off(t,e){this._removeEventHandler(t,e)}_toggleRecognizer(t,e){const{manager:i}=this;if(!i)return;const s=i.get(t);if(s&&s.options.enable!==e){s.set({enable:e});const o=J$t[t];o&&!this.options.recognizers&&o.forEach(r=>{const a=i.get(r);e?(a.requireFailure(t),s.dropRequireFailure(r)):a.dropRequireFailure(t)})}this.wheelInput.enableEventType(t,e),this.moveInput.enableEventType(t,e),this.keyInput.enableEventType(t,e),this.contextmenuInput.enableEventType(t,e)}_addEventHandler(t,e,i,s,o){if("string"!=typeof t){i=e;for(const d in t)this._addEventHandler(d,t[d],i,s,o);return}const{manager:r,events:a}=this,l=Y2e[t]||t;let c=a.get(l);c||(c=new TUt(this),a.set(l,c),c.recognizerName=tUt[l]||l,r&&r.on(l,c.handleEvent)),c.add(t,e,i,s,o),c.isEmpty()||this._toggleRecognizer(c.recognizerName,!0)}_removeEventHandler(t,e){if("string"!=typeof t){for(const r in t)this._removeEventHandler(r,t[r]);return}const{events:i}=this,o=i.get(Y2e[t]||t);if(o&&(o.remove(t,e),o.isEmpty())){const{recognizerName:r}=o;let a=!1;for(const l of i.values())if(l.recognizerName===r&&!l.isEmpty()){a=!0;break}a||this._toggleRecognizer(r,!1)}}_onBasicInput(t){const{srcEvent:e}=t,i=eUt[e.type];i&&this.manager.emit(i,t)}_onOtherEvent(t){this.manager.emit(t.type,t)}}function Gw(){}const aFe={id:"",width:"100%",height:"100%",pickingRadius:0,layerFilter:null,glOptions:{},gl:null,layers:[],effects:[],views:null,controller:null,useDevicePixels:!0,touchAction:"none",eventRecognizerOptions:{},_framebuffer:null,_animate:!1,_pickable:!0,_typedArrayManagerProps:{},onWebGLInitialized:Gw,onResize:Gw,onViewStateChange:Gw,onInteractionStateChange:Gw,onBeforeRender:Gw,onAfterRender:Gw,onLoad:Gw,onError:(n,t)=>$n.error(n)(),_onMetrics:null,getCursor:({isDragging:n})=>n?"grabbing":"grab",debug:!1,drawPickingColors:!1};class s8{constructor(t){t=Ne(Ne({},aFe),t),this.props={},this.width=0,this.height=0,this.viewManager=null,this.layerManager=null,this.effectManager=null,this.deckRenderer=null,this.deckPicker=null,this._needsRedraw=!0,this._pickRequest={},this._lastPointerDownInfo=null,this.viewState=null,this.interactiveState={isHovering:!1,isDragging:!1},this._onEvent=this._onEvent.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._onPointerMove=this._onPointerMove.bind(this),t.viewState&&t.initialViewState&&$n.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")(),"IE"===(0,sr.qs)()&&$n.warn("IE 11 support will be deprecated in v8.0")(),t.gl||"undefined"!=typeof document&&(this.canvas=this._createCanvas(t)),this.animationLoop=this._createAnimationLoop(t),this.stats=new m3({id:"deck.gl"}),this.metrics={fps:0,setPropsTime:0,updateAttributesTime:0,framesRedrawn:0,pickTime:0,pickCount:0,gpuTime:0,gpuTimePerFrame:0,cpuTime:0,cpuTimePerFrame:0,bufferMemory:0,textureMemory:0,renderbufferMemory:0,gpuMemory:0},this._metricsCounter=0,this.setProps(t),t._typedArrayManagerProps&&Tk.setProps(t._typedArrayManagerProps),this.animationLoop.start()}finalize(){this.animationLoop.stop(),this.animationLoop=null,this._lastPointerDownInfo=null,this.layerManager&&(this.layerManager.finalize(),this.layerManager=null,this.viewManager.finalize(),this.viewManager=null,this.effectManager.finalize(),this.effectManager=null,this.deckRenderer.finalize(),this.deckRenderer=null,this.deckPicker.finalize(),this.deckPicker=null,this.eventManager.destroy(),this.eventManager=null,this.tooltip.remove(),this.tooltip=null),!this.props.canvas&&!this.props.gl&&this.canvas&&(this.canvas.parentElement.removeChild(this.canvas),this.canvas=null)}setProps(t){this.stats.get("setProps Time").timeStart(),"onLayerHover"in t&&$n.removed("onLayerHover","onHover")(),"onLayerClick"in t&&$n.removed("onLayerClick","onClick")(),t.initialViewState&&!qk(this.props.initialViewState,t.initialViewState)&&(this.viewState=t.initialViewState),Object.assign(this.props,t),this._setCanvasSize(this.props);const e=Object.create(this.props);Object.assign(e,{views:this._getViews(),width:this.width,height:this.height,viewState:this._getViewState()}),this.animationLoop.setProps(e),this.layerManager&&(this.viewManager.setProps(e),this.layerManager.activateViewport(this.getViewports()[0]),this.layerManager.setProps(e),this.effectManager.setProps(e),this.deckRenderer.setProps(e),this.deckPicker.setProps(e)),this.stats.get("setProps Time").timeEnd()}needsRedraw(t={clearRedrawFlags:!1}){if(this.props._animate)return"Deck._animate";let e=this._needsRedraw;t.clearRedrawFlags&&(this._needsRedraw=!1);const i=this.viewManager.needsRedraw(t),s=this.layerManager.needsRedraw(t),o=this.effectManager.needsRedraw(t),r=this.deckRenderer.needsRedraw(t);return e=e||i||s||o||r,e}redraw(t){if(!this.layerManager)return;const e=t||this.needsRedraw({clearRedrawFlags:!0});!e||(this.stats.get("Redraw Count").incrementCount(),this.props._customRender?this.props._customRender(e):this._drawLayers(e))}getViews(){return this.viewManager.views}getViewports(t){return this.viewManager.getViewports(t)}pickObject(t){const e=this._pick("pickObject","pickObject Time",t).result;return e.length?e[0]:null}pickMultipleObjects(t){return t.depth=t.depth||10,this._pick("pickObject","pickMultipleObjects Time",t).result}pickObjects(t){return this._pick("pickObjects","pickObjects Time",t)}_addResources(t,e=!1){for(const i in t)this.layerManager.resourceManager.add({resourceId:i,data:t[i],forceUpdate:e})}_removeResources(t){for(const e of t)this.layerManager.resourceManager.remove(e)}_pick(t,e,i){const{stats:s}=this;s.get("Pick Count").incrementCount(),s.get(e).timeStart();const o=this.deckPicker[t](Ne({layers:this.layerManager.getLayers(i),views:this.viewManager.getViews(),viewports:this.getViewports(i),onViewportActive:this.layerManager.activateViewport},i));return s.get(e).timeEnd(),o}_createCanvas(t){let e=t.canvas;return"string"==typeof e&&(e=document.getElementById(e),wu(e)),e||(e=document.createElement("canvas"),e.id=t.id||"deckgl-overlay",(t.parent||document.body).appendChild(e)),Object.assign(e.style,t.style),e}_setCanvasSize(t){if(!this.canvas)return;let{width:e,height:i}=t;(e||0===e)&&(e=Number.isFinite(e)?"".concat(e,"px"):e,this.canvas.style.width=e),(i||0===i)&&(i=Number.isFinite(i)?"".concat(i,"px"):i,this.canvas.style.position="absolute",this.canvas.style.height=i)}_updateCanvasSize(){if(this._checkForCanvasSizeChange()){const{width:t,height:e}=this;this.viewManager.setProps({width:t,height:e}),this.props.onResize({width:this.width,height:this.height})}}_checkForCanvasSizeChange(){const{canvas:t}=this;if(!t)return!1;const e=t.clientWidth||t.width,i=t.clientHeight||t.height;return(e!==this.width||i!==this.height)&&(this.width=e,this.height=i,!0)}_createAnimationLoop(t){const{width:e,height:i,gl:s,glOptions:o,debug:r,onError:a,onBeforeRender:l,onAfterRender:c,useDevicePixels:d,autoResizeDrawingBuffer:u}=t;return new U$t({width:e,height:i,useDevicePixels:d,autoResizeDrawingBuffer:u,autoResizeViewport:!1,gl:s,onCreateContext:h=>sye(yn(Ne(Ne({},o),h),{canvas:this.canvas,debug:r,onContextLost:()=>this._onContextLost()})),onInitialize:h=>this._setGLContext(h.gl),onRender:this._onRenderFrame.bind(this),onBeforeRender:l,onAfterRender:c,onError:a})}_getViewState(){return this.props.viewState||this.viewState}_getViews(){let t=this.props.views||[new Y7t({id:"default-view"})];return t=Array.isArray(t)?t:[t],t.length&&this.props.controller&&(t[0].props.controller=this.props.controller),t}_onContextLost(){const{onError:t}=this.props;this.animationLoop&&t&&t(new Error("WebGL context is lost"))}_onPointerMove(t){const{_pickRequest:e}=this;if("pointerleave"===t.type)e.x=-1,e.y=-1,e.radius=0;else{if(t.leftButton||t.rightButton)return;{const i=t.offsetCenter;if(!i)return;e.x=i.x,e.y=i.y,e.radius=this.props.pickingRadius}}this.layerManager&&(this.layerManager.context.mousePosition={x:e.x,y:e.y}),e.event=t,e.mode="hover"}_pickAndCallback(){const{_pickRequest:t}=this;if(t.event){const{result:e,emptyInfo:i}=this._pick("pickObject","pickObject Time",t);this.interactiveState.isHovering=e.length>0;let s=i,o=!1;for(const r of e)s=r,o=r.layer.onHover(r,t.event);if(!o&&this.props.onHover&&this.props.onHover(s,t.event),this.props.getTooltip){const r=this.props.getTooltip(s);this.tooltip.setTooltip(r,s.x,s.y)}t.event=null}}_updateCursor(){const t=this.props.parent||this.canvas;t&&(t.style.cursor=this.props.getCursor(this.interactiveState))}_setGLContext(t){if(this.layerManager)return;this.canvas||(this.canvas=t.canvas,i9(t,{enable:!0,copyState:!0})),this.tooltip=new F$t(this.canvas),xy(t,{blend:!0,blendFunc:[770,771,1,771],polygonOffsetFill:!0,depthTest:!0,depthFunc:515}),this.props.onWebGLInitialized(t);const e=new I2e;e.play(),this.animationLoop.attachTimeline(e),this.eventManager=new DUt(this.props.parent||t.canvas,{touchAction:this.props.touchAction,recognizerOptions:this.props.eventRecognizerOptions,events:{pointerdown:this._onPointerDown,pointermove:this._onPointerMove,pointerleave:this._onPointerMove}});for(const s in Gme)this.eventManager.on(s,this._onEvent);this.viewManager=new L7t({timeline:e,eventManager:this.eventManager,onViewStateChange:this._onViewStateChange.bind(this),onInteractionStateChange:this._onInteractionStateChange.bind(this),views:this._getViews(),viewState:this._getViewState(),width:this.width,height:this.height});const i=this.viewManager.getViewports()[0];this.layerManager=new P7t(t,{deck:this,stats:this.stats,viewport:i,timeline:e}),this.effectManager=new C$t,this.deckRenderer=new S$t(t),this.deckPicker=new I$t(t),this.setProps(this.props),this._updateCanvasSize(),this.props.onLoad()}_drawLayers(t,e){const{gl:i}=this.layerManager.context;xy(i,this.props.parameters),this.props.onBeforeRender({gl:i}),this.deckRenderer.renderLayers(Ne({target:this.props._framebuffer,layers:this.layerManager.getLayers(),viewports:this.viewManager.getViewports(),onViewportActive:this.layerManager.activateViewport,views:this.viewManager.getViews(),pass:"screen",redrawReason:t,effects:this.effectManager.getEffects()},e)),this.props.onAfterRender({gl:i})}_onRenderFrame(t){this._getFrameStats(),this._metricsCounter++%60==0&&(this._getMetrics(),this.stats.reset(),$n.table(4,this.metrics)(),this.props._onMetrics&&this.props._onMetrics(this.metrics)),this._updateCanvasSize(),this._updateCursor(),this.tooltip.isVisible&&this.viewManager.needsRedraw()&&this.tooltip.setTooltip(null),this.layerManager.updateLayers(),this._pickAndCallback(),this.redraw(!1),this.viewManager&&this.viewManager.updateViewStates()}_onViewStateChange(t){const e=this.props.onViewStateChange(t)||t.viewState;this.viewState&&(this.viewState=yn(Ne({},this.viewState),{[t.viewId]:e}),this.props.viewState||this.viewManager&&this.viewManager.setProps({viewState:this.viewState}))}_onInteractionStateChange(t){this.interactiveState.isDragging=t.isDragging,this.props.onInteractionStateChange(t)}_onEvent(t){const e=Gme[t.type],i=t.offsetCenter;if(!e||!i)return;const s=this.layerManager.getLayers(),o=this.deckPicker.getLastPickedObject({x:i.x,y:i.y,layers:s,viewports:this.getViewports(i)},this._lastPointerDownInfo),{layer:r}=o,a=r&&(r[e.handler]||r.props[e.handler]),l=this.props[e.handler];let c=!1;a&&(c=a.call(r,o,t)),!c&&l&&l(o,t)}_onPointerDown(t){const e=t.offsetCenter;this._lastPointerDownInfo=this.pickObject({x:e.x,y:e.y,radius:this.props.pickingRadius})}_getFrameStats(){const{stats:t}=this;t.get("frameRate").timeEnd(),t.get("frameRate").timeStart();const e=this.animationLoop.stats;t.get("GPU Time").addTime(e.get("GPU Time").lastTiming),t.get("CPU Time").addTime(e.get("CPU Time").lastTiming)}_getMetrics(){const{metrics:t,stats:e}=this;t.fps=e.get("frameRate").getHz(),t.setPropsTime=e.get("setProps Time").time,t.updateAttributesTime=e.get("Update Attributes").time,t.framesRedrawn=e.get("Redraw Count").count,t.pickTime=e.get("pickObject Time").time+e.get("pickMultipleObjects Time").time+e.get("pickObjects Time").time,t.pickCount=e.get("Pick Count").count,t.gpuTime=e.get("GPU Time").time,t.cpuTime=e.get("CPU Time").time,t.gpuTimePerFrame=e.get("GPU Time").getAverageTime(),t.cpuTimePerFrame=e.get("CPU Time").getAverageTime();const i=NC.get("Memory Usage");t.bufferMemory=i.get("Buffer Memory").count,t.textureMemory=i.get("Texture Memory").count,t.renderbufferMemory=i.get("Renderbuffer Memory").count,t.gpuMemory=i.get("GPU Memory").count}}s8.getPropTypes=function(n){return{id:n.string,width:n.oneOfType([n.number,n.string]),height:n.oneOfType([n.number,n.string]),layers:n.oneOfType([n.object,n.array]),layerFilter:n.func,views:n.oneOfType([n.object,n.array]),viewState:n.object,effects:n.arrayOf(n.instanceOf(L2e)),controller:n.oneOfType([n.func,n.bool,n.object]),gl:n.object,glOptions:n.object,parameters:n.object,pickingRadius:n.number,useDevicePixels:n.oneOfType([n.bool,n.number]),touchAction:n.string,eventRecognizerOptions:n.object,onWebGLInitialized:n.func,onResize:n.func,onViewStateChange:n.func,onInteractionStateChange:n.func,onBeforeRender:n.func,onAfterRender:n.func,onLoad:n.func,onError:n.func,debug:n.bool,drawPickingColors:n.bool,_framebuffer:n.object,_animate:n.bool,_pickable:n.bool,_typedArrayManagerProps:n.object}},s8.defaultProps=aFe,s8.VERSION=P$t.VERSION;const See=85.05113;function AUt(n,t){const e=document.createElement("div");return e.style.position="absolute",Object.assign(e.style,t),n.getPanes().overlayLayer.appendChild(e),e}function lFe(n){const{_eventListeners:t}=n.props.userData;for(const e in t)t[e].remove();n.finalize()}function OUt(n,t){if(n.pixel)return n.pixel;const e=t.getViewports()[0].project([n.latLng.lng(),n.latLng.lat()]);return{x:e[0],y:e[1]}}function RUt(n,t,e){const i={type:t,offsetCenter:OUt(e,n),srcEvent:e};switch(t){case"click":n._lastPointerDownInfo=n.pickObject(i.offsetCenter),i.tapCount=1,n._onEvent(i);break;case"dblclick":i.type="click",i.tapCount=2,n._onEvent(i);break;case"mousemove":i.type="pointermove",n._onPointerMove(i);break;case"mouseout":i.type="pointerleave",n._onPointerMove(i);break;default:return}}const cFe=()=>!1;class Tee{constructor(t){this.props={},this._map=null;const e=new google.maps.OverlayView;e.onAdd=this._onAdd.bind(this),e.onRemove=this._onRemove.bind(this),e.draw=this._draw.bind(this),this._overlay=e,this.setProps(t)}setMap(t){t!==this._map&&(this._map&&(this._overlay.setMap(null),this._map=null),t&&(this._map=t,this._overlay.setMap(t)))}setProps(t){Object.assign(this.props,t),this._deck&&(t.style&&(Object.assign(this._deck.canvas.parentElement.style,t.style),t.style=null),this._deck.setProps(t))}pickObject(t){return this._deck&&this._deck.pickObject(t)}pickMultipleObjects(t){return this._deck&&this._deck.pickMultipleObjects(t)}pickObjects(t){return this._deck&&this._deck.pickObjects(t)}finalize(){this.setMap(null),this._deck&&(lFe(this._deck),this._deck=null)}_onAdd(){this._deck=function(n,t,e,i){if(e){if(e.props.userData._googleMap===n)return e;lFe(e)}const s={click:null,dblclick:null,mousemove:null,mouseout:null};e=new s8(yn(Ne({},i),{style:null,parent:AUt(t,i.style),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1,userData:{_googleMap:n,_eventListeners:s}}));for(const o in s)s[o]=n.addListener(o,r=>RUt(e,o,r));return e}(this._map,this._overlay,this._deck,this.props)}_onRemove(){this._deck.setProps({layerFilter:cFe})}_draw(){const t=this._deck,{width:e,height:i,left:s,top:o,zoom:r,pitch:a,latitude:l,longitude:c}=function(n,t){const e=n.getDiv().firstChild,i=e.offsetWidth,s=e.offsetHeight,o=t.getProjection(),r=n.getBounds(),a=r.getNorthEast(),l=r.getSouthWest(),c=o.fromLatLngToDivPixel(a),d=o.fromLatLngToDivPixel(l),u=new google.maps.Point(0,0),h=o.fromContainerPixelToLatLng(u),f=o.fromLatLngToDivPixel(h);let m=f.x,C=f.y;const k=o.getWorldWidth(),D=Math.ceil(i/k);m-=Math.floor(D/2)*k;const O=Math.log2((s?(d.y-c.y)/s:1)||1)+n.getZoom()-1;let z=new google.maps.Point(i/2,s/2);const q=o.fromContainerPixelToLatLng(z);let re=q.lat();const ie=q.lng();if(Math.abs(re)>See){re=re>0?See:-See;const Se=new google.maps.LatLng(re,ie);z=o.fromLatLngToContainerPixel(Se),C+=z.y-s/2}return{width:i,height:s,left:m,top:C,zoom:O,pitch:n.getTilt(),latitude:re,longitude:ie}}(this._map,this._overlay),d=0===a,u=t.canvas.parentElement.style;u.left="".concat(s,"px"),u.top="".concat(o,"px"),t.setProps({width:e,height:i,viewState:{latitude:l,longitude:c,zoom:r,repeat:!0},layerFilter:d?this.props.layerFilter:cFe}),t.redraw()}}var ds,Kn;!function(n){n.SetBusyState=(()=>{class d{constructor(h){this.payload=h}}return d.type="[HeatClimateChange] Set Busy State",d})(),n.SetDefaultState=(()=>{class d{constructor(){}}return d.type="[HeatClimateChange] Set Default State",d})(),n.SetFilter=(()=>{class d{constructor(h){this.payload=h}}return d.type="[HeatClimateChange] Set Filter",d})(),n.SetResult=(()=>{class d{constructor(h){this.payload=h}}return d.type="[HeatClimateChange] Set Result",d})(),n.SetTimeSlidingResult=(()=>{class d{constructor(h){this.payload=h}}return d.type="[HeatClimateChange] Set Timesliding Result",d})(),n.SetRankingList=(()=>{class d{constructor(h){this.payload=h}}return d.type="[HeatClimateChange] Set Ranking List",d})(),n.SetIndicator=(()=>{class d{constructor(h){this.payload=h}}return d.type="[HeatClimateChange] Set Indicator",d})(),n.SetSelectedSA3Code=(()=>{class d{constructor(h){this.payload=h}}return d.type="[HeatClimateChange] Set SA3Code",d})(),n.DisplayClimateForecastFilterLayer=(()=>{class d{constructor(){}}return d.type="[HeatRisk] Display Climate Forecast Filter Layer",d})()}(ds||(ds={})),function(n){n.SetDefaultState=(()=>{class E{constructor(){}}return E.type="[airimpact] Set Default State",E})(),n.SetFilter=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set Filter",E})(),n.SetBusyState=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set Busy State",E})(),n.SetSa4FilterResult=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SA4 Filter Result",E})(),n.SetSa4AnalysisIndicator=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SA4 Analysis Indicator",E})(),n.SetSa3FilterResult=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SA3 Filter Result",E})(),n.SetSa3AnalysisIndicator=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SA3 Analysis Indicator",E})(),n.SetSa4HealthOutcomeIndicator=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SA4 Health outcome Indicator",E})(),n.SetIndicatorUpdateData=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set Indicator Update Data",E})(),n.SetSA3IndicatorUpdateData=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SA3 Indicator Update Data",E})(),n.SetFilterUpdateData=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set Filter Update Data",E})(),n.SetSA3FilterUpdateData=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SA3 Filter Update Data",E})(),n.SetSelectedSA4Code16=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SelectedSA4Code16",E})(),n.SetSelectedSA3Code16=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set SelectedSA3Code16",E})(),n.SetRankingList=(()=>{class E{constructor(z){this.payload=z}}return E.type="[airimpact] Set RankingList",E})(),n.DisplaySA4FilterLayer=(()=>{class E{constructor(){}}return E.type="[airimpact] Display SA4 Filter Layer",E})(),n.DisplaySA3FilterLayer=(()=>{class E{constructor(){}}return E.type="[airimpact] Display SA3 Filter Layer",E})()}(Kn||(Kn={}));let PUt=(()=>{class n{constructor(e){this.httpWrapper=e}getCartoAccess(){return this.httpWrapper.get("/api/carto")}}return n.\u0275fac=function(e){return new(e||n)(V(qA))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LUt=(()=>{class n{constructor(){}forSA3FilterLayer(e){return{html:`\n ${e.properties.name}\n `,className:"deck-tooltip"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jw=(()=>{class n{constructor(e,i){this.store=e,this.heatapiservice=i}doVerify(){console.log("Climate change assessment service is loaded")}getAvailableForecastYears(){var e=this;return Xe(function*(){let s=[];switch(e.store.selectSnapshot(o=>o.heatclimatechange.filter.filterLevelType)){case go.SA3:s=yield e.heatapiservice.getAvailableSA3ForecastYears().toPromise();break;case go.State:default:s=yield e.heatapiservice.getAvailableStateForecastYears().toPromise()}return s})()}getSelectedSA3Monthly(){var e=this;return Xe(function*(){let i=[];if(e.store.selectSnapshot(o=>o.heatclimatechange.filter.filterLevelType)===go.SA3){let o=e.store.selectSnapshot(a=>a.heatclimatechange.selectedSA3Code),r=e.store.selectSnapshot(a=>a.heatclimatechange.filter.filterStateCode);o&&r&&(i=yield e.heatapiservice.filterSa3MonthlyForecastClimate(r,o).toPromise())}return i})()}zoomToSelectState(e){var i=this;return Xe(function*(){console.log("Map ready zoom to state",e);let s=yield i.heatapiservice.getStateBbox(e).toPromise();if(!s)return;let o=cA(s.bbox);yield i.store.dispatch(new hn.UpdateMapBBox(o)).toPromise()})()}manageSelectedSA3Code(e){var i=this;return Xe(function*(){if(e)yield i.store.dispatch(new hn.HighlightSA3Region(e)).toPromise();else{yield i.store.dispatch(new hn.HideHightLightOverlay).toPromise();let s=i.store.selectSnapshot(a=>a.heatclimatechange.filter.filterStateCode),o=yield i.heatapiservice.getStateBbox(s).toPromise();if(!o)return;let r=cA(o.bbox);yield i.store.dispatch(new hn.UpdateMapBBox(r)).toPromise()}})()}preloadYearlySA3data(e){var i=this;return Xe(function*(){let s=yield i.heatapiservice.getAllSA3ForecastClimateYearly(e).toPromise();s.forEach(o=>o.timestamp=new Date(o.year,0,1)),yield i.store.dispatch(new ds.SetResult({resultType:go.SA3,stateResult:[],sa3Result:s})).toPromise()})()}preloadYearlyStatedata(){var e=this;return Xe(function*(){let i=yield e.getStateClimateForecastlist();yield e.store.dispatch(new ds.SetResult({resultType:go.State,stateResult:i,sa3Result:[]})).toPromise()})()}getStateClimateForecastlist(){var e=this;return Xe(function*(){let i=yield e.heatapiservice.getAllStateForecastClimateByYear().toPromise();return console.log("Pre load yearly state data for climate change analysis",i),i.forEach(s=>s.timestamp=new Date(s.year,0,1)),console.log("Pre load yearly state data for climate change analysis after updating timestamp",i),i})()}loadYearlyTimeslidingSA3Data(e,i){var s=this;return Xe(function*(){yield s.store.dispatch(new ds.SetFilter({filterLevelType:go.SA3,filterType:Xa.Yearly,filterYear:i,filterMonth:-1})).toPromise();let o=s.store.selectSnapshot(l=>l.heatclimatechange.indicator),r=yield s.heatapiservice.filterSA3ForecastClimateByYear(e,i).toPromise(),a=yield s.calculateRanking(o);r=s.updateRankingClass(a,r,o),yield s.store.dispatch(new ds.SetTimeSlidingResult({resultType:go.State,stateResult:[],sa3Result:r})).toPromise(),yield s.store.dispatch(new ds.SetRankingList(a)).toPromise(),yield s.store.dispatch(new ds.DisplayClimateForecastFilterLayer).toPromise()})()}loadYearlyTimeslidingData(e){var i=this;return Xe(function*(){let s=i.store.selectSnapshot(c=>c.heatclimatechange.filter),o=Object.assign({},s);o.filterYear=e,o.filterType=Xa.Yearly,o.filterMonth=-1,yield i.store.dispatch(new ds.SetFilter(o)).toPromise();let r=i.store.selectSnapshot(c=>c.heatclimatechange.indicator),a=null;switch(o.filterLevelType){case go.SA3:let c=o.filterStateCode;a=yield i.heatapiservice.filterSA3ForecastClimateByYear(c,e).toPromise();break;default:case go.State:a=yield i.heatapiservice.filterStateForecastClimateByYear(e).toPromise()}let l=yield i.calculateRanking(r);switch(a=i.updateRankingClass(l,a,r),o.filterLevelType){case go.SA3:yield i.store.dispatch(new ds.SetTimeSlidingResult({resultType:o.filterLevelType,stateResult:[],sa3Result:a})).toPromise();break;default:case go.State:yield i.store.dispatch(new ds.SetTimeSlidingResult({resultType:o.filterLevelType,stateResult:a,sa3Result:[]})).toPromise()}yield i.store.dispatch(new ds.SetRankingList(l)).toPromise(),yield i.store.dispatch(new ds.DisplayClimateForecastFilterLayer).toPromise()})()}manageIndicatorChange(e){var i=this;return Xe(function*(){yield i.store.dispatch(new ds.SetIndicator(e)).toPromise();let s=i.store.selectSnapshot(a=>a.heatclimatechange.filter),o=null;switch(s.filterLevelType){case go.SA3:let a=s.filterStateCode;o=yield i.heatapiservice.filterSA3ForecastClimateByYear(a,s.filterYear).toPromise();break;default:case go.State:o=yield i.heatapiservice.filterStateForecastClimateByYear(s.filterYear).toPromise()}let r=yield i.calculateRanking(e);switch(o=i.updateRankingClass(r,o,e),s.filterLevelType){case go.SA3:yield i.store.dispatch(new ds.SetTimeSlidingResult({resultType:s.filterLevelType,stateResult:[],sa3Result:o})).toPromise();break;default:case go.State:yield i.store.dispatch(new ds.SetTimeSlidingResult({resultType:s.filterLevelType,stateResult:o,sa3Result:[]})).toPromise()}yield i.store.dispatch(new ds.SetRankingList(r)).toPromise(),yield i.store.dispatch(new ds.DisplayClimateForecastFilterLayer).toPromise()})()}calculateRanking(e){var i=this;return Xe(function*(){let s=i.store.selectSnapshot(u=>u.heatclimatechange.filter.filterLevelType),o=0,r=100;if(!i.IsPercentageIndicator(e)){let u=i.store.selectSnapshot(m=>m.heatclimatechange.filter.filterType),h="ste";s===go.SA3&&(h="sa3");let f=yield i.heatapiservice.getMinMax("climatechange",h,u,e).toPromise();f.length>0&&(o=f[0].min,r=f[0].max)}r=Math.ceil(r),o=Math.floor(o);let a=Math.ceil((r-o)/5),l=r,c=[{colorCode:"#a50f15",min:null,max:null,className:"hrank1"},{colorCode:"#de2d26",min:null,max:null,className:"hrank2"},{colorCode:"#fb6a4a",min:null,max:null,className:"hrank3"},{colorCode:"#fcae91",min:null,max:null,className:"hrank4"},{colorCode:"#fee5d9",min:null,max:null,className:"hrank5"}];for(var d=0;d<5;d++){let u=l-a;u<0&&(u=0),c[d].max=l,c[d].min=u,l=u}return c})()}updateRankingClass(e,i,s){return i.map(r=>{let a=Object.assign({},r),l=a[s],c=e[4].className;if(l){let d=e.filter(u=>u.min<=l&&l<=u.max);d.length>0&&(c=d[0].className)}return a.cssclass=c,a})}performSa3LevelForAState(e){var i=this;return Xe(function*(){yield i.store.dispatch(new ds.SetFilter({filterLevelType:go.SA3,filterStateCode:e,filterType:Xa.Yearly,filterYear:2e3,filterMonth:-1})).toPromise(),yield i.store.dispatch(new hn.SetActiveModule(da.ClimateChange)).toPromise()})()}IsPercentageIndicator(e){switch(e){case"avgfctemp":return!0;default:return!1}}}return n.\u0275fac=function(e){return new(e||n)(V(zi),V(vB))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var dd=function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},Ec=[1,52],l_=[1,59],ym=[1,65],pO=[1,79],fO=[1,84],ud=[14,18],Lb=[1,90],c_=[1,96],o8=[1,110],r8={trace:function(){},yy:{},symbols_:{error:2,expressions:3,point:4,EOF:5,linestring:6,polygon:7,multipoint:8,multilinestring:9,multipolygon:10,coordinate:11,DOUBLE_TOK:12,ptarray:13,COMMA:14,ring_list:15,ring:16,"(":17,")":18,POINT:19,Z:20,ZM:21,M:22,EMPTY:23,point_untagged:24,polygon_list:25,polygon_untagged:26,point_list:27,LINESTRING:28,POLYGON:29,MULTIPOINT:30,MULTILINESTRING:31,MULTIPOLYGON:32,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"DOUBLE_TOK",14:"COMMA",17:"(",18:")",19:"POINT",20:"Z",21:"ZM",22:"M",23:"EMPTY",28:"LINESTRING",29:"POLYGON",30:"MULTIPOINT",31:"MULTILINESTRING",32:"MULTIPOLYGON"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[11,2],[11,3],[11,4],[13,3],[13,1],[15,3],[15,1],[16,3],[4,4],[4,5],[4,5],[4,5],[4,2],[24,1],[24,3],[25,3],[25,1],[26,3],[27,3],[27,1],[6,4],[6,5],[6,5],[6,5],[6,2],[7,4],[7,5],[7,5],[7,5],[7,2],[8,4],[8,5],[8,5],[8,5],[8,2],[9,4],[9,5],[9,5],[9,5],[9,2],[10,4],[10,5],[10,5],[10,5],[10,2]],performAction:function(t,e,i,s,o,r,a){var l=r.length-1;switch(o){case 1:case 2:case 3:case 4:case 5:case 6:return r[l-1];case 7:this.$=new gO([Number(r[l-1]),Number(r[l])]);break;case 8:this.$=new gO([Number(r[l-2]),Number(r[l-1]),Number(r[l])]);break;case 9:this.$=new gO([Number(r[l-3]),Number(r[l-2]),Number(r[l-1]),Number(r[l])]);break;case 10:case 25:this.$=r[l-2].addPoint(r[l]);break;case 11:case 20:case 26:this.$=r[l];break;case 12:this.$=r[l-2].addRing(r[l]);break;case 13:this.$=new kee(r[l]);break;case 14:this.$=new uFe(r[l-1]);break;case 15:this.$={type:"Point",coordinates:r[l-1].data[0]};break;case 16:this.$={type:"Point",coordinates:r[l-1].data[0],properties:{z:!0}};break;case 17:this.$={type:"Point",coordinates:r[l-1].data[0],properties:{z:!0,m:!0}};break;case 18:this.$={type:"Point",coordinates:r[l-1].data[0],properties:{m:!0}};break;case 19:this.$={type:"Point",coordinates:[]};break;case 21:case 24:this.$=r[l-1];break;case 22:this.$=r[l-2].addPolygon(r[l]);break;case 23:this.$=new Dee(r[l]);break;case 27:this.$={type:"LineString",coordinates:r[l-1].data};break;case 28:this.$={type:"LineString",coordinates:r[l-1].data,properties:{z:!0}};break;case 29:this.$={type:"LineString",coordinates:r[l-1].data,properties:{m:!0}};break;case 30:this.$={type:"LineString",coordinates:r[l-1].data,properties:{z:!0,m:!0}};break;case 31:this.$={type:"LineString",coordinates:[]};break;case 32:this.$={type:"Polygon",coordinates:r[l-1].toJSON()};break;case 33:this.$={type:"Polygon",coordinates:r[l-1].toJSON(),properties:{z:!0}};break;case 34:this.$={type:"Polygon",coordinates:r[l-1].toJSON(),properties:{m:!0}};break;case 35:this.$={type:"Polygon",coordinates:r[l-1].toJSON(),properties:{z:!0,m:!0}};break;case 36:this.$={type:"Polygon",coordinates:[]};break;case 37:this.$={type:"MultiPoint",coordinates:r[l-1].data};break;case 38:this.$={type:"MultiPoint",coordinates:r[l-1].data,properties:{z:!0}};break;case 39:this.$={type:"MultiPoint",coordinates:r[l-1].data,properties:{m:!0}};break;case 40:this.$={type:"MultiPoint",coordinates:r[l-1].data,properties:{z:!0,m:!0}};break;case 41:this.$={type:"MultiPoint",coordinates:[]};break;case 42:this.$={type:"MultiLineString",coordinates:r[l-1].toJSON()};break;case 43:this.$={type:"MultiLineString",coordinates:r[l-1].toJSON(),properties:{z:!0}};break;case 44:this.$={type:"MultiLineString",coordinates:r[l-1].toJSON(),properties:{m:!0}};break;case 45:this.$={type:"MultiLineString",coordinates:r[l-1].toJSON(),properties:{z:!0,m:!0}};break;case 46:this.$={type:"MultiLineString",coordinates:[]};break;case 47:this.$={type:"MultiPolygon",coordinates:r[l-1].toJSON()};break;case 48:this.$={type:"MultiPolygon",coordinates:r[l-1].toJSON(),properties:{z:!0}};break;case 49:this.$={type:"MultiPolygon",coordinates:r[l-1].toJSON(),properties:{m:!0}};break;case 50:this.$={type:"MultiPolygon",coordinates:r[l-1].toJSON(),properties:{z:!0,m:!0}};break;case 51:this.$={type:"MultiPolygon",coordinates:[]}}},table:[{3:1,4:2,6:3,7:4,8:5,9:6,10:7,19:[1,8],28:[1,9],29:[1,10],30:[1,11],31:[1,12],32:[1,13]},{1:[3]},{5:[1,14]},{5:[1,15]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{17:[1,20],20:[1,21],21:[1,22],22:[1,23],23:[1,24]},{17:[1,25],20:[1,26],21:[1,28],22:[1,27],23:[1,29]},{17:[1,30],20:[1,31],21:[1,33],22:[1,32],23:[1,34]},{17:[1,35],20:[1,36],21:[1,38],22:[1,37],23:[1,39]},{17:[1,40],20:[1,41],21:[1,43],22:[1,42],23:[1,44]},{17:[1,45],20:[1,46],21:[1,48],22:[1,47],23:[1,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{11:51,12:Ec,13:50},{17:[1,53]},{17:[1,54]},{17:[1,55]},{5:[2,19]},{11:58,12:Ec,17:l_,24:57,27:56},{17:[1,60]},{17:[1,61]},{17:[1,62]},{5:[2,31]},{15:63,16:64,17:ym},{17:[1,66]},{17:[1,67]},{17:[1,68]},{5:[2,36]},{11:58,12:Ec,17:l_,24:57,27:69},{17:[1,70]},{17:[1,71]},{17:[1,72]},{5:[2,41]},{15:73,16:64,17:ym},{17:[1,74]},{17:[1,75]},{17:[1,76]},{5:[2,46]},{17:pO,25:77,26:78},{17:[1,80]},{17:[1,81]},{17:[1,82]},{5:[2,51]},{14:fO,18:[1,83]},dd(ud,[2,11]),{12:[1,85]},{11:51,12:Ec,13:86},{11:51,12:Ec,13:87},{11:51,12:Ec,13:88},{14:Lb,18:[1,89]},dd(ud,[2,26]),dd(ud,[2,20]),{11:91,12:Ec},{11:58,12:Ec,17:l_,24:57,27:92},{11:58,12:Ec,17:l_,24:57,27:93},{11:58,12:Ec,17:l_,24:57,27:94},{14:c_,18:[1,95]},dd(ud,[2,13]),{11:51,12:Ec,13:97},{15:98,16:64,17:ym},{15:99,16:64,17:ym},{15:100,16:64,17:ym},{14:Lb,18:[1,101]},{11:58,12:Ec,17:l_,24:57,27:102},{11:58,12:Ec,17:l_,24:57,27:103},{11:58,12:Ec,17:l_,24:57,27:104},{14:c_,18:[1,105]},{15:106,16:64,17:ym},{15:107,16:64,17:ym},{15:108,16:64,17:ym},{14:o8,18:[1,109]},dd(ud,[2,23]),{15:111,16:64,17:ym},{17:pO,25:112,26:78},{17:pO,25:113,26:78},{17:pO,25:114,26:78},{5:[2,15]},{11:115,12:Ec},dd(ud,[2,7],{12:[1,116]}),{14:fO,18:[1,117]},{14:fO,18:[1,118]},{14:fO,18:[1,119]},{5:[2,27]},{11:58,12:Ec,17:l_,24:120},{18:[1,121]},{14:Lb,18:[1,122]},{14:Lb,18:[1,123]},{14:Lb,18:[1,124]},{5:[2,32]},{16:125,17:ym},{14:fO,18:[1,126]},{14:c_,18:[1,127]},{14:c_,18:[1,128]},{14:c_,18:[1,129]},{5:[2,37]},{14:Lb,18:[1,130]},{14:Lb,18:[1,131]},{14:Lb,18:[1,132]},{5:[2,42]},{14:c_,18:[1,133]},{14:c_,18:[1,134]},{14:c_,18:[1,135]},{5:[2,47]},{17:pO,26:136},{14:c_,18:[1,137]},{14:o8,18:[1,138]},{14:o8,18:[1,139]},{14:o8,18:[1,140]},dd(ud,[2,10]),dd(ud,[2,8],{12:[1,141]}),{5:[2,16]},{5:[2,17]},{5:[2,18]},dd(ud,[2,25]),dd(ud,[2,21]),{5:[2,28]},{5:[2,29]},{5:[2,30]},dd(ud,[2,12]),dd(ud,[2,14]),{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,43]},{5:[2,44]},{5:[2,45]},dd(ud,[2,22]),dd(ud,[2,24]),{5:[2,48]},{5:[2,49]},{5:[2,50]},dd(ud,[2,9])],defaultActions:{14:[2,1],15:[2,2],16:[2,3],17:[2,4],18:[2,5],19:[2,6],24:[2,19],29:[2,31],34:[2,36],39:[2,41],44:[2,46],49:[2,51],83:[2,15],89:[2,27],95:[2,32],101:[2,37],105:[2,42],109:[2,47],117:[2,16],118:[2,17],119:[2,18],122:[2,28],123:[2,29],124:[2,30],127:[2,33],128:[2,34],129:[2,35],130:[2,38],131:[2,39],132:[2,40],133:[2,43],134:[2,44],135:[2,45],138:[2,48],139:[2,49],140:[2,50]},parseError:function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},parse:function(t){var e=this,i=[0],s=[null],o=[],r=this.table,a="",l=0,c=0,d=2,u=1,h=o.slice.call(arguments,1),f=Object.create(this.lexer),m={yy:{}};for(var C in this.yy)Object.prototype.hasOwnProperty.call(this.yy,C)&&(m.yy[C]=this.yy[C]);f.setInput(t,m.yy),m.yy.lexer=f,m.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var k=f.yylloc;o.push(k);var D=f.options&&f.options.ranges;this.parseError="function"==typeof m.yy.parseError?m.yy.parseError:Object.getPrototypeOf(this).parseError;for(var O,z,q,re,ie,Te,Ee,Ke,E=function(){var Ze;return"number"!=typeof(Ze=f.lex()||u)&&(Ze=e.symbols_[Ze]||Ze),Ze},Se={};;){if(this.defaultActions[q=i[i.length-1]]?re=this.defaultActions[q]:(null==O&&(O=E()),re=r[q]&&r[q][O]),void 0===re||!re.length||!re[0]){var Re="";for(Te in Ke=[],r[q])this.terminals_[Te]&&Te>d&&Ke.push("'"+this.terminals_[Te]+"'");Re=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+Ke.join(", ")+", got '"+(this.terminals_[O]||O)+"'":"Parse error on line "+(l+1)+": Unexpected "+(O==u?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Re,{text:f.match,token:this.terminals_[O]||O,line:f.yylineno,loc:k,expected:Ke})}if(re[0]instanceof Array&&re.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+O);switch(re[0]){case 1:i.push(O),s.push(f.yytext),o.push(f.yylloc),i.push(re[1]),O=null,z?(O=z,z=null):(c=f.yyleng,a=f.yytext,l=f.yylineno,k=f.yylloc);break;case 2:if(Se.$=s[s.length-(Ee=this.productions_[re[1]][1])],Se._$={first_line:o[o.length-(Ee||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Ee||1)].first_column,last_column:o[o.length-1].last_column},D&&(Se._$.range=[o[o.length-(Ee||1)].range[0],o[o.length-1].range[1]]),void 0!==(ie=this.performAction.apply(Se,[a,c,l,m.yy,re[1],s,o].concat(h))))return ie;Ee&&(i=i.slice(0,-1*Ee*2),s=s.slice(0,-1*Ee),o=o.slice(0,-1*Ee)),i.push(this.productions_[re[1]][0]),s.push(Se.$),o.push(Se._$),i.push(r[i[i.length-2]][i[i.length-1]]);break;case 3:return!0}}return!0}};function dFe(){this.yy={}}function gO(n){this.data=[n],this.type="PointArray"}function uFe(n){this.data=n,this.type="Ring"}function kee(n){this.data=[n],this.type="RingList"}function Dee(n){this.data=[n],this.type="PolygonList"}r8.lexer={EOF:1,parseError:function(e,i){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,i)},setInput:function(e,i){return this.yy=i||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var i=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===o.length?this.yylloc.first_column:0)+o[o.length-s.length].length-s[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),i=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+i+"^"},test_match:function(e,i){var s,o,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(o=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,i,s,o;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;ai[0].length)){if(i=s,o=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,r[a])))return e;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(e=this.test_match(i,r[o]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,i,s,o){switch(s){case 0:break;case 1:return 17;case 2:return 18;case 3:return 12;case 4:return 19;case 5:return 28;case 6:return 29;case 7:return 30;case 8:return 31;case 9:return 32;case 10:return 14;case 11:return 23;case 12:return 22;case 13:return 20;case 14:return 21;case 15:return 5;case 16:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?([eE][\-\+]?[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:ZM\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],inclusive:!0}}},dFe.prototype=r8,r8.Parser=dFe,gO.prototype.addPoint=function(n){return"PointArray"===n.type?this.data=this.data.concat(n.data):this.data.push(n),this},gO.prototype.toJSON=function(){return this.data},uFe.prototype.toJSON=function(){for(var n=[],t=0;t{class n extends class{zoomToExtents(){const t=new google.maps.LatLngBounds;this.mapLayer.forEach(e=>{this.processPoints(e.getGeometry(),t.extend,t)}),this.map.fitBounds(t)}processPoints(t,e,i){t instanceof google.maps.LatLng?e.call(i,t):t instanceof google.maps.Data.Point?e.call(i,t.get()):t.getArray().forEach(function(s){this.processPoints(s,e,i)})}}{constructor(e,i){super(),this.actions$=e,this.store=i,this.clickedFeature$=new Z,this.mouseOverFeature$=new Z,this.mouseOutFeature$=new Z,this.destroyed$=new Z,this.actions$.pipe(dv(hn.MapReady),lt(s=>{console.log("map ready ",s.payload.map),this.setupLayer(s.payload.map)}),et(this.destroyed$)).subscribe()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}addFeature(e){this.mapLayer.add(e)}removeFeature(e){const i=this.mapLayer.getFeatureById(e);console.log("Removal finished"),this.mapLayer.remove(i)}getFeatureById(e){return this.mapLayer.getFeatureById(e)}updateFeature(e,i){const s=this.mapLayer.getFeatureById(e);this.mapLayer.remove(s),this.mapLayer.add(i)}openFeatureInfoWindow(e){let i="";e.forEachProperty(function(o,r){"geometry"!=r.toLowerCase()&&(i+="

"+r+" : "+o+"

")}),this.featureInfowindow.setContent("
"+i+"
");let s=e.getGeometry();this.featureInfowindow.setPosition(function(n){const t=new google.maps.LatLngBounds;return n.forEachLatLng(e=>t.extend(e)),t.getCenter()}(s)),this.featureInfowindow.setOptions({pixelOffset:new google.maps.Size(0,-30)}),this.featureInfowindow.open(this.map)}closeFeatureInfoWindow(){this.featureInfowindow.close()}setupLayer(e){this.map=e,this.mapLayer=new google.maps.Data({map:this.map}),this.featureInfowindow=new google.maps.InfoWindow,this.mapLayer.addListener("mouseover",i=>{let s=i.feature;this.openFeatureInfoWindow(s),this.mouseOverFeature$.next(s)}),this.mapLayer.addListener("mouseout",i=>{let s=i.feature;this.closeFeatureInfoWindow(),this.mouseOutFeature$.next(s)}),this.mapLayer.addListener("click",i=>{let s=i.feature;this.closeFeatureInfoWindow(),this.clickedFeature$.next(s)})}cleanTheLayer(){var e=this;return Xe(function*(){let i=e.store.selectSnapshot(o=>o.map.geojsonFeatures);try{if(i&&i.length>0)for(var s=0;s=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function yO(n,t){return function(e,i){t(e,i,n)}}function me(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function Nb(n,t,e,i){return new(e||(e=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):function(o){return o instanceof e?o:new e(function(r){r(o)})}(d.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}function fFe(n,t,e){return e?fFe(n,t).pipe(xe(i=>Ht(i)?e(...i):e(i))):new an(i=>{const s=(...r)=>i.next(1===r.length?r[0]:r);let o;try{o=n(s)}catch(r){return void i.error(r)}if(Pe(t))return()=>t(s,o)})}class gFe extends Z{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(t){return this.hasError?(t.error(this.thrownError),Je.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),Je.EMPTY):super._subscribe(t)}next(t){this.hasCompleted||(this.value=t,this.hasNext=!0)}error(t){this.hasCompleted||super.error(t)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}function mFe(n,t,e){if(t){if(!qe(t))return(...i)=>mFe(n,e)(...i).pipe(xe(s=>Ht(s)?t(...s):t(s)));e=t}return function(...i){const s=this;let o;const r={context:s,subject:o,callbackFunc:n,scheduler:e};return new an(a=>{if(e)return e.schedule(XUt,0,{args:i,subscriber:a,params:r});if(!o){o=new gFe;const l=(...c)=>{o.next(c.length<=1?c[0]:c),o.complete()};try{n.apply(s,[...i,l])}catch(c){ou(o)?o.error(c):console.warn(c)}}return o.subscribe(a)})}}function XUt(n){const{args:e,subscriber:i,params:s}=n,{callbackFunc:o,context:r,scheduler:a}=s;let{subject:l}=s;if(!l){l=s.subject=new gFe;const c=(...d)=>{this.add(a.schedule(YUt,0,{value:d.length<=1?d[0]:d,subject:l}))};try{o.apply(r,[...e,c])}catch(d){l.error(d)}}this.add(l.subscribe(i))}function YUt(n){const{value:t,subject:e}=n;e.next(t),e.complete()}class ZUt{constructor(t){this.notifier=t}call(t,e){const i=new QUt(t),s=e.subscribe(i);return s.add(Lf(this.notifier,new ru(i))),s}}class QUt extends Pf{constructor(){super(...arguments),this.hasValue=!1}_next(t){this.value=t,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}const yFe=["*"];let d_=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),Vr=(()=>{let n=class{constructor(e,i){this._loader=e,this._zone=i,this._map=new Promise(s=>{this._mapResolver=s})}createMap(e,i){return this._zone.runOutsideAngular(()=>this._loader.load().then(()=>{const s=new google.maps.Map(e,i);this._mapResolver(s)}))}setMapOptions(e){return this._zone.runOutsideAngular(()=>{this._map.then(i=>{i.setOptions(e)})})}createMarker(e={},i=!0){return this._zone.runOutsideAngular(()=>this._map.then(s=>(i&&(e.map=s),new google.maps.Marker(e))))}createInfoWindow(e){return this._zone.runOutsideAngular(()=>this._map.then(()=>new google.maps.InfoWindow(e)))}createCircle(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>("string"==typeof e.strokePosition&&(e.strokePosition=google.maps.StrokePosition[e.strokePosition]),e.map=i,new google.maps.Circle(e))))}createRectangle(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>(e.map=i,new google.maps.Rectangle(e))))}createPolyline(e){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(i=>{let s=new google.maps.Polyline(e);return s.setMap(i),s}))}createPolygon(e){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(i=>{let s=new google.maps.Polygon(e);return s.setMap(i),s}))}createDataLayer(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>{let s=new google.maps.Data(e);return s.setMap(i),s}))}createTransitLayer(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>{let s=new google.maps.TransitLayer;return s.setMap(e.visible?i:null),s}))}createBicyclingLayer(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>{let s=new google.maps.BicyclingLayer;return s.setMap(e.visible?i:null),s}))}containsLocation(e,i){return google.maps.geometry.poly.containsLocation(e,i)}subscribeToMapEvent(e){return new an(i=>{this._map.then(s=>{s.addListener(e,o=>{this._zone.run(()=>i.next(o))})})})}clearInstanceListeners(){return this._zone.runOutsideAngular(()=>{this._map.then(e=>{google.maps.event.clearInstanceListeners(e)})})}setCenter(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.setCenter(e)))}getZoom(){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.getZoom()))}getBounds(){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.getBounds()))}getMapTypeId(){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.getMapTypeId()))}setZoom(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.setZoom(e)))}getCenter(){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.getCenter()))}panTo(e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.panTo(e)))}panBy(e,i){return this._zone.runOutsideAngular(()=>this._map.then(s=>s.panBy(e,i)))}fitBounds(e,i){return this._zone.runOutsideAngular(()=>this._map.then(s=>s.fitBounds(e,i)))}panToBounds(e,i){return this._zone.runOutsideAngular(()=>this._map.then(s=>s.panToBounds(e,i)))}getNativeMap(){return this._map}triggerMapEvent(e){return this._map.then(i=>google.maps.event.trigger(i,e))}};return n.\u0275fac=function(e){return new(e||n)(V(d_),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[d_,ce])],n),n})(),_O=(()=>{let n=class{constructor(e){this._wrapper=e,this._layers=new Map}addTransitLayer(e,i){const s=this._wrapper.createTransitLayer(i);this._layers.set(e,s)}addBicyclingLayer(e,i){const s=this._wrapper.createBicyclingLayer(i);this._layers.set(e,s)}deleteLayer(e){return this._layers.get(e).then(i=>{i.setMap(null),this._layers.delete(e)})}toggleLayerVisibility(e,i){return this._layers.get(e).then(s=>{if(i.visible)return this._wrapper.getNativeMap().then(o=>{s.setMap(o)});s.setMap(null)})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr])],n),n})(),l8=(()=>{let n=class{constructor(e,i){this._apiWrapper=e,this._zone=i,this._circles=new Map}addCircle(e){this._circles.set(e,this._apiWrapper.createCircle({center:{lat:e.latitude,lng:e.longitude},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,radius:e.radius,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}removeCircle(e){return this._circles.get(e).then(i=>{i.setMap(null),this._circles.delete(e)})}setOptions(e,i){return this._circles.get(e).then(s=>{"string"==typeof i.strokePosition&&(i.strokePosition=google.maps.StrokePosition[i.strokePosition]),s.setOptions(i)})}getBounds(e){return this._circles.get(e).then(i=>i.getBounds())}getCenter(e){return this._circles.get(e).then(i=>i.getCenter())}getRadius(e){return this._circles.get(e).then(i=>i.getRadius())}setCenter(e){return this._circles.get(e).then(i=>i.setCenter({lat:e.latitude,lng:e.longitude}))}setEditable(e){return this._circles.get(e).then(i=>i.setEditable(e.editable))}setDraggable(e){return this._circles.get(e).then(i=>i.setDraggable(e.draggable))}setVisible(e){return this._circles.get(e).then(i=>i.setVisible(e.visible))}setRadius(e){return this._circles.get(e).then(i=>i.setRadius(e.radius))}getNativeCircle(e){return this._circles.get(e)}createEventObservable(e,i){return new an(s=>{let o=null;return this._circles.get(i).then(r=>{o=r.addListener(e,a=>this._zone.run(()=>s.next(a)))}),()=>{null!==o&&o.remove()}})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr,ce])],n),n})();var Eee;let gs=Eee=class{constructor(t){this._manager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.radius=0,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.centerChange=new S,this.circleClick=new S,this.circleDblClick=new S,this.drag=new S,this.dragEnd=new S,this.dragStart=new S,this.mouseDown=new S,this.mouseMove=new S,this.mouseOut=new S,this.mouseOver=new S,this.mouseUp=new S,this.radiusChange=new S,this.rightClick=new S,this._circleAddedToManager=!1,this._eventSubscriptions=[]}ngOnInit(){this._manager.addCircle(this),this._circleAddedToManager=!0,this._registerEventListeners()}ngOnChanges(t){!this._circleAddedToManager||((t.latitude||t.longitude)&&this._manager.setCenter(this),t.editable&&this._manager.setEditable(this),t.draggable&&this._manager.setDraggable(this),t.visible&&this._manager.setVisible(this),t.radius&&this._manager.setRadius(this),this._updateCircleOptionsChanges(t))}_updateCircleOptionsChanges(t){let e={},i=Object.keys(t).filter(s=>-1!==Eee._mapOptions.indexOf(s));i.forEach(s=>{e[s]=t[s].currentValue}),i.length>0&&this._manager.setOptions(this,e)}_registerEventListeners(){let t=new Map;t.set("center_changed",this.centerChange),t.set("click",this.circleClick),t.set("dblclick",this.circleDblClick),t.set("drag",this.drag),t.set("dragend",this.dragEnd),t.set("dragstart",this.dragStart),t.set("mousedown",this.mouseDown),t.set("mousemove",this.mouseMove),t.set("mouseout",this.mouseOut),t.set("mouseover",this.mouseOver),t.set("mouseup",this.mouseUp),t.set("radius_changed",this.radiusChange),t.set("rightclick",this.rightClick),t.forEach((e,i)=>{this._eventSubscriptions.push(this._manager.createEventObservable(i,this).subscribe(s=>{switch(i){case"radius_changed":this._manager.getRadius(this).then(o=>e.emit(o));break;case"center_changed":this._manager.getCenter(this).then(o=>e.emit({lat:o.lat(),lng:o.lng()}));break;default:e.emit({coords:{lat:s.latLng.lat(),lng:s.latLng.lng()}})}}))})}ngOnDestroy(){this._eventSubscriptions.forEach(function(t){t.unsubscribe()}),this._eventSubscriptions=null,this._manager.removeCircle(this)}getBounds(){return this._manager.getBounds(this)}getCenter(){return this._manager.getCenter(this)}};gs.\u0275fac=function(t){return new(t||gs)(g(l8))},gs.\u0275dir=R({type:gs,selectors:[["agm-circle"]],inputs:{clickable:"clickable",draggable:["circleDraggable","draggable"],editable:"editable",radius:"radius",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",latitude:"latitude",longitude:"longitude",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",zIndex:"zIndex"},outputs:{centerChange:"centerChange",circleClick:"circleClick",circleDblClick:"circleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",radiusChange:"radiusChange",rightClick:"rightClick"},features:[st]}),gs._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],gs.ctorParameters=()=>[{type:l8}],ge([p(),me("design:type",Number)],gs.prototype,"latitude",void 0),ge([p(),me("design:type",Number)],gs.prototype,"longitude",void 0),ge([p(),me("design:type",Object)],gs.prototype,"clickable",void 0),ge([p("circleDraggable"),me("design:type",Object)],gs.prototype,"draggable",void 0),ge([p(),me("design:type",Object)],gs.prototype,"editable",void 0),ge([p(),me("design:type",String)],gs.prototype,"fillColor",void 0),ge([p(),me("design:type",Number)],gs.prototype,"fillOpacity",void 0),ge([p(),me("design:type",Object)],gs.prototype,"radius",void 0),ge([p(),me("design:type",String)],gs.prototype,"strokeColor",void 0),ge([p(),me("design:type",Number)],gs.prototype,"strokeOpacity",void 0),ge([p(),me("design:type",String)],gs.prototype,"strokePosition",void 0),ge([p(),me("design:type",Object)],gs.prototype,"strokeWeight",void 0),ge([p(),me("design:type",Object)],gs.prototype,"visible",void 0),ge([p(),me("design:type",Number)],gs.prototype,"zIndex",void 0),ge([Q(),me("design:type",S)],gs.prototype,"centerChange",void 0),ge([Q(),me("design:type",S)],gs.prototype,"circleClick",void 0),ge([Q(),me("design:type",S)],gs.prototype,"circleDblClick",void 0),ge([Q(),me("design:type",S)],gs.prototype,"drag",void 0),ge([Q(),me("design:type",S)],gs.prototype,"dragEnd",void 0),ge([Q(),me("design:type",S)],gs.prototype,"dragStart",void 0),ge([Q(),me("design:type",S)],gs.prototype,"mouseDown",void 0),ge([Q(),me("design:type",S)],gs.prototype,"mouseMove",void 0),ge([Q(),me("design:type",S)],gs.prototype,"mouseOut",void 0),ge([Q(),me("design:type",S)],gs.prototype,"mouseOver",void 0),ge([Q(),me("design:type",S)],gs.prototype,"mouseUp",void 0),ge([Q(),me("design:type",S)],gs.prototype,"radiusChange",void 0),ge([Q(),me("design:type",S)],gs.prototype,"rightClick",void 0),gs=Eee=ge([me("design:paramtypes",[l8])],gs);let vO=(()=>{let n=class{constructor(e,i){this._wrapper=e,this._zone=i,this._layers=new Map}addDataLayer(e){const i=this._wrapper.createDataLayer({style:e.style}).then(s=>(e.geoJson&&this.getDataFeatures(s,e.geoJson).then(o=>s.features=o),s));this._layers.set(e,i)}deleteDataLayer(e){this._layers.get(e).then(i=>{i.setMap(null),this._layers.delete(e)})}updateGeoJson(e,i){this._layers.get(e).then(s=>{s.forEach(function(o){s.remove(o);var r=s.features.indexOf(o,0);r>-1&&s.features.splice(r,1)}),this.getDataFeatures(s,i).then(o=>s.features=o)})}setDataOptions(e,i){this._layers.get(e).then(s=>{s.setControlPosition(i.controlPosition),s.setControls(i.controls),s.setDrawingMode(i.drawingMode),s.setStyle(i.style)})}createEventObservable(e,i){return new an(s=>{this._layers.get(i).then(o=>{o.addListener(e,r=>this._zone.run(()=>s.next(r)))})})}getDataFeatures(e,i){return new Promise((s,o)=>{if("object"==typeof i)try{s(e.addGeoJson(i))}catch(r){o(r)}else"string"==typeof i?e.loadGeoJson(i,null,s):o("Impossible to extract features from geoJson: wrong argument type")})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr,ce])],n),n})();var Iee;let t9t=0,Qh=Iee=class{constructor(t){this._manager=t,this._addedToManager=!1,this._id=(t9t++).toString(),this._subscriptions=[],this.layerClick=new S,this.geoJson=null}ngOnInit(){this._addedToManager||(this._manager.addDataLayer(this),this._addedToManager=!0,this._addEventListeners())}_addEventListeners(){[{name:"click",handler:e=>this.layerClick.emit(e)}].forEach(e=>{const i=this._manager.createEventObservable(e.name,this).subscribe(e.handler);this._subscriptions.push(i)})}id(){return this._id}toString(){return`AgmDataLayer-${this._id.toString()}`}ngOnDestroy(){this._manager.deleteDataLayer(this),this._subscriptions.forEach(t=>t.unsubscribe())}ngOnChanges(t){if(!this._addedToManager)return;var e=t.geoJson;e&&this._manager.updateGeoJson(this,e.currentValue);let i={};Iee._dataOptionsAttributes.forEach(s=>i[s]=t.hasOwnProperty(s)?t[s].currentValue:this[s]),this._manager.setDataOptions(this,i)}};Qh.\u0275fac=function(t){return new(t||Qh)(g(vO))},Qh.\u0275dir=R({type:Qh,selectors:[["agm-data-layer"]],inputs:{geoJson:"geoJson",style:"style"},outputs:{layerClick:"layerClick"},features:[st]}),Qh._dataOptionsAttributes=["style"],Qh.ctorParameters=()=>[{type:vO}],ge([Q(),me("design:type",S)],Qh.prototype,"layerClick",void 0),ge([p(),me("design:type",Object)],Qh.prototype,"geoJson",void 0),ge([p(),me("design:type",Function)],Qh.prototype,"style",void 0),Qh=Iee=ge([me("design:paramtypes",[vO])],Qh);class c8{}let SM=(()=>{let n=class{constructor(e){this._boundsChangeSampleTime$=new Hs(200),this._includeInBounds$=new Hs(new Map),this.bounds$=Ys(e.load()).pipe(TR(()=>this._includeInBounds$),function(n){return t=>t.lift(new ZUt(n))}(this._boundsChangeSampleTime$.pipe(ls(i=>pU(0,i)))),xe(i=>this._generateBounds(i)),jT(1))}_generateBounds(e){const i=new google.maps.LatLngBounds;return e.forEach(s=>i.extend(s)),i}addToBounds(e){const i=this._createIdentifier(e);if(this._includeInBounds$.value.has(i))return;const s=this._includeInBounds$.value;s.set(i,e),this._includeInBounds$.next(s)}removeFromBounds(e){const i=this._includeInBounds$.value;i.delete(this._createIdentifier(e)),this._includeInBounds$.next(i)}changeFitBoundsChangeSampleTime(e){this._boundsChangeSampleTime$.next(e)}getBounds$(){return this.bounds$}_createIdentifier(e){return`${e.lat}+${e.lng}`}};return n.\u0275fac=function(e){return new(e||n)(V(d_))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[d_])],n),n})(),TM=(()=>{let n=class{constructor(e,i){this._mapsWrapper=e,this._zone=i,this._markers=new Map}convertAnimation(e){return Nb(this,void 0,void 0,function*(){return null===e?null:this._mapsWrapper.getNativeMap().then(()=>google.maps.Animation[e])})}deleteMarker(e){const i=this._markers.get(e);return null==i?Promise.resolve():i.then(s=>this._zone.run(()=>{s.setMap(null),this._markers.delete(e)}))}updateMarkerPosition(e){return this._markers.get(e).then(i=>i.setPosition({lat:e.latitude,lng:e.longitude}))}updateTitle(e){return this._markers.get(e).then(i=>i.setTitle(e.title))}updateLabel(e){return this._markers.get(e).then(i=>{i.setLabel(e.label)})}updateDraggable(e){return this._markers.get(e).then(i=>i.setDraggable(e.draggable))}updateIcon(e){return this._markers.get(e).then(i=>i.setIcon(e.iconUrl))}updateOpacity(e){return this._markers.get(e).then(i=>i.setOpacity(e.opacity))}updateVisible(e){return this._markers.get(e).then(i=>i.setVisible(e.visible))}updateZIndex(e){return this._markers.get(e).then(i=>i.setZIndex(e.zIndex))}updateClickable(e){return this._markers.get(e).then(i=>i.setClickable(e.clickable))}updateAnimation(e){return Nb(this,void 0,void 0,function*(){(yield this._markers.get(e)).setAnimation(yield this.convertAnimation(e.animation))})}addMarker(e){const i=new Promise(s=>Nb(this,void 0,void 0,function*(){return this._mapsWrapper.createMarker({position:{lat:e.latitude,lng:e.longitude},label:e.label,draggable:e.draggable,icon:e.iconUrl,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,title:e.title,clickable:e.clickable,animation:yield this.convertAnimation(e.animation)}).then(s)}));this._markers.set(e,i)}getNativeMarker(e){return this._markers.get(e)}createEventObservable(e,i){return new an(s=>{this._markers.get(i).then(o=>{o.addListener(e,r=>this._zone.run(()=>s.next(r)))})})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr,ce])],n),n})(),d8=(()=>{let n=class{constructor(e,i,s){this._mapsWrapper=e,this._zone=i,this._markerManager=s,this._infoWindows=new Map}deleteInfoWindow(e){const i=this._infoWindows.get(e);return null==i?Promise.resolve():i.then(s=>this._zone.run(()=>{s.close(),this._infoWindows.delete(e)}))}setPosition(e){return this._infoWindows.get(e).then(i=>i.setPosition({lat:e.latitude,lng:e.longitude}))}setZIndex(e){return this._infoWindows.get(e).then(i=>i.setZIndex(e.zIndex))}open(e){return this._infoWindows.get(e).then(i=>null!=e.hostMarker?this._markerManager.getNativeMarker(e.hostMarker).then(s=>this._mapsWrapper.getNativeMap().then(o=>i.open(o,s))):this._mapsWrapper.getNativeMap().then(s=>i.open(s)))}close(e){return this._infoWindows.get(e).then(i=>i.close())}setOptions(e,i){return this._infoWindows.get(e).then(s=>s.setOptions(i))}addInfoWindow(e){const i={content:e.content,maxWidth:e.maxWidth,zIndex:e.zIndex,disableAutoPan:e.disableAutoPan};"number"==typeof e.latitude&&"number"==typeof e.longitude&&(i.position={lat:e.latitude,lng:e.longitude});const s=this._mapsWrapper.createInfoWindow(i);this._infoWindows.set(e,s)}createEventObservable(e,i){return new an(s=>{this._infoWindows.get(i).then(o=>{o.addListener(e,r=>this._zone.run(()=>s.next(r)))})})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr),V(ce),V(TM))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr,ce,TM])],n),n})();var Aee;let i9t=0,Ol=Aee=class{constructor(t,e){this._infoWindowManager=t,this._el=e,this.isOpen=!1,this.infoWindowClose=new S,this._infoWindowAddedToManager=!1,this._id=(i9t++).toString()}ngOnInit(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}ngOnChanges(t){!this._infoWindowAddedToManager||((t.latitude||t.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),t.zIndex&&this._infoWindowManager.setZIndex(this),t.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(t))}_registerEventListeners(){this._infoWindowManager.createEventObservable("closeclick",this).subscribe(()=>{this.isOpen=!1,this.infoWindowClose.emit()})}_updateOpenState(){this.isOpen?this.open():this.close()}_setInfoWindowOptions(t){let e={};Object.keys(t).filter(s=>-1!==Aee._infoWindowOptionsInputs.indexOf(s)).forEach(s=>{e[s]=t[s].currentValue}),this._infoWindowManager.setOptions(this,e)}open(){return this._infoWindowManager.open(this)}close(){return this._infoWindowManager.close(this).then(()=>{this.infoWindowClose.emit()})}id(){return this._id}toString(){return"AgmInfoWindow-"+this._id.toString()}ngOnDestroy(){this._infoWindowManager.deleteInfoWindow(this)}};Ol.\u0275fac=function(t){return new(t||Ol)(g(d8),g($))},Ol.\u0275cmp=K({type:Ol,selectors:[["agm-info-window"]],inputs:{isOpen:"isOpen",latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth"},outputs:{infoWindowClose:"infoWindowClose"},features:[st],ngContentSelectors:yFe,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(t,e){1&t&&(Xt(),y(0,"div",0),mt(1),_())},encapsulation:2}),Ol._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],Ol.ctorParameters=()=>[{type:d8},{type:$}],ge([p(),me("design:type",Number)],Ol.prototype,"latitude",void 0),ge([p(),me("design:type",Number)],Ol.prototype,"longitude",void 0),ge([p(),me("design:type",Boolean)],Ol.prototype,"disableAutoPan",void 0),ge([p(),me("design:type",Number)],Ol.prototype,"zIndex",void 0),ge([p(),me("design:type",Number)],Ol.prototype,"maxWidth",void 0),ge([p(),me("design:type",Object)],Ol.prototype,"isOpen",void 0),ge([Q(),me("design:type",S)],Ol.prototype,"infoWindowClose",void 0),Ol=Aee=ge([me("design:paramtypes",[d8,$])],Ol);let u8=(()=>{let n=class{constructor(e,i){this._wrapper=e,this._zone=i,this._layers=new Map}addKmlLayer(e){const i=this._wrapper.getNativeMap().then(s=>new google.maps.KmlLayer({clickable:e.clickable,map:s,preserveViewport:e.preserveViewport,screenOverlays:e.screenOverlays,suppressInfoWindows:e.suppressInfoWindows,url:e.url,zIndex:e.zIndex}));this._layers.set(e,i)}setOptions(e,i){this._layers.get(e).then(s=>s.setOptions(i))}deleteKmlLayer(e){this._layers.get(e).then(i=>{i.setMap(null),this._layers.delete(e)})}createEventObservable(e,i){return new an(s=>{this._layers.get(i).then(o=>{o.addListener(e,r=>this._zone.run(()=>s.next(r)))})})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr,ce])],n),n})();var Fee;let s9t=0,Rl=Fee=class{constructor(t){this._manager=t,this._addedToManager=!1,this._id=(s9t++).toString(),this._subscriptions=[],this.clickable=!0,this.preserveViewport=!1,this.screenOverlays=!0,this.suppressInfoWindows=!1,this.url=null,this.zIndex=null,this.layerClick=new S,this.defaultViewportChange=new S,this.statusChange=new S}ngOnInit(){this._addedToManager||(this._manager.addKmlLayer(this),this._addedToManager=!0,this._addEventListeners())}ngOnChanges(t){!this._addedToManager||this._updatePolygonOptions(t)}_updatePolygonOptions(t){const e=Object.keys(t).filter(i=>-1!==Fee._kmlLayerOptions.indexOf(i)).reduce((i,s)=>(i[s]=t[s].currentValue,i),{});Object.keys(e).length>0&&this._manager.setOptions(this,e)}_addEventListeners(){[{name:"click",handler:e=>this.layerClick.emit(e)},{name:"defaultviewport_changed",handler:()=>this.defaultViewportChange.emit()},{name:"status_changed",handler:()=>this.statusChange.emit()}].forEach(e=>{const i=this._manager.createEventObservable(e.name,this).subscribe(e.handler);this._subscriptions.push(i)})}id(){return this._id}toString(){return`AgmKmlLayer-${this._id.toString()}`}ngOnDestroy(){this._manager.deleteKmlLayer(this),this._subscriptions.forEach(t=>t.unsubscribe())}};function Oee(n){const t=["insert_at","remove_at","set_at"];return fFe(e=>t.map(i=>n.addListener(i,(s,o)=>e.apply(n,[{newArr:n.getArray(),evName:i,index:s,previous:o}]))),(e,i)=>i.forEach(s=>s.remove()))}Rl.\u0275fac=function(t){return new(t||Rl)(g(u8))},Rl.\u0275dir=R({type:Rl,selectors:[["agm-kml-layer"]],inputs:{clickable:"clickable",preserveViewport:"preserveViewport",screenOverlays:"screenOverlays",suppressInfoWindows:"suppressInfoWindows",url:"url",zIndex:"zIndex"},outputs:{layerClick:"layerClick",defaultViewportChange:"defaultViewportChange",statusChange:"statusChange"},features:[st]}),Rl._kmlLayerOptions=["clickable","preserveViewport","screenOverlays","suppressInfoWindows","url","zIndex"],Rl.ctorParameters=()=>[{type:u8}],ge([p(),me("design:type",Object)],Rl.prototype,"clickable",void 0),ge([p(),me("design:type",Object)],Rl.prototype,"preserveViewport",void 0),ge([p(),me("design:type",Object)],Rl.prototype,"screenOverlays",void 0),ge([p(),me("design:type",Object)],Rl.prototype,"suppressInfoWindows",void 0),ge([p(),me("design:type",String)],Rl.prototype,"url",void 0),ge([p(),me("design:type",Number)],Rl.prototype,"zIndex",void 0),ge([Q(),me("design:type",S)],Rl.prototype,"layerClick",void 0),ge([Q(),me("design:type",S)],Rl.prototype,"defaultViewportChange",void 0),ge([Q(),me("design:type",S)],Rl.prototype,"statusChange",void 0),Rl=Fee=ge([me("design:paramtypes",[u8])],Rl);let h8=(()=>{let n=class{constructor(e,i){this._mapsWrapper=e,this._zone=i,this._polygons=new Map}addPolygon(e){const i=this._mapsWrapper.createPolygon({clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,geodesic:e.geodesic,paths:e.paths,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex});this._polygons.set(e,i)}updatePolygon(e){const i=this._polygons.get(e);return null==i?Promise.resolve():i.then(s=>this._zone.run(()=>{s.setPaths(e.paths)}))}setPolygonOptions(e,i){return this._polygons.get(e).then(s=>{s.setOptions(i)})}deletePolygon(e){const i=this._polygons.get(e);return null==i?Promise.resolve():i.then(s=>this._zone.run(()=>{s.setMap(null),this._polygons.delete(e)}))}getPath(e){return this._polygons.get(e).then(i=>i.getPath().getArray())}getPaths(e){return this._polygons.get(e).then(i=>i.getPaths().getArray().map(s=>s.getArray()))}createEventObservable(e,i){return new an(s=>{this._polygons.get(i).then(o=>{o.addListener(e,r=>this._zone.run(()=>s.next(r)))})})}createPathEventObservable(e){return Nb(this,void 0,void 0,function*(){const s=(yield this._polygons.get(e)).getPaths();return Oee(s).pipe($o({newArr:s.getArray()}),ls(r=>ii(...r.newArr.map((a,l)=>Oee(a).pipe(xe(c=>({parentMVEvent:r,chMVCEvent:c,pathIndex:l}))))).pipe($o({parentMVEvent:r,chMVCEvent:null,pathIndex:null}))),UI(1),xe(({parentMVEvent:r,chMVCEvent:a,pathIndex:l})=>{let c;return a?(c={newArr:r.newArr.map(d=>d.getArray().map(u=>u.toJSON())),pathIndex:l,eventName:a.evName,index:a.index},a.previous&&(c.previous=a.previous)):(c={newArr:r.newArr.map(d=>d.getArray().map(u=>u.toJSON())),eventName:r.evName,index:r.index},r.previous&&(c.previous=r.previous.getArray())),c}))})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr,ce])],n),n})();var $w;let Jh=$w=class{constructor(t,e){this._mapsWrapper=t,this._zone=e,this._polylines=new Map}static _convertPoints(t){return t._getPoints().map(i=>({lat:i.latitude,lng:i.longitude}))}static _convertPath(t){const e=google.maps.SymbolPath[t];return"number"==typeof e?e:t}static _convertIcons(t){const e=t._getIcons().map(i=>({fixedRotation:i.fixedRotation,offset:i.offset,repeat:i.repeat,icon:{anchor:new google.maps.Point(i.anchorX,i.anchorY),fillColor:i.fillColor,fillOpacity:i.fillOpacity,path:$w._convertPath(i.path),rotation:i.rotation,scale:i.scale,strokeColor:i.strokeColor,strokeOpacity:i.strokeOpacity,strokeWeight:i.strokeWeight}}));return e.forEach(i=>{Object.entries(i).forEach(([s,o])=>{void 0===o&&delete i[s]}),(void 0===i.icon.anchor.x||void 0===i.icon.anchor.y)&&delete i.icon.anchor}),e}addPolyline(t){const e=this._mapsWrapper.getNativeMap().then(()=>[$w._convertPoints(t),$w._convertIcons(t)]).then(([i,s])=>this._mapsWrapper.createPolyline({clickable:t.clickable,draggable:t.draggable,editable:t.editable,geodesic:t.geodesic,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex,path:i,icons:s}));this._polylines.set(t,e)}updatePolylinePoints(t){const e=$w._convertPoints(t),i=this._polylines.get(t);return null==i?Promise.resolve():i.then(s=>this._zone.run(()=>{s.setPath(e)}))}updateIconSequences(t){return Nb(this,void 0,void 0,function*(){yield this._mapsWrapper.getNativeMap();const e=$w._convertIcons(t),i=this._polylines.get(t);if(null!=i)return i.then(s=>this._zone.run(()=>s.setOptions({icons:e})))})}setPolylineOptions(t,e){return this._polylines.get(t).then(i=>{i.setOptions(e)})}deletePolyline(t){const e=this._polylines.get(t);return null==e?Promise.resolve():e.then(i=>this._zone.run(()=>{i.setMap(null),this._polylines.delete(t)}))}getMVCPath(t){return Nb(this,void 0,void 0,function*(){return(yield this._polylines.get(t)).getPath()})}getPath(t){return Nb(this,void 0,void 0,function*(){return(yield this.getMVCPath(t)).getArray()})}createEventObservable(t,e){return new an(i=>{this._polylines.get(e).then(s=>{s.addListener(t,o=>this._zone.run(()=>i.next(o)))})})}createPathEventObservable(t){return Nb(this,void 0,void 0,function*(){return Oee(yield this.getMVCPath(t))})}};Jh.\u0275fac=function(t){return new(t||Jh)(V(Vr),V(ce))},Jh.\u0275prov=ue({token:Jh,factory:function(n){return Jh.\u0275fac(n)}}),Jh.ctorParameters=()=>[{type:Vr},{type:ce}],Jh=$w=ge([me("design:paramtypes",[Vr,ce])],Jh);let p8=(()=>{let n=class{constructor(e,i){this._apiWrapper=e,this._zone=i,this._rectangles=new Map}addRectangle(e){this._rectangles.set(e,this._apiWrapper.createRectangle({bounds:{north:e.north,east:e.east,south:e.south,west:e.west},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}removeRectangle(e){return this._rectangles.get(e).then(i=>{i.setMap(null),this._rectangles.delete(e)})}setOptions(e,i){return this._rectangles.get(e).then(s=>s.setOptions(i))}getBounds(e){return this._rectangles.get(e).then(i=>i.getBounds())}setBounds(e){return this._rectangles.get(e).then(i=>i.setBounds({north:e.north,east:e.east,south:e.south,west:e.west}))}setEditable(e){return this._rectangles.get(e).then(i=>i.setEditable(e.editable))}setDraggable(e){return this._rectangles.get(e).then(i=>i.setDraggable(e.draggable))}setVisible(e){return this._rectangles.get(e).then(i=>i.setVisible(e.visible))}createEventObservable(e,i){return an.create(s=>{let o=null;return this._rectangles.get(i).then(r=>{o=r.addListener(e,a=>this._zone.run(()=>s.next(a)))}),()=>{null!==o&&o.remove()}})}};return n.\u0275fac=function(e){return new(e||n)(V(Vr),V(ce))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([me("design:paramtypes",[Vr,ce])],n),n})();var Ree;let Vn=Ree=class{constructor(t,e,i,s,o){this._elem=t,this._mapsWrapper=e,this._platformId=i,this._fitBoundsService=s,this._zone=o,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.scaleControl=!1,this.mapTypeControl=!1,this.panControl=!1,this.rotateControl=!1,this.fullscreenControl=!1,this.mapTypeId="roadmap",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new S,this.mapRightClick=new S,this.mapDblClick=new S,this.centerChange=new S,this.boundsChange=new S,this.mapTypeIdChange=new S,this.idle=new S,this.zoomChange=new S,this.mapReady=new S,this.tilesLoaded=new S}ngOnInit(){if(ng(this._platformId))return;const t=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(t)}_initMapInstance(t){this._mapsWrapper.createMap(t,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,zoomControl:this.zoomControl,zoomControlOptions:this.zoomControlOptions,streetViewControl:this.streetViewControl,streetViewControlOptions:this.streetViewControlOptions,scaleControl:this.scaleControl,scaleControlOptions:this.scaleControlOptions,mapTypeControl:this.mapTypeControl,mapTypeControlOptions:this.mapTypeControlOptions,panControl:this.panControl,panControlOptions:this.panControlOptions,rotateControl:this.rotateControl,rotateControlOptions:this.rotateControlOptions,fullscreenControl:this.fullscreenControl,fullscreenControlOptions:this.fullscreenControlOptions,mapTypeId:this.mapTypeId,clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then(()=>this._mapsWrapper.getNativeMap()).then(e=>this.mapReady.emit(e)),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent()}ngOnDestroy(){this._observableSubscriptions.forEach(t=>t.unsubscribe()),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}ngOnChanges(t){this._updateMapOptionsChanges(t),this._updatePosition(t)}_updateMapOptionsChanges(t){let e={};Object.keys(t).filter(s=>-1!==Ree._mapOptionsAttributes.indexOf(s)).forEach(s=>{e[s]=t[s].currentValue}),this._mapsWrapper.setMapOptions(e)}triggerResize(t=!0){return new Promise(e=>{setTimeout(()=>this._mapsWrapper.triggerMapEvent("resize").then(()=>{t&&(null!=this.fitBounds?this._fitBounds():this._setCenter()),e()}))})}_updatePosition(t){if(null!=t.latitude||null!=t.longitude||t.fitBounds){if("fitBounds"in t)return void this._fitBounds();"number"!=typeof this.latitude||"number"!=typeof this.longitude||this._setCenter()}}_setCenter(){let t={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(t):this._mapsWrapper.setCenter(t)}_fitBounds(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}_subscribeToFitBoundsUpdates(){this._zone.runOutsideAngular(()=>{this._fitBoundsSubscription=this._fitBoundsService.getBounds$().subscribe(t=>{this._zone.run(()=>this._updateBounds(t,this.fitBoundsPadding))})})}_updateBounds(t,e){if(t){if(this._isLatLngBoundsLiteral(t)&&"undefined"!=typeof google&&google&&google.maps&&google.maps.LatLngBounds){const i=new google.maps.LatLngBounds;i.union(t),t=i}if(this.usePanning)return void this._mapsWrapper.panToBounds(t,e);this._mapsWrapper.fitBounds(t,e)}}_isLatLngBoundsLiteral(t){return null!=t&&void 0===t.extend}_handleMapCenterChange(){const t=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe(()=>{this._mapsWrapper.getCenter().then(e=>{this.latitude=e.lat(),this.longitude=e.lng(),this.centerChange.emit({lat:this.latitude,lng:this.longitude})})});this._observableSubscriptions.push(t)}_handleBoundsChange(){const t=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe(()=>{this._mapsWrapper.getBounds().then(e=>{this.boundsChange.emit(e)})});this._observableSubscriptions.push(t)}_handleMapTypeIdChange(){const t=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe(()=>{this._mapsWrapper.getMapTypeId().then(e=>{this.mapTypeIdChange.emit(e)})});this._observableSubscriptions.push(t)}_handleMapZoomChange(){const t=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe(()=>{this._mapsWrapper.getZoom().then(e=>{this.zoom=e,this.zoomChange.emit(e)})});this._observableSubscriptions.push(t)}_handleIdleEvent(){const t=this._mapsWrapper.subscribeToMapEvent("idle").subscribe(()=>{this.idle.emit(void 0)});this._observableSubscriptions.push(t)}_handleTilesLoadedEvent(){const t=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe(()=>this.tilesLoaded.emit(void 0));this._observableSubscriptions.push(t)}_handleMapMouseEvents(){[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach(e=>{const i=this._mapsWrapper.subscribeToMapEvent(e.name).subscribe(s=>{let o={coords:{lat:s.latLng.lat(),lng:s.latLng.lng()},placeId:s.placeId};o.placeId&&!this.showDefaultInfoWindow&&s.stop(),e.emitter.emit(o)});this._observableSubscriptions.push(i)})}};var Pee;Vn.\u0275fac=function(t){return new(t||Vn)(g($),g(Vr),g(Xr),g(SM),g(ce))},Vn.\u0275cmp=K({type:Vn,selectors:[["agm-map"]],hostVars:2,hostBindings:function(t,e){2&t&&he("sebm-google-map-container",!0)},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",scaleControl:"scaleControl",mapTypeControl:"mapTypeControl",panControl:"panControl",rotateControl:"rotateControl",fullscreenControl:"fullscreenControl",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",zoomControl:"zoomControl",zoomControlOptions:"zoomControlOptions",streetViewControl:"streetViewControl",streetViewControlOptions:"streetViewControlOptions",fitBoundsPadding:"fitBoundsPadding",scaleControlOptions:"scaleControlOptions",mapTypeControlOptions:"mapTypeControlOptions",panControlOptions:"panControlOptions",rotateControlOptions:"rotateControlOptions",fullscreenControlOptions:"fullscreenControlOptions",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[we([l8,vO,vO,SM,Vr,d8,u8,_O,TM,h8,Jh,p8]),st],ngContentSelectors:yFe,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(t,e){1&t&&(Xt(),P(0,"div",0),y(1,"div",1),mt(2),_())},styles:[".agm-map-container-inner[_ngcontent-%COMP%] {\n width: inherit;\n height: inherit;\n }\n .agm-map-content[_ngcontent-%COMP%] {\n display:none;\n }"]}),Vn._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","zoomControl","zoomControlOptions","styles","streetViewControl","streetViewControlOptions","zoom","mapTypeControl","mapTypeControlOptions","minZoom","maxZoom","panControl","panControlOptions","rotateControl","rotateControlOptions","fullscreenControl","fullscreenControlOptions","scaleControl","scaleControlOptions","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],Vn.ctorParameters=()=>[{type:$},{type:Vr},{type:Object,decorators:[{type:Rn,args:[Xr]}]},{type:SM},{type:ce}],ge([p(),me("design:type",Object)],Vn.prototype,"longitude",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"latitude",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"zoom",void 0),ge([p(),me("design:type",Number)],Vn.prototype,"minZoom",void 0),ge([p(),me("design:type",Number)],Vn.prototype,"maxZoom",void 0),ge([p(),me("design:type",Number)],Vn.prototype,"controlSize",void 0),ge([p("mapDraggable"),me("design:type",Object)],Vn.prototype,"draggable",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"disableDoubleClickZoom",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"disableDefaultUI",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"scrollwheel",void 0),ge([p(),me("design:type",String)],Vn.prototype,"backgroundColor",void 0),ge([p(),me("design:type",String)],Vn.prototype,"draggableCursor",void 0),ge([p(),me("design:type",String)],Vn.prototype,"draggingCursor",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"keyboardShortcuts",void 0),ge([p(),me("design:type",Boolean)],Vn.prototype,"zoomControl",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"zoomControlOptions",void 0),ge([p(),me("design:type",Array)],Vn.prototype,"styles",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"usePanning",void 0),ge([p(),me("design:type",Boolean)],Vn.prototype,"streetViewControl",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"streetViewControlOptions",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"fitBounds",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"fitBoundsPadding",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"scaleControl",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"scaleControlOptions",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"mapTypeControl",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"mapTypeControlOptions",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"panControl",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"panControlOptions",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"rotateControl",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"rotateControlOptions",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"fullscreenControl",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"fullscreenControlOptions",void 0),ge([p(),me("design:type",String)],Vn.prototype,"mapTypeId",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"clickableIcons",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"showDefaultInfoWindow",void 0),ge([p(),me("design:type",String)],Vn.prototype,"gestureHandling",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"tilt",void 0),ge([p(),me("design:type",Object)],Vn.prototype,"restriction",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"mapClick",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"mapRightClick",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"mapDblClick",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"centerChange",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"boundsChange",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"mapTypeIdChange",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"idle",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"zoomChange",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"mapReady",void 0),ge([Q(),me("design:type",S)],Vn.prototype,"tilesLoaded",void 0),Vn=Ree=ge([yO(2,Rn(Xr)),me("design:paramtypes",[$,Vr,Object,SM,ce])],Vn);let o9t=0,lo=Pee=class{constructor(t){this._markerManager=t,this.draggable=!1,this.visible=!0,this.openInfoWindow=!0,this.opacity=1,this.zIndex=1,this.clickable=!0,this.animationChange=new S,this.markerClick=new S,this.markerDblClick=new S,this.markerRightClick=new S,this.dragStart=new S,this.drag=new S,this.dragEnd=new S,this.mouseOver=new S,this.mouseOut=new S,this.infoWindow=new wt,this._markerAddedToManger=!1,this._observableSubscriptions=[],this._fitBoundsDetails$=new GT(1),this._id=(o9t++).toString()}ngAfterContentInit(){this.handleInfoWindowUpdate(),this.infoWindow.changes.subscribe(()=>this.handleInfoWindowUpdate())}handleInfoWindowUpdate(){if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach(t=>{t.hostMarker=this})}ngOnChanges(t){if("string"==typeof this.latitude&&(this.latitude=Number(this.latitude)),"string"==typeof this.longitude&&(this.longitude=Number(this.longitude)),"number"==typeof this.latitude&&"number"==typeof this.longitude){if(!this._markerAddedToManger)return this._markerManager.addMarker(this),this._updateFitBoundsDetails(),this._markerAddedToManger=!0,void this._addEventListeners();(t.latitude||t.longitude)&&(this._markerManager.updateMarkerPosition(this),this._updateFitBoundsDetails()),t.title&&this._markerManager.updateTitle(this),t.label&&this._markerManager.updateLabel(this),t.draggable&&this._markerManager.updateDraggable(this),t.iconUrl&&this._markerManager.updateIcon(this),t.opacity&&this._markerManager.updateOpacity(this),t.visible&&this._markerManager.updateVisible(this),t.zIndex&&this._markerManager.updateZIndex(this),t.clickable&&this._markerManager.updateClickable(this),t.animation&&this._markerManager.updateAnimation(this)}}getFitBoundsDetails$(){return this._fitBoundsDetails$.asObservable()}_updateFitBoundsDetails(){this._fitBoundsDetails$.next({latLng:{lat:this.latitude,lng:this.longitude}})}_addEventListeners(){const t=this._markerManager.createEventObservable("click",this).subscribe(()=>{this.openInfoWindow&&this.infoWindow.forEach(d=>d.open()),this.markerClick.emit(this)});this._observableSubscriptions.push(t);const e=this._markerManager.createEventObservable("dblclick",this).subscribe(()=>{this.markerDblClick.emit(null)});this._observableSubscriptions.push(e);const i=this._markerManager.createEventObservable("rightclick",this).subscribe(()=>{this.markerRightClick.emit(null)});this._observableSubscriptions.push(i);const s=this._markerManager.createEventObservable("dragstart",this).subscribe(d=>{this.dragStart.emit({coords:{lat:d.latLng.lat(),lng:d.latLng.lng()}})});this._observableSubscriptions.push(s);const o=this._markerManager.createEventObservable("drag",this).subscribe(d=>{this.drag.emit({coords:{lat:d.latLng.lat(),lng:d.latLng.lng()}})});this._observableSubscriptions.push(o);const r=this._markerManager.createEventObservable("dragend",this).subscribe(d=>{this.dragEnd.emit({coords:{lat:d.latLng.lat(),lng:d.latLng.lng()}})});this._observableSubscriptions.push(r);const a=this._markerManager.createEventObservable("mouseover",this).subscribe(d=>{this.mouseOver.emit({coords:{lat:d.latLng.lat(),lng:d.latLng.lng()}})});this._observableSubscriptions.push(a);const l=this._markerManager.createEventObservable("mouseout",this).subscribe(d=>{this.mouseOut.emit({coords:{lat:d.latLng.lat(),lng:d.latLng.lng()}})});this._observableSubscriptions.push(l);const c=this._markerManager.createEventObservable("animation_changed",this).subscribe(()=>{this.animationChange.emit(this.animation)});this._observableSubscriptions.push(c)}id(){return this._id}toString(){return"AgmMarker-"+this._id.toString()}ngOnDestroy(){this._markerManager.deleteMarker(this),this._observableSubscriptions.forEach(t=>t.unsubscribe())}};var Lee;lo.\u0275fac=function(t){return new(t||lo)(g(TM))},lo.\u0275dir=R({type:lo,selectors:[["agm-marker"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,Ol,4),2&t){let s;U(s=W())&&(e.infoWindow=s)}},inputs:{latitude:"latitude",longitude:"longitude",title:"title",label:"label",draggable:["markerDraggable","draggable"],iconUrl:"iconUrl",openInfoWindow:"openInfoWindow",opacity:"opacity",visible:"visible",zIndex:"zIndex",animation:"animation",clickable:["markerClickable","clickable"]},outputs:{markerClick:"markerClick",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",mouseOver:"mouseOver",mouseOut:"mouseOut",animationChange:"animationChange",markerDblClick:"markerDblClick",markerRightClick:"markerRightClick"},features:[we([{provide:c8,useExisting:He(()=>Pee)}]),st]}),lo.ctorParameters=()=>[{type:TM}],ge([p(),me("design:type",Number)],lo.prototype,"latitude",void 0),ge([p(),me("design:type",Number)],lo.prototype,"longitude",void 0),ge([p(),me("design:type",String)],lo.prototype,"title",void 0),ge([p(),me("design:type",Object)],lo.prototype,"label",void 0),ge([p("markerDraggable"),me("design:type",Object)],lo.prototype,"draggable",void 0),ge([p(),me("design:type",String)],lo.prototype,"iconUrl",void 0),ge([p(),me("design:type",Object)],lo.prototype,"visible",void 0),ge([p(),me("design:type",Object)],lo.prototype,"openInfoWindow",void 0),ge([p(),me("design:type",Object)],lo.prototype,"opacity",void 0),ge([p(),me("design:type",Object)],lo.prototype,"zIndex",void 0),ge([p("markerClickable"),me("design:type",Object)],lo.prototype,"clickable",void 0),ge([p(),me("design:type",String)],lo.prototype,"animation",void 0),ge([Q(),me("design:type",Object)],lo.prototype,"animationChange",void 0),ge([Q(),me("design:type",S)],lo.prototype,"markerClick",void 0),ge([Q(),me("design:type",S)],lo.prototype,"markerDblClick",void 0),ge([Q(),me("design:type",S)],lo.prototype,"markerRightClick",void 0),ge([Q(),me("design:type",S)],lo.prototype,"dragStart",void 0),ge([Q(),me("design:type",S)],lo.prototype,"drag",void 0),ge([Q(),me("design:type",S)],lo.prototype,"dragEnd",void 0),ge([Q(),me("design:type",S)],lo.prototype,"mouseOver",void 0),ge([Q(),me("design:type",S)],lo.prototype,"mouseOut",void 0),ge([fi(Ol),me("design:type",wt)],lo.prototype,"infoWindow",void 0),lo=Pee=ge([me("design:paramtypes",[TM])],lo);let Ns=Lee=class{constructor(t){this._polygonManager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.geodesic=!1,this.paths=[],this.polyClick=new S,this.polyDblClick=new S,this.polyDrag=new S,this.polyDragEnd=new S,this.polyDragStart=new S,this.polyMouseDown=new S,this.polyMouseMove=new S,this.polyMouseOut=new S,this.polyMouseOver=new S,this.polyMouseUp=new S,this.polyRightClick=new S,this.polyPathsChange=new S,this._polygonAddedToManager=!1,this._subscriptions=[]}ngAfterContentInit(){this._polygonAddedToManager||this._init()}ngOnChanges(t){this._polygonAddedToManager?this._polygonManager.setPolygonOptions(this,this._updatePolygonOptions(t)):this._init()}_init(){this._polygonManager.addPolygon(this),this._polygonAddedToManager=!0,this._addEventListeners()}_addEventListeners(){[{name:"click",handler:e=>this.polyClick.emit(e)},{name:"dblclick",handler:e=>this.polyDblClick.emit(e)},{name:"drag",handler:e=>this.polyDrag.emit(e)},{name:"dragend",handler:e=>this.polyDragEnd.emit(e)},{name:"dragstart",handler:e=>this.polyDragStart.emit(e)},{name:"mousedown",handler:e=>this.polyMouseDown.emit(e)},{name:"mousemove",handler:e=>this.polyMouseMove.emit(e)},{name:"mouseout",handler:e=>this.polyMouseOut.emit(e)},{name:"mouseover",handler:e=>this.polyMouseOver.emit(e)},{name:"mouseup",handler:e=>this.polyMouseUp.emit(e)},{name:"rightclick",handler:e=>this.polyRightClick.emit(e)}].forEach(e=>{const i=this._polygonManager.createEventObservable(e.name,this).subscribe(e.handler);this._subscriptions.push(i)}),this._polygonManager.createPathEventObservable(this).then(e=>{const i=e.subscribe(s=>this.polyPathsChange.emit(s));this._subscriptions.push(i)})}_updatePolygonOptions(t){return Object.keys(t).filter(e=>-1!==Lee._polygonOptionsAttributes.indexOf(e)).reduce((e,i)=>(e[i]=t[i].currentValue,e),{})}id(){return this._id}ngOnDestroy(){this._polygonManager.deletePolygon(this),this._subscriptions.forEach(t=>t.unsubscribe())}getPath(){return this._polygonManager.getPath(this)}getPaths(){return this._polygonManager.getPaths(this)}};Ns.\u0275fac=function(t){return new(t||Ns)(g(h8))},Ns.\u0275dir=R({type:Ns,selectors:[["agm-polygon"]],inputs:{clickable:"clickable",draggable:["polyDraggable","draggable"],editable:"editable",geodesic:"geodesic",paths:"paths",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",strokeWeight:"strokeWeight",visible:"visible",zIndex:"zIndex"},outputs:{polyClick:"polyClick",polyDblClick:"polyDblClick",polyDrag:"polyDrag",polyDragEnd:"polyDragEnd",polyDragStart:"polyDragStart",polyMouseDown:"polyMouseDown",polyMouseMove:"polyMouseMove",polyMouseOut:"polyMouseOut",polyMouseOver:"polyMouseOver",polyMouseUp:"polyMouseUp",polyRightClick:"polyRightClick",polyPathsChange:"polyPathsChange"},features:[st]}),Ns._polygonOptionsAttributes=["clickable","draggable","editable","fillColor","fillOpacity","geodesic","icon","map","paths","strokeColor","strokeOpacity","strokeWeight","visible","zIndex","draggable","editable","visible"],Ns.ctorParameters=()=>[{type:h8}],ge([p(),me("design:type",Object)],Ns.prototype,"clickable",void 0),ge([p("polyDraggable"),me("design:type",Object)],Ns.prototype,"draggable",void 0),ge([p(),me("design:type",Object)],Ns.prototype,"editable",void 0),ge([p(),me("design:type",String)],Ns.prototype,"fillColor",void 0),ge([p(),me("design:type",Number)],Ns.prototype,"fillOpacity",void 0),ge([p(),me("design:type",Object)],Ns.prototype,"geodesic",void 0),ge([p(),me("design:type",Array)],Ns.prototype,"paths",void 0),ge([p(),me("design:type",String)],Ns.prototype,"strokeColor",void 0),ge([p(),me("design:type",Number)],Ns.prototype,"strokeOpacity",void 0),ge([p(),me("design:type",Number)],Ns.prototype,"strokeWeight",void 0),ge([p(),me("design:type",Boolean)],Ns.prototype,"visible",void 0),ge([p(),me("design:type",Number)],Ns.prototype,"zIndex",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyClick",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyDblClick",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyDrag",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyDragEnd",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyDragStart",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyMouseDown",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyMouseMove",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyMouseOut",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyMouseOver",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyMouseUp",void 0),ge([Q(),me("design:type",S)],Ns.prototype,"polyRightClick",void 0),ge([Q(),me("design:type",Object)],Ns.prototype,"polyPathsChange",void 0),Ns=Lee=ge([me("design:paramtypes",[h8])],Ns);let Nee=(()=>{let n=class{ngOnInit(){if(null==this.path)throw new Error("Icon Sequence path is required")}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["agm-icon-sequence"]],inputs:{fixedRotation:"fixedRotation",offset:"offset",repeat:"repeat",anchorX:"anchorX",anchorY:"anchorY",fillColor:"fillColor",fillOpacity:"fillOpacity",path:"path",rotation:"rotation",scale:"scale",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",strokeWeight:"strokeWeight"}}),ge([p(),me("design:type",Boolean)],n.prototype,"fixedRotation",void 0),ge([p(),me("design:type",String)],n.prototype,"offset",void 0),ge([p(),me("design:type",String)],n.prototype,"repeat",void 0),ge([p(),me("design:type",Number)],n.prototype,"anchorX",void 0),ge([p(),me("design:type",Number)],n.prototype,"anchorY",void 0),ge([p(),me("design:type",String)],n.prototype,"fillColor",void 0),ge([p(),me("design:type",Number)],n.prototype,"fillOpacity",void 0),ge([p(),me("design:type",String)],n.prototype,"path",void 0),ge([p(),me("design:type",Number)],n.prototype,"rotation",void 0),ge([p(),me("design:type",Number)],n.prototype,"scale",void 0),ge([p(),me("design:type",String)],n.prototype,"strokeColor",void 0),ge([p(),me("design:type",Number)],n.prototype,"strokeOpacity",void 0),ge([p(),me("design:type",Number)],n.prototype,"strokeWeight",void 0),n})();var Bee;let ep=Bee=class{constructor(){this.positionChanged=new S}ngOnChanges(t){(t.latitude||t.longitude)&&this.positionChanged.emit({lat:t.latitude?t.latitude.currentValue:this.latitude,lng:t.longitude?t.longitude.currentValue:this.longitude})}getFitBoundsDetails$(){return this.positionChanged.pipe($o({lat:this.latitude,lng:this.longitude}),xe(t=>({latLng:t})))}};var Vee;ep.\u0275fac=function(t){return new(t||ep)},ep.\u0275dir=R({type:ep,selectors:[["agm-polyline-point"]],inputs:{latitude:"latitude",longitude:"longitude"},outputs:{positionChanged:"positionChanged"},features:[we([{provide:c8,useExisting:He(()=>Bee)}]),st]}),ge([p(),me("design:type",Number)],ep.prototype,"latitude",void 0),ge([p(),me("design:type",Number)],ep.prototype,"longitude",void 0),ge([Q(),me("design:type",S)],ep.prototype,"positionChanged",void 0),ep=Bee=ge([me("design:paramtypes",[])],ep);let r9t=0,Us=Vee=class{constructor(t){this._polylineManager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.geodesic=!1,this.visible=!0,this.lineClick=new S,this.lineDblClick=new S,this.lineDrag=new S,this.lineDragEnd=new S,this.lineDragStart=new S,this.lineMouseDown=new S,this.lineMouseMove=new S,this.lineMouseOut=new S,this.lineMouseOver=new S,this.lineMouseUp=new S,this.lineRightClick=new S,this.polyPathChange=new S,this._polylineAddedToManager=!1,this._subscriptions=[],this._id=(r9t++).toString()}ngAfterContentInit(){this.points.length&&this.points.forEach(i=>{const s=i.positionChanged.subscribe(()=>{this._polylineManager.updatePolylinePoints(this)});this._subscriptions.push(s)}),this._polylineAddedToManager||this._init();const t=this.points.changes.subscribe(()=>this._polylineManager.updatePolylinePoints(this));this._subscriptions.push(t),this._polylineManager.updatePolylinePoints(this);const e=this.iconSequences.changes.subscribe(()=>this._polylineManager.updateIconSequences(this));this._subscriptions.push(e)}ngOnChanges(t){if(!this._polylineAddedToManager)return void this._init();let e={};Object.keys(t).filter(s=>-1!==Vee._polylineOptionsAttributes.indexOf(s)).forEach(s=>e[s]=t[s].currentValue),this._polylineManager.setPolylineOptions(this,e)}getPath(){return this._polylineManager.getPath(this)}_init(){this._polylineManager.addPolyline(this),this._polylineAddedToManager=!0,this._addEventListeners()}_addEventListeners(){[{name:"click",handler:e=>this.lineClick.emit(e)},{name:"dblclick",handler:e=>this.lineDblClick.emit(e)},{name:"drag",handler:e=>this.lineDrag.emit(e)},{name:"dragend",handler:e=>this.lineDragEnd.emit(e)},{name:"dragstart",handler:e=>this.lineDragStart.emit(e)},{name:"mousedown",handler:e=>this.lineMouseDown.emit(e)},{name:"mousemove",handler:e=>this.lineMouseMove.emit(e)},{name:"mouseout",handler:e=>this.lineMouseOut.emit(e)},{name:"mouseover",handler:e=>this.lineMouseOver.emit(e)},{name:"mouseup",handler:e=>this.lineMouseUp.emit(e)},{name:"rightclick",handler:e=>this.lineRightClick.emit(e)}].forEach(e=>{const i=this._polylineManager.createEventObservable(e.name,this).subscribe(e.handler);this._subscriptions.push(i)}),this._polylineManager.createPathEventObservable(this).then(e=>{const i=e.subscribe(s=>this.polyPathChange.emit(s));this._subscriptions.push(i)})}_getPoints(){return this.points?this.points.toArray():[]}_getIcons(){return this.iconSequences?this.iconSequences.toArray():[]}id(){return this._id}ngOnDestroy(){this._polylineManager.deletePolyline(this),this._subscriptions.forEach(t=>t.unsubscribe())}};var zee;Us.\u0275fac=function(t){return new(t||Us)(g(Jh))},Us.\u0275dir=R({type:Us,selectors:[["agm-polyline"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,ep,4),Ce(i,Nee,4)),2&t){let s;U(s=W())&&(e.points=s),U(s=W())&&(e.iconSequences=s)}},inputs:{clickable:"clickable",draggable:["polylineDraggable","draggable"],editable:"editable",geodesic:"geodesic",visible:"visible",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",strokeWeight:"strokeWeight",zIndex:"zIndex"},outputs:{lineClick:"lineClick",lineDblClick:"lineDblClick",lineDrag:"lineDrag",lineDragEnd:"lineDragEnd",lineDragStart:"lineDragStart",lineMouseDown:"lineMouseDown",lineMouseMove:"lineMouseMove",lineMouseOut:"lineMouseOut",lineMouseOver:"lineMouseOver",lineMouseUp:"lineMouseUp",lineRightClick:"lineRightClick",polyPathChange:"polyPathChange"},features:[st]}),Us._polylineOptionsAttributes=["draggable","editable","visible","geodesic","strokeColor","strokeOpacity","strokeWeight","zIndex"],Us.ctorParameters=()=>[{type:Jh}],ge([p(),me("design:type",Object)],Us.prototype,"clickable",void 0),ge([p("polylineDraggable"),me("design:type",Object)],Us.prototype,"draggable",void 0),ge([p(),me("design:type",Object)],Us.prototype,"editable",void 0),ge([p(),me("design:type",Object)],Us.prototype,"geodesic",void 0),ge([p(),me("design:type",String)],Us.prototype,"strokeColor",void 0),ge([p(),me("design:type",Number)],Us.prototype,"strokeOpacity",void 0),ge([p(),me("design:type",Number)],Us.prototype,"strokeWeight",void 0),ge([p(),me("design:type",Object)],Us.prototype,"visible",void 0),ge([p(),me("design:type",Number)],Us.prototype,"zIndex",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineClick",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineDblClick",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineDrag",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineDragEnd",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineDragStart",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineMouseDown",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineMouseMove",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineMouseOut",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineMouseOver",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineMouseUp",void 0),ge([Q(),me("design:type",S)],Us.prototype,"lineRightClick",void 0),ge([Q(),me("design:type",Object)],Us.prototype,"polyPathChange",void 0),ge([fi(ep),me("design:type",wt)],Us.prototype,"points",void 0),ge([fi(Nee),me("design:type",wt)],Us.prototype,"iconSequences",void 0),Us=Vee=ge([me("design:paramtypes",[Jh])],Us);let ms=zee=class{constructor(t){this._manager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.boundsChange=new S,this.rectangleClick=new S,this.rectangleDblClick=new S,this.drag=new S,this.dragEnd=new S,this.dragStart=new S,this.mouseDown=new S,this.mouseMove=new S,this.mouseOut=new S,this.mouseOver=new S,this.mouseUp=new S,this.rightClick=new S,this._rectangleAddedToManager=!1,this._eventSubscriptions=[]}ngOnInit(){this._manager.addRectangle(this),this._rectangleAddedToManager=!0,this._registerEventListeners()}ngOnChanges(t){!this._rectangleAddedToManager||((t.north||t.east||t.south||t.west)&&this._manager.setBounds(this),t.editable&&this._manager.setEditable(this),t.draggable&&this._manager.setDraggable(this),t.visible&&this._manager.setVisible(this),this._updateRectangleOptionsChanges(t))}_updateRectangleOptionsChanges(t){let e={},i=Object.keys(t).filter(s=>-1!==zee._mapOptions.indexOf(s));i.forEach(s=>{e[s]=t[s].currentValue}),i.length>0&&this._manager.setOptions(this,e)}_registerEventListeners(){let t=new Map;t.set("bounds_changed",this.boundsChange),t.set("click",this.rectangleClick),t.set("dblclick",this.rectangleDblClick),t.set("drag",this.drag),t.set("dragend",this.dragEnd),t.set("dragStart",this.dragStart),t.set("mousedown",this.mouseDown),t.set("mousemove",this.mouseMove),t.set("mouseout",this.mouseOut),t.set("mouseover",this.mouseOver),t.set("mouseup",this.mouseUp),t.set("rightclick",this.rightClick),t.forEach((e,i)=>{this._eventSubscriptions.push(this._manager.createEventObservable(i,this).subscribe(s=>{switch(i){case"bounds_changed":this._manager.getBounds(this).then(o=>e.emit({north:o.getNorthEast().lat(),east:o.getNorthEast().lng(),south:o.getSouthWest().lat(),west:o.getSouthWest().lng()}));break;default:e.emit({coords:{lat:s.latLng.lat(),lng:s.latLng.lng()}})}}))})}ngOnDestroy(){this._eventSubscriptions.forEach(function(t){t.unsubscribe()}),this._eventSubscriptions=null,this._manager.removeRectangle(this)}getBounds(){return this._manager.getBounds(this)}};ms.\u0275fac=function(t){return new(t||ms)(g(p8))},ms.\u0275dir=R({type:ms,selectors:[["agm-rectangle"]],inputs:{clickable:"clickable",draggable:["rectangleDraggable","draggable"],editable:"editable",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",north:"north",east:"east",south:"south",west:"west",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",zIndex:"zIndex"},outputs:{boundsChange:"boundsChange",rectangleClick:"rectangleClick",rectangleDblClick:"rectangleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",rightClick:"rightClick"},features:[st]}),ms._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],ms.ctorParameters=()=>[{type:p8}],ge([p(),me("design:type",Number)],ms.prototype,"north",void 0),ge([p(),me("design:type",Number)],ms.prototype,"east",void 0),ge([p(),me("design:type",Number)],ms.prototype,"south",void 0),ge([p(),me("design:type",Number)],ms.prototype,"west",void 0),ge([p(),me("design:type",Object)],ms.prototype,"clickable",void 0),ge([p("rectangleDraggable"),me("design:type",Object)],ms.prototype,"draggable",void 0),ge([p(),me("design:type",Object)],ms.prototype,"editable",void 0),ge([p(),me("design:type",String)],ms.prototype,"fillColor",void 0),ge([p(),me("design:type",Number)],ms.prototype,"fillOpacity",void 0),ge([p(),me("design:type",String)],ms.prototype,"strokeColor",void 0),ge([p(),me("design:type",Number)],ms.prototype,"strokeOpacity",void 0),ge([p(),me("design:type",String)],ms.prototype,"strokePosition",void 0),ge([p(),me("design:type",Object)],ms.prototype,"strokeWeight",void 0),ge([p(),me("design:type",Object)],ms.prototype,"visible",void 0),ge([p(),me("design:type",Number)],ms.prototype,"zIndex",void 0),ge([Q(),me("design:type",S)],ms.prototype,"boundsChange",void 0),ge([Q(),me("design:type",S)],ms.prototype,"rectangleClick",void 0),ge([Q(),me("design:type",S)],ms.prototype,"rectangleDblClick",void 0),ge([Q(),me("design:type",S)],ms.prototype,"drag",void 0),ge([Q(),me("design:type",S)],ms.prototype,"dragEnd",void 0),ge([Q(),me("design:type",S)],ms.prototype,"dragStart",void 0),ge([Q(),me("design:type",S)],ms.prototype,"mouseDown",void 0),ge([Q(),me("design:type",S)],ms.prototype,"mouseMove",void 0),ge([Q(),me("design:type",S)],ms.prototype,"mouseOut",void 0),ge([Q(),me("design:type",S)],ms.prototype,"mouseOver",void 0),ge([Q(),me("design:type",S)],ms.prototype,"mouseUp",void 0),ge([Q(),me("design:type",S)],ms.prototype,"rightClick",void 0),ms=zee=ge([me("design:paramtypes",[p8])],ms);var f8=(()=>(function(n){n.ERROR="ERROR",n.INVALID_REQUEST="INVALID_REQUEST",n.OK="OK",n.OVER_QUERY_LIMIT="OVER_QUERY_LIMIT",n.REQUEST_DENIED="REQUEST_DENIED",n.UNKNOWN_ERROR="UNKNOWN_ERROR",n.ZERO_RESULTS="ZERO_RESULTS"}(f8||(f8={})),f8))();let _m=class{constructor(t){const e=new an(i=>{t.load().then(()=>i.next())}).pipe(xe(()=>this._createGeocoder()),DR(new GT(1)));e.connect(),this.geocoder$=e}geocode(t){return this.geocoder$.pipe(ls(e=>this._getGoogleResults(e,t)))}_getGoogleResults(t,e){return mFe(t.geocode)(e).pipe(ls(([s,o])=>o===f8.OK?Vt(s):rC(o)))}_createGeocoder(){return new google.maps.Geocoder}};_m.\u0275fac=function(t){return new(t||_m)(V(d_))},_m.\u0275prov=ue({token:_m,factory:function(n){return _m.\u0275fac(n)},providedIn:"root"}),_m.ngInjectableDef=ue({factory:function(){return new _m(V(d_))},token:_m,providedIn:"root"}),_m=ge([me("design:paramtypes",[d_])],_m);class Hee{getNativeWindow(){return window}}class Gee{getNativeDocument(){return document}}const c9t=[Hee,Gee];var Uw=(()=>(function(n){n[n.HTTP=1]="HTTP",n[n.HTTPS=2]="HTTPS",n[n.AUTO=3]="AUTO"}(Uw||(Uw={})),Uw))();const jee=new ot("angular-google-maps LAZY_MAPS_API_CONFIG");let d9t=(()=>{let n=class extends d_{constructor(e=null,i,s,o){super(),this.localeId=o,this._SCRIPT_ID="agmGoogleMapsApiScript",this.callbackName="agmLazyMapsAPILoader",this._config=e||{},this._windowRef=i,this._documentRef=s}load(){const e=this._windowRef.getNativeWindow();if(e.google&&e.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;const i=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(i)return this._assignScriptLoadingPromise(i),this._scriptLoadingPromise;const s=this._documentRef.getNativeDocument().createElement("script");return s.type="text/javascript",s.async=!0,s.defer=!0,s.id=this._SCRIPT_ID,s.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(s),this._documentRef.getNativeDocument().body.appendChild(s),this._scriptLoadingPromise}_assignScriptLoadingPromise(e){this._scriptLoadingPromise=new Promise((i,s)=>{this._windowRef.getNativeWindow()[this.callbackName]=()=>{i()},e.onerror=o=>{s(o)}})}_getScriptSrc(e){let s;switch(this._config&&this._config.protocol||Uw.HTTPS){case Uw.AUTO:s="";break;case Uw.HTTP:s="http:";break;case Uw.HTTPS:s="https:"}const r={v:this._config.apiVersion||"quarterly",callback:e,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||"en-US"!==this.localeId?this.localeId:null};return`${s}//${this._config.hostAndPath||"maps.googleapis.com/maps/api/js"}?${Object.keys(r).filter(l=>null!=r[l]).filter(l=>!Array.isArray(r[l])||Array.isArray(r[l])&&r[l].length>0).map(l=>{let c=r[l];return Array.isArray(c)?{key:l,value:c.join(",")}:{key:l,value:r[l]}}).map(l=>`${l.key}=${l.value}`).join("&")}`}};return n.\u0275fac=function(e){return new(e||n)(V(jee,8),V(Hee),V(Gee),V(ra))},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n=ge([yO(0,gt()),yO(0,Rn(jee)),yO(3,Rn(ra)),me("design:paramtypes",[Object,Hee,Gee,String])],n),n})();var _Fe;let kM=_Fe=class{static forRoot(t){return{ngModule:_Fe,providers:[...c9t,{provide:d_,useClass:d9t},{provide:jee,useValue:t}]}}};kM.\u0275fac=function(t){return new(t||kM)},kM.\u0275mod=We({type:kM}),kM.\u0275inj=Ve({});const vFe=new Set;let DM,bFe=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):h9t}matchMedia(e){return this._platform.WEBKIT&&function(n){if(!vFe.has(n))try{DM||(DM=document.createElement("style"),DM.setAttribute("type","text/css"),document.head.appendChild(DM)),DM.sheet&&(DM.sheet.insertRule(`@media ${n} {.fx-query-test{ }}`,0),vFe.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(V(Qi))},n.\u0275prov=ue({factory:function(){return new n(V(Qi))},token:n,providedIn:"root"}),n})();function h9t(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let CFe=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Z}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return xFe(kN(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let o=nN(xFe(kN(e)).map(r=>this._registerQuery(r).observable));return o=sN(o.pipe(jn(1)),o.pipe(UI(1),cg(0))),o.pipe(xe(r=>{const a={matches:!1,breakpoints:{}};return r.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new an(r=>{const a=l=>this._zone.run(()=>r.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe($o(i),xe(({matches:r})=>({query:e,matches:r})),et(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(V(bFe),V(ce))},n.\u0275prov=ue({factory:function(){return new n(V(bFe),V(ce))},token:n,providedIn:"root"}),n})();function xFe(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const _f_Small="(min-width: 600px) and (max-width: 959.98px)",_f_Medium="(min-width: 960px) and (max-width: 1279.98px)",_f_Large="(min-width: 1280px) and (max-width: 1919.98px)",p9t={tooltipState:fc("state",[Tr("initial, void, hidden",zt({opacity:0,transform:"scale(0)"})),Tr("visible",zt({transform:"scale(1)"})),Go("* => visible",Xi("200ms cubic-bezier(0, 0, 0.2, 1)",Q9e([zt({opacity:0,transform:"scale(0)",offset:0}),zt({opacity:.5,transform:"scale(0.99)",offset:.5}),zt({opacity:1,transform:"scale(1)",offset:1})]))),Go("* => hidden",Xi("100ms cubic-bezier(0, 0, 0.2, 1)",zt({opacity:0})))])},wFe="tooltip-panel",SFe=yv({passive:!0}),TFe=new ot("mat-tooltip-scroll-strategy"),y9t={provide:TFe,deps:[Oh],useFactory:function(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},_9t=new ot("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let b9t=(()=>{class n{constructor(e,i,s,o,r,a,l,c,d,u,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=o,this._ngZone=r,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Z,this._handleKeydown=m=>{this._isTooltipVisible()&&27===m.keyCode&&!Rd(m)&&(m.preventDefault(),m.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=d,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(et(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),r.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Tn(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(et(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,SFe)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new BN(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(et(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(et(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${wFe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(et(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(et(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,s=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),o.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),o.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i||"below"==i?s={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={originX:"end",originY:"center"});const{x:o,y:r}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:o,originY:r}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i?s={overlayX:"center",overlayY:"bottom"}:"below"==i?s={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:o,y:r}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:o,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(jn(1),et(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:s,originY:o}=e;let r;if(r="center"===i?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===i&&"top"===o?"above":"below",r!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${wFe}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,SFe)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,s=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){return new(e||n)(g(Oh),g($),g(bv),g(Gt),g(ce),g(Qi),g(pfe),g(Wc),g(void 0),g(nr),g(void 0),g($t))},n.\u0275dir=R({type:n,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),kFe=(()=>{class n extends b9t{constructor(e,i,s,o,r,a,l,c,d,u,h,f){super(e,i,s,o,r,a,l,c,d,u,h,f),this._tooltipComponent=x9t}}return n.\u0275fac=function(e){return new(e||n)(g(Oh),g($),g(bv),g(Gt),g(ce),g(Qi),g(pfe),g(Wc),g(TFe),g(nr,8),g(_9t,8),g($t))},n.\u0275dir=R({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[N]}),n})(),C9t=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Z}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(g(Be))},n.\u0275dir=R({type:n}),n})(),x9t=(()=>{class n extends C9t{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(g(Be),g(CFe))},n.\u0275cmp=K({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&yt("zoom","visible"===i._visibility?1:null)},features:[N],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(y(0,"div",0),se("@state.start",function(){return i._animationStart()})("@state.done",function(o){return i._animationDone(o)}),gi(1,"async"),H(2),_()),2&e){let s;he("mat-tooltip-handset",null==(s=Mi(1,5,i._isHandset))?null:s.matches),v("ngClass",i.tooltipClass)("@state",i._visibility),b(2),un(i.message)}},directives:[Un],pipes:[Hl],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[p9t.tooltipState]},changeDetection:0}),n})(),w9t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[y9t],imports:[[Efe,Ut,GN,vi],vi,EC]}),n})(),S9t=0;const $ee=new ot("CdkAccordion");let T9t=(()=>{class n{constructor(){this._stateChanges=new Z,this._openCloseAllActions=new Z,this.id="cdk-accordion-"+S9t++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Tn(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[we([{provide:$ee,useExisting:n}]),st]}),n})(),k9t=0,M9t=(()=>{class n{constructor(e,i,s){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=s,this._openCloseAllSubscription=Je.EMPTY,this.closed=new S,this.opened=new S,this.destroyed=new S,this.expandedChange=new S,this.id="cdk-accordion-child-"+k9t++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=s.listen((o,r)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===r&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Tn(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Tn(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(g($ee,12),g(Be),g(Xfe))},n.\u0275dir=R({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[we([{provide:$ee,useValue:void 0}])]}),n})(),E9t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})();const I9t=["body"];function A9t(n,t){}const F9t=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],O9t=["mat-expansion-panel-header","*","mat-action-row"];function R9t(n,t){1&n&&P(0,"span",2),2&n&&v("@indicatorRotate",I()._getExpandedState())}const P9t=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],L9t=["mat-panel-title","mat-panel-description","*"],Uee=new ot("MAT_ACCORDION"),DFe="225ms cubic-bezier(0.4,0.0,0.2,1)",MFe={indicatorRotate:fc("indicatorRotate",[Tr("collapsed, void",zt({transform:"rotate(0deg)"})),Tr("expanded",zt({transform:"rotate(180deg)"})),Go("expanded <=> collapsed, void => collapsed",Xi(DFe))]),bodyExpansion:fc("bodyExpansion",[Tr("collapsed, void",zt({height:"0px",visibility:"hidden"})),Tr("expanded",zt({height:"*",visibility:"visible"})),Go("expanded <=> collapsed, void => collapsed",Xi(DFe))])};let N9t=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(g(ve))},n.\u0275dir=R({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),B9t=0;const EFe=new ot("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Bb=(()=>{class n extends M9t{constructor(e,i,s,o,r,a,l){super(e,i,s),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new S,this.afterCollapse=new S,this._inputChanges=new Z,this._headerId="mat-expansion-panel-header-"+B9t++,this._bodyAnimationDone=new Z,this.accordion=e,this._document=r,this._bodyAnimationDone.pipe(ry((c,d)=>c.fromState===d.fromState&&c.toState===d.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Tn(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe($o(null),dt(()=>this.expanded&&!this._portal),jn(1)).subscribe(()=>{this._portal=new _v(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(g(Uee,12),g(Be),g(Xfe),g(Gt),g($t),g(jo,8),g(EFe,8))},n.\u0275cmp=K({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,N9t,5),2&e){let o;U(o=W())&&(i._lazyContent=o.first)}},viewQuery:function(e,i){if(1&e&&Ae(I9t,5),2&e){let s;U(s=W())&&(i._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&he("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[we([{provide:Uee,useValue:void 0}]),N,st],ngContentSelectors:O9t,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(Xt(F9t),mt(0),y(1,"div",0,1),se("@bodyExpansion.done",function(o){return i._bodyAnimationDone.next(o)}),y(3,"div",2),mt(4,1),A(5,A9t,0,0,"ng-template",3),_(),mt(6,2),_()),2&e&&(b(1),v("@bodyExpansion",i._getExpandedState())("id",i.id),fe("aria-labelledby",i._headerId),b(4),v("cdkPortalOutlet",i._portal))},directives:[vv],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[MFe.bodyExpansion]},changeDetection:0}),n})(),z9t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),n})();class H9t{}const G9t=XI(H9t);let Vb=(()=>{class n extends G9t{constructor(e,i,s,o,r,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=s,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=Je.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(dt(d=>!(!d.hideToggle&&!d.togglePosition))):Op;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=ii(e.opened,e.closed,c,e._inputChanges.pipe(dt(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(dt(()=>e._containsFocus())).subscribe(()=>s.focusVia(i,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Rd(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(g(Bb,1),g($),g(Wc),g(Be),g(EFe,8),g(jo,8),Hc("tabindex"))},n.\u0275cmp=K({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&se("click",function(){return i._toggle()})("keydown",function(o){return i._keydown(o)}),2&e&&(fe("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),yt("height",i._getHeaderHeight()),he("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[N],ngContentSelectors:L9t,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(Xt(P9t),y(0,"span",0),mt(1),mt(2,1),mt(3,2),_(),A(4,R9t,1,1,"span",1)),2&e&&(b(4),v("ngIf",i._showToggle()))},directives:[pt],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[MFe.indicatorRotate]},changeDetection:0}),n})(),IFe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),n})(),bO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),g8=(()=>{class n extends T9t{constructor(){super(...arguments),this._ownHeaders=new wt,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Tn(e)}ngAfterContentInit(){this._headers.changes.pipe($o(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ON(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,i,s){if(1&e&&Ce(s,Vb,5),2&e){let o;U(o=W())&&(i._headers=o)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,i){2&e&&he("mat-accordion-multi",i.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[we([{provide:Uee,useExisting:n}]),N]}),n})(),j9t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,vi,E9t,VN]]}),n})(),Y9t=(()=>{class n extends kr{constructor(e,i,s,o,r,a,l){super(e,null,i,s),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Un(o,r,e,a)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(tr),g(Dr),g(Ed),g(Zf),g(Ie),g(Un,10))},n.\u0275dir=R({type:n,inputs:{klass:["class","klass"]},features:[N]}),n})();const K9t=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let AFe=(()=>{class n extends Y9t{constructor(){super(...arguments),this.inputs=K9t}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[N]}),n})();class tWt{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function FFe(n){let t=typeof n;return"object"===t?n.constructor===Array?"array":n.constructor===Set?"set":"object":t}function RFe(n){const[t,...e]=n.split(":");return new tWt(t,e.join(":"))}function PFe(n,t){return t.key&&(n[t.key]=t.value),n}let sWt=(()=>{class n extends kr{constructor(e,i,s,o,r,a,l,c,d){super(e,null,i,s),this.sanitizer=o,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new zo(e,r,a)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=c&&ng(d)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=s=>this.sanitizer.sanitize(ys.STYLE,s)||"";if(e)switch(FFe(e)){case"string":return NFe(function(n,t=";"){return String(n).trim().split(t).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return NFe(e,i);case"set":default:return function(n,t){let e=[];return"set"===FFe(n)?n.forEach(i=>e.push(i)):Object.keys(n).forEach(i=>{e.push(`${i}:${n[i]}`)}),function(n,t){return n.map(RFe).filter(i=>!!i).map(i=>(t&&(i.value=t(i.value)),i)).reduce(PFe,{})}(e,t)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(tr),g(Dr),g(ig),g(Zf),g(Ie),g(zo,10),g(CC),g(Xr))},n.\u0275dir=R({type:n,features:[N]}),n})();const oWt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let LFe=(()=>{class n extends sWt{constructor(){super(...arguments),this.inputs=oWt}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275dir=R({type:n,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[N]}),n})();function NFe(n,t){return n.map(RFe).filter(i=>!!i).map(i=>(t&&(i.value=t(i.value)),i)).reduce(PFe,{})}let BFe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[B$]]}),n})();const m8_ClimateChangeLayerLegend='\n You can get the metadata information from metadata information\n

Number of day at risk

\n Forecast of Number of "at risk" heat days in period.

\n

Number of day at high risk

\n Forecast of Number of "at high risk" heat days in period.

\n

Average Forecast Temperature

\n Forecast of Average aggregate temperature.

\n ',m8_HeatRiskLayerLegend="\n You can get the metadata information from metadata information

\n

Heat High %

\n Historically ranked average temperature, with heat high (%). Otherwise referred to as heat high percent.
\n This parameter is derived from average temperature by comparing each region to its own historical values. A region value of 0 means that region is the coldest in its history. Likewise, a region value of 1 means that region is the hottest in its history.

\n

Cold High %

\n Historically ranked average temperature, with cold high (%). Otherwise referred to as cold high percent.
\n This parameter is derived from average temperature by comparing each region to its own historical values. A region value of 0 means that region is the hottest in its history. Likewise, a region value of 1 means that region is the coldest in its history.

\n

Heat Vunerability Index

\n This parameter is derived by averaging the spatial rankings the relevant exposure, sensitivity, and adaptive capacity sub-indices.\n

\n

Heat Exposure Index

\n Exposure sub-index for heat vulnerability index.
\n The parameter is derived by averaging the spatial rankings of all relevant exposure parameters for a given spatial and temporal resolution. In this calculation, the included parameters are weighted based on their correlation with all-cause mortality.

\n

Heat Sensitivity Index

\n Sensitivity sub-index for heat vulnerability index.
\nThe parameter is derived by averaging the spatial rankings of all relevant sensitivity parameters for a given spatial and temporal resolution. In this calculation, the included parameters are weighted based on their correlation with all-cause mortality.

\n

Heat Adaptive Index

\n Adaptive capacity sub-index for heat vulnerability index.
\nThe parameter is derived by averaging the spatial rankings of all relevant adaptive parameters for a given spatial and temporal resolution. In this calculation, the included parameters are weighted based on their correlation with all-cause mortality.

\n

Cold Vulnerability Index

\n This parameter is derived by averaging the spatial rankings the relevant exposure, sensitivity, and adaptive capacity sub-indices.

\n

Cold Exposure Index

\n Exposure sub-index for cold vulnerability index.
\nThe parameter is derived by averaging the spatial rankings of all relevant exposure parameters for a given spatial and temporal resolution. In this calculation, the included parameters are weighted based on their correlation with all-cause mortality.

\n

Cold Sensitivity Index

\n Sensitivity sub-index for cold vulnerability index.
\nThe parameter is derived by averaging the spatial rankings of all relevant sensitivity parameters for a given spatial and temporal resolution. In this calculation, the included parameters are weighted based on their correlation with all-cause mortality.

\n

Cold Adaptive Index

\n Adaptive capacity sub-index for cold vulnerability index.
\nThe parameter is derived by averaging the spatial rankings of all relevant adaptive parameters for a given spatial and temporal resolution. In this calculation, the included parameters are weighted based on their correlation with all-cause mortality.\n\n ";function rWt(n,t){}class qee{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const aWt={dialogContainer:fc("dialogContainer",[Tr("void, exit",zt({opacity:0,transform:"scale(0.7)"})),Tr("enter",zt({transform:"none"})),Go("* => enter",Xi("150ms cubic-bezier(0, 0, 0.2, 1)",zt({transform:"none",opacity:1}))),Go("* => void, * => exit",Xi("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",zt({opacity:0})))])};let lWt=(()=>{class n extends cU{constructor(e,i,s,o,r,a){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=s,this._config=r,this._focusMonitor=a,this._animationStateChanged=new S,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(l)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=o}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=MN(),s=this._elementRef.nativeElement;(!i||i===this._document.body||i===s||s.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=MN())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=MN();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(X$),g(Be),g($t,8),g(qee),g(Wc))},n.\u0275dir=R({type:n,viewQuery:function(e,i){if(1&e&&Ae(vv,7),2&e){let s;U(s=W())&&(i._portalOutlet=s.first)}},features:[N]}),n})(),cWt=(()=>{class n extends lWt{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275cmp=K({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&TP("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Kf("id",i._id),fe("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),XE("@dialogContainer",i._state))},features:[N],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&A(0,rWt,0,0,"ng-template",0)},directives:[vv],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[aWt.dialogContainer]}}),n})(),dWt=0;class y8{constructor(t,e,i="mat-dialog-"+dWt++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Z,this._afterClosed=new Z,this._beforeClosed=new Z,this._state=0,e._id=i,e._animationStateChanged.pipe(dt(s=>"opened"===s.state),jn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(dt(s=>"closed"===s.state),jn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(dt(s=>27===s.keyCode&&!this.disableClose&&!Rd(s))).subscribe(s=>{s.preventDefault(),Xee(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Xee(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(dt(e=>"closing"===e.state),jn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Xee(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const Yee=new ot("MatDialogData"),uWt=new ot("mat-dialog-default-options"),VFe=new ot("mat-dialog-scroll-strategy"),pWt={provide:VFe,deps:[Oh],useFactory:function(n){return()=>n.scrollStrategies.block()}};let fWt=(()=>{class n{constructor(e,i,s,o,r,a,l,c,d){this._overlay=e,this._injector=i,this._defaultOptions=s,this._parentDialog=o,this._overlayContainer=r,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z,this._afterOpenedAtThisLevel=new Z,this._ariaHiddenElements=new Map,this.afterAllClosed=oN(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe($o(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){(i=function(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new qee)).id&&this.getDialogById(i.id);const s=this._createOverlay(i),o=this._attachDialogContainer(s,i),r=this._attachDialogContent(e,o,s,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),o._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new HN({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const o=Jt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:qee,useValue:i}]}),r=new BN(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return e.attach(r).instance}_attachDialogContent(e,i,s,o){const r=new this._dialogRefConstructor(s,i,o.id);if(e instanceof ve)i.attachTemplatePortal(new _v(e,null,{$implicit:o.data,dialogRef:r}));else{const a=this._createInjector(o,r,i),l=i.attachComponentPortal(new BN(e,o.viewContainerRef,a));r.componentInstance=l.instance}return r.updateSize(o.width,o.height).updatePosition(o.position),r}_createInjector(e,i,s){const o=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!o||!o.get(nr,null,Hn.Optional))&&r.push({provide:nr,useValue:{value:e.direction,change:Vt()}}),Jt.create({parent:o||this._injector,providers:r})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,o)=>{s?o.setAttribute("aria-hidden",s):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let s=i.length-1;s>-1;s--){let o=i[s];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){return new(e||n)(g(Oh),g(Jt),g(void 0),g(void 0),g(KI),g(void 0),g(J1),g(J1),g(ot))},n.\u0275dir=R({type:n}),n})(),CO=(()=>{class n extends fWt{constructor(e,i,s,o,r,a,l){super(e,i,o,a,l,r,y8,cWt,Yee)}}return n.\u0275fac=function(e){return new(e||n)(V(Oh),V(Jt),V(HT,8),V(uWt,8),V(VFe),V(n,12),V(KI))},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),yWt=(()=>{class n{constructor(e,i,s){this.dialogRef=e,this._elementRef=i,this._dialog=s,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){Xee(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return n.\u0275fac=function(e){return new(e||n)(g(y8,8),g($),g(CO))},n.\u0275dir=R({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,i){1&e&&se("click",function(o){return i._onButtonClick(o)}),2&e&&fe("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[st]}),n})(),_Wt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),vWt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=R({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})();let bWt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({providers:[CO,pWt],imports:[[GN,VN,vi],vi]}),n})();function CWt(n,t){1&n&&(y(0,"button",5),H(1,"Cancel"),_()),2&n&&v("mat-dialog-close",!1)}let _8=(()=>{class n{constructor(e){this.data=e}}return n.\u0275fac=function(e){return new(e||n)(g(Yee))},n.\u0275cmp=K({type:n,selectors:[["app-alert"]],decls:8,vars:4,consts:[["mat-dialog-content",""],[3,"innerHtml"],["mat-dialog-actions",""],["mat-flat-button","",3,"mat-dialog-close",4,"ngIf"],["mat-stroked-button","","color","third",3,"mat-dialog-close"],["mat-flat-button","",3,"mat-dialog-close"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"p"),H(2),_(),P(3,"div",1),_(),y(4,"div",2),A(5,CWt,2,1,"button",3),y(6,"button",4),H(7,"OK"),_(),_()),2&e&&(b(2),_t(" ",i.data.message," "),b(1),v("innerHtml",i.data.htmlContent,cP),b(2),v("ngIf",!0===i.data.showCancelButton),b(1),v("mat-dialog-close",!0))},directives:[_Wt,vWt,pt,Bd,yWt],styles:["[_nghost-%COMP%]{background:red}"]}),n})(),xO=(()=>{class n{constructor(e,i){this.dialog=e,this.dom=i}showError(e){this.dialog.open(_8,{data:{message:e}})}showMessage(e){this.dialog.open(_8,{data:{message:e}})}showConfirmation(e,i){return this.dialog.open(_8,{data:{message:e,showCancelButton:i}})}showHtmlMessage(e){const i=this.dom.sanitize(ys.HTML,e);this.dialog.open(_8,{data:{htmlContent:i},panelClass:"styled-dialog",autoFocus:!1})}}return n.\u0275fac=function(e){return new(e||n)(V(CO),V(ig))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xWt(n,t){if(1&n&&(y(0,"mat-option",16),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function wWt(n,t){if(1&n&&(zc(),y(0,"svg",19),P(1,"circle",20),_()),2&n){const e=I().$implicit;b(1),fe("fill",e.colorCode)}}function SWt(n,t){if(1&n&&(y(0,"span",21),H(1),_()),2&n){const e=I().$implicit;b(1),ty(" ",e.min," to ",e.max," ")}}function TWt(n,t){if(1&n&&(y(0,"div",12),A(1,wWt,2,1,"svg",17),A(2,SWt,2,2,"span",18),_()),2&n){const e=t.$implicit;b(1),v("ngIf",null!=e.min),b(1),v("ngIf",null!=e.min)}}function kWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Heat factor Ranking : ",e.selectedSA3TempFactor.cspat_ehfavg,""),b(2),_t(" Heatwave days : ",e.selectedSA3TempFactor.nhw_ehf,""),b(2),_t(" Severe Heatwave days: ",e.selectedSA3TempFactor.nshw_ehf,""),b(2),_t(" Sum of Heat factor %: ",e.selectedSA3TempFactor.rspat_ehfavg,"")}}function DWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Cold factor Ranking : ",e.selectedSA3TempFactor.cspat_ecfavg,""),b(2),_t(" Coldwave days : ",e.selectedSA3TempFactor.ncw_ecf,""),b(2),_t(" Severe Coldwave days: ",e.selectedSA3TempFactor.nscw_ecf,""),b(2),_t(" Sum of Cold factor %: ",e.selectedSA3TempFactor.rspat_ecfavg,"")}}function MWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Heat Vulnerability Index : ",e.selectedSA3TempFactor.heat_vul_index,""),b(2),_t(" Heat Exposure Index : ",e.selectedSA3TempFactor.e_heat,""),b(2),_t(" Heat Sensitivity Index : ",e.selectedSA3TempFactor.s_heat,""),b(2),_t(" Heat Adaptive Index : ",e.selectedSA3TempFactor.a_heat,"")}}function EWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Cold Vulnerability Index : ",e.selectedSA3TempFactor.cold_vul_index,""),b(2),_t(" Cold Exposure Index : ",e.selectedSA3TempFactor.e_cold,""),b(2),_t(" Cold Sensitivity Index : ",e.selectedSA3TempFactor.s_cold,""),b(2),_t(" Cold Adaptive Index : ",e.selectedSA3TempFactor.a_cold,"")}}function IWt(n,t){if(1&n&&(y(0,"mat-expansion-panel",1),y(1,"mat-expansion-panel-header",2),y(2,"mat-panel-title",3),y(3,"div",4),y(4,"span",5),H(5),_(),_(),_(),_(),y(6,"div",22),y(7,"div",23),A(8,kWt,9,4,"div",24),gi(9,"async"),A(10,DWt,9,4,"div",24),gi(11,"async"),A(12,MWt,9,4,"div",24),gi(13,"async"),A(14,EWt,9,4,"div",24),gi(15,"async"),_(),_(),_()),2&n){const e=I();b(1),v("collapsedHeight","24px")("expandedHeight","24px"),b(4),_t("SA3 Region : ",e.selectedSA3TempFactor.name,""),b(3),v("ngIf","rhist_theatavg"===Mi(9,7,e.sa3AnalysisIndicator$)),b(2),v("ngIf","rhist_tcoldavg"===Mi(11,9,e.sa3AnalysisIndicator$)),b(2),v("ngIf","heat_vul_index"===Mi(13,11,e.sa3AnalysisIndicator$)),b(2),v("ngIf","cold_vul_index"===Mi(15,13,e.sa3AnalysisIndicator$))}}class zb{constructor(t,e,i){var s=this;this.store=t,this.heatRiskService=e,this.alertService=i,this.destroyed$=new Z,this.indicatorList=_k,this.selectedSA3Code16$.pipe(lt(function(){var o=Xe(function*(r){let a=s.store.selectSnapshot(l=>l.heatriskassessment.analysisResult);if(a.sa3AnalysisIndicator&&a.sa3FilterResult&&a.sa3FilterResult.length>0&&r&&r.length>0){let l=a.selectedSA3Code16[0];s.selectedSA3TempFactor=a.sa3FilterResult.filter(c=>c.sa3_code16===l)[0]}});return function(r){return o.apply(this,arguments)}}()),et(this.destroyed$)).subscribe(),this.sa3AnalysisIndicator$.pipe(lt(o=>{this.chosenType=o}),et(this.destroyed$)).subscribe(),this.chosenType="rhist_theatavg"}ngOnInit(){return Xe(function*(){})()}chosenTypeChangeEvent(t){var e=this;return Xe(function*(){t.value&&e.chosenType&&e.heatRiskService.manageAnalysisIndicatorUpdate(e.chosenType)})()}onGenerateChosenIndicator(){var t=this;return Xe(function*(){yield t.store.dispatch(new Gn.SetSa3AnalysisIndicator(t.chosenType)).toPromise()})()}toggleLGALayerVisibility(){this.store.selectSnapshot(e=>e.map.layers.lgaLayer.isVisible)?this.store.dispatch(new hn.HideLGALayer):this.store.dispatch(new hn.ShowLGALayer)}toggleBomTmaxLayerVisibility(){this.store.selectSnapshot(e=>e.map.layers.bomTmaxLayer.isVisible)?this.store.dispatch(new hn.HideBomTmaxLayer):this.store.dispatch(new hn.ShowBomTmaxLayer)}toggleSA3LayerVisibility(){this.store.selectSnapshot(e=>e.map.layers.sa3Layer.isVisible)?this.store.dispatch(new hn.HideSA3Layer):this.store.dispatch(new hn.ShowSA3Layer)}showSA3Info(){this.alertService.showHtmlMessage("\n

SA3

\n The Earth Engine version of SA3 Areas \n ")}showLGAInfo(){this.alertService.showHtmlMessage("\n

LGA

\n The Earth Engine version of LGA Areas \n ")}showBomTmaxInfo(){this.alertService.showHtmlMessage("\n

BOM Temperature Max

\n The Earth Engine version of BOM Temperature max raster image\n ")}describeLegendInfo(){this.alertService.showHtmlMessage(m8_HeatRiskLayerLegend)}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}function AWt(n,t){if(1&n&&(y(0,"mat-option",16),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function FWt(n,t){if(1&n&&(zc(),y(0,"svg",19),P(1,"circle",20),_()),2&n){const e=I().$implicit;b(1),fe("fill",e.colorCode)}}function OWt(n,t){if(1&n&&(y(0,"span",21),H(1),_()),2&n){const e=I().$implicit;b(1),ty(" ",e.min," to ",e.max," ")}}function RWt(n,t){if(1&n&&(y(0,"div",12),A(1,FWt,2,1,"svg",17),A(2,OWt,2,2,"span",18),_()),2&n){const e=t.$implicit;b(1),v("ngIf",null!=e.min),b(1),v("ngIf",null!=e.min)}}function PWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Heat factor Ranking : ",e.selectedSA2TempFactor.cspat_ehfavg,""),b(2),_t(" Heatwave days : ",e.selectedSA2TempFactor.nhw_ehf,""),b(2),_t(" Severe Heatwave days: ",e.selectedSA2TempFactor.nshw_ehf,""),b(2),_t(" Sum of Heat factor %: ",e.selectedSA2TempFactor.rspat_ehfavg,"")}}function LWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Cold factor Ranking : ",e.selectedSA2TempFactor.cspat_ecfavg,""),b(2),_t(" Coldwave days : ",e.selectedSA2TempFactor.ncw_ecf,""),b(2),_t(" Severe Coldwave days: ",e.selectedSA2TempFactor.nscw_ecf,""),b(2),_t(" Sum of Cold factor %: ",e.selectedSA2TempFactor.rspat_ecfavg,"")}}function NWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Heat Vulnerability Index : ",e.selectedSA2TempFactor.heat_vul_index,""),b(2),_t(" Heat Exposure Index : ",e.selectedSA2TempFactor.e_heat,""),b(2),_t(" Heat Sensitivity Index : ",e.selectedSA2TempFactor.s_heat,""),b(2),_t(" Heat Adaptive Index : ",e.selectedSA2TempFactor.a_heat,"")}}function BWt(n,t){if(1&n&&(y(0,"div",11),H(1),P(2,"br"),H(3),P(4,"br"),H(5),P(6,"br"),H(7),P(8,"br"),_()),2&n){const e=I(2);b(1),_t(" Cold Vulnerability Index : ",e.selectedSA2TempFactor.cold_vul_index,""),b(2),_t(" Cold Exposure Index : ",e.selectedSA2TempFactor.e_cold,""),b(2),_t(" Cold Sensitivity Index : ",e.selectedSA2TempFactor.s_cold,""),b(2),_t(" Cold Adaptive Index : ",e.selectedSA2TempFactor.a_cold,"")}}function VWt(n,t){if(1&n&&(y(0,"mat-expansion-panel",1),y(1,"mat-expansion-panel-header",2),y(2,"mat-panel-title",3),y(3,"div",4),y(4,"span",5),H(5),_(),_(),_(),_(),y(6,"div",22),y(7,"div",23),A(8,PWt,9,4,"div",24),gi(9,"async"),A(10,LWt,9,4,"div",24),gi(11,"async"),A(12,NWt,9,4,"div",24),gi(13,"async"),A(14,BWt,9,4,"div",24),gi(15,"async"),_(),_(),_()),2&n){const e=I();b(1),v("collapsedHeight","24px")("expandedHeight","24px"),b(4),_t("SA3 Region : ",e.selectedSA2TempFactor.name,""),b(3),v("ngIf","rhist_theatavg"===Mi(9,7,e.sa2AnalysisIndicator$)),b(2),v("ngIf","rhist_tcoldavg"===Mi(11,9,e.sa2AnalysisIndicator$)),b(2),v("ngIf","heat_vul_index"===Mi(13,11,e.sa2AnalysisIndicator$)),b(2),v("ngIf","cold_vul_index"===Mi(15,13,e.sa2AnalysisIndicator$))}}zb.\u0275fac=function(t){return new(t||zb)(g(zi),g(Hv),g(xO))},zb.\u0275cmp=K({type:zb,selectors:[["app-map-layers-heatriskassessment"]],decls:24,vars:8,consts:[[1,"map-layer-container"],["hideToggle","","expanded","true"],[3,"collapsedHeight","expandedHeight"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","","fxLayoutAlign","start center"],[1,"button-group-title"],["fxLayout","column","fxLayoutGap","2px","fxFlexFill",""],["fxLayout","column","fxLayoutGap","2px"],["fxFlex","","appearance","outline"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","start center"],[2,"cursor","pointer",3,"click"],["fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["hideToggle","","expanded","true",4,"ngIf"],[3,"value"],["height","24","width","24","class","colour-legend",4,"ngIf"],["class","button-group-title-sub",4,"ngIf"],["height","24","width","24",1,"colour-legend"],["cx","12","cy","12","r","8","stroke","none"],[1,"button-group-title-sub"],["fxLayout","column","fxLayoutGap","2px","fxFlexFill","",1,"InfoText"],["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","2px"],["fxLayout","column","fxLayoutAlign","start start",4,"ngIf"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"mat-expansion-panel",1),y(2,"mat-expansion-panel-header",2),y(3,"mat-panel-title",3),y(4,"div",4),y(5,"span",5),H(6,"Filter"),_(),_(),_(),_(),y(7,"div",6),y(8,"div",7),y(9,"mat-form-field",8),y(10,"mat-label"),H(11,"Filter Indicator"),_(),y(12,"mat-select",9),se("ngModelChange",function(s){return e.chosenType=s})("selectionChange",function(s){return e.chosenTypeChangeEvent(s)}),A(13,xWt,2,2,"mat-option",10),_(),_(),_(),y(14,"div",11),y(15,"div",12),H(16,"Click\xa0"),y(17,"a",13),se("click",function(){return e.describeLegendInfo()}),y(18,"mat-icon"),H(19,"help"),_(),_(),H(20," for more information about legend"),_(),A(21,TWt,3,2,"div",14),gi(22,"async"),_(),_(),_(),A(23,IWt,16,15,"mat-expansion-panel",15),_()),2&t&&(b(2),v("collapsedHeight","24px")("expandedHeight","24px"),b(10),v("ngModel",e.chosenType),b(1),v("ngForOf",e.indicatorList),b(8),v("ngForOf",Mi(22,6,e.rankingList$)),b(2),v("ngIf",e.selectedSA3TempFactor))},directives:[Bb,Vb,bO,po,fo,ja,_u,wo,kg,Tg,iD,Xc,zp,Wn,gl,pt,DC],pipes:[Hl],styles:[".datepicker-highlight[_ngcontent-%COMP%]{padding:5px;border-radius:5px;background-color:#e6e6fa;margin-bottom:10px!important}"]}),nt([rn(n=>n.heatriskassessment.rankingList)],zb.prototype,"rankingList$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.sa3AnalysisIndicator)],zb.prototype,"sa3AnalysisIndicator$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA3Code16)],zb.prototype,"selectedSA3Code16$",void 0);class Hb{constructor(t,e,i){var s=this;this.store=t,this.heatRiskService=e,this.alertService=i,this.destroyed$=new Z,this.indicatorList=_k,this.selectedSA2Code16$.pipe(lt(function(){var o=Xe(function*(r){let a=s.store.selectSnapshot(l=>l.heatriskassessment.analysisResult);if(a.sa2AnalysisIndicator&&a.sa2FilterResult&&a.sa2FilterResult.length>0&&r&&r.length>0){let l=a.selectedSA2Code16[0];s.selectedSA2TempFactor=a.sa2FilterResult.filter(c=>c.sa2_main16===l)[0]}});return function(r){return o.apply(this,arguments)}}()),et(this.destroyed$)).subscribe(),this.sa2AnalysisIndicator$.pipe(lt(o=>{this.chosenType=o}),et(this.destroyed$)).subscribe(),this.chosenType="rhist_theatavg"}ngOnInit(){return Xe(function*(){})()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}chosenTypeChangeEvent(t){var e=this;return Xe(function*(){t.value&&e.chosenType&&e.heatRiskService.manageSA2AnalysisIndicatorUpdate(e.chosenType)})()}onGenerateChosenIndicator(){var t=this;return Xe(function*(){yield t.store.dispatch(new Gn.SetSa2AnalysisIndicator(t.chosenType)).toPromise()})()}toggleLGALayerVisibility(){this.store.selectSnapshot(e=>e.map.layers.lgaLayer.isVisible)?this.store.dispatch(new hn.HideLGALayer):this.store.dispatch(new hn.ShowLGALayer)}toggleBomTmaxLayerVisibility(){this.store.selectSnapshot(e=>e.map.layers.bomTmaxLayer.isVisible)?this.store.dispatch(new hn.HideBomTmaxLayer):this.store.dispatch(new hn.ShowBomTmaxLayer)}toggleSA3LayerVisibility(){this.store.selectSnapshot(e=>e.map.layers.sa3Layer.isVisible)?this.store.dispatch(new hn.HideSA3Layer):this.store.dispatch(new hn.ShowSA3Layer)}showSA3Info(){this.alertService.showHtmlMessage("\n

SA3

\n The Earth Engine version of SA3 Areas \n ")}showLGAInfo(){this.alertService.showHtmlMessage("\n

LGA

\n The Earth Engine version of LGA Areas \n ")}showBomTmaxInfo(){this.alertService.showHtmlMessage("\n

BOM Temperature Max

\n The Earth Engine version of BOM Temperature max raster image\n ")}describeLegendInfo(){this.alertService.showHtmlMessage(m8_HeatRiskLayerLegend)}}function zWt(n,t){if(1&n&&(y(0,"mat-option",13),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function HWt(n,t){if(1&n&&(y(0,"h4"),H(1),gi(2,"async"),_()),2&n){const e=I();b(1),_t(" Year: ",Mi(2,1,e.filter$).filterYear," ")}}function GWt(n,t){if(1&n&&(zc(),UR(),y(0,"span",17),H(1),_()),2&n){const e=I().$implicit;b(1),ty(" ",e.min," to ",e.max," ")}}function jWt(n,t){if(1&n&&(y(0,"div",9),zc(),y(1,"svg",14),P(2,"circle",15),_(),A(3,GWt,2,2,"span",16),_()),2&n){const e=t.$implicit;b(2),fe("fill",e.colorCode),b(1),v("ngIf",null!=e.min)}}Hb.\u0275fac=function(t){return new(t||Hb)(g(zi),g(Hv),g(xO))},Hb.\u0275cmp=K({type:Hb,selectors:[["app-map-layers-heatrisk-sa2"]],decls:24,vars:8,consts:[[1,"map-layer-container"],["hideToggle","","expanded","true"],[3,"collapsedHeight","expandedHeight"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","","fxLayoutAlign","start center"],[1,"button-group-title"],["fxLayout","column","fxLayoutGap","2px","fxFlexFill",""],["fxLayout","column","fxLayoutGap","2px"],["fxFlex","","appearance","outline"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","start center"],[2,"cursor","pointer",3,"click"],["fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["hideToggle","","expanded","true",4,"ngIf"],[3,"value"],["height","24","width","24","class","colour-legend",4,"ngIf"],["class","button-group-title-sub",4,"ngIf"],["height","24","width","24",1,"colour-legend"],["cx","12","cy","12","r","8","stroke","none"],[1,"button-group-title-sub"],["fxLayout","column","fxLayoutGap","2px","fxFlexFill","",1,"InfoText"],["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","2px"],["fxLayout","column","fxLayoutAlign","start start",4,"ngIf"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"mat-expansion-panel",1),y(2,"mat-expansion-panel-header",2),y(3,"mat-panel-title",3),y(4,"div",4),y(5,"span",5),H(6,"Filter"),_(),_(),_(),_(),y(7,"div",6),y(8,"div",7),y(9,"mat-form-field",8),y(10,"mat-label"),H(11,"Filter Indicator"),_(),y(12,"mat-select",9),se("ngModelChange",function(s){return e.chosenType=s})("selectionChange",function(s){return e.chosenTypeChangeEvent(s)}),A(13,AWt,2,2,"mat-option",10),_(),_(),_(),y(14,"div",11),y(15,"div",12),H(16,"Click\xa0"),y(17,"a",13),se("click",function(){return e.describeLegendInfo()}),y(18,"mat-icon"),H(19,"help"),_(),_(),H(20," for more information about legend"),_(),A(21,RWt,3,2,"div",14),gi(22,"async"),_(),_(),_(),A(23,VWt,16,15,"mat-expansion-panel",15),_()),2&t&&(b(2),v("collapsedHeight","24px")("expandedHeight","24px"),b(10),v("ngModel",e.chosenType),b(1),v("ngForOf",e.indicatorList),b(8),v("ngForOf",Mi(22,6,e.rankingList$)),b(2),v("ngIf",e.selectedSA2TempFactor))},directives:[Bb,Vb,bO,po,fo,ja,_u,wo,kg,Tg,iD,Xc,zp,Wn,gl,pt,DC],pipes:[Hl],styles:[".datepicker-highlight[_ngcontent-%COMP%]{padding:5px;border-radius:5px;background-color:#e6e6fa;margin-bottom:10px!important}"]}),nt([rn(n=>n.heatriskassessment.rankingList)],Hb.prototype,"rankingList$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.sa2AnalysisIndicator)],Hb.prototype,"sa2AnalysisIndicator$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA2Code16)],Hb.prototype,"selectedSA2Code16$",void 0);class Ww{constructor(t,e,i){this.store=t,this.alertService=e,this.climateChangeSvc=i,this.indicatorList=lA}chosenTypeChangeEvent(t){var e=this;return Xe(function*(){t.value&&e.chosenType&&(yield e.climateChangeSvc.manageIndicatorChange(e.chosenType))})()}describeLegendInfo(){this.alertService.showHtmlMessage(m8_ClimateChangeLayerLegend)}ngOnInit(){this.chosenType=this.store.selectSnapshot(t=>t.heatclimatechange.indicator)}}Ww.\u0275fac=function(t){return new(t||Ww)(g(zi),g(xO),g(jw))},Ww.\u0275cmp=K({type:Ww,selectors:[["app-map-layers-climate-change"]],decls:21,vars:10,consts:[[1,"map-layer-container"],["hideToggle","","expanded","true"],[3,"collapsedHeight","expandedHeight"],["fxLayout","column","fxLayoutGap","2px","fxFlexFill",""],["fxLayout","column","fxLayoutGap","2px"],["fxFlex","","appearance","outline"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","start center"],[2,"cursor","pointer",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],[3,"value"],["height","24","width","24",1,"colour-legend"],["cx","12","cy","12","r","8","stroke","none"],["class","button-group-title-sub",4,"ngIf"],[1,"button-group-title-sub"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"mat-expansion-panel",1),P(2,"mat-expansion-panel-header",2),y(3,"div",3),y(4,"div",4),y(5,"mat-form-field",5),y(6,"mat-label"),H(7,"Filter Indicator"),_(),y(8,"mat-select",6),se("ngModelChange",function(s){return e.chosenType=s})("selectionChange",function(s){return e.chosenTypeChangeEvent(s)}),A(9,zWt,2,2,"mat-option",7),_(),_(),_(),y(10,"div",8),y(11,"div",9),H(12,"Click\xa0"),y(13,"a",10),se("click",function(){return e.describeLegendInfo()}),y(14,"mat-icon"),H(15,"help"),_(),_(),H(16," for more information about legend"),_(),A(17,HWt,3,3,"h4",11),gi(18,"async"),A(19,jWt,4,2,"div",12),gi(20,"async"),_(),_(),_(),_()),2&t&&(b(2),v("collapsedHeight","24px")("expandedHeight","24px"),b(6),v("ngModel",e.chosenType),b(1),v("ngForOf",e.indicatorList),b(8),v("ngIf",Mi(18,6,e.filter$)),b(2),v("ngForOf",Mi(20,8,e.rankingList$)))},directives:[Bb,Vb,po,_u,wo,kg,ja,Tg,iD,Xc,zp,Wn,fo,gl,pt,DC],pipes:[Hl],styles:[""]}),nt([rn(n=>n.heatclimatechange.rankingList)],Ww.prototype,"rankingList$",void 0),nt([rn(n=>n.heatclimatechange.filter)],Ww.prototype,"filter$",void 0);const $Wt=[{hidden:!0,field:"sa4_code16",title:"SA4"},{hidden:!0,field:"sa3_code16",title:"SA3"},{hidden:!1,field:"name",title:"Region"},{hidden:!1,field:"not1_avgo3",title:"Total days- first threshold ozone"},{hidden:!0,field:"not2_avgo3",title:"Total days- second threshold ozone"},{hidden:!1,field:"not1_avgno2",title:"Total days- first threshold nitrogen dioxide"},{hidden:!0,field:"not2_avgno2",title:"Total days- second threshold nitrogen dioxide"},{hidden:!1,field:"not1_avgno",title:"Total days- first threshold nitrogen monoxide"},{hidden:!0,field:"not2_avgno",title:"Total days- second threshold nitrogen monoxide"},{hidden:!1,field:"not1_avgpm25",title:"Total days- first threshold particulate matter (<2.5\xb5m)"},{hidden:!0,field:"not2_avgpm25",title:"Total days- second threshold particulate matter (<2.5\xb5m)"},{hidden:!0,field:"e_aq",title:"Exposure Index"},{hidden:!0,field:"s_aq",title:"Sensitivity Index"},{hidden:!0,field:"a_aq",title:"Adaptive Index"},{hidden:!1,field:"aqvi",title:"Vulnerability Index"}],wO=[{key:"not1_avgo3",value:"Total days- first threshold ozone"},{key:"not2_avgo3",value:"Total days- second threshold ozone"},{key:"not1_avgno2",value:"Total days- first threshold nitrogen dioxide"},{key:"not2_avgno2",value:"Total days- second threshold nitrogen dioxide"},{key:"not1_avgno",value:"Total days- first threshold nitrogen monoxide"},{key:"not2_avgno",value:"Total days- second threshold nitrogen monoxide"},{key:"not1_avgpm25",value:"Total days- first threshold particulate matter (<2.5\xb5m)"},{key:"not2_avgpm25",value:"Total days- second threshold particulate matter (<2.5\xb5m)"},{key:"e_aq",value:"Exposure Index"},{key:"s_aq",value:"Sensitivity Index"},{key:"a_aq",value:"Adaptive Index"},{key:"aqvi",value:"Vulnerability Index"}],UWt=[{hidden:!0,field:"name",title:"Region"},{hidden:!0,field:"sa4_code16",title:"SA4"},{hidden:!1,field:"asrresp",title:"Respiratory"},{hidden:!1,field:"asrast",title:"Asthma"},{hidden:!1,field:"asrcvd",title:"CVD"},{hidden:!0,field:"ndeaths",title:"All Causes"}],WWt=[{key:"asrresp",value:"Respiratory"},{key:"asrast",value:"Asthma"},{key:"asrcvd",value:"CVD"},{key:"ndeaths",value:"All Causes"}];let HFe=(()=>{class n{constructor(e){this.httpWrapper=e}filterSA4Monthly(e){return this.httpWrapper.get(`/api/air/sa4monthlyfilterbysa4/${e}`)}filterSA2Yearly(e){return this.httpWrapper.get(`/api/air/sa2yearlyfilterbysa2/${e}`)}filterSA4MonthlyWithYearAndMonth(e,i){return this.httpWrapper.get(`/api/air/sa4monthlyfilter/${e}/${i}`)}filterSA4MonthlyWithYear(e){return this.httpWrapper.get(`/api/air/sa4monthlyfilter/${e}`)}filterSA4Yearly(e){return this.httpWrapper.get(`/api/air/sa4yearlyfilterbysa4/${e}`)}filterSA4YearlyWithYear(e){return this.httpWrapper.get(`/api/air/sa4yearlyfilter/${e}`)}filterSA3MonthlyWithYearAndMonth(e,i){return this.httpWrapper.get(`/api/air/sa3monthlyfilter/${e}/${i}`)}filterSA3YearlyWithYear(e){return this.httpWrapper.get(`/api/air/sa3yearlyfilter/${e}`)}getSA4monthlyYearList(){return this.httpWrapper.get("/api/air/sa4monthly/yearlist")}getSA3monthlyYearList(){return this.httpWrapper.get("/api/air/sa3monthly/yearlist")}getMinMax(e,i,s,o){return this.httpWrapper.get(`/api/air/getminmax/${e}/${i}/${s}/${o}`)}getLatestSa2Statistic(){return this.httpWrapper.get("/api/air/sa2yearly/statistic")}getLatestStateStatistic(){return this.httpWrapper.get("/api/air/sa2yearly/statestatistic")}getSA2ByGeometry(e){return this.httpWrapper.post("/api/air/getsa2bygeometry/latest",e)}}return n.\u0275fac=function(e){return new(e||n)(V(qA))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qWt=(()=>{class n{constructor(e){this.httpWrapper=e}filterSA4Monthly(e){return this.httpWrapper.get(`/api/healthoutcome/sa4monthlyfilterbysa4/${e}`)}filterSA4MonthlyWithYearAndMonth(e,i){return this.httpWrapper.get(`/api/healthoutcome/sa4monthlyfilter/${e}/${i}`)}filterSA4MonthlyWithYear(e){return this.httpWrapper.get(`/api/healthoutcome/sa4monthlyfilter/${e}`)}filterSA4Yearly(e){return this.httpWrapper.get(`/api/healthoutcome/sa4yearlyfilterbysa4/${e}`)}filterSA4YearlyWithYear(e){return this.httpWrapper.get(`/api/healthoutcome/sa4yearlyfilter/${e}`)}}return n.\u0275fac=function(e){return new(e||n)(V(qA))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GFe=(()=>{class n{constructor(e,i,s,o){this.store=e,this.airqualityApiSvc=i,this.heatapiservice=s,this.healthoutcomeApiSvc=o}getAnalysisMonths(){let e=[];for(var i=1;i<=12;i++)e.push({key:i.toString(),value:Eme[i-1]});return e}getAnalysisYears(){var e=this;return Xe(function*(){let i=[],s=yield e.airqualityApiSvc.getSA4monthlyYearList().toPromise();for(var o=0;o0){let o=s[0].id;yield i.store.dispatch(new Kn.SetSelectedSA3Code16([o])).toPromise()}})()}getsa3AnalysisYears(){var e=this;return Xe(function*(){let i=[],s=yield e.airqualityApiSvc.getSA3monthlyYearList().toPromise();for(var o=0;oo.airimpact.analysisResult);if(s.sa4FilterResult&&s.sa4FilterResult.length>0){yield i.store.dispatch(new Kn.SetBusyState(!0)).toPromise();let o=yield i.calculateRankingByIndicator(e,"sa4"),r=i.updateRankingClass(o,s.sa4FilterResult,e);yield i.store.dispatch(new Kn.SetIndicatorUpdateData({indicator:e,ranking:o,result:r})).toPromise(),yield i.store.dispatch(new Kn.DisplaySA4FilterLayer).toPromise(),yield i.store.dispatch(new Kn.SetBusyState(!1)).toPromise()}else yield i.store.dispatch(new Kn.SetSa4AnalysisIndicator(e)).toPromise()})()}manageSA4FilterUpdate(e,i){var s=this;return Xe(function*(){yield s.store.dispatch(new Kn.SetBusyState(!0)).toPromise(),yield s.store.dispatch(new Kn.SetFilter(e)).toPromise(),yield s.store.dispatch(new Kn.SetSa4AnalysisIndicator(i)).toPromise();let o=yield s.filterSA4AirQualityAnalysis(e),r=yield s.filterSA4HealthOutcomeAnalysis(e),a=yield s.calculateRankingByIndicator(i,"sa4");o=s.updateRankingClass(a,o,i),yield s.store.dispatch(new Kn.SetFilterUpdateData({analysisFilter:e,ranking:a,result:o,healthoutcome:r})).toPromise(),yield s.store.dispatch(new Kn.DisplaySA4FilterLayer).toPromise(),yield s.store.dispatch(new Kn.SetBusyState(!1)).toPromise()})()}manageSA3FilterUpdate(e,i){var s=this;return Xe(function*(){yield s.store.dispatch(new Kn.SetBusyState(!0)).toPromise(),yield s.store.dispatch(new Kn.SetFilter(e)).toPromise(),yield s.store.dispatch(new Kn.SetSa3AnalysisIndicator(i)).toPromise();let o=yield s.filterSA3AirQualityAnalysis(e),r=yield s.filterSA4HealthOutcomeAnalysis(e),a=yield s.calculateRankingByIndicator(i,"sa3");o=s.updatesa3RankingClass(a,o,i),yield s.store.dispatch(new Kn.SetSA3FilterUpdateData({analysisFilter:e,ranking:a,result:o,healthoutcome:r})).toPromise(),yield s.store.dispatch(new Kn.DisplaySA3FilterLayer).toPromise(),yield s.store.dispatch(new Kn.SetBusyState(!1)).toPromise()})()}manageSA3IndicatorChange(e){var i=this;return Xe(function*(){let s=i.store.selectSnapshot(o=>o.airimpact.analysisResult);if(s.sa4FilterResult&&s.sa4FilterResult.length>0){yield i.store.dispatch(new Kn.SetBusyState(!0)).toPromise();let o=yield i.calculateRankingByIndicator(e,"sa3"),r=i.updatesa3RankingClass(o,s.sa3FilterResult,e);yield i.store.dispatch(new Kn.SetSA3IndicatorUpdateData({indicator:e,ranking:o,result:r})).toPromise(),yield i.store.dispatch(new Kn.DisplaySA3FilterLayer).toPromise(),yield i.store.dispatch(new Kn.SetBusyState(!1)).toPromise()}else yield i.store.dispatch(new Kn.SetSa4AnalysisIndicator(e)).toPromise()})()}filterSA4AirQualityAnalysis(e){var i=this;return Xe(function*(){let s;switch(e.filterType){case"yearly":s=yield i.airqualityApiSvc.filterSA4YearlyWithYear(e.filterYear).toPromise();break;case"monthly":s=yield i.airqualityApiSvc.filterSA4MonthlyWithYearAndMonth(e.filterYear,e.filterMonth).toPromise()}return s})()}filterSA3AirQualityAnalysis(e){var i=this;return Xe(function*(){let s;switch(e.filterType){case"yearly":s=yield i.airqualityApiSvc.filterSA3YearlyWithYear(e.filterYear).toPromise();break;case"monthly":s=yield i.airqualityApiSvc.filterSA3MonthlyWithYearAndMonth(e.filterYear,e.filterMonth).toPromise()}return s})()}filterSA4HealthOutcomeAnalysis(e){var i=this;return Xe(function*(){let s;switch(e.filterType){case"yearly":s=yield i.healthoutcomeApiSvc.filterSA4YearlyWithYear(e.filterYear).toPromise();break;case"monthly":s=yield i.healthoutcomeApiSvc.filterSA4MonthlyWithYearAndMonth(e.filterYear,e.filterMonth).toPromise()}return s})()}calculateRankingByIndicator(e,i){var s=this;return Xe(function*(){let o=[{colorCode:"#a50f15",min:null,max:null,className:"hrank1"},{colorCode:"#de2d26",min:null,max:null,className:"hrank2"},{colorCode:"#fb6a4a",min:null,max:null,className:"hrank3"},{colorCode:"#fcae91",min:null,max:null,className:"hrank4"},{colorCode:"#fee5d9",min:null,max:null,className:"hrank5"}];try{let a=0,l=100;if(!s.IsPercentageIndicator(e)){let u=s.store.selectSnapshot(f=>f.airimpact.analysisFilter.filterType),h=yield s.airqualityApiSvc.getMinMax("airquality",i,u,e).toPromise();h.length>0&&(a=h[0].min,l=h[0].max)}l=Math.ceil(l),a=Math.floor(a),l=Math.ceil(l),a=Math.floor(a);let c=Math.ceil((l-a)/5),d=l;for(var r=0;r<5;r++){let u=d-c;u<0&&(u=0),o[r].max=d,o[r].min=u,d=u}return o}catch(a){console.log(a)}return o})()}updateRankingClass(e,i,s){return i.map(r=>{let a=Object.assign({},r),l=a[s],c=e[4].className;if(l){let d=e.filter(u=>u.min<=l&&l<=u.max);d.length>0&&(c=d[0].className)}return a.cssclass=c,a})}updatesa3RankingClass(e,i,s){return i.map(r=>{let a=Object.assign({},r),l=a[s],c=e[4].className;if(l){let d=e.filter(u=>u.min<=l&&l<=u.max);d.length>0&&(c=d[0].className)}return a.cssclass=c,a})}IsPercentageIndicator(e){return!1}}return n.\u0275fac=function(e){return new(e||n)(V(zi),V(HFe),V(vB),V(qWt))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XWt(n,t){if(1&n&&(y(0,"h4"),H(1),gi(2,"async"),_()),2&n){const e=I();b(1),_t(" Year: ",Mi(2,1,e.filter$).filterYear," ")}}function YWt(n,t){if(1&n&&(zc(),UR(),y(0,"span",12),H(1),_()),2&n){const e=I().$implicit;b(1),ty(" ",e.min," to ",e.max," ")}}function KWt(n,t){if(1&n&&(y(0,"div",5),zc(),y(1,"svg",9),P(2,"circle",10),_(),A(3,YWt,2,2,"span",11),_()),2&n){const e=t.$implicit;b(2),fe("fill",e.colorCode),b(1),v("ngIf",null!=e.min)}}class Gb{constructor(t,e,i){this.store=t,this.alertService=e,this.airqualityImpactSvc=i,this.indicatorList=wO,this.destroyed$=new Z,this.analysisIndicator$.pipe(lt(s=>{this.chosenType=s,this.indicatorDisplay=wO.filter(o=>o.key===this.chosenType)[0].value}),et(this.destroyed$)).subscribe()}chosenTypeChangeEvent(t){var e=this;return Xe(function*(){t.value&&e.chosenType&&(yield e.airqualityImpactSvc.manageIndicatorChange(e.chosenType))})()}describeLegendInfo(){this.alertService.showHtmlMessage(m8_ClimateChangeLayerLegend)}ngOnInit(){this.chosenType=this.store.selectSnapshot(t=>t.airimpact.analysisResult.sa4AnalysisIndicator),this.indicatorDisplay=wO.filter(t=>t.key===this.chosenType)[0].value,console.log(this.indicatorDisplay)}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}Gb.\u0275fac=function(t){return new(t||Gb)(g(zi),g(xO),g(GFe))},Gb.\u0275cmp=K({type:Gb,selectors:[["app-map-layers-air-quality-impact"]],decls:17,vars:9,consts:[[1,"map-layer-container"],["hideToggle","","expanded","true"],[3,"collapsedHeight","expandedHeight"],["fxLayout","column","fxLayoutGap","2px","fxFlexFill",""],["fxLayout","column","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","start center"],[2,"cursor","pointer",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["height","24","width","24",1,"colour-legend"],["cx","12","cy","12","r","8","stroke","none"],["class","button-group-title-sub",4,"ngIf"],[1,"button-group-title-sub"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"mat-expansion-panel",1),P(2,"mat-expansion-panel-header",2),y(3,"div",3),y(4,"div",4),y(5,"div",5),H(6,"Click\xa0"),y(7,"a",6),se("click",function(){return e.describeLegendInfo()}),y(8,"mat-icon"),H(9,"help"),_(),_(),H(10," for more information about legend"),_(),A(11,XWt,3,3,"h4",7),gi(12,"async"),y(13,"h4"),H(14),_(),A(15,KWt,4,2,"div",8),gi(16,"async"),_(),_(),_(),_()),2&t&&(b(2),v("collapsedHeight","24px")("expandedHeight","24px"),b(9),v("ngIf",Mi(12,5,e.filter$)),b(3),un(e.indicatorDisplay),b(1),v("ngForOf",Mi(16,7,e.rankingList$)))},directives:[Bb,Vb,po,_u,wo,fo,gl,pt,Wn],pipes:[Hl],styles:[""]}),nt([rn(n=>n.airimpact.rankingList)],Gb.prototype,"rankingList$",void 0),nt([rn(n=>n.airimpact.analysisFilter)],Gb.prototype,"filter$",void 0),nt([rn(n=>n.airimpact.analysisResult.sa4AnalysisIndicator)],Gb.prototype,"analysisIndicator$",void 0);const v8=function(n){return{visible:n}};function ZWt(n,t){if(1&n&&(y(0,"mat-accordion",9),P(1,"app-map-layers-heatriskassessment"),_()),2&n){const e=I(2);v("ngClass",Yt(1,v8,e.showLayersPanel))}}function QWt(n,t){if(1&n&&(y(0,"mat-accordion",9),P(1,"app-map-layers-heatrisk-sa2"),_()),2&n){const e=I(2);v("ngClass",Yt(1,v8,e.showLayersPanel))}}function JWt(n,t){if(1&n&&(y(0,"mat-accordion",9),P(1,"app-map-layers-climate-change"),_()),2&n){const e=I(2);v("ngClass",Yt(1,v8,e.showLayersPanel))}}function eqt(n,t){if(1&n&&(y(0,"mat-accordion",9),P(1,"app-map-layers-air-quality-impact"),_()),2&n){const e=I(2);v("ngClass",Yt(1,v8,e.showLayersPanel))}}function tqt(n,t){if(1&n){const e=ht();y(0,"div",1),y(1,"div",2),y(2,"div",3),y(3,"button",4),se("click",function(){Le(e);const s=I();return s.showLayersPanel=!s.showLayersPanel}),y(4,"mat-icon"),H(5,"layers"),_(),_(),_(),y(6,"div",5),y(7,"div",6,7),A(9,ZWt,2,3,"mat-accordion",8),gi(10,"async"),A(11,QWt,2,3,"mat-accordion",8),gi(12,"async"),A(13,JWt,2,3,"mat-accordion",8),gi(14,"async"),A(15,eqt,2,3,"mat-accordion",8),gi(16,"async"),_(),_(),_(),_()}if(2&n){const e=I();b(3),v("color",e.showLayersPanel?"primary":""),b(6),v("ngIf",Mi(10,5,e.activeModule$)===e.allActiveModule.HeatRisk),b(2),v("ngIf",Mi(12,7,e.activeModule$)===e.allActiveModule.HeatRiskSA2),b(2),v("ngIf",Mi(14,9,e.activeModule$)===e.allActiveModule.ClimateChange),b(2),v("ngIf",Mi(16,11,e.activeModule$)===e.allActiveModule.AirImpact)}}class MM{constructor(){this.allActiveModule=da,this.showLayersPanel=!0}ngOnInit(){}}MM.\u0275fac=function(t){return new(t||MM)},MM.\u0275cmp=K({type:MM,selectors:[["app-map-buttons"]],decls:5,vars:9,consts:[["class","map-buttons-container","fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","1em","style","height:100%;",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","1em",1,"map-buttons-container",2,"height","100%"],["fxLayout","row","fxLayoutGap","1em",2,"height","100%"],["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","1em",1,"buttons"],["mat-raised-button","","matTooltip","Map Layers","matTooltipPosition","right",3,"color","click"],["fxLayout","column","fxLayoutAlign","start center","fxLayoutGap","10px",1,"panels"],[1,"map-cards-wrapper"],["cards",""],["multi","",3,"ngClass",4,"ngIf"],["multi","",3,"ngClass"]],template:function(t,e){1&t&&(A(0,tqt,17,13,"div",0),gi(1,"async"),gi(2,"async"),gi(3,"async"),gi(4,"async")),2&t&&v("ngIf",Mi(1,1,e.activeModule$)===e.allActiveModule.HeatRisk||Mi(2,3,e.activeModule$)===e.allActiveModule.HeatRiskSA2||Mi(3,5,e.activeModule$)===e.allActiveModule.ClimateChange||Mi(4,7,e.activeModule$)===e.allActiveModule.AirImpact)},directives:[pt,po,fo,_u,Bd,kFe,gl,g8,Un,AFe,zb,Hb,Ww,Gb],pipes:[Hl],styles:["[_nghost-%COMP%]{position:absolute;top:0;padding:1em;pointer-events:none;height:100%;z-index:11000}.basemap-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.basemap-radio-button[_ngcontent-%COMP%]{margin:5px}.buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{pointer-events:auto;padding:0;min-width:0;width:3em}.panels[_ngcontent-%COMP%]{z-index:10;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:calc(100% - 80px);overflow:hidden}.panels[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:visible}.panels[_ngcontent-%COMP%] .map-cards-wrapper[_ngcontent-%COMP%]{overflow-y:auto}.panels[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .panels[_ngcontent-%COMP%] mat-accordion[_ngcontent-%COMP%]{pointer-events:auto;margin-bottom:1em}.panels[_ngcontent-%COMP%] mat-card-title.basemap[_ngcontent-%COMP%]{font-size:1.3em;color:#00000080}mat-accordion[_ngcontent-%COMP%]{display:none;width:320px}mat-accordion[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] span.button-group-title[_ngcontent-%COMP%]{font-size:.85em;font-weight:400}mat-accordion[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] span.button-group-title-sub[_ngcontent-%COMP%]{display:block;margin-left:5px}mat-accordion[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] div.legend-wrapper[_ngcontent-%COMP%]{flex:0 1 40px!important;margin-right:12px}mat-accordion.visible[_ngcontent-%COMP%]{display:block}mat-accordion[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{margin-bottom:1em}mat-accordion[_ngcontent-%COMP%] .date-arrow[_ngcontent-%COMP%]{margin-top:-10px} div.mat-expansion-panel-body{font-size:.9em;font-weight:400;padding-bottom:10px} div.expansion-panel-row{height:30px}.production-site-container[_ngcontent-%COMP%]{padding-right:24px}app-map-buttons-labs[_ngcontent-%COMP%]{pointer-events:auto}app-map-alerts-toggle[_ngcontent-%COMP%]{pointer-events:auto}.scroll-indicator[_ngcontent-%COMP%]{color:#fff;position:fixed;bottom:2%}.scroll-indicator[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:36px;height:36px;width:36px;animation:sdb06 1.5s infinite}@keyframes sdb06{0%{transform:translate(0);opacity:0}50%{opacity:1}to{transform:translateY(20px);opacity:0}}"]}),nt([rn(n=>n.map.activeModule)],MM.prototype,"activeModule$",void 0);class Ic{constructor(t,e,i,s,o,r,a,l,c){var d=this;this.store=t,this.cartoService=e,this.heatApiService=i,this.tooltipFactory=s,this.router=o,this.actions$=r,this.overlayService=a,this.climateChangeSvc=l,this.graphicGeojsonSvc=c,this.DEFAULT_CENTER={lat:-32,lng:116},this.destroyed$=new Z,this.measureOverlays=null,this.layers$.pipe(lt(()=>{if(this.map&&this.overlay){var u=this.overlayService.createLayers();this.overlay.setProps({layers:u})}}),et(this.destroyed$)).subscribe(),this.activeMapModule$.pipe(lt(Xe(function*(){var u;let h=d.store.selectSnapshot(f=>f.map.activeModule);try{h===da.default&&d.map&&d.filterOverlay&&(d.filterOverlay.setProps({layers:[]}),null===(u=d.highlightOverlay)||void 0===u||u.setProps({layers:[]}),d.graphicGeojsonSvc.cleanTheLayer())}catch(f){console.log("Active map module subscription execution error")}})),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(Gn.DisplaySA3FilterLayer),lt(Xe(function*(){if(d.filterOverlay){yield d.store.dispatch(new Gn.SetBusyState(!0)).toPromise();var u=d.overlayService.createSA3FilterLayers();d.filterOverlay.setProps(u&&u.length>0?{layers:u}:{layers:[]}),yield d.store.dispatch(new Gn.SetBusyState(!1)).toPromise()}})),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(Gn.DisplaySA2FilterLayer),lt(Xe(function*(){if(d.filterOverlay){yield d.store.dispatch(new Gn.SetBusyState(!0)).toPromise();var u=d.overlayService.createSA2FilterLayers();d.filterOverlay.setProps(u&&u.length>0?{layers:u}:{layers:[]}),yield d.store.dispatch(new Gn.SetBusyState(!1)).toPromise()}})),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(ds.DisplayClimateForecastFilterLayer),lt(Xe(function*(){if(d.filterOverlay){yield d.store.dispatch(new ds.SetBusyState(!0)).toPromise();var u=d.overlayService.createClimateChangeForecastFilterLayer();d.filterOverlay.setProps(u&&u.length>0?{layers:u}:{layers:[]}),yield d.store.dispatch(new ds.SetBusyState(!1)).toPromise()}})),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(Kn.DisplaySA4FilterLayer),lt(Xe(function*(){if(d.filterOverlay){yield d.store.dispatch(new Kn.SetBusyState(!0)).toPromise();var u=d.overlayService.createSA4AirQualityFilterLayers();d.filterOverlay.setProps(u&&u.length>0?{layers:u}:{layers:[]}),yield d.store.dispatch(new Kn.SetBusyState(!1)).toPromise()}})),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(Kn.DisplaySA3FilterLayer),lt(Xe(function*(){if(console.log("display sa3 airquality layer"),d.filterOverlay){yield d.store.dispatch(new Kn.SetBusyState(!0)).toPromise();var u=d.overlayService.createSA3AirQualityFilterLayers();d.filterOverlay.setProps(u&&u.length>0?{layers:u}:{layers:[]}),yield d.store.dispatch(new Kn.SetBusyState(!1)).toPromise()}})),et(this.destroyed$)).subscribe(),this.publicAwarenessLocationFilter$.pipe(lt(function(){var u=Xe(function*(h){h?d.zoomAndHighlightSA2Region(h.sa2_main16):d.resetHighlightRegionLayer()});return function(h){return u.apply(this,arguments)}}()),et(this.destroyed$)).subscribe(),this.analysisResult$.pipe(lt(Xe(function*(){yield d.store.dispatch(new Gn.SetBusyState(!0)).toPromise();let u=d.store.selectSnapshot(h=>h.heatriskassessment.analysisResult);if(u.sa3FilterResult&&u.sa3AnalysisIndicator&&u.sa3FilterResult.length>0&&u.selectedSA3Code16.length>0)try{let h=u.sa3FilterResult.filter(f=>f.sa3_code16===u.selectedSA3Code16[0])[0];yield d.zoomAndHighlightSA3Region(h.sa3_code16)}catch(h){}else if(u.sa2FilterResult&&u.sa2AnalysisIndicator&&u.sa2FilterResult.length>0&&u.selectedSA2Code16.length>0)try{let h=u.sa2FilterResult.filter(f=>f.sa2_main16===u.selectedSA2Code16[0])[0];yield d.zoomAndHighlightSA2Region(h.sa2_main16)}catch(h){}else d.resetHighlightRegionLayer();yield d.store.dispatch(new Gn.SetBusyState(!1)).toPromise()})),et(this.destroyed$)).subscribe(),this.airQualityAnalysisResult$.pipe(lt(Xe(function*(){var u;yield d.store.dispatch(new Kn.SetBusyState(!0)).toPromise();let h=d.store.selectSnapshot(f=>f.airimpact.analysisResult);if(h.sa4FilterResult&&h.sa4AnalysisIndicator&&h.sa4FilterResult.length>0&&h.selectedSA4Code16.length>0)try{let f=h.selectedSA4Code16[0];console.log("Zoom and highlight sa4 region"),yield d.zoomAndHighlightSA4Region(f)}catch(f){}else if(h.sa3FilterResult&&h.sa3AnalysisIndicator&&h.sa3FilterResult.length>0&&h.selectedSA3Code16.length>0)try{let f=h.selectedSA3Code16[0];console.log("Zoom and highlight sa3 region"),yield d.zoomAndHighlightSA3Region(f)}catch(f){}else null===(u=d.highlightOverlay)||void 0===u||u.setProps({layers:[]}),d.setFullAustraliaExtent();yield d.store.dispatch(new Kn.SetBusyState(!1)).toPromise()})),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(hn.UpdateMapBBox),lt(u=>{this.map.fitBounds(u.payload)}),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(hn.DispatchGeojsonData),lt(function(){var u=Xe(function*(h){h&&h.data.geojsonData&&h.data.geojsonData.length>0&&h.data.geofieldName&&(console.log("dispatch geojson"),yield d.graphicGeojsonSvc.refreshWithGeojsonFeature(h.data.geojsonData,h.data.geofieldName))});return function(h){return u.apply(this,arguments)}}()),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(hn.HighlightSA3Region),lt(u=>{this.zoomAndHighlightSA3Region(u.sa3code)}),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(hn.HighlightSA4Region),lt(u=>{this.zoomAndHighlightSA4Region(u.sa4code)}),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(hn.HighlightSA2Region),lt(u=>{this.zoomAndHighlightSA2Region(u.sa2code)}),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(hn.HideFilterOverlay),lt(()=>{this.filterOverlay&&this.filterOverlay.setProps({layers:[]})}),et(this.destroyed$)).subscribe(),this.actions$.pipe(Fd(hn.HideHightLightOverlay),lt(()=>{this.highlightOverlay&&this.highlightOverlay.setProps({layers:[]})}),et(this.destroyed$)).subscribe()}layerListButtonClick(){}resetHighlightRegionLayer(){var t;null===(t=this.highlightOverlay)||void 0===t||t.setProps({layers:[]}),this.setFullAustraliaExtent()}zoomAndHighlightSA3Region(t){var e=this;return Xe(function*(){let i=yield e.heatApiService.getSA3Bbox(t).toPromise();if(!i)return;let s=cA(i.bbox);e.map.fitBounds(s);let o=e.overlayService.createSA3HighlightLayers(t);e.highlightOverlay.setProps({layers:o})})()}zoomAndHighlightSA2Region(t){var e=this;return Xe(function*(){let i=yield e.heatApiService.getSA2Bbox(t).toPromise();if(!i)return;let s=cA(i.bbox);e.map.fitBounds(s);let o=e.overlayService.createSA2HighlightLayers(t);e.highlightOverlay.setProps({layers:o})})()}zoomAndHighlightSA4Region(t){var e=this;return Xe(function*(){let i=yield e.heatApiService.getSA4Bbox(t).toPromise();if(!i)return;let s=cA(i.bbox);e.map.fitBounds(s);let o=e.overlayService.createSA4HighlightLayers(t);e.highlightOverlay.setProps({layers:o})})()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngOnInit(){}ngAfterViewInit(){}setupCarto(){var t=this;return Xe(function*(){const e=yield t.cartoService.getCartoAccess().toPromise();X0e({apiVersion:ua.V2,username:e.username,apiKey:e.key})})()}configureGoogleMap(t){var e=this;return Xe(function*(){yield e.setupCarto(),e.map=t,e.map.setOptions({center:e.DEFAULT_CENTER,zoom:4,mapTypeId:"roadmap",fullscreenControl:!1,minZoom:3,mapTypeControl:!0,streetViewControl:!1,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU,position:google.maps.ControlPosition.TOP_RIGHT,mapTypeIds:[...Object.keys(Stt)]}}),e.setFullAustraliaExtent(),e.overlay=new Tee({layers:[]}),e.filterOverlay=new Tee({layers:[],getTooltip:e.handleGetTooltip.bind(e),onClick:e.handleOnClick.bind(e),onHover:i=>{e.map.setOptions({draggableCursor:i.object?"pointer":"grab"})}}),e.highlightOverlay=new Tee({layers:[]}),e.overlay.setMap(e.map),e.filterOverlay.setMap(e.map),e.highlightOverlay.setMap(e.map),e.store.dispatch(new hn.MapReady({map:t,overlay:e.overlay}))})()}setFullAustraliaExtent(){var t,e;null===(t=this.map)||void 0===t||t.setCenter({lng:133.49133139848706,lat:-25.167989174810636}),null===(e=this.map)||void 0===e||e.setZoom(4)}handleGetTooltip({layer:t,object:e}){if(!t||!e)return null;switch(t.id.split("_")[0]){case"sa3FilterLayer":return this.tooltipFactory.forSA3FilterLayer(e)}}handleOnClick(t){var e=this;return Xe(function*(){if(!t.object)return null;let i=t.layer.id.split("_")[0];switch(console.log("overlay click prefix ",i),i){case"sa3FilterLayer":let s=[t.object.properties.sa3_code16];yield e.store.dispatch(new Gn.SetSelectedSA3Code16(s)).toPromise();break;case"climatechangeForecast":switch(t.layer.id.split("_")[1]){case"state":let a=t.object.properties.ste_code16,l=t.object.properties.abbrev;e.router.url.indexOf("climatechange/sa3")>-1&&(e.climateChangeSvc.performSa3LevelForAState(a),e.climateChangeSvc.loadYearlyTimeslidingData(2e3),e.climateChangeSvc.zoomToSelectState(a)),yield e.store.dispatch(new ds.SetSelectedSA3Code(null)).toPromise(),e.router.navigate(["climatechange/sa3"],{queryParams:{state:l,code:a}});break;case"sa3":let c=t.object.properties.sa3_code16;yield e.store.dispatch(new ds.SetSelectedSA3Code(c)).toPromise()}break;case"airquality":switch(t.layer.id.split("_")[1]){case"sa3":let a=t.object.properties.sa3_code16;yield e.store.dispatch(new Kn.SetSelectedSA3Code16([a])).toPromise()}}})()}processPoints(t,e,i){t instanceof google.maps.LatLng?e.call(i,t):t instanceof google.maps.Data.Point?e.call(i,t.get()):t.getArray().forEach(function(s){this.processPoints(s,e,i)})}}function x(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function jb(n,t){return function(e,i){t(e,i,n)}}function w(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}Ic.\u0275fac=function(t){return new(t||Ic)(g(zi),g(PUt),g(vB),g(LUt),g(pr),g(sg),g(Oy),g(jw),g(WUt))},Ic.\u0275cmp=K({type:Ic,selectors:[["app-map"]],decls:3,vars:0,consts:[["fxFlexFill","",1,"map-container"],["fxFlexFill","",3,"mapReady"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"agm-map",1),se("mapReady",function(s){return e.configureGoogleMap(s)}),_(),P(2,"app-map-buttons"),_())},directives:[wo,Vn,MM],styles:["agm-map[_ngcontent-%COMP%]{height:100%;width:100%}.map-container[_ngcontent-%COMP%] .map-controls-container[_ngcontent-%COMP%]{padding:1em;position:absolute;bottom:0;right:0}.map-container[_ngcontent-%COMP%] .map-controls-container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .map-container[_ngcontent-%COMP%] .map-controls-container[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{margin-top:1em}.map-container[_ngcontent-%COMP%] .deletebutton[_ngcontent-%COMP%]{align-self:flex-end} .layer-loading-notification{padding:5px;color:#fffc;border-radius:0%;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:20px;background-color:#0006}.append-container[_ngcontent-%COMP%]{background-color:transparent;height:100%;width:100%;position:absolute;top:0;right:0;pointer-events:none;margin-right:1em}.addressPanel[_ngcontent-%COMP%]{position:absolute;top:10px;right:190px;z-index:100}"]}),nt([rn(n=>n.map.layers)],Ic.prototype,"layers$",void 0),nt([rn(n=>n.airimpact.analysisResult)],Ic.prototype,"airQualityAnalysisResult$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult)],Ic.prototype,"analysisResult$",void 0),nt([rn(n=>n.map.activeModule)],Ic.prototype,"activeMapModule$",void 0),nt([rn(n=>n.airpublic.locationFilter)],Ic.prototype,"publicAwarenessLocationFilter$",void 0);const $b="arc",vr="#000",co="bottom",Pi="center",vf="circle",qw="date",WFe="12px sans-serif",YFe=/\{\d+:?/,C8="height",Qee="inside",os="left",ea=Number.MAX_VALUE,Oa=-Number.MAX_VALUE,ete="object",x8="outside",Os="right",tte="string",Cs="top",tp="value",xs="#fff",w8="width",pn="x",cn="y";function Zd(n){return Array.isArray(n)}function S8(n,t){const e=Zd(t)?t:[t];for(let i=0;it,toString:n=>n,parseDate:n=>new Date(n),firstDay:()=>0};const iOe=class{static register(t){nOe=t}static get implementation(){return nOe}},gqt=/\{(\d+)(:[^\}]+)?\}/g,nte=class{constructor(t,e={}){this._intlService=e.intlService,this.sender=e.sender||t,this.format=new class{constructor(t){this._intlService=t}get intl(){return this._intlService||iOe.implementation}set intl(t){this._intlService=t}auto(t,...e){const i=this.intl;return u_(t)&&t.match(YFe)?i.format(t,...e):i.toString(e[0],t)}localeAuto(t,e,i){const s=this.intl;let o;return o=u_(t)&&t.match(YFe)?t.replace(gqt,function(r,a,l){let c=e[parseInt(a,10)];return s.toString(c,l?l.substring(1):"",i)}):s.toString(e[0],t,i),o}}(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)}get intl(){return this._intlService||iOe.implementation}set intl(t){this._intlService=t,this.format.intl=t}notify(t,e){this.chart&&this.chart.trigger(t,e)}isPannable(t){const e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t}};let ite;const ste=class{static register(t){ite=t}static create(t,e){if(ite)return ite.create(t,e)}};let sOe={compile:function(n){return n}};function tc(n={}){let t;return n.template?n.template=t=class{static register(t){sOe=t}static compile(t){return sOe.compile(t)}}.compile(n.template):sl(n.content)&&(t=n.content),t}const xqt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,SO={};function TO(n){if(SO[n])return SO[n];const t=[];return n.replace(xqt,function(e,i,s,o){t.push(ti(i)?i:s||o)}),SO[n]=function(e){let i=e;for(let s=0;s0?Math.ceil(t):Math.floor(t)),n.detail&&(t=Do(n.detail/3)),t}function cOe(n){const t=window.console;void 0!==t&&t.log&&t.log(n)}function dOe(n){return ti((n.x||{}).location)?{x:n.x.location,y:n.y.location}:{x:n.pageX||n.clientX||0,y:n.pageY||n.clientY||0}}function uOe(n={}){return n.touch?n.touch.initialTouch:n.target}const kO=Date.now||function(){return(new Date).getTime()};function hOe(n){return Promise.all(n)}function rte(n,t){for(let e in t){const i=e.trim().split(" ");for(let s=0;sparseFloat(i));return new Il(...e)}(t)}function yOe(n){if(!n)return Il.unit();let t=mOe(n),e=n.parentElement;for(;e;){const i=mOe(e);t=t.multiplyCopy(i),e=e.parentElement}return t.b=t.c=t.e=t.f=0,t}const{append:Xw,bindEvents:MO,defined:St,deg:_Oe,elementOffset:lte,elementSize:h_,eventElement:Cm,eventCoordinates:kqt,last:ta,limitValue:ts,objectKey:Dqt,rad:sp,round:sn,unbindEvents:EO,valueOrDefault:er}=Zt;class IO{static fetchFonts(t,e,i={depth:0}){!t||i.depth>5||!document.fonts||Object.keys(t).forEach(function(o){const r=t[o];"dataSource"===o||"$"===o[0]||!r||("font"===o?e.push(r):"object"==typeof r&&(i.depth++,IO.fetchFonts(r,e,i),i.depth--))})}static loadFonts(t,e){let i=[];if(t.length>0&&document.fonts){try{i=t.map(function(s){return document.fonts.load(s)})}catch(s){cOe(s)}Promise.all(i).then(e,e)}else e()}static preloadFonts(t,e){const i=[];IO.fetchFonts(t,i),IO.loadFonts(i,e)}}const Mqt=IO;function Wt(n,t){const e=n.prototype;e.options=e.options?ze({},e.options,t):t}function cte(n){let t=ea,e=Oa;for(let i=0,s=n.length;iparseFloat(i));return new D8(...e)}(t)}function AO(n,t){let e=sn(t-n,9);if(0===e){if(0===t)return.1;e=Math.abs(t)}const i=Math.pow(10,Math.floor(Math.log(e)/Math.log(10))),s=sn(e/i,10);let o=1;return o=s<1.904762?.2:s<4.761904?.5:s<9.523809?1:2,sn(i*o,10)}class M8 extends Yi{constructor(t,e){super(),this.x=t||0,this.y=e||0}clone(){return new M8(this.x,this.y)}equals(t){return t&&this.x===t.x&&this.y===t.y}rotate(t,e){const i=sp(e),s=Math.cos(i),o=Math.sin(i),{x:r,y:a}=t,{x:l,y:c}=this;return this.x=sn(r+(l-r)*s+(c-a)*o,3),this.y=sn(a+(c-a)*s-(l-r)*o,3),this}multiply(t){return this.x*=t,this.y*=t,this}distanceTo(t){const e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)}static onCircle(t,e,i){const s=sp(e);return new M8(t.x-i*Math.cos(s),t.y-i*Math.sin(s))}}const li=M8;class E8 extends Yi{constructor(t,e,i,s){super(),this.x1=t||0,this.y1=e||0,this.x2=i||0,this.y2=s||0}equals(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2}width(){return this.x2-this.x1}height(){return this.y2-this.y1}translate(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this}move(t,e){const i=this.height(),s=this.width();return St(t)&&(this.x1=t,this.x2=this.x1+s),St(e)&&(this.y1=e,this.y2=this.y1+i),this}wrap(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this}wrapPoint(t){const e=Zd(t),i=e?t[0]:t.x,s=e?t[1]:t.y;return this.wrap(new E8(i,s,i,s)),this}snapTo(t,e){return(e===pn||!e)&&(this.x1=t.x1,this.x2=t.x2),(e===cn||!e)&&(this.y1=t.y1,this.y2=t.y2),this}alignTo(t,e){const i=this.height(),s=this.width(),o=e===Cs||e===co?cn:pn,r=o===cn?i:s;if(e===Pi){const a=t.center(),l=this.center();this.x1+=a.x-l.x,this.y1+=a.y-l.y}else this[o+1]=e===Cs||e===os?t[o+1]-r:t[o+2];return this.x2=this.x1+s,this.y2=this.y1+i,this}shrink(t,e){return this.x2-=t,this.y2-=e,this}expand(t,e){return this.shrink(-t,-e),this}pad(t){const e=Co(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this}unpad(t){const e=Co(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)}clone(){return new E8(this.x1,this.y1,this.x2,this.y2)}center(){return new li(this.x1+this.width()/2,this.y1+this.height()/2)}containsPoint(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2}points(){return[new li(this.x1,this.y1),new li(this.x2,this.y1),new li(this.x2,this.y2),new li(this.x1,this.y2)]}getHash(){return[this.x1,this.y1,this.x2,this.y2].join(",")}overlaps(t){return!(t.y2=i*i&&m<=s*s}getBBox(){const t=new qt(ea,ea,Oa,Oa),e=sn(this.startAngle%360),i=sn((e+this.angle)%360),s=this.innerRadius,o=[0,90,180,270,e,i].sort(Fqt),r=o.indexOf(e),a=o.indexOf(i);let l;l=e===i?o:r0&&i===s&&(s+=.001);const o=new Ot(t.center.x,t.center.y),r=Math.max(t.radius,0),a=Math.max(t.innerRadius,0),l=new Yy(o,{startAngle:i,endAngle:s,radiusX:r,radiusY:r}),c=Sn.fromArc(l,e).close();if(a){l.radiusX=l.radiusY=a;const d=l.pointAt(s);c.lineTo(d.x,d.y),c.arc(s,i,a,a,!0)}else c.lineTo(o.x,o.y);return c}}ute.current=new ute;const F8=ute;function Rqt(n){return.5-Math.cos(n*Math.PI)/2}function Pqt(n){return n}function Lqt(n,t,e,i){let s=1.70158,o=0,r=i;return 0===n?e:1===n?e+i:(o||(o=.5),r{const t="undefined"!=typeof window?window:{},e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(i){setTimeout(i,1e3/60)};hte=i=>e.call(t,i),hte(n)};const xOe=hte;let pte;class fte extends Yi{static get current(){return pte||(pte=new fte),pte}constructor(){super(),this._items=[]}register(t,e){this._items.push({name:t,type:e})}create(t,e){const i=this._items;let s;if(e&&e.type){const o=e.type.toLowerCase();for(let r=0;r{const a=()=>{if(this._stopped)return;const l=kO(),c=U4(l-o,0,e),u=s(c/e,c,0,1,e);this.step(u),le);o++);this.visual.insert(o,t)}traverse(t){const e=this.children,i=e.length;for(let s=0;sthis.createHighlight(r),sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total})),!o)return}else o=this._highlight=this.createHighlight(r);St(o.options.zIndex)||(o.options.zIndex=er(i.zIndex,this.options.zIndex)),this.appendVisual(o)}o.visible(t)}createGradientOverlay(t,e,i){const s=new Sn(Object.assign({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},e));return s.segments.elements(t.segments.elements()),s}createGradient(t){if(this.parent)return this.parent.createGradient(t)}supportsPointInactiveOpacity(){return!0}}wOe.prototype.options={};const to=wOe;class SOe extends to{constructor(t){super(t),this.options.margin=Co(this.options.margin),this.options.padding=Co(this.options.padding)}reflow(t){const e=this.options,{width:i,height:s,shrinkToFit:o}=e,r=i&&s,a=e.margin,l=e.padding,c=e.border.width;let d;const u=()=>{this.align(t,pn,e.align),this.align(t,cn,e.vAlign),this.paddingBox=d.clone().unpad(a).unpad(c)};let h=t.clone();r&&(h.x2=h.x1+i,h.y2=h.y1+s),o&&h.unpad(a).unpad(c).unpad(l),super.reflow(h),d=r?this.box=new qt(0,0,i,s):this.box,o&&r?(u(),h=this.contentBox=this.paddingBox.clone().unpad(l)):(h=this.contentBox=d.clone(),d.pad(l).pad(c).pad(a),u()),this.translateChildren(d.x1-h.x1+a.left+c+l.left,d.y1-h.y1+a.top+c+l.top);const f=this.children;for(let m=0;mthis.getElement()}):this.getElement(),i}visualOptions(){const t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}}createVisual(){this.visual=this.createElement()}}Wt(TOe,{type:vf,align:Pi,vAlign:Pi});const IM=TOe,FO="radial",Vqt={glass:{type:"linear",rotation:0,stops:[{offset:0,color:xs,opacity:0},{offset:.25,color:xs,opacity:.3},{offset:1,color:xs,opacity:0}]},sharpBevel:{type:FO,stops:[{offset:0,color:xs,opacity:.55},{offset:.65,color:xs,opacity:0},{offset:.95,color:xs,opacity:.25}]},roundedBevel:{type:FO,stops:[{offset:.33,color:xs,opacity:.06},{offset:.83,color:xs,opacity:.2},{offset:.95,color:xs,opacity:0}]},roundedGlass:{type:FO,supportVML:!1,stops:[{offset:0,color:xs,opacity:0},{offset:.5,color:xs,opacity:.3},{offset:.99,color:xs,opacity:0}]},sharpGlass:{type:FO,supportVML:!1,stops:[{offset:0,color:xs,opacity:.2},{offset:.15,color:xs,opacity:.15},{offset:.17,color:xs,opacity:.35},{offset:.85,color:xs,opacity:.05},{offset:.87,color:xs,opacity:.15},{offset:.99,color:xs,opacity:0}]},bubbleShadow:{type:FO,center:[.5,.5],radius:.5}};function zqt(n,t){if(n.x1===t.x1&&n.y1===t.y1&&n.x2===t.x2&&n.y2===t.y2)return t;const e=Math.min(n.x1,t.x1),i=Math.max(n.x1,t.x1),s=Math.min(n.x2,t.x2),o=Math.max(n.x2,t.x2),r=Math.min(n.y1,t.y1),a=Math.max(n.y1,t.y1),l=Math.min(n.y2,t.y2),c=Math.max(n.y2,t.y2),d=[];return d[0]=new qt(i,r,s,a),d[1]=new qt(e,a,i,l),d[2]=new qt(s,a,o,l),d[3]=new qt(i,l,s,c),n.x1===e&&n.y1===r||t.x1===e&&t.y1===r?(d[4]=new qt(e,r,i,a),d[5]=new qt(s,l,o,c)):(d[4]=new qt(s,r,o,a),d[5]=new qt(e,l,i,c)),bm(d,function(u){return u.height()>0&&u.width()>0})[0]}class kOe extends to{constructor(t){super(t);const e=this.options;e.width=parseInt(e.width,10),e.height=parseInt(e.height,10),this.gradients={}}reflow(){const{options:t,children:e}=this;let i=new qt(0,0,t.width,t.height);this.box=i.unpad(t.margin);for(let s=0;sa&&(c.push({groupElements:m,groupSize:d,groupElementsSize:u}),f=Math.max(f,u),h+=r+d,d=0,u=0,m=[]),d=Math.max(d,D[s]),u>0&&(u+=o),u+=D[i],m.push(k)}return c.push({groupElements:m,groupSize:d,groupElementsSize:u}),f=Math.max(f,u),h+=d,{groups:c,groupsSize:h,maxGroupElementsSize:f}}elementSize(t){return{width:t.box.width(),height:t.box.height()}}createVisual(){}}Wt(DOe,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const gte=DOe,jqt=JZ;class MOe extends to{constructor(t,e){super(e),this.content=t,this.reflow(new qt)}reflow(t){const e=this.options,i=e.size=N4(this.content,{font:e.font});this.baseline=i.baseline,this.box=new qt(t.x1,t.y1,t.x1+i.width,t.y1+i.height)}createVisual(){const{font:t,color:e,opacity:i,cursor:s}=this.options;this.visual=new jqt(this.content,this.box.toRect().topLeft(),{font:t,fill:{color:e,opacity:i},cursor:s})}}Wt(MOe,{font:WFe,color:vr});const $qt=MOe;function mte(n){const t=n.origin,e=n.bottomRight();return new qt(t.x,t.y,e.x,e.y)}const Uqt=/\n/m,Cf=class extends Yw{constructor(t,e,i){super(e),this.content=t,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new qt)}_initContainer(){const t=this.options,e=String(this.content).split(Uqt),i=new gte({vertical:!0,align:t.align,wrap:!1}),s=ze({},t,{opacity:1,animation:null});this.container=i,this.append(i);for(let o=0;o(this._boxReflow=!0,this.reflow(t),this._boxReflow=!1,this.getDefaultVisual())};return this.data&&Object.assign(e,this.data),e}getDefaultVisual(){this.createVisual(),this.renderChildren();const t=this.visual;return delete this.visual,t}rotate(){const t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,pn,t.align),this.align(this.targetBox,cn,t.vAlign),this.box}rotationTransform(){const t=this.options.rotation;if(!t)return null;const{x:e,y:i}=this.normalBox.center(),s=this.rotatedBox.center();return js().translate(s.x-e,s.y-i).rotate(t,[e,i])}};class O8 extends to{constructor(t){super(t),this.append(new Cf(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}reflow(t){super.reflow(t),this.box.snapTo(t,pn)}static buildTitle(t,e,i){let o,s=t;return"string"==typeof t&&(s={text:t}),s=Object.assign({visible:!0},i,s),s&&s.visible&&s.text&&(o=new O8(s),e.append(o)),o}}Wt(O8,{color:vr,position:Cs,align:Pi,margin:Co(5),padding:Co(5)});const EOe=O8;class IOe extends Cf{constructor(t,e,i,s,o){super(e,o),this.text=e,this.value=t,this.index=i,this.dataItem=s,this.reflow(new qt)}visualContext(t){const e=super.visualContext(t);return e.value=this.value,e.dataItem=this.dataItem,e.format=this.options.format,e.culture=this.options.culture,e}click(t,e){t.trigger("axisLabelClick",{element:Cm(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})}rotate(){if(this.options.alignRotation!==Pi){const t=this.normalBox.toRect(),e=this.rotationTransform();this.box=mte(t.bbox(e.matrix()))}else super.rotate();return this.box}rotationTransform(){const t=this.options,e=t.rotation;if(!e)return null;if(t.alignRotation===Pi)return super.rotationTransform();const i=js().rotate(e).matrix(),s=this.normalBox.toRect(),o=this.targetBox.toRect(),r=t.rotationOrigin||Cs,a=r===Cs||r===co?pn:cn,l=r===Cs||r===co?cn:pn,c=r===Cs||r===os?o.origin:o.bottomRight(),d=s.topLeft().transformCopy(i),u=s.topRight().transformCopy(i),h=s.bottomRight().transformCopy(i),f=s.bottomLeft().transformCopy(i),m=ji.fromPoints(d,u,h,f),C={[l]:o.origin[l]-m.origin[l]},k=Math.abs(d[l]+C[l]-c[l]),D=Math.abs(u[l]+C[l]-c[l]);let E,O;sn(k,10)===sn(D,10)?(E=d,O=u):Dthis;let l,c,r=i.size,a=this.fields.text;if(St(e)&&e.visible){const u=tc(e);u?a=u(this.fields):e.format&&(a=this.chartService.format.auto(e.format,a)),e.color||(e.color=e.position===Qee?"#fff":i.background),this.label=new Cf(a,ze({},e)),this.label.aliasFor=o,e.position===Qee&&!St(r)&&(i.type===vf?r=Math.max(this.label.box.width(),this.label.box.height()):(l=this.label.box.width(),c=this.label.box.height()),s.wrap(this.label.box))}i.width=l||r||7,i.height=c||r||7;const d=new IM(ze({},i));d.aliasFor=o,this.marker=d,this.append(d),this.label&&this.append(this.label),d.reflow(new qt),this.wrapperBox=s.wrap(d.box)}}reflow(t){const{options:e,label:i,marker:s,wrapperBox:o}=this,r=t.center(),a=e.line.length,l=e.position;if(e.visible){let c,d,u;Bs(l,[os,Os])?l===os?(u=o.alignTo(t,l).translate(-a,t.center().y-o.center().y),e.line.visible&&(c=[t.x1,r.y],this.linePoints=[c,[u.x2,r.y]],d=u.clone().wrapPoint(c))):(u=o.alignTo(t,l).translate(a,t.center().y-o.center().y),e.line.visible&&(c=[t.x2,r.y],this.linePoints=[c,[u.x1,r.y]],d=u.clone().wrapPoint(c))):l===co?(u=o.alignTo(t,l).translate(t.center().x-o.center().x,a),e.line.visible&&(c=[r.x,t.y2],this.linePoints=[c,[r.x,u.y1]],d=u.clone().wrapPoint(c))):(u=o.alignTo(t,l).translate(t.center().x-o.center().x,-a),e.line.visible&&(c=[r.x,t.y1],this.linePoints=[c,[r.x,u.y2]],d=u.clone().wrapPoint(c))),s&&s.reflow(u),i&&(i.reflow(u),s&&(e.label.position===x8&&i.box.alignTo(s.box,l),i.reflow(i.box))),this.contentBox=u,this.targetBox=t,this.box=d||u}}createVisual(){super.createVisual(),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()}renderVisual(){const t=this.options,e=t.visual;t.visible&&e?(this.visual=e(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:t.background,border:t.background,icon:t.icon,label:t.label,line:t.line,position:t.position,visible:t.visible},createVisual:()=>{this.createVisual(),this.renderChildren();const i=this.visual;return delete this.visual,i}})),this.addVisual()):super.renderVisual()}createLine(){const t=this.options.line;if(this.linePoints){const e=Sn.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});np(e),this.visual.append(e)}}click(t,e){const i=this.eventArgs(e);t.trigger("noteClick",i)||e.preventDefault()}over(t,e){const i=this.eventArgs(e);t.trigger("noteHover",i)||e.preventDefault()}out(t,e){const i=this.eventArgs(e);t.trigger("noteLeave",i)}eventArgs(t){const e=this.options;return Object.assign(this.fields,{element:Cm(t),text:St(e.label)?e.label.text:"",visual:this.visual})}}Wt(FOe,{icon:{visible:!0,type:vf},label:{position:Qee,visible:!0,align:Pi,vAlign:Pi},line:{visible:!0},visible:!0,position:Cs,zIndex:2});const OOe=FOe;function ROe(n,t){const{tickX:e,tickY:i,position:s}=n,o=new Sn({stroke:{width:t.width,color:t.color}});return n.vertical?o.moveTo(e,s).lineTo(e+t.size,s):o.moveTo(s,i).lineTo(s,i+t.size),np(o),o}function POe(n,t){const{lineStart:e,lineEnd:i,position:s}=n,o=new Sn({stroke:{width:t.width,color:t.color,dashType:t.dashType}});return n.vertical?o.moveTo(e,s).lineTo(i,s):o.moveTo(s,e).lineTo(s,i),np(o),o}class LOe extends to{constructor(t,e=new nte){super(t),this.chartService=e,this.options.visible||(this.options=ze({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=ze({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=ze({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}initFields(){}labelsRange(){return{min:this.options.labels.skip,max:this.labelsCount()}}normalizeLabelRotation(t){const e=t.rotation;vm(e)&&(t.alignRotation=e.align,t.rotation=e.angle)}createLabels(){const t=this.options,i=ze({},t.labels,{align:t.vertical?Os:Pi,zIndex:t.zIndex}),s=Math.max(1,i.step);if(this.clearLabels(),i.visible){this.normalizeLabelRotation(i),"auto"===i.rotation&&(i.rotation=0,t.autoRotateLabels=!0);const o=this.labelsRange();for(let r=o.min;r!(t instanceof Kw)),this.labels=[]}clearTitle(){this.title&&(this.children=bm(this.children,t=>t!==this.title),this.title=void 0)}clear(){this.clearLabels(),this.clearTitle()}lineBox(){const{options:t,box:e}=this,s=t.labels.mirror,o=s?e.x1:e.x2,r=s?e.y2:e.y1,a=t.line.width||0;return t.vertical?new qt(o,e.y1,o,e.y2-a):new qt(e.x1,r,e.x2-a,r)}createTitle(){const t=this.options,e=ze({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){const i=new Cf(e.text,e);this.append(i),this.title=i}}createNotes(){const t=this.options,e=t.notes,i=e.data||[];this.notes=[];for(let s=0;s0&&e.visible){const s=new Sn({stroke:{width:e.width,color:e.color,dashType:e.dashType}});s.moveTo(i.x1,i.y1).lineTo(i.x2,i.y2),t._alignLines&&np(s);const o=this._lineGroup=new bs;o.append(s),this.visual.append(o),this.createTicks(o)}}getActualTickSize(){const t=this.options;let e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e}createBackground(){const{options:t,box:e}=this,i=t.background;i&&(this._backgroundPath=Sn.fromRect(e.toRect(),{fill:{color:i},stroke:null}),this.visual.append(this._backgroundPath))}createPlotBands(){const t=this.options,e=t.plotBands||[],i=t.vertical,s=this.plotArea;if(0===e.length)return;const o=this._plotbandGroup=new bs({zIndex:-1}),r=bm(this.pane.axes,a=>a.options.vertical!==this.options.vertical)[0];for(let a=0;ae?-90:-45}autoRotateLabels(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;const t=this.getMajorTickPositions(),e=this.labels,i=Math.min(e.length,t.length-1);let s=0;for(let o=0;oe.format?this.chartService.format.localeAuto(e.format,[t],e.culture):t;return s=o?o(Object.assign({},i,{get text(){return r()},value:t,format:e.format,culture:e.culture})):r(),s}slot(t,e,i){const s=this.getSlot(t,e,i);if(s)return s.toRect()}contentBox(){const t=this.box.clone(),e=this.labels;if(e.length){const i=this.options.vertical?cn:pn;if(this.chartService.isPannable(i)){const s=this.maxLabelOffset();t[i+1]-=s.start,t[i+2]+=s.end}else{e[0].options.visible&&t.wrap(e[0].box);const s=e[e.length-1];s.options.visible&&t.wrap(s.box)}}return t}maxLabelOffset(){const{vertical:t,reverse:e}=this.options,i=this.labelsBetweenTicks(),s=this.getLabelsTickPositions(),o=t?cn:pn,r=this.labels,a=e?1:0,l=e?0:1;let c=0,d=0;for(let u=0;u0&&(!St(r.max)||s<=r.max))return null;if(e0||ss&&o>0&&(c=ts(e,i,s),l=ts(e-a,i,s-a)),{min:l,max:c}}valueRange(){return{min:this.seriesMin,max:this.seriesMax}}labelsBetweenTicks(){return!this.options.justified}prepareUserOptions(){}}Wt(LOe,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:vr,visible:!0},title:{visible:!0,position:Pi},majorTicks:{align:x8,size:4,skip:0,step:1},minorTicks:{align:x8,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:x8,minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:vr,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});const OO=LOe,R8="milliseconds",yte="seconds",_te="minutes",RO="hours",xm="days",PO="weeks",Zw="months",p_="years",AM=6e4,P8=60*AM,f_=24*P8,bte=7*f_,Cte=31*f_,xte=365*f_,wm={years:xte,months:Cte,weeks:bte,days:f_,hours:P8,minutes:AM,seconds:1e3,milliseconds:1};function wte(n,t){return n.getTime()-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*AM}function Oo(n,t){return new Date(n.getTime()+t)}function Ro(n){let t;return n instanceof Date?t=n:n&&(t=new Date(n)),t}function L8(n,t){return 0===t&&23===n.getHours()&&(n.setHours(n.getHours()+2),!0)}function ol(n,t,e,i){let s=n;if(n){let o=Ro(n);const r=o.getHours();e===p_?(s=new Date(o.getFullYear()+t,0,1),L8(s,0)):e===Zw?(s=new Date(o.getFullYear(),o.getMonth()+t,1),L8(s,r)):e===PO?(s=ol(function(n,t=0){let e=0,i=n.getDay();if(!isNaN(i))for(;i!==t;)0===i?i=6:i--,e++;return Oo(n,-e*f_)}(o,i),7*t,xm),L8(s,r)):e===xm?(s=new Date(o.getFullYear(),o.getMonth(),o.getDate()+t),L8(s,r)):e===RO?s=function(n,t){const e=new Date(n);e.setMinutes(0,0,0);const i=(n.getTimezoneOffset()-e.getTimezoneOffset())*AM;return Oo(e,i+t*P8)}(o,t):e===_te?(s=Oo(o,t*AM),s.getSeconds()>0&&s.setSeconds(0)):e===yte?s=Oo(o,1e3*t):e===R8&&(s=Oo(o,t)),e!==R8&&s.getMilliseconds()>0&&s.setMilliseconds(0)}return s}function Ste(n,t,e){return ol(Ro(n),0,t,e)}function NOe(n,t,e){const i=Ro(n);return i&&Ste(i,t,e).getTime()===i.getTime()?i:ol(i,1,t,e)}function Qw(n,t){return n&&t?n.getTime()-t.getTime():-1}function op(n,t){return n.getTime()-t}function Po(n){if(Zd(n)){let t=[];for(let e=0;e0){const i=this.options.vertical?cn:pn,s=t[i+1],o=t[i+2],r=e[0],a=ta(e);(r.box[i+1]>o||r.box[i+2]o||a.box[i+2]e[i+1]<=l&&l<=e[i+2],o=t.length-1;let r=0;for(;!s(t[r])&&r<=o;)r++;let a=o;for(;!s(t[a])&&a>=0;)a--;return t.slice(r,a+1)}getSlot(t,e,i){const s=this.options,{reverse:o,justified:r,vertical:a}=s,{scale:l,box:c,min:d}=this.scaleOptions(),u=a?cn:pn,h=c[u+(o?2:1)],f=c.clone(),m=!St(e),C=er(t,0);let k=er(e,C);k=Math.max(k-1,C),k=Math.max(C,k);let D=h+(C-d)*l,E=h+(k+1-d)*l;return m&&r&&(E=D),i&&(D=ts(D,c[u+1],c[u+2]),E=ts(E,c[u+1],c[u+2])),f[u+1]=o?E:D,f[u+2]=o?D:E,f}limitSlot(t){const i=this.options.vertical?cn:pn,s=this.lineBox(),o=t.clone();return o[i+1]=ts(t[i+1],s[i+1],s[i+2]),o[i+2]=ts(t[i+2],s[i+1],s[i+2]),o}slot(t,e,i){const s=Math.floor(this.options.min||0);let o=t,r=e;return"string"==typeof o?o=this.categoryIndex(o):Li(o)&&(o-=s),"string"==typeof r?r=this.categoryIndex(r):Li(r)&&(r-=s),super.slot(o,r,i)}pointCategoryIndex(t){const{reverse:e,justified:i,vertical:s}=this.options,o=s?cn:pn,{scale:r,box:a,min:l,max:c}=this.scaleOptions(),u=a[o+1],f=t[o];if(fa[o+2])return null;let m=(e?c:l)+(f-u)/r;const C=m%1;return i?m=Math.round(m):0===C&&m>0&&m--,Math.floor(m)}getCategory(t){const e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]}categoryIndex(t){return this.totalIndex(t)-Math.floor(this.options.min||0)}categoryAt(t,e){const i=this.options;return(e?i.srcCategories:i.categories)[t]}categoriesCount(){return(this.options.categories||[]).length}translateRange(t){const e=this.options,i=this.lineBox(),s=e.vertical?i.height():i.width(),o=e.categories.length,a=sn(t/(s/o),10);return{min:a,max:o+a}}zoomRange(t){const e=this.totalRangeIndices(),{min:i,max:s}=this.totalRange(),o=ts(e.min+t,i,s),r=ts(e.max-t,i,s);if(r-o>0)return{min:o,max:r}}scaleRange(t){const e=this.options.categories.length,i=t*e;return{min:-i,max:e+i}}labelsCount(){const t=this.labelsRange();return t.max-t.min}labelsRange(){const t=this.options,{justified:e,labels:i}=t;let{min:s,max:o}=this.totalRangeIndices(!0);const r=Math.floor(s);let a;return e?(s=Math.ceil(s),o=Math.floor(o)):(s=Math.floor(s),o=Math.ceil(o)),a=s>i.skip?i.skip+i.step*Math.ceil((s-i.skip)/i.step):i.skip,{min:a-r,max:(t.categories.length?o+(e?1:0):0)-r}}createAxisLabel(t,e,i){const s=this.options,o=s.dataItems?s.dataItems[t]:null,r=er(s.categories[t],"");i.dataItem=o;const a=this.axisLabelText(r,e,i);return new Kw(r,a,t,o,e)}shouldRenderNote(t){const e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)}noteSlot(t){const i=t-Math.floor(this.options.min||0);return this.getSlot(i)}arrangeNotes(){super.arrangeNotes(),this.hideOutOfRangeNotes()}hideOutOfRangeNotes(){const{notes:t,box:e}=this;if(t&&t.length){const i=this.options.vertical?cn:pn,s=e[i+1],o=e[i+2];for(let r=0;r=.01)return{min:m,max:C}}valueRange(){return this.range()}totalIndex(t){const e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(n,t){if(n instanceof Date){const e=t.length;for(let i=0;i=r;){h=h||o[c].slice(0);do{m=h.shift()}while(m&&t===c&&mr&&(f=Math.ceil(u/r));break}c=g_[l++]||ta(g_),u=s/wm[c],h=null}}n.baseUnitStep=f,n.baseUnit=c}class z8 extends Ub{clone(){const t=new z8(Object.assign({},this.options),this.chartService);return t.createLabels(),t}categoriesHash(){const t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t}initUserOptions(t){return t}initFields(){super.initFields();const t=this.chartService,e=t.intl;let i=this.options,s=i.categories||[];if(s._parsed||(s=VOe(e,s),s._parsed=!0),i=ze({roundToBaseUnit:!0},i,{categories:s,min:nc(e,i.min),max:nc(e,i.max),weekStartDay:zOe(i,e)}),t.panning&&t.isPannable(i.vertical?cn:pn)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=s,s.length>0){const o=V8(s),r=i.maxDivisions;if(this.dataRange=new Dte(o.min,o.max,function(n){const t=(n.baseUnit||"").toLowerCase();return t!==B8&&!Bs(t,g_)&&function(n){const t=n.categories,e=St(t)?t.length:0;let s,o,i=ea;for(let r=0;r0&&(i=Math.min(i,l),o=i>=xte?p_:i>=Cte-3*f_?Zw:i>=bte?PO:i>=f_?xm:i>=P8?RO:i>=AM?_te:yte)}s=a}n.baseUnit=o||xm}(n),(t===B8||"auto"===n.baseUnitStep)&&$Oe(n),n}(i)),r){const a=this.dataRange.displayRange(),l=Object.assign({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:r}),c=this.dataRange.options;$Oe(l,c.baseUnit,c.baseUnitStep),this.divisionRange=new Dte(o.min,o.max,l)}else this.divisionRange=this.dataRange}else i.baseUnit=i.baseUnit||xm,this.dataRange=this.divisionRange=new eXt(i);this.rangeLabels=[]}tickIndices(t){const{dataRange:e,divisionRange:i}=this,s=i.valuesCount();if(!this.options.maxDivisions||!s)return super.tickIndices(t);const o=[];let r=i.values(),a=0;this.options.justified||(r=r.concat(i.dateAt(s)),a=.5);for(let l=0;l=1){const c=o.length-1;o.splice(l,0,o[c-1]+(o[c]-o[c-1])*t)}return o}shouldRenderNote(t){const e=this.range(),i=this.options.categories||[];return Qw(t,e.min)>=0&&Qw(t,e.max)<=0&&i.length}parseNoteValue(t){return nc(this.chartService.intl,t)}noteSlot(t){return this.getSlot(t)}translateRange(t){const e=this.options,{baseUnit:i,weekStartDay:s,vertical:o}=e,r=this.lineBox(),a=o?r.height():r.width();let l=this.range();const d=sn(t/(a/(l.max-l.min)),10);if(l.min&&l.max){const u=Oo(e.min||l.min,d),h=Oo(e.max||l.max,d);l={min:ol(u,0,i,s),max:ol(h,0,i,s)}}return l}scaleRange(t){let e=Math.abs(t),i=this.range(),{min:s,max:o}=i;if(s&&o){for(;e--;){const r=op(s,o),a=Math.round(.1*r);t<0?(s=Oo(s,a),o=Oo(o,-a)):(s=Oo(s,-a),o=Oo(o,a))}i={min:s,max:o}}return i}labelsRange(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}pan(t){if(this.isEmpty())return null;const e=this.options,i=this.lineBox(),s=e.vertical?i.height():i.width(),{min:o,max:r}=this.dataRange.displayRange(),a=this.dataRange.total(),c=sn(t/(s/(r-o)),10)*(e.reverse?-1:1),d=Oo(o,c),u=Oo(r,c),h=this.limitRange(Po(d),Po(u),Po(a.min),Po(a.max),c);return h?(h.min=Ro(h.min),h.max=Ro(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0}pointsRange(t,e){if(this.isEmpty())return null;const i=super.pointsRange(t,e),s=this.dataRange.displayRange(),o=this.dataRange.displayIndices(),r=op(s.max,s.min)/(o.max-o.min),a=this.options;return{min:Oo(s.min,i.min*r),max:Oo(s.min,i.max*r),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}}zoomRange(t){if(this.isEmpty())return null;const e=this.options,i=e.userSetBaseUnit===B8,s=this.dataRange.total(),{min:o,max:r}=this.dataRange.displayRange();let{weekStartDay:a,baseUnit:l,baseUnitStep:c}=this.dataRange.options,d=ol(o,t*c,l,a),u=ol(r,-t*c,l,a);if(i){const{autoBaseUnitSteps:h,maxDateGroups:f}=e,m=ta(h[l])*f*wm[l],C=op(r,o),k=op(u,d);let E,O,D=g_.indexOf(l);if(km&&l!==p_){let z=0;do{D++,l=g_[D],z=0,O=2*wm[l];do{E=h[l][z],z++}while(z0&&(d=Oo(o,-O),u=Oo(r,O),d=Oo(d,ts(u,s.min,s.max)-u),u=Oo(u,ts(d,s.min,s.max)-d))}}return ds.max&&(u=s.max),d&&u&&op(u,d)>0?{min:d,max:u,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0}range(){return this.dataRange.displayRange()}createLabels(){super.createLabels(),this.createRangeLabels()}clearLabels(){super.clearLabels(),this.rangeLabels=[]}arrangeLabels(){this.arrangeRangeLabels(),super.arrangeLabels()}arrangeRangeLabels(){const{options:t,rangeLabels:e}=this;if(0===e.length)return;const i=this.lineBox(),s=t.vertical,o=t.rangeLabels.mirror||t.labels.mirror,r=e[0];if(r){const l=s?i.y1-r.box.height()/2:i.x1;this.positionLabel(r,o,l)}const a=e[1];if(a){const l=s?i.y2-a.box.height()/2:i.x2;this.positionLabel(a,o,l)}}autoRotateLabels(){super.autoRotateLabels(),this.autoRotateRangeLabels()}hideOutOfRangeLabels(){super.hideOutOfRangeLabels(),this.hideOverlappingLabels()}hideOverlappingLabels(){const{rangeLabels:t,labels:e}=this;if(0===t.length)return;function i(r,a){return!(a.options.visible&&!a.box.overlaps(r.box)||(a.options.visible=!1,0))}const s=t[0];if(s&&s.options.visible)for(let r=0;r0&&i(o,e[r]);--r);}contentBox(){const t=super.contentBox(),e=this.rangeLabels;for(let i=0;i{if(u){const h=new Kw(d,u,c,null,s);this.append(h),this.rangeLabels.push(h)}};r(0,t,this.axisLabelText(t,s,{index:0,count:2})),r(1,e,this.axisLabelText(e,s,{index:1,count:2}))}autoRotateRangeLabels(){const t=this.rangeLabels;if(!this.options.autoRotateRangeLabels||this.options.vertical||2!==t.length)return;const e=(s,o,r)=>{const a=2*Math.abs(o[r+1]-o[r]),l=this.autoRotateLabelAngle(s.box,a);0!==l&&(s.options.rotation=l,s.reflow(new qt))},i=this.getMajorTickPositions();e(t[0],i,0),e(t[1],i,i.length-2)}categoryIndex(t){return this.dataRange.valueIndex(t)}slot(t,e,i){const s=this.dataRange;let o=t,r=e;o instanceof Date&&(o=s.dateIndex(o)),r instanceof Date&&(r=s.dateIndex(r));const a=this.getSlot(o,r,i);if(a)return a.toRect()}getSlot(t,e,i){let s=t,o=e;return typeof s===ete&&(s=this.categoryIndex(s)),typeof o===ete&&(o=this.categoryIndex(o)),super.getSlot(s,o,i)}valueRange(){const e=V8(this.options.srcCategories);return{min:Ro(e.min),max:Ro(e.max)}}categoryAt(t,e){return this.dataRange.dateAt(t,e)}categoriesCount(){return this.dataRange.valuesCount()}rangeIndices(){return this.dataRange.displayIndices()}labelsBetweenTicks(){return!this.divisionRange.options.justified}prepareUserOptions(){this.isEmpty()||(this.options.categories=this.dataRange.values())}getCategory(t){const e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)}totalIndex(t){return this.dataRange.totalIndex(t)}currentRangeIndices(){const t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}}totalRange(){return this.dataRange.total()}totalCount(){return this.dataRange.totalCount()}isEmpty(){return!this.options.srcCategories.length}roundedRange(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();const t=this.options,e=V8(t.srcCategories);return new Dte(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()}}Wt(z8,{type:qw,labels:{dateFormats:GOe},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});const H8=z8;function UOe(n,t){return sn(Math.floor(n/t)*t,10)}function G8(n,t){return sn(Math.ceil(n/t)*t,10)}function j8(n){return Math.max(Math.min(n,3e5),-3e5)}const oXt=Math.pow(10,-9);class $8 extends OO{constructor(t,e,i,s){super(Object.assign({},i,{seriesMin:t,seriesMax:e}),s)}initUserOptions(t){const e=function(n,t,e){const i=e.narrowRange;let s=function(n,t,e){if(!n&&!t)return 0;let i;if(n>=0&&t>=0){const s=n===t?0:n;let o=(t-s)/t;if(!1===e||!e&&o>.2)return 0;i=Math.max(0,s-(t-s)/2)}else i=n;return i}(n,t,i),o=function(n,t,e){if(!n&&!t)return 1;let i;if(n<=0&&t<=0){const s=n===t?0:t;let o=Math.abs((s-n)/s);if(!1===e||!e&&o>.2)return 0;i=Math.min(0,s-(n-s)/2)}else i=t;return i}(n,t,i);const r=AO(s,o),a={majorUnit:r};return!1!==e.roundToMajorUnit&&(s<0&&WOe(s,r,1/3)&&(s-=r),o>0&&WOe(o,r,1/3)&&(o+=r)),a.min=UOe(s,r),a.max=G8(o,r),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(n,t){return{min:St(t.min)?Math.min(n.min,t.min):n.min,max:St(t.max)?Math.max(n.max,t.max):n.max,majorUnit:n.majorUnit}}(e,t),function(n,t){let i,s,e=t;if(t){(function(n,t){for(let e=0;e0?t.min=0:t.max=1),t.majorUnit?(n.min=UOe(n.min,t.majorUnit),n.max=G8(n.max,t.majorUnit)):r&&(e=ze(n,t),n.majorUnit=AO(e.min,e.max))}n.minorUnit=(e.majorUnit||n.majorUnit)/5;const o=ze(n,e);return o.min>=o.max&&(i&&!s?o.max=o.min+o.majorUnit:!i&&s&&(o.min=o.max-o.majorUnit)),o}(e,t)}initFields(){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}clone(){return new $8(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return 0}range(){const t=this.options;return{min:t.min,max:t.max}}getDivisions(t){if(0===t)return 1;const e=this.options;return Math.floor(sn((e.max-e.min)/t,3))+1}getTickPositions(t,e){const i=this.options,{vertical:s,reverse:o}=i,r=this.lineBox(),d=t*((s?r.height():r.width())/(i.max-i.min)),u=this.getDivisions(t),h=(s?-1:1)*(o?-1:1),m=[];let C=r[(s?cn:pn)+(1===h?1:2)],k=0;e&&(k=e/t);for(let D=0;Dd?null:sn(i?o-m:r+m,10)}translateRange(t){const e=this.options,{vertical:i,reverse:s,max:o,min:r}=e,a=this.lineBox(),l=i?a.height():a.width();let u=sn(t/(l/(o-r)),10);return(i||s)&&!(i&&s)&&(u=-u),{min:r+u,max:o+u,offset:u}}scaleRange(t){const e=this.options,i=-t*e.majorUnit;return{min:e.min-i,max:e.max+i}}labelsCount(){return this.getDivisions(this.options.majorUnit)}createAxisLabel(t,e,i){const s=this.options,o=sn(s.min+t*s.majorUnit,10),r=this.axisLabelText(o,e,i);return new Kw(o,r,t,null,e)}shouldRenderNote(t){const e=this.range();return e.min<=t&&t<=e.max}pan(t){const e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)}pointsRange(t,e){const i=this.getValue(t),s=this.getValue(e),o=Math.min(i,s),r=Math.max(i,s);if(this.isValidRange(o,r))return{min:o,max:r}}zoomRange(t){const{totalMin:e,totalMax:i}=this,s=this.scaleRange(t),o=ts(s.min,e,i),r=ts(s.max,e,i);if(this.isValidRange(o,r))return{min:o,max:r}}isValidRange(t,e){return e-t>oXt}}function WOe(n,t,e){const i=sn(Math.abs(n%t),10);return 0===i||i>t*(1-e)}Wt($8,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:vr},labels:{format:"#.####################"},zIndex:1});const rp=$8;class U8 extends OO{constructor(t,e,i,s){const o=Ro(t),r=Ro(e),a=s.intl;let l=i||{};l=ze(l||{},{min:nc(a,l.min),max:nc(a,l.max),axisCrossingValue:VOe(a,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:zOe(l,a)}),l=function(n,t,e){const i=e.min||n,s=e.max||t,o=e.baseUnit||(s&&i?function(n){let t=RO;return n>=xte?t=p_:n>=Cte?t=Zw:n>=bte?t=PO:n>=f_&&(t=xm),t}(wte(s,i)):RO),r=wm[o],a=e.weekStartDay||0,l=Ste(Po(i)-1,o,a)||Ro(s),c=NOe(Po(s)+1,o,a),u=(e.majorUnit?e.majorUnit:void 0)||G8(AO(l.getTime(),c.getTime()),r)/r,h=kte(l,c,o),m=G8(h,u)-h,C=Math.floor(m/2),k=m-C;return e.baseUnit||delete e.baseUnit,e.baseUnit=e.baseUnit||o,e.min=e.min||ol(l,-C,o,a),e.max=e.max||ol(c,k,o,a),e.minorUnit=e.minorUnit||u/5,e.majorUnit=u,e}(o,r,l),super(l,s),this.intlService=a,this.seriesMin=o,this.seriesMax=r;const c=l.weekStartDay||0;this.totalMin=Po(Ste(Po(o)-1,l.baseUnit,c)),this.totalMax=Po(NOe(Po(r)+1,l.baseUnit,c))}clone(){return new U8(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}range(){const t=this.options;return{min:t.min,max:t.max}}getDivisions(t){const e=this.options;return Math.floor(kte(e.min,e.max,e.baseUnit)/t+1)}getTickPositions(t){const e=this.options,i=e.vertical,s=this.lineBox(),o=(i?-1:1)*(e.reverse?-1:1),a=s[(i?cn:pn)+(1===o?1:2)],l=this.getDivisions(t),c=op(e.max,e.min),u=(i?s.height():s.width())/c,h=e.weekStartDay||0,f=[a];for(let m=1;m0&&(a=ol(a,o,s.baseUnit,s.weekStartDay||0)),e.format=e.format||e.dateFormats[s.baseUnit];const c=this.axisLabelText(a,e,i);return new Kw(a,c,t,null,e)}translateRange(t,e){const i=this.options,s=i.baseUnit,o=i.weekStartDay||0,r=this.lineBox(),a=i.vertical?r.height():r.width(),l=this.range(),c=a/op(l.max,l.min),d=sn(t/c,10)*(i.reverse?-1:1);let u=Oo(i.min,d),h=Oo(i.max,d);return e||(u=ol(u,0,s,o),h=ol(h,0,s,o)),{min:u,max:h,offset:d}}scaleRange(t){let{min:e,max:i}=this.options,s=Math.abs(t);for(;s--;){const o=op(e,i),r=Math.round(.1*o);t<0?(e=Oo(e,r),i=Oo(i,-r)):(e=Oo(e,-r),i=Oo(i,r))}return{min:e,max:i}}shouldRenderNote(t){const e=this.range();return Qw(t,e.min)>=0&&Qw(t,e.max)<=0}pan(t){const e=this.translateRange(t,!0),i=this.limitRange(Po(e.min),Po(e.max),this.totalMin,this.totalMax,e.offset);if(i)return{min:Ro(i.min),max:Ro(i.max)}}pointsRange(t,e){const i=this.getValue(t),s=this.getValue(e),o=Math.min(i,s),r=Math.max(i,s);return{min:Ro(o),max:Ro(r)}}zoomRange(t){const e=this.scaleRange(t);return{min:Ro(ts(Po(e.min),this.totalMin,this.totalMax)),max:Ro(ts(Po(e.max),this.totalMin,this.totalMax))}}}Wt(U8,{type:qw,majorGridLines:{visible:!0,width:1,color:vr},labels:{dateFormats:GOe}});const qOe=U8;class W8 extends OO{constructor(t,e,i,s){const o=ze({majorUnit:10,min:t,max:e},i),r=o.majorUnit,a=function(n,t){const e=sn(Wu(n,t),10)%1;let i;return i=n<=0?t:0!==e&&(e<.3||e>.9)?Math.pow(t,Wu(n,t)+.2):Math.pow(t,Math.ceil(Wu(n,t))),i}(e,r),l=function(n,t,e){const i=e.majorUnit;let s=n;return n<=0?s=t<=1?Math.pow(i,-2):1:e.narrowRange||(s=Math.pow(i,Math.floor(Wu(n,i)))),s}(t,e,o),c=function(n,t,e,i){let{min:s,max:o}=e;return St(e.axisCrossingValue)&&e.axisCrossingValue<=0&&Mte(),St(i.max)?i.max<=0&&Mte():o=t,St(i.min)?i.min<=0&&Mte():s=n,{min:s,max:o}}(l,a,o,i);o.max=c.max,o.min=c.min,o.minorUnit=i.minorUnit||sn(r-1,10),super(o,s),this.totalMin=St(i.min)?Math.min(l,i.min):l,this.totalMax=St(i.max)?Math.max(a,i.max):a,this.logMin=sn(Wu(c.min,r),10),this.logMax=sn(Wu(c.max,r),10),this.seriesMin=t,this.seriesMax=e,this.createLabels()}clone(){return new W8(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return this.options.min}getSlot(t,e,i){const{options:s,logMin:o,logMax:r}=this,{reverse:a,vertical:l,majorUnit:c}=s,d=l?cn:pn,u=this.lineBox(),h=u[d+(a?2:1)],C=(l?u.height():u.width())/(r-o)*(a?-1:1),k=new qt(u.x1,u.y1,u.x1,u.y1);let O,z,D=t,E=e;return St(D)||(D=E||1),St(E)||(E=D||1),D<=0||E<=0?null:(i&&(D=Math.max(Math.min(D,s.max),s.min),E=Math.max(Math.min(E,s.max),s.min)),D=Wu(D,c),E=Wu(E,c),l?(O=r-Math.max(D,E),z=r-Math.min(D,E)):(O=Math.min(D,E)-o,z=Math.max(D,E)-o),k[d+1]=j8(h+C*(a?z:O)),k[d+2]=j8(h+C*(a?O:z)),k)}getValue(t){const{options:e,logMin:i,logMax:s}=this,{reverse:o,vertical:r,majorUnit:a}=e,l=this.lineBox(),c=r===o?1:-1,d=1===c?1:2,u=r?l.height():l.width(),f=r?cn:pn,C=c*(t[f]-l[f+d]);return C<0||C>u?null:sn(Math.pow(a,i+C*((s-i)/u)),10)}range(){const t=this.options;return{min:t.min,max:t.max}}scaleRange(t){const e=this.options.majorUnit,i=-t;return{min:Math.pow(e,this.logMin-i),max:Math.pow(e,this.logMax+i)}}translateRange(t){const{options:e,logMin:i,logMax:s}=this,{reverse:o,vertical:r,majorUnit:a}=e,l=this.lineBox(),d=(r?l.height():l.width())/(s-i);let u=sn(t/d,10);return(r||o)&&!(r&&o)&&(u=-u),{min:Math.pow(a,i+u),max:Math.pow(a,s+u),offset:u}}labelsCount(){const t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1}getMajorTickPositions(){const t=[];return this.traverseMajorTicksPositions(e=>{t.push(e)},{step:1,skip:0}),t}createTicks(t){const e=this.options,{majorTicks:i,minorTicks:s,vertical:o}=e,r=e.labels.mirror,a=this.lineBox(),c={vertical:o};function d(u,h){c.tickX=r?a.x2:a.x2-h.size,c.tickY=r?a.y1-h.size:a.y1,c.position=u,t.append(ROe(c,h))}return i.visible&&this.traverseMajorTicksPositions(d,i),s.visible&&this.traverseMinorTicksPositions(d,s),[]}createGridLines(t){const e=this.options,{minorGridLines:i,majorGridLines:s,vertical:o}=e,r=t.lineBox(),a={lineStart:r[o?"x1":"y1"],lineEnd:r[o?"x2":"y2"],vertical:o},l=[],c=this.gridLinesVisual();function d(u,h){Bs(u,l)||(a.position=u,c.append(POe(a,h)),l.push(u))}return s.visible&&this.traverseMajorTicksPositions(d,s),i.visible&&this.traverseMinorTicksPositions(d,i),c.children}traverseMajorTicksPositions(t,e){const{lineStart:i,step:s}=this._lineOptions(),{logMin:o,logMax:r}=this;for(let a=Math.ceil(o)+e.skip;a<=r;a+=e.step)t(sn(i+s*(a-o),10),e)}traverseMinorTicksPositions(t,e){const{min:i,max:s,minorUnit:o,majorUnit:r}=this.options,{lineStart:a,step:l}=this._lineOptions(),{logMin:c,logMax:d}=this;for(let h=Math.floor(c);hs)break;C>=i&&t(sn(a+l*(Wu(C,r)-c),10),e)}}}createAxisLabel(t,e,i){const s=Math.ceil(this.logMin+t),o=Math.pow(this.options.majorUnit,s),r=this.axisLabelText(o,e,i);return new Kw(o,r,t,null,e)}shouldRenderNote(t){const e=this.range();return e.min<=t&&t<=e.max}pan(t){const e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)}pointsRange(t,e){const i=this.getValue(t),s=this.getValue(e);return{min:Math.min(i,s),max:Math.max(i,s)}}zoomRange(t){const{options:e,totalMin:i,totalMax:s}=this,o=this.scaleRange(t),r=ts(o.min,i,s),a=ts(o.max,i,s),l=e.majorUnit,c=a>r&&e.min&&e.max&&sn(Wu(e.max,l)-Wu(e.min,l),10)<1,d=!(e.min===i&&e.max===s)&&sn(Wu(a,l)-Wu(r,l),10)>=1;if(c||d)return{min:r,max:a}}_minorIntervalOptions(t){const{minorUnit:e,majorUnit:i}=this.options,s=Math.pow(i,t);return{value:s,minorStep:(Math.pow(i,t+1)-s)/e}}_lineOptions(){const{reverse:t,vertical:e}=this.options,i=e?cn:pn,s=this.lineBox(),o=e===t?1:-1,r=1===o?1:2;return{step:o*((e?s.height():s.width())/(this.logMax-this.logMin)),lineStart:s[i+r],lineBox:s}}}function Mte(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Wu(n,t){return Math.log(n)/Math.log(t)}Wt(W8,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:vr},zIndex:1,_deferLabels:!0});const q8=W8,YOe={createGridLines:function(n){const t=this.options,e=Math.abs(this.box.center().y-n.lineBox().y1);let o,r,i=[],s=!1;return t.majorGridLines.visible&&(o=this.majorGridLineAngles(n),s=!0,i=this.renderMajorGridLines(o,e,t.majorGridLines)),t.minorGridLines.visible&&(r=this.minorGridLineAngles(n,s),Xw(i,this.renderMinorGridLines(r,e,t.minorGridLines,n,s))),i},renderMajorGridLines:function(n,t,e){return this.renderGridLines(n,t,e)},renderMinorGridLines:function(n,t,e,i,s){const o=this.radiusCallback&&this.radiusCallback(t,i,s);return this.renderGridLines(n,t,e,o)},renderGridLines:function(n,t,e,i){const s={stroke:{width:e.width,color:e.color,dashType:e.dashType}},o=this.box.center(),r=new qh([o.x,o.y],t),a=this.gridLinesVisual();for(let l=0;l{const c=this.intervalAngle(l);if(!a||90!==c)return c})}};class Ete extends Ub{range(){return{min:0,max:this.options.categories.length}}reflow(t){this.box=t,this.reflowLabels()}lineBox(){return this.box}reflowLabels(){const{labels:t,options:{labels:e}}=this,i=e.skip||0,s=e.step||1,o=new qt;for(let r=0;rthis.intervalAngle(t))}createLine(){return[]}majorGridLineAngles(t){const e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)}minorGridLineAngles(t,e){const{minorGridLines:i,majorGridLines:s}=this.options,o=e?this.intervals(1,s.skip,s.step):null;return this.gridLineAngles(t,.5,i.skip,i.step,o)}radiusCallback(t,e,i){if(e.options.type!==$b){const s=sp(360/(2*this.options.categories.length)),o=Math.cos(s)*t,r=this.majorAngles();return function(l){return!i&&Bs(l,r)?t:o}}}createPlotBands(){const t=this.options.plotBands||[],e=this._plotbandGroup=new bs({zIndex:-1});for(let i=0;i0){const d=new qh([n.x,n.y],c);if(i.type===$b)a.append(new Tb(d,s));else{const u=new Sn(s);for(let h=0;h1){const c=(_Oe(Math.atan2(n.y-s.y,n.x-s.x))+540)%360;i.sort(function(m,C){return X8(m,c)-X8(C,c)});const d=X8(i[0],i[1])/2,u=X8(c,i[0]),h=90-d;r=o*(Math.sin(sp(180-u-h))/Math.sin(sp(h)))}return this.axisType().prototype.getValue.call(this,new li(t.x1,t.y2-r))}};class ZOe extends rp{radarMajorGridLinePositions(){return this.getTickPositions(this.options.majorUnit)}radarMinorGridLinePositions(){const t=this.options;let e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)}axisType(){return rp}}ze(ZOe.prototype,KOe);const yXt=ZOe;class QOe extends q8{radarMajorGridLinePositions(){const t=[];return this.traverseMajorTicksPositions(function(e){t.push(e)},this.options.majorGridLines),t}radarMinorGridLinePositions(){const t=[];return this.traverseMinorTicksPositions(function(e){t.push(e)},this.options.minorGridLines),t}axisType(){return q8}}ze(QOe.prototype,KOe);const _Xt=QOe;function eRe(n){return n<=0?-1:1}const Y8=class extends Yi{constructor(t){super(),this.closed=t}process(t){const e=t.slice(0),i=[];let s=this.closed,o=e.length;if(o>2&&(this.removeDuplicates(0,e),o=e.length),o<2||2===o&&e[0].equals(e[1]))return i;let c,d,r=e[0],a=e[1],l=e[2];for(i.push(new uf(r));r.equals(e[o-1]);)s=!0,e.pop(),o--;if(2===o){const h=this.tangent(r,a,pn,cn);return ta(i).controlOut(this.firstControlPoint(h,r,a,pn,cn)),i.push(new uf(a,this.secondControlPoint(h,r,a,pn,cn))),i}if(s){r=e[o-1],a=e[0],l=e[1];const h=this.controlPoints(r,a,l);c=h[1],d=h[0]}else{const h=this.tangent(r,a,pn,cn);c=this.firstControlPoint(h,r,a,pn,cn)}let u=c;for(let h=0;h<=o-3;h++)if(this.removeDuplicates(h,e),o=e.length,h+3<=o){r=e[h],a=e[h+1],l=e[h+2];const f=this.controlPoints(r,a,l);ta(i).controlOut(u),u=f[1],i.push(new uf(a,f[0]))}if(s){r=e[o-2],a=e[o-1],l=e[0];const h=this.controlPoints(r,a,l);ta(i).controlOut(u),i.push(new uf(a,h[0])),ta(i).controlOut(h[1]),i.push(new uf(l,d))}else{const h=this.tangent(a,l,pn,cn);ta(i).controlOut(u),i.push(new uf(l,this.secondControlPoint(h,a,l,pn,cn)))}return i}removeDuplicates(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)}invertAxis(t,e,i){let s=!1;if(t.x===e.x)s=!0;else if(e.x===i.x)(e.y=r||(s=!0)}return s}isLine(t,e,i){const s=this.lineFunction(t,e),o=this.calculateFunction(s,i.x);return t.x===e.x&&e.x===i.x||sn(o,1)===sn(i.y,1)}lineFunction(t,e){const i=(e.y-t.y)/(e.x-t.x);return[t.y-i*t.x,i]}controlPoints(t,e,i){let l,s=pn,o=cn,r=!1,a=!1;if(this.isLine(t,e,i))l=this.tangent(t,e,pn,cn);else{const u={x:this.isMonotonicByField(t,e,i,pn),y:this.isMonotonicByField(t,e,i,cn)};if(u.x&&u.y)l=this.tangent(t,i,pn,cn),r=!0;else if(this.invertAxis(t,e,i)&&(s=cn,o=pn),u[s])l=0;else{let h;h=i[o]e[s]&&e[s]>t[s]||i[s]0&&(e=Rte.sum(n)/t),e},first:function(n){const t=n.length;for(let e=0;e=0){this.valueGetter=this.createValueGetter(e,i);const r=this.getStandardError(s,this.getAverage(s));this.globalRange=function(a){return{low:a-r,high:a+r}}}}createValueGetter(t,e){const i=t.data,s=Ra.current,o=s.valueFields(t),r=St(i[0])?i[0]:{};let a;return Zd(r)?a=TO("["+(e?o.indexOf(e):0)+"]"):Li(r)?a=TO():typeof r===ete&&(a=TO(s.sourceFields(t,o)[o.indexOf(e)])),a}getErrorRange(t,e){let i,s,o;if(!St(e))return null;if(this.globalRange)return this.globalRange(t);if(Zd(e))i=t-e[0],s=t+e[1];else if(Li(o=parseFloat(e)))i=t-o,s=t+o;else{if(!(o=EXt.exec(e)))throw new Error("Invalid ErrorBar value: "+e);{const r=t*(parseFloat(o[1])/100);i=t-Math.abs(r),s=t+Math.abs(r)}}return{low:i,high:s}}getStandardError(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)}getStandardDeviation(t,e,i){const s=t.length,o=i?e.count-1:e.count;let r=0;for(let a=0;a{this.createDefaultVisual();const i=this.visual;return delete this.visual,i}}):this.createDefaultVisual()}createDefaultVisual(){const{options:t,linePoints:e}=this,i={stroke:{color:t.color,width:t.line.width,dashType:t.line.dashType}};super.createVisual();for(let s=0;s5)return null;for(let a in n)if(!Bs(a,e.excluded)&&n.hasOwnProperty(a)){const l=n[a];sl(l)?(r=!0,i||(n[a]=er(l(t),s[a]))):vm(l)&&(i||(e.defaults=s[a]),e.depth++,r=tS(l,t,e,i)||r,e.depth--)}return r}function qte(n){const t=n.length;let e=0;for(let i=0;i0)return t.value/o}return t.value}plotRange(t,e=0){const i=this.categoryPoints[t.categoryIx];if(this.options.isStacked){let a=this.plotValue(t);const l=a>=0;let c=e,d=!1;for(let u=0;u=0&&l||C<0&&!l)&&(c+=C,a+=C,d=!0,this.options.isStacked100&&(a=Math.min(a,1)))}return d&&(c-=e),[c,a]}const o=this.seriesValueAxis(t.series),r=this.categoryAxisCrossingValue(o);return[r,JFe(t.value)?t.value:r]}stackLimits(t,e){let i=ea,s=Oa;for(let o=0;o0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,o)),{low:s,high:o}}addValue(t,e){const{categoryIx:i,series:s,seriesIx:o}=e;let r=this.categoryPoints[i];r||(this.categoryPoints[i]=r=[]);let a=this.seriesPoints[o];a||(this.seriesPoints[o]=a=[]);const l=this.createPoint(t,e);l&&(Object.assign(l,e),l.owner=this,l.noteText=t.fields.noteText,St(l.dataItem)||(l.dataItem=s.data[i]),this.addErrorBar(l,t,i)),this.points.push(l),a.push(l),r.push(l),this.updateRange(t.valueFields,e)}evalPointOptions(t,e,i,s,o,r){const a={defaults:o._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]};let l=this._evalSeries[r];St(l)||(this._evalSeries[r]=l=tS(t,{},a,!0));let c=t;return l&&(c=ze({},c),tS(c,{value:e,category:i,index:s,series:o,dataItem:o.data[s]},a)),c}updateRange(t,e){const i=e.series.axis,s=t.value;let o=this.valueAxisRanges[i];isFinite(s)&&null!==s&&(o=this.valueAxisRanges[i]=o||{min:ea,max:Oa},o.min=Math.min(o.min,s),o.max=Math.max(o.max,s))}seriesValueAxis(t){const e=this.plotArea,i=t.axis,s=i?e.namedValueAxes[i]:e.valueAxis;if(!s)throw new Error("Unable to locate value axis with name "+i);return s}reflow(t){const e=this.categorySlots=[],i=this.points,s=this.categoryAxis;let o=0;this.traverseDataPoints((r,a)=>{const{categoryIx:l,series:c}=a,d=this.seriesValueAxis(c),u=i[o++];let h=e[l];if(h||(e[l]=h=this.categorySlot(s,l,d)),u){const f=this.plotRange(u,d.startValue()),m=this.valueSlot(d,f);if(m){const C=this.pointSlot(h,m);u.aboveAxis=this.aboveAxis(u,d),u.stackValue=f[1],this.options.isStacked100&&(u.percentage=this.plotValue(u)),this.reflowPoint(u,C)}else u.visible=!1}}),this.reflowCategories(e),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t}valueSlot(t,e){return t.getSlot(e[0],e[1],!this.options.clip)}limitPoints(){const t=this.categoryPoints,e=t[0].concat(ta(t));for(let i=0;i=i}categoryAxisCrossingValue(t){const e=this.categoryAxis,i=t.options;return[].concat(i.axisCrossingValues||i.axisCrossingValue)[e.axisIndex||0]||0}reflowPoint(t,e){t.reflow(e)}reflowCategories(){}pointSlot(t,e){const s=this.options.invertAxes,o=s?e:t,r=s?t:e;return new qt(o.x1,r.y1,o.x2,r.y2)}categorySlot(t,e){return t.getSlot(e)}traverseDataPoints(t){const e=this.options.series,i=qte(e),s=e.length;for(let o=0;o(this.segmentVisual(),this.visual)}),this.visual&&!St(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()}segmentVisual(){const{options:t,series:e}=this;let{color:i,_defaults:s}=e;sl(i)&&s&&(i=s.color);const o=Sn.fromPoints(this.points(),{stroke:{color:i,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&o.close(),this.visual=o}aliasFor(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)}}Wt(gRe,{closed:!1});const $M=gRe;function Xte(n,t,e,i,s){const o=n.box,r=new Ot;return r[t]=o[t+e],r[i]=o[i+s],r}const Yte={calculateStepPoints:function(n){const t=this.parent.plotArea.seriesCategoryAxis(this.series),{justified:e,vertical:i,reverse:s}=t.options,o=i?pn:cn,r=i?cn:pn,a=s?2:1,l=a;let c=Xte(n[0],o,a,r,l);const d=[c];for(let u=1;u1&&(s=this.createSegment(c,r,o,s),this._addSegment(s)),c=[])}c.length>1&&(s=this.createSegment(c,r,o,s),this._addSegment(s))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(n){this._segments.push(n),n.parent=this},sortPoints:function(n){return n},seriesMissingValues:function(n){const t=n.missingValues;return!t&&this.options.isStacked?m_:t||FM},getNearestPoint:function(n,t,e){const i=new li(n,t),s=this.seriesPoints[e];let r,o=ea;for(let a=0;a0&&!1!==i.visible&&this.createStroke({stroke:ze({color:s,opacity:t.opacity,lineCap:"butt"},i)})}strokeSegments(){let t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t}createStrokeSegments(){return this.segmentsFromPoints(this.points())}stackSegments(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}createStackSegments(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()}segmentsFromPoints(t){return t.map(e=>new uf(e))}createStroke(t){const e=new Sn(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)}hasStackSegment(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}createFill(t){const e=this.strokeSegments(),i=e.slice(0),s=this.hasStackSegment();if(s){const r=this.stackSegments();Xw(i,r)}const o=new Sn(t);o.segments.push.apply(o.segments,i),!s&&e.length>1&&this.fillToAxes(o),this.visual.append(o)}fillToAxes(t){const e=this.parent,i=e.options.invertAxes,s=e.seriesValueAxis(this.series),o=e.categoryAxisCrossingValue(s),r=s.getSlot(o,o,!0),a=this.strokeSegments(),l=a[0].anchor(),c=ta(a).anchor();let d=i?r.x1:r.y1;i?t.lineTo(d,c.y).lineTo(d,l.y):t.lineTo(c.x,d).lineTo(l.x,d)}};class vRe extends UM{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}createStackSegments(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()}}ze(vRe.prototype,Yte);const tYt=vRe,ene=class extends UM{createStrokeSegments(){const t=new Y8(this.options.closed),e=this.points();return t.process(e)}createStackSegments(){const t=this.strokeSegments(),e=[];for(let i=t.length-1;i>=0;i--){const s=t[i];e.push(new uf(s.anchor(),s.controlOut(),s.controlIn()))}return e}},sYt=class extends Jte{createSegment(t,e,i,s){const r=(e.line||{}).style;let a,l,c;return this.options.isStacked&&i>0&&s&&("gap"!==this.seriesMissingValues(e)?(l=s.linePoints,a=s):l=this._gapStackPoints(t,i,r)),c=r===NO?tYt:r===OM?ene:UM,new c(t,e,i,a,l)}reflow(t){super.reflow(t);const e=this._stackPoints;if(e)for(let i=0;i0&&!f);if(f)i!==NO&&d>o&&!s[h][u-1]&&c.push(this._previousSegmentPoint(d,u,u-1,h)),c.push(f),i!==NO&&d+10&&!a;)r--,a=o[r][i];return a?a=o[r][e]:(a=this._createGapStackPoint(t),this._stackPoints.push(a)),a}_createGapStackPoint(t){const e=this.pointOptions({},0),i=new nS(0,e);return i.categoryIx=t,i.series={},i}seriesMissingValues(t){return t.missingValues||m_}supportsPointInactiveOpacity(){return!1}},d6=class extends Yi{constructor(){super(),this.axisRanges={}}update(t){const e=this.axisRanges;for(let i in t){const s=t[i];let o=e[i];e[i]=o=o||{min:ea,max:Oa},o.min=Math.min(o.min,s.min),o.max=Math.max(o.max,s.max)}}reset(t){this.axisRanges[t]=void 0}query(t){return this.axisRanges[t]}};class bRe extends to{constructor(t,e,i){super(e),this.textBox=new Cf(t,this.options,i),this.append(this.textBox)}createVisual(){this.textBox.options.noclip=this.options.noclip}reflow(t){const e=this.options,{vertical:i,aboveAxis:s}=e,o=this.children[0],r=o.options,a=o.box,l=o.options.padding;let c=t;r.align=i?Pi:os,r.vAlign=i?Cs:Pi,e.position===r6?i?(r.vAlign=Cs,!s&&a.height(){const o=new bs;return this.createRect(o),o},options:e});s&&this.visual.append(s)}else t.width()>0&&t.height()>0&&this.createRect(this.visual)}createRect(t){const e=this.options,i=e.border,s=St(i.opacity)?i.opacity:e.opacity,o=this.box.toRect();o.size.width=Math.round(o.size.width);const r=this.rectVisual=Sn.fromRect(o,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:i.width,opacity:s,dashType:i.dashType}}),a=this.box.width(),l=this.box.height();if((e.vertical?a:l)>6&&(np(r),(a<1||l<1)&&(r.options.stroke.lineJoin="round")),t.append(r),tne(e)){const d=this.createGradientOverlay(r,{baseColor:this.color},ze({end:e.vertical?void 0:[0,1]},e.overlay));t.append(d)}}createHighlight(t){return np(Sn.fromRect(this.box.toRect(),t))}highlightVisual(){return this.rectVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}getBorderColor(){const t=this.color,e=this.options.border,i=e._brightness||.8;let s=e.color;return St(s)||(s=new Eu(t).brightness(i).toHex()),s}tooltipAnchor(){const{options:t,box:e,aboveAxis:i}=this,s=this.owner.pane.clipBox()||e;let a,l,o=os,r=Cs;if(t.vertical)a=Math.min(e.x2,s.x2)+5,i?l=Math.max(e.y1,s.y1):(l=Math.min(e.y2,s.y2),r=co);else{const c=Math.max(e.x1,s.x1),d=Math.min(e.x2,s.x2);t.isStacked?(r=co,i?(o=Os,a=d):a=c,l=Math.max(e.y1,s.y1)-5):(i?a=d+5:(a=c-5,o=Os),l=Math.max(e.y1,s.y1))}return{point:new li(a,l),align:{horizontal:o,vertical:r}}}overlapsBox(t){return this.box.overlaps(t)}pointData(){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}}}ze(u6.prototype,km),ze(u6.prototype,KO),u6.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const nne=u6;function xRe(n,t){n.forEach(t)}function wRe(n,t){const e=n.length;for(let i=e-1;i>=0;i--)t(n[i],i-e-1)}class SRe extends to{constructor(t){super(t),this.forEach=t.rtl?wRe:xRe}reflow(t){const{vertical:e,gap:i,spacing:s}=this.options,o=this.children,r=o.length,a=e?cn:pn,l=r+i+s*(r-1),c=(e?t.height():t.width())/l;let d=t[a+1]+c*(i/2);this.forEach(o,(u,h)=>{const f=(u.box||t).clone();f[a+1]=d,f[a+2]=d+c,u.reflow(f),h0&&i.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:er(e.border.opacity,e.opacity)}),np(i),t.append(i),tne(e)&&t.append(this.createGradientOverlay(i,{baseColor:this.color},ze({end:e.vertical?void 0:[0,1]},e.overlay)))}createLines(t,e){this.drawLines(t,e,this.lines,e.line)}drawLines(t,e,i,s){if(!i)return;const o={stroke:{color:s.color||this.color,opacity:er(s.opacity,e.opacity),width:s.width,dashType:s.dashType,lineCap:"butt"}};for(let r=0;r{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:{}}}),ze(p6.prototype,km),ze(p6.prototype,KO);const ine=p6;function DRe(n){return Ote(n)===n.length}class MRe extends Yb{reflowCategories(t){const e=this.children,i=e.length;for(let s=0;sl.close&&(d=t.fields.downColor||o.downColor||o.color),sl(o.color)&&(d=c.color),c.vertical=!this.options.invertAxes;const u=new a(l,c);return u.color=d,u}splitValue(t){return[t.low,t.open,t.close,t.high]}updateRange(t,e){const i=e.series.axis,s=this.splitValue(t);let o=this.valueAxisRanges[i];o=this.valueAxisRanges[i]=o||{min:ea,max:Oa},o=this.valueAxisRanges[i]={min:Math.min.apply(Math,s.concat([o.min])),max:Math.max.apply(Math,s.concat([o.max]))}}formatPointValue(t,e){const i=t.value;return this.chartService.format.auto(e,i.open,i.high,i.low,i.close,t.category)}animationPoints(){return this.points}}ze(MRe.prototype,c6);const sne=MRe;class one extends ine{constructor(t,e){super(t,e),this.createNote()}reflow(t){const{options:e,value:i,owner:s}=this,o=s.seriesValueAxis(e);let r,a;this.boxSlot=a=o.getSlot(i.q1,i.q3),this.realBody=a,this.reflowBoxSlot(t),this.whiskerSlot=r=o.getSlot(i.lower,i.upper),this.reflowWhiskerSlot(t);const l=o.getSlot(i.median);if(i.mean){const c=o.getSlot(i.mean);this.meanPoints=this.calcMeanPoints(t,c)}this.whiskerPoints=this.calcWhiskerPoints(a,r),this.medianPoints=this.calcMedianPoints(t,l),this.box=r.clone().wrap(a),this.reflowNote()}reflowBoxSlot(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2}reflowWhiskerSlot(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2}calcMeanPoints(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]}calcWhiskerPoints(t,e){const i=e.center().x;return[[[i-5,e.y1],[i+5,e.y1],[i,e.y1],[i,t.y1]],[[i-5,e.y2],[i+5,e.y2],[i,e.y2],[i,t.y2]]]}calcMedianPoints(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]}renderOutliers(t){const e=this.value,i=e.outliers||[],s=3*Math.abs(e.q3-e.q1),o=[];let r=t.markers||{};for(let a=0;ae.q1-s?t.outliers:t.extremes;let c=ze({},r.border);St(c.color)||(c.color=St(this.color)?this.color:new Eu(r.background).brightness(.8).toHex());const d=new IM({type:r.type,width:r.size,height:r.size,rotation:r.rotation,background:r.background,border:c,opacity:r.opacity});d.value=l,o.push(d)}return this.reflowOutliers(o),o}reflowOutliers(t){const e=this.owner.seriesValueAxis(this.options),i=this.box.center();for(let 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:xs,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:vf,background:xs,border:{width:2,opacity:1},opacity:0}}),ze(one.prototype,km);const ERe=one,cYt=class extends ERe{reflowBoxSlot(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2}reflowWhiskerSlot(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2}calcMeanPoints(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]}calcWhiskerPoints(t,e){const i=e.center().y;return[[[e.x1,i-5],[e.x1,i+5],[e.x1,i],[t.x1,i]],[[e.x2,i-5],[e.x2,i+5],[e.x2,i],[t.x2,i]]]}calcMedianPoints(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]}},uYt=class extends sne{addValue(t,e){const{categoryIx:i,category:s,series:o,seriesIx:r}=e,{children:a,options:l}=this,c=t.valueFields,u=DRe(this.splitValue(c)),h=o.data[i];let m,f=this.categoryPoints[i];f||(this.categoryPoints[i]=f=[]),u&&(m=this.createPoint(t,e));let C=a[i];C||(C=new h6({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(C)),m&&(this.updateRange(c,e),C.append(m),m.categoryIx=i,m.category=s,m.series=o,m.seriesIx=r,m.owner=this,m.dataItem=h),this.points.push(m),f.push(m)}pointType(){return this.options.invertAxes?cYt:ERe}splitValue(t){return[t.lower,t.q1,t.median,t.q3,t.upper]}updateRange(t,e){const i=e.series.axis;let s=this.valueAxisRanges[i],o=this.splitValue(t).concat(this.filterOutliers(t.outliers));St(t.mean)&&(o=o.concat(t.mean)),s=this.valueAxisRanges[i]=s||{min:ea,max:Oa},s=this.valueAxisRanges[i]={min:Math.min.apply(Math,o.concat([s.min])),max:Math.max.apply(Math,o.concat([s.max]))}}formatPointValue(t,e){const i=t.value;return this.chartService.format.auto(e,i.lower,i.q1,i.median,i.q3,i.upper,i.mean,t.category)}filterOutliers(t){const e=(t||[]).length,i=[];for(let s=0;s{const a=e[s++],l=this.seriesAxes(r.series),c=l.x.getSlot(o.x,o.x,i),d=l.y.getSlot(o.y,o.y,i);if(a)if(c&&d){const u=this.pointSlot(c,d);a.reflow(u)}else a.visible=!1}),this.box=t}pointSlot(t,e){return new qt(t.x1,e.y1,t.x2,e.y2)}traverseDataPoints(t){const{options:{series:e},seriesPoints:i}=this;for(let s=0;s0||t.size<0&&e.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(t.size)),super.addValue(t,e)):(this.points.push(null),this.seriesPoints[e.seriesIx].push(null))}reflow(t){this.updateBubblesSize(t),super.reflow(t)}pointType(){return IRe}createPoint(t,e){const i=e.series,o=e.pointIx*(ap/i.data.length),r={delay:o,duration:ap-o,type:RM};let a=e.color||i.color;t.size<0&&i.negativeValues.visible&&(a=er(i.negativeValues.color,a));let l=ze({labels:{animation:{delay:o,duration:ap-o}}},this.pointOptions(i,e.seriesIx),{markers:{type:vf,border:i.border,opacity:i.opacity,animation:r}});l=this.evalPointOptions(l,t,e),sl(i.color)&&(a=l.color),l.markers.background=a;const c=new IRe(t,l);return c.color=a,this.append(c),c}updateBubblesSize(t){const{options:{series:e}}=this,i=Math.min(t.width(),t.height());for(let s=0;s0&&e.options.set("stroke",{color:t.border.color||this.color,width:t.border.width,dashType:t.border.dashType,opacity:er(t.border.opacity,t.opacity)}),this.bodyVisual=e,np(e),this.visual.append(e)}createAnimation(){this.bodyVisual&&(this.animation=Uu.create(this.bodyVisual,this.options.animation))}createHighlight(t){return Sn.fromRect(this.box.toRect(),t)}highlightVisual(){return this.bodyVisual}highlightVisualArgs(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}formatValue(t){return this.owner.formatPointValue(this,t)}}QO.prototype.tooltipAnchor=nne.prototype.tooltipAnchor,Wt(QO,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}
Target: {1}"}}),ze(QO.prototype,km),ze(QO.prototype,KO);const mYt=QO;class ane extends Yb{constructor(t,e){(function(n){const t=n.series;for(let e=0;e0}createAnimation(){const t=this.points;this._setAnimationOptions();for(let e=0;e180&&(t.className="k-chart-tooltip-inverse"),this.chartService.notify(cRe,t),this.visible=!0}hide(){this.chartService&&this.chartService.notify(dRe),this.visible=!1}destroy(){delete this.chartService}}Wt(ORe,{border:{width:1},opacity:1});const lne=ORe;class RRe extends lne{constructor(t,e,i){super(t,i),this.crosshair=e,this.formatService=t.format,this.initAxisName()}initAxisName(){const t=this.crosshair.axis;let i;i=t.plotArea.categoryAxis?t.getCategory?"categoryAxis":"valueAxis":t.options.vertical?"yAxis":"xAxis",this.axisName=i}showAt(t){const{crosshair:{axis:e},options:i}=this;let s=e[i.stickyMode?"getCategory":"getValue"](t),o=s;i.format?o=this.formatService.auto(i.format,s):e.options.type===qw&&(o=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],s)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:o,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)}hide(){this.chartService.notify(dRe,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})}getAnchor(){const{crosshair:t,options:{position:e,padding:i}}=this,s=!t.axis.options.vertical,o=t.line.bbox();let r,a,l;return s?(r=Pi,e===co?(a=Cs,l=o.bottomLeft().translate(0,i)):(a=co,l=o.topLeft().translate(0,-i))):(a=Pi,e===os?(r=Os,l=o.topLeft().translate(-i,0)):(r=os,l=o.topRight().translate(i,0))),{point:l,align:{horizontal:r,vertical:a}}}}Wt(RRe,{padding:10});const vYt=RRe;class PRe extends to{constructor(t,e,i){super(i),this.axis=e,this.stickyMode=e instanceof Ub;const s=this.options.tooltip;s.visible&&(this.tooltip=new vYt(t,this,ze({},s,{stickyMode:this.stickyMode})))}showAt(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)}hide(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()}moveLine(){const{axis:t,point:e}=this,i=t.options.vertical,s=this.getBox(),o=i?cn:pn,r=new Ot(s.x1,s.y1);let a;if(a=i?new Ot(s.x2,s.y1):new Ot(s.x1,s.y2),e)if(this.stickyMode){const l=t.getSlot(t.pointCategoryIndex(e));r[o]=a[o]=l.center()[o]}else r[o]=a[o]=e[o];this.box=s,this.line.moveTo(r).lineTo(a)}getBox(){const t=this.axis,e=t.pane.axes,i=e.length,s=t.options.vertical,o=t.lineBox().clone(),r=s?pn:cn;let a;for(let l=0;l0&&o=0;s--)for(let o=0;o0&&(s=Math.max(s,i.width()-r.contentBox.width()))}if(0!==s)for(let o=0;o0){const l=une(r),c=Math.max(a.y1-l.y1,a.y2-l.y2);i=Math.max(i,a.x1-l.x1);for(let d=0;d0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))}autoRotateAxisLabels(t){const{panes:e}=this,i=IYt(e);let s;for(let o=0;o0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(e))}}reflowPaneAxes(t){const e=t.axes,i=e.length;if(i>0)for(let s=0;st.options.vertical===n.options.vertical&&t!==n&&!1!==t.options.visible)}function une(n){const t=n.length;let e;for(let i=0;in.reduce((t,e)=>t.concat(e.axes),[]);Wt(GRe,{series:[],plotArea:{margin:{}},background:"",border:{color:vr,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const sS=GRe,y6={hover:function(n,t){this._dispatchEvent(n,t,lRe)},click:function(n,t){this._dispatchEvent(n,t,"plotAreaClick")}};function FYt(n,t,e){let i=t,s=n;if(n.indexOf(".")>-1){const o=n.split(".");for(;o.length>1;)s=o.shift(),St(i[s])||(i[s]={}),i=i[s];s=o.shift()}i[s]=e}const OYt=class extends Yi{constructor(t,e,i){super();const s=e.canonicalFields(t),o=e.valueFields(t),r=e.sourceFields(t,s),a=this._seriesFields=[],l=i.query(t.type),c=t.aggregate||l;this._series=t,this._binder=e;for(let d=0;ds.to,e.reflow(t)),i&&(i.options.aboveAxis=s.to>s.from,i.reflow(t)),this.note&&this.note.reflow(t)}}fne.prototype.defaults=ze({},fne.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const RYt=fne;class jRe extends ZO{pointType(){return RYt}pointValue(t){return t.valueFields}formatPointValue(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)}plotRange(t){return t?[t.value.from,t.value.to]:0}updateRange(t,e){const i=e.series.axis,{from:s,to:o}=t;let r=this.valueAxisRanges[i];null!==t&&Li(s)&&Li(o)&&(r=this.valueAxisRanges[i]=r||{min:ea,max:Oa},r.min=Math.min(r.min,s),r.max=Math.max(r.max,s),r.min=Math.min(r.min,o),r.max=Math.max(r.max,o))}aboveAxis(t){const e=t.value;return e.fromt.fromPoint)}toPoints(){return this.linePoints.map(t=>t.toPoint)}},HYt=class extends gne{createStrokeSegments(){return this.createCurveSegments(this.toPoints())}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t}createCurveSegments(t){return(new Y8).process(this.toGeometryPoints(t))}};class qRe extends gne{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))}stackSegments(){let t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints())),t.reverse()),t}}ze(qRe.prototype,Yte);const GYt=qRe;class XRe extends Yb{render(){super.render(),this.renderSegments()}pointType(){return WRe}createPoint(t,e){const{categoryIx:i,category:s,series:o,seriesIx:r}=e;let a=t.valueFields;if(!qu(a.from)&&!qu(a.to)){if(this.seriesMissingValues(o)!==m_)return null;a={from:0,to:0}}let l=this.pointOptions(o,r);l=this.evalPointOptions(l,a,s,i,o,r);let c=t.fields.color||o.color;sl(o.color)&&(c=l.color);const d=new WRe(a,l);return d.color=c,this.append(d),d}createSegment(t,e,i){const s=(e.line||{}).style;let o;return o="smooth"===s?HYt:"step"===s?GYt:gne,new o(t,e,i)}plotRange(t,e){return t?[t.value.from,t.value.to]:[e,e]}valueSlot(t,e){const i=t.getSlot(e[0],e[0],!this.options.clip),s=t.getSlot(e[1],e[1],!this.options.clip);if(i&&s)return{from:i,to:s}}pointSlot(t,e){const{from:i,to:s}=e;let o,r;return this.options.invertAxes?(o=new qt(i.x1,t.y1,i.x2,t.y2),r=new qt(s.x1,t.y1,s.x2,t.y2)):(o=new qt(t.x1,i.y1,t.x2,i.y2),r=new qt(t.x1,s.y1,t.x2,s.y2)),{from:o,to:r}}addValue(t,e){const i=t.valueFields;Li(i.from)||(i.from=i.to),Li(i.to)||(i.to=i.from),super.addValue(t,e)}updateRange(t,e){if(null!==t&&Li(t.from)&&Li(t.to)){const i=e.series.axis,s=this.valueAxisRanges[i]=this.valueAxisRanges[i]||{min:ea,max:Oa},{from:o,to:r}=t;s.min=Math.min(s.min,o,r),s.max=Math.max(s.max,o,r)}}formatPointValue(t,e){const i=t.value;return this.chartService.format.auto(e,i.from,i.to)}animationPoints(){const t=this.points,e=[];for(let i=0;i=0}plotRange(t){return[t.from,t.to]}createSegments(){const t=this.options.series,e=this.seriesPoints,i=this.segments=[];for(let s=0;s0){this.invertAxes=Bs(t[0].type,[xf,qb,zM,BM,HM,NM,LM,VM]);for(let e=0;e({item:t.data[a],category:e.categoryAt(a,!0),categoryIx:a-s.min}),a=>St(t.data[a])),r}clearSeriesPointsCache(){this._seriesPointsCache={}}seriesSourcePoints(t,e){const i=`${t.index};${e.categoriesHash()}`;if(this._seriesPointsCache[i])return this._currentPointsCache[i]=this._seriesPointsCache[i],this._seriesPointsCache[i];const s=e.options,o=s.srcCategories,r=iS(s.type,qw),a=t.data,l=r?BRe:K8,c=[];r||e.mapCategories();for(let d=0;d{const h=u-c.min;let f=s[u];if(f||(f=s[u]={}),f.categoryIx=h,!f.item){const m=e.categoryAt(u,!0);f.category=m,f.item=r.aggregatePoints(f.items,m)}return f};for(let u=c.min;u<=c.max;u++){const h=d(u);a[h.categoryIx]=h.item,h.items&&h.items.length&&(l[h.categoryIx]=h.item)}return Bs(o.type,KRe)&&HRe(o,c,e.totalCount(),d,u=>s[u]),e.options.dataItems=l,o}appendChart(t,e){const i=t.options.series,s=this.seriesCategoryAxis(i[0]);let o=s.options.categories,r=Math.max(0,qte(i)-o.length);if(r>0)for(o=s.options.categories=s.options.categories.slice(0);r--;)o.push("");this.valueAxisRangeTracker.update(t.valueAxisRanges),super.appendChart(t,e)}seriesPaneName(t){const e=this.options,i=t.axis;return(bm([].concat(e.valueAxis),function(c){return c.name===i})[0]||{}).pane||((e.panes||[{}])[0]||{}).name||"default"}seriesCategoryAxis(t){const e=t.categoryAxis,i=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!i)throw new Error("Unable to locate category axis with name "+e);return i}stackableChartOptions(t,e){const i=t.stack;return{isStacked:i,isStacked100:i&&"100%"===i.type,clip:e.options.clip}}groupSeriesByCategoryAxis(t){const e=[],i={};for(let o=0;o0&&l.length>0&&t.trigger(i,{element:Cm(e),originalEvent:e,category:m6(a),value:m6(l)})}pointPane(t){const e=this.panes;for(let i=0;it?a():i=setTimeout(a,t-o)};return s.cancel=function(){clearTimeout(i)},s}function JRe(n){return"function"==typeof n}function ePe(n){return"string"==typeof n?[n]:n}function JYt(){this._defaultPrevented=!0}function eKt(){return!0===this._defaultPrevented}const tKt=class extends Yi{constructor(){super(),this._events={}}bind(t,e,i){const s=ePe(t),o=JRe(e),r=s.length;if(void 0===e){for(let a in t)this.bind(a,t[a]);return this}for(let a=0;a{this.unbind(l,c),u.apply(this,arguments)},c.original=u}(this._events[l]=this._events[l]||[]).push(c)}}return this}one(t,e){return this.bind(t,e,!0)}first(t,e){const i=ePe(t),s=JRe(e);for(let o=0,r=i.length;o=0;s--)(i[s]===e||i[s].original===e)&&i.splice(s,1);else this._events[t]=[];return this}},nKt=["click","mouseenter","mouseleave","mousemove","resize"],_ne=class extends tKt{constructor(t,e){super(),this.options=Object.assign({},e),this.element=t,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new bs,DO(t,this.options),this.bind(nKt,this.options),this._enableTracking()}draw(t){this._visual.children.push(t)}clear(){this._visual.children=[]}destroy(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}eventTarget(t){let i,e=uOe(t);for(;!i&&e&&(i=e._kendoNode,e!==this.element);)e=e.parentElement;if(i)return i.srcElement}exportVisual(){return this._visual}getSize(){return DO(this.element)}currentSize(t){if(!t)return this._size;this._size=t}setSize(t){DO(this.element,t),this.currentSize(t),this._resize()}resize(t){const e=this.getSize(),i=this.currentSize();(t||(e.width>0||e.height>0)&&(!i||e.width!==i.width||e.height!==i.height))&&(this.currentSize(e),this._resize(e,t),this.trigger("resize",e))}size(t){if(!t)return this.getSize();this.setSize(t)}suspendTracking(){this._suspendedTracking=!0}resumeTracking(){this._suspendedTracking=!1}_enableTracking(){}_resize(){}_handler(t){return e=>{const i=this.eventTarget(e);i&&!this._suspendedTracking&&this.trigger(t,{element:i,originalEvent:e,type:t})}}_elementOffset(){const t=this.element,e=gOe(t),{left:i,top:s}=pOe(t);return{left:i+e.left,top:s+e.top}}_surfacePoint(t){const e=this._elementOffset(),i=dOe(t),s=i.x-e.left,o=i.y-e.top,r=yOe(this.element).invert();return new Ot(s,o).transform(r)}},eR=class extends Yi{constructor(t){super(),this.childNodes=[],this.parent=null,t&&(this.srcElement=t,this.observe())}destroy(){this.srcElement&&this.srcElement.removeObserver(this);const t=this.childNodes;for(let e=0;e",t=document.createElement("div"),e="undefined"!=typeof DOMParser;t.innerHTML=n,e&&t.firstChild.namespaceURI!==tR&&(nPe=function(i,s){const r=(new DOMParser).parseFromString(s,"text/xml"),a=document.adoptNode(r.documentElement);i.innerHTML="",i.appendChild(a)})}const iPe=nPe,b6={clip:"clip-path",fill:"fill"};function oPe(n,t){return"clip"===n||"fill"===n&&(!t||"Gradient"===t.nodeType)}const Kb=class extends eR{constructor(t,e){super(t),this.definitions={},this.options=e}destroy(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),super.destroy()}load(t,e){for(let i=0;i0&&r.load(o);const a=this.element;a&&r.attachTo(a,e)}}root(){let t=this;for(;t.parent;)t=t.parent;return t}attachTo(t,e){const i=document.createElement("div");iPe(i,""+this.render()+"");const s=i.firstChild.firstChild;s&&(ti(e)?t.insertBefore(s,t.childNodes[e]||null):t.appendChild(s),this.setElement(s))}setElement(t){this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this;const e=this.childNodes;for(let i=0;i`}renderOffset(){return aS("offset",this.srcElement.offset())}mapStyle(){const t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]}optionsChange(t){"offset"===t.field?this.attr(t.field,t.value):("color"===t.field||"opacity"===t.field)&&this.css("stop-"+t.field,t.value)}},aPe=class extends Kb{constructor(t){super(t),this.id=t.id,this.loadStops()}loadStops(){const t=this.srcElement.stops,e=this.element;for(let i=0;i${this.renderChildren()}`}mapCoordinates(){const t=this.srcElement,e=t.start(),i=t.end();return[["x1",e.x],["y1",e.y],["x2",i.x],["y2",i.y],this.mapSpace()]}},cPe=class extends aPe{template(){return`${this.renderChildren()}`}mapCoordinates(){const t=this.srcElement,e=t.center(),i=t.radius();return[["cx",e.x],["cy",e.y],["r",i],this.mapSpace()]}},dPe=class extends Kb{constructor(t){super(),this.srcElement=t,this.id=t.id,this.load([t])}template(){return`${this.renderChildren()}`}},uPe=class extends Kb{constructor(){super(),this.definitionMap={}}attachTo(t){this.element=t}template(){return`${this.renderChildren()}`}definitionChange(t){const{definitions:e,action:i}=t;"add"===i?this.addDefinitions(e):"remove"===i&&this.removeDefinitions(e)}createDefinition(t,e){let i;return"clip"===t?i=dPe:"fill"===t&&(e instanceof yF?i=lPe:e instanceof TF&&(i=cPe)),new i(e)}addDefinitions(t){for(let e in t)this.addDefinition(e,t[e])}addDefinition(t,e){const{element:i,definitionMap:s}=this,o=e.id,r=s[o];if(r)r.count++;else{const a=this.createDefinition(t,e);s[o]={element:a,count:1},this.append(a),i&&a.attachTo(this.element)}}removeDefinitions(t){for(let e in t)this.removeDefinition(t[e])}removeDefinition(t){const e=this.definitionMap,i=t.id,s=e[i];s&&(s.count--,0===s.count&&(this.remove(this.childNodes.indexOf(s.element),1),delete e[i]))}},vne=class extends Kb{constructor(t){super(),this.options=t,this.defs=new uPe}attachTo(t){this.element=t,this.defs.attachTo(t.firstElementChild)}clear(){eR.prototype.clear.call(this)}template(){return this.defs.render()+this.renderChildren()}definitionChange(t){this.defs.definitionChange(t)}},hPe={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]},fKt={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},Zb=class extends Kb{geometryChange(){this.attr("d",this.renderData()),this.invalidate()}optionsChange(t){switch(t.field){case"fill":t.value?this.allAttr(this.mapFill(t.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:t.value}));break;case"stroke":t.value?this.allAttr(this.mapStroke(t.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(t.value);break;default:const e=fKt[t.field];e&&this.attr(e,t.value)}super.optionsChange(t)}content(){this.element&&(this.element.textContent=this.srcElement.content())}renderData(){return this.printPath(this.srcElement)}printPath(t){const e=t.segments,i=e.length;if(i>0){const s=[];let o,r;for(let a=1;a`}},gPe=class extends Zb{renderData(){return this.printPath(this.srcElement.toPath())}},mPe=class extends Zb{geometryChange(){const t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()}center(){return this.srcElement.geometry().center}radius(){return this.srcElement.geometry().radius}template(){return``}},yPe=class extends Kb{template(){return`${this.renderChildren()}`}optionsChange(t){"transform"===t.field&&this.transformChange(t.value),super.optionsChange(t)}},vKt=/&/g,bKt=//g;function Cne(n){return String(n).replace(vKt,"&").replace(bKt,"<").replace(wKt,">").replace(CKt,""").replace(xKt,"'")}const _Pe=class extends Zb{geometryChange(){this.allAttr(this.mapPosition()),this.invalidate()}optionsChange(t){"src"===t.field&&this.allAttr(this.mapSource()),super.optionsChange(t)}mapPosition(){const t=this.srcElement.rect(),e=t.topLeft();return[["x",e.x],["y",e.y],["width",t.width()+"px"],["height",t.height()+"px"]]}renderPosition(){return lS(this.mapPosition())}mapSource(t){let e=this.srcElement.src();return t&&(e=Cne(e)),[["xlink:href",e]]}renderSource(){return lS(this.mapSource(!0))}template(){return``}},vPe=class extends Zb{renderData(){const t=this.srcElement.paths;if(t.length>0){const e=[];for(let i=0;i`}},xne=/&(?:[a-zA-Z]+|#\d+);/g;function wne(n){if(!n||"string"!=typeof n||!xne.test(n))return n;const t=wne._element;return xne.lastIndex=0,n.replace(xne,e=>(t.innerHTML=e,t.textContent||t.innerText))}"undefined"!=typeof document&&(wne._element=document.createElement("span"));const CPe=class extends Zb{geometryChange(){const t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()}optionsChange(t){"font"===t.field?(this.attr("style",tPe(this.mapStyle())),this.geometryChange()):"content"===t.field&&super.content(this.srcElement.content()),super.optionsChange(t)}mapStyle(t){const e=super.mapStyle(t);let i=this.srcElement.options.font;return t&&(i=Cne(i)),e.push(["font",i],["white-space","pre"]),e}pos(){const t=this.srcElement.position(),e=this.srcElement.measure();return t.clone().setY(t.y+e.baseline)}renderContent(){let t=this.srcElement.content();return t=wne(t),t=Cne(t),XZ(t)}renderTextAnchor(){let t;return(this.options||{}).rtl&&!(Ag.browser.msie||Ag.browser.edge)&&(t="end"),aS("text-anchor",t)}template(){return`${this.renderContent()}`}};__.Arc=gPe,__.Circle=mPe,__.Group=yPe,__.Image=_Pe,__.MultiPath=vPe,__.Path=Zb,__.Rect=bPe,__.Text=CPe;const xPe=class extends _ne{get type(){return"svg"}constructor(t,e){super(t,e),this._root=new vne(Object.assign({rtl:"rtl"===k8(t,"direction").direction},this.options)),iPe(this.element,this._template()),this._rootElement=this.element.firstElementChild,function(n){let t;try{t=n.getScreenCTM?n.getScreenCTM():null}catch(e){}if(t){const e=-t.e%1,i=-t.f%1,s=n.style;(0!==e||0!==i)&&(s.left=e+"px",s.top=i+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),rte(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}destroy(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,ate(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),super.destroy()}translate(t){const e=`${Math.round(t.x)} ${Math.round(t.y)} ${this._size.width} ${this._size.height}`;this._offset=t,this._rootElement.setAttribute("viewBox",e)}draw(t){super.draw(t),this._root.load([t])}clear(){super.clear(),this._root.clear()}svg(){return""+this._template()}exportVisual(){let{_visual:t,_offset:e}=this;if(e){const i=new bs;i.children.push(t),i.transform(js().translate(-e.x,-e.y)),t=i}return t}_resize(){this._offset&&this.translate(this._offset)}_template(){return`${this._root.render()}`}},v_={};function C6(n,t){const e=t.segments;if(0===e.length)return;let i=e[0],s=i.anchor();n.moveTo(s.x,s.y);for(let o=1;o0&&a.load(r,e,i),ti(e)?this.insertAt(a,e):this.append(a)}}load(t,e,i){this.loadElements(t,e,i),this.invalidate()}setOpacity(t){if(this.srcElement){const e=this.srcElement.opacity();ti(e)&&this.globalAlpha(t,e)}}globalAlpha(t,e){let i=e;i&&t.globalAlpha&&(i*=t.globalAlpha),t.globalAlpha=i}visible(){const t=this.srcElement;return!t||t&&!1!==t.options.visible}};class FKt extends(eQ(Sne,"childNodes")){renderTo(t){if(!this.visible())return;t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t);const e=this.childNodes;for(let i=0;i{xOe(i)},16.666666666666668)}destroy(){super.destroy(),this.canvas=null,this.ctx=null}load(t,e,i){this.loadElements(t,e,i),this._invalidate()}_rescale(t){const{canvas:e,size:i}=this;e.width=i.width*t,e.height=i.height*t,this.ctx.scale(t,t)}_devicePixelRatio(){return"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1}_invalidate(t){if(!this.ctx)return;const i=t&&t.fixedScale?1:this._devicePixelRatio();this._rescale(i),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx)}}const wPe=RKt,SPe=class extends Yi{constructor(){super(),this.shapes=[]}_add(t,e){this.shapes.push({bbox:e,shape:t}),t._quadNode=this}pointShapes(t){const e=this.shapes,i=e.length,s=[];for(let o=0;ot._zIndex?-1:0}const kne=class extends Yi{constructor(){super(),this.initRoots()}initRoots(){this.rootMap={},this.root=new SPe,this.rootElements=[]}clear(){const t=this.rootElements;for(let e=0;e0;)e=t.pop(),e.addObserver(this),"Group"===e.nodeType?pF(t,e.children):this._insertShape(e)}_insertShape(t){const e=t.bbox();if(e){const i=this.getSectors(e),s=i[0][0],o=i[1][0];if(this.inRoot(i))this.root.insert(t,e);else{const r=this.rootMap;r[s]||(r[s]={}),r[s][o]||(r[s][o]=new TPe(new ji([s*Dm,o*Dm],[Dm,Dm]))),r[s][o].insert(t,e)}}}remove(t){if(t.removeObserver(this),"Group"===t.nodeType){const e=t.children;for(let i=0;i1||t[1].length>1}getSectors(t){const e=t.bottomRight(),i=Math.floor(e.x/Dm),s=Math.floor(e.y/Dm),o=[[],[]];for(let r=Math.floor(t.origin.x/Dm);r<=i;r++)o[0].push(r);for(let r=Math.floor(t.origin.y/Dm);r<=s;r++)o[1].push(r);return o}},Qb=class extends Sne{renderTo(t){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),this.renderPoints(t,this.srcElement),this.setLineDash(t),this.setLineCap(t),this.setLineJoin(t),this.setFill(t),this.setStroke(t),t.restore()}setFill(t){const e=this.srcElement.options.fill;let i=!1;return e&&("Gradient"===e.nodeType?(this.setGradientFill(t,e),i=!0):Jx(e.color)||(t.fillStyle=e.color,t.save(),this.globalAlpha(t,e.opacity),t.fill(),t.restore(),i=!0)),i}setGradientFill(t,e){const i=this.srcElement.rawBBox();let s;if(e instanceof yF){let o=e.start(),r=e.end();s=t.createLinearGradient(o.x,o.y,r.x,r.y)}else if(e instanceof TF){let o=e.center();s=t.createRadialGradient(o.x,o.y,0,o.x,o.y,e.radius())}(function(n,t){for(let e=0;e0)return t.strokeStyle=e.color,t.lineWidth=QZ(e.width,1),t.save(),this.globalAlpha(t,e.opacity),t.stroke(),t.restore(),!0}dashType(){const t=this.srcElement.options.stroke;if(t&&t.dashType)return t.dashType.toLowerCase()}setLineDash(t){const e=this.dashType();if(e&&"solid"!==e){const i=hPe[e];t.setLineDash?t.setLineDash(i):(t.mozDash=i,t.webkitLineDash=i)}}setLineCap(t){const e=this.dashType(),i=this.srcElement.options.stroke;e&&"solid"!==e?t.lineCap="butt":i&&i.lineCap&&(t.lineCap=i.lineCap)}setLineJoin(t){const e=this.srcElement.options.stroke;e&&e.lineJoin&&(t.lineJoin=e.lineJoin)}renderPoints(t,e){C6(t,e)}},DPe=class extends Qb{renderPoints(t){C6(t,this.srcElement.toPath())}},MPe=class extends Qb{renderPoints(t){const{center:e,radius:i}=this.srcElement.geometry();t.arc(e.x,e.y,i,0,2*Math.PI)}},EPe=class extends Qb{constructor(t,e){super(t),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=Qx();const i=this.img=new Image;e&&!/^data:/i.test(t.src())&&(i.crossOrigin=e),i.src=t.src(),i.complete?this.onLoad():(i.onload=this.onLoad,i.onerror=this.onError)}renderTo(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore())}optionsChange(t){"src"===t.field?(this.loading=Qx(),this.img.src=this.srcElement.src()):super.optionsChange(t)}onLoad(){this.loading.resolve(),this.invalidate()}onError(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}drawImage(t){const e=this.srcElement.rect(),i=e.topLeft();t.drawImage(this.img,i.x,i.y,e.width(),e.height())}},IPe=class extends Qb{renderPoints(t){const e=this.srcElement.paths;for(let i=0;i{r.loading&&i.push(r.loading)});const s=Qx(),o=()=>{t._invalidate({fixedScale:!0});try{const r=e.toDataURL();s.resolve(r)}catch(r){s.reject(r)}};return hOe(i).then(o,o),s}suspendTracking(){super.suspendTracking(),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)}resumeTracking(){if(super.resumeTracking(),!this._searchTree){this._searchTree=new kne;const t=this._root.childNodes,e=[];for(let i=0;i"}_enableTracking(){this._searchTree=new kne,this._cursor=new class{constructor(t){t.bind("mouseenter",this._mouseenter.bind(this)),t.bind("mouseleave",this._mouseleave.bind(this)),this.element=t.element}clear(){this._resetCursor()}destroy(){this._resetCursor(),delete this.element}_mouseenter(t){const e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()}_mouseleave(){this._resetCursor()}_shapeCursor(t){let e=t.element;for(;e&&!ti(e.options.cursor);)e=e.parent;if(e)return e.options.cursor}_getCursor(){if(this.element)return this.element.style.cursor}_setCursor(t){this.element&&(this.element.style.cursor=t,this._current=t)}_resetCursor(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}(this),super._enableTracking()}_trackMouse(t){if(this._suspendedTracking)return;const e=this.eventTarget(t);if("click"!==t.type){const i=this._currentShape;i&&i!==e&&this.trigger("mouseleave",{element:i,originalEvent:t,type:"mouseleave"}),e&&i!==e&&this.trigger("mouseenter",{element:e,originalEvent:t,type:"mouseenter"}),this.trigger("mousemove",{element:e,originalEvent:t,type:"mousemove"}),this._currentShape=e}else e&&this.trigger("click",{element:e,originalEvent:t,type:"click"})}};let Mne,Ene;const OPe=()=>"undefined"!=typeof document;class Ine extends Yi{static get support(){return Ene||(Ene={canvas:OPe()&&document.createElement("canvas").getContext,svg:OPe()&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}),Ene}static get current(){return Mne||(Mne=new Ine),Mne}constructor(){super(),this._items=[{name:"svg",type:xPe},{name:"canvas",type:Dne}]}create(t,e){const i=this._items;let s=i[0];if(e&&e.type){const o=e.type.toLowerCase();for(let r=0;re.x2&&(c=e.x2-i.x),se.y2&&(d=e.y2-i.y),o{n.forEach(t)},cZt=(n,t)=>{for(let i=n.length-1;i>=0;i--)t(n[i],i)},BPe=class extends bs{constructor(t,e){super(Object.assign({},aZt,e)),this._rect=t,this._fieldMap={}}rect(t){return t?(this._rect=t,this):this._rect}_initMap(){const t=this.options,e=this._fieldMap;"horizontal"===t.orientation?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x"),t.reverse?(this.forEach=cZt,this.justifyAlign=rZt):(this.forEach=lZt,this.justifyAlign=nR)}reflow(){if(!this._rect||0===this.children.length)return;this._initMap(),this.options.transform&&this.transform(null);const t=this.options,e=this._rect,{groups:i,groupsSize:s}=this._initGroups(),{sizeField:o,groupsSizeField:r,groupAxis:a,groupsAxis:l}=this._fieldMap,c=new Ot,d=new Ot,u=new Z2;let f,m,C,h=nR(s,e,t.alignContent,l,r);const k=(D,E)=>{const O=m.elements[E];d[a]=f,d[l]=nR(D.size[r],C,t.alignItems,l,r),x6(d,D,O),f+=D.size[o]+t.spacing};for(let D=0;De.size[o]){const D=e.size[o]/C.size[o],E=C.topLeft().scale(D,D),z=nR(C.size[r]*D,e,t.alignContent,l,r),q=js();"x"===a?q.translate(e.origin.x-E.x,z-E.y):q.translate(z-E.x,e.origin.y-E.y),q.scale(D,D),this.transform(q)}}_initGroups(){const{options:t,children:e}=this,{lineSpacing:i,wrap:s,spacing:o}=t,r=this._fieldMap.sizeField;let a=this._newGroup();const l=[],c=function(){l.push(a),d+=a.lineSize+i};let d=-i;for(let u=0;uthis._rect.size[r]?0===a.bboxes.length?(this._addToGroup(a,f,h),c(),a=this._newGroup()):(c(),a=this._newGroup(),this._addToGroup(a,f,h)):this._addToGroup(a,f,h))}return a.bboxes.length&&c(),{groups:l,groupsSize:d}}_addToGroup(t,e,i){t.size+=e.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(e.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(e),t.elements.push(i)}_newGroup(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}},hZt=class extends to{constructor(t,e){super(t),this.chartService=e}render(){const{children:t,options:e}=this,i=e.vertical;this.visual=new BPe(null,{spacing:i?0:e.spacing,lineSpacing:i?e.spacing:0,orientation:i?"vertical":"horizontal",reverse:e.rtl,alignItems:i?"start":"center"});for(let s=0;s{this.createVisual(),this.renderChildren(),this.renderComplete();const i=this.visual;return delete this.visual,i}}),this.addVisual()):super.renderVisual()}},VPe="horizontal",w6="custom";class zPe extends to{constructor(t,e={}){super(t),this.chartService=e,Bs(this.options.position,[Cs,Os,co,os,w6])||(this.options.position=Os),this.createContainers(),this.createLegendTitle(t.title),this.createItems()}createContainers(){const t=this.options,{position:e,align:i}=t;let s=e,o=Pi;e===w6?s=os:Bs(e,[Cs,co])?(s="start"===i?os:"end"===i?Os:Pi,o=e):i&&("start"===i?o=Cs:"end"===i&&(o=co)),this.container=new Yw({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:o,align:s,zIndex:t.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new Yw({vAlign:o,align:s,zIndex:t.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}createItems(){const t=this.getService(),e=this.options,i=this.isVertical(),s=new hZt({vertical:i,spacing:e.spacing,rtl:t.rtl},t);let o=e.items;e.reverse&&(o=o.slice(0).reverse());const r=o.length;for(let a=0;a0}reflow(t){const e=this.options,i=t.clone();this.hasItems()?(e.position===w6?(this.containerCustomReflow(i),this.box=i):this.containerReflow(i),this.hasTitle()&&this.title.reflow(new qt(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=i}containerReflow(t){const{options:e,container:i}=this,{position:s,width:o,height:r}=e,a=s===Cs||s===co?pn:cn,l=this.isVertical(),c=t.clone();let d=t.clone();(s===os||s===Os)&&(d.y1=c.y1=0),l&&r?(d.y2=d.y1+r,d.align(c,cn,i.options.vAlign)):!l&&o&&(d.x2=d.x1+o,d.align(c,pn,i.options.align)),i.reflow(d),d=i.box;const u=d.clone();(e.offsetX||e.offsetY)&&(d.translate(e.offsetX,e.offsetY),i.reflow(d)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u}containerCustomReflow(t){const{options:e,container:i}=this,{offsetX:s,offsetY:o,width:r,height:a}=e,l=this.isVertical();let c=t.clone();l&&a?c.y2=c.y1+a:!l&&r&&(c.x2=c.x1+r),i.reflow(c),c=i.box,i.reflow(new qt(s,o,s+c.width(),o+c.height()))}renderVisual(){this.hasItems()&&super.renderVisual()}createLegendTitle(t){let e=ze({},{color:vr,position:Cs,align:Pi},t),i=e.text;if(t&&!1!==t.visible){if(St(e)&&e.visible){const s=tc(e);s?i=s({text:i}):e.format&&(i=this.chartService.format.auto(e.format,i))}this.title=new Cf(i,e),this.createTitleLayout(),this.appendTitleLayoutContent()}}createTitleLayout(){this.layout=new gte({vertical:!0,wrap:!1}),this.container.append(this.layout)}hasTitle(){return Boolean(this.options.title&&!1!==this.options.title.visible)}appendTitleLayoutContent(){this.options.title.position===co?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}Wt(zPe,{position:Os,items:[],offsetX:0,offsetY:0,margin:Co(5),padding:Co(5),border:{color:vr,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:os,vAlign:Pi}});const mZt=zPe;class One extends Yi{constructor(){super(),this._registry=[]}register(t,e){this._registry.push({type:t,seriesTypes:e})}create(t,e,i){const s=this._registry;let r,o=s[0];for(let a=0;a0){o=l;break}}return new o.type(r,e,i)}}One.current=new One;const Jb=One;function b_(n){const t=document.createElement("div");return n&&(t.className=n),t}function HPe(n){let t=n;for(;t&&!T8(t,"k-handle");)t=t.parentNode;return t}class GPe extends Yi{constructor(t,e,i,s){super();const o=t.element;this.options=ze({},this.options,i),this.chart=t,this.observer=s,this.chartElement=o,this.categoryAxis=e,this._dateAxis=this.categoryAxis instanceof H8,this.initOptions(),this.visible=this.options.visible&&o.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}onPane(t){return this.categoryAxis.pane===t}createElements(){const t=this.options,e=this.wrapper=b_("k-selector");Jo(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});const i=this.selection=b_("k-selection");this.leftMask=b_("k-mask"),this.rightMask=b_("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(i),i.appendChild(b_("k-selection-bg"));const s=this.leftHandle=b_("k-handle k-left-handle"),o=this.rightHandle=b_("k-handle k-right-handle");s.appendChild(b_()),o.appendChild(b_()),i.appendChild(s),i.appendChild(o),this.chartElement.appendChild(e);const r=Jo(i,["borderLeftWidth","borderRightWidth","height"]),a=Jo(s,"height").height,l=Jo(o,"height").height;t.selection={border:{left:r.borderLeftWidth,right:r.borderRightWidth}},Jo(s,{top:(r.height-a)/2}),Jo(o,{top:(r.height-l)/2}),e.style.cssText=e.style.cssText}bindEvents(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),MO(this.wrapper,{[a6]:this._mousewheelHandler})),this._domEvents=ste.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)})}initOptions(){const{options:t,categoryAxis:e}=this,i=e.pane.chartsBox(),s=this.chart.chartService.intl;this._dateAxis&&ze(t,{min:nc(s,t.min),max:nc(s,t.max),from:nc(s,t.from),to:nc(s,t.to)});const{paddingLeft:o,paddingTop:r}=Jo(this.chartElement,["paddingLeft","paddingTop"]);this.options=ze({},{width:i.width(),height:i.height()+.1,padding:{left:o,top:r},offset:{left:i.x1+o,top:i.y1+r},from:t.min,to:t.max},t)}destroy(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(EO(this.wrapper,{[a6]:this._mousewheelHandler}),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}_rangeEventArgs(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}}_start(t){const e=this.options,i=Cm(t);if(this._state||!i)return;this.chart._unsetActivePoint(),this._state={moveTarget:HPe(i)||i,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};const s=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger($te,s)&&(this._state=null)}_press(t){let e;e=this._state?this._state.moveTarget:HPe(Cm(t)),e&&S8(e,"k-handle-active")}_move(t){if(!this._state)return;const{_state:e,options:i,categoryAxis:s}=this,{range:o,moveTarget:r}=e,a=s.options.reverse,l=this._index(i.from),c=this._index(i.to),d=this._index(i.min),u=this._index(i.max),h=e.startLocation-t.x.location,f_from=o.from,f_to=o.to,m=o.to-o.from,C=Jo(this.wrapper,"width").width/(s.categoriesCount()-1),k=Math.round(h/C)*(a?-1:1);if(!r)return;const D=T8(r,"k-left-handle"),E=T8(r,"k-right-handle");T8(r,"k-selection k-selection-bg")?(o.from=Math.min(Math.max(d,l-k),u-m),o.to=Math.min(o.from+m,u)):D&&!a||E&&a?(o.from=Math.min(Math.max(d,l-k),u-1),o.to=Math.max(o.from+1,o.to)):(D&&a||E&&!a)&&(o.to=Math.min(Math.max(d+1,c-k),u),o.from=Math.min(o.to-1,o.from)),(o.from!==f_from||o.to!==f_to)&&(this.move(o.from,o.to),this.trigger(YO,this._rangeEventArgs(o)))}_end(){if(this._state){const t=this._state.moveTarget;t&&function(n,t){n&&n.className&&(n.className=n.className.replace("k-handle-active","").replace(cqt," "))}(t);const e=this._state.range;this.set(e.from,e.to),this.trigger(Ute,this._rangeEventArgs(e)),delete this._state}}_tap(t){const{options:e,categoryAxis:i}=this,s=this.chart._eventCoordinates(t),o=i.pointCategoryIndex(new li(s.x,i.box.y1)),r=this._index(e.from),a=this._index(e.to),l=this._index(e.min),c=this._index(e.max),d=a-r,h={},f=3===t.event.which;let m=Math.round(r+d/2-o);this._state||f||(this.chart._unsetActivePoint(),i.options.justified||m--,h.from=Math.min(Math.max(l,r-m),c-d),h.to=Math.min(h.from+d,c),this._start(t),this._state&&(this._state.range=h,this.trigger(YO,this._rangeEventArgs(h)),this._end()))}_mousewheel(t){let e=lOe(t);if(this._start({target:this.selection}),this._state){const i=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(e)>1&&(e*=3),this.options.mousewheel.reverse&&(e*=-1),this.expand(e)&&this.trigger(YO,{axis:this.categoryAxis.options,delta:e,originalEvent:t,from:this._value(i.from),to:this._value(i.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(()=>{this._end()},150)}}_gesturestart(t){const e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};const i=this._rangeEventArgs(this._state.range);this.trigger($te,i)?this._state=null:t.preventDefault()}_gestureend(){this._state&&(this.trigger(Ute,this._rangeEventArgs(this._state.range)),delete this._state)}_gesturechange(t){const{chart:e,_state:i,options:s,categoryAxis:o}=this,r=i.range,a=e._toModelCoordinates(t.touches[0].x.location).x,l=e._toModelCoordinates(t.touches[1].x.location).x,c=Math.min(a,l),d=Math.max(a,l);t.preventDefault(),r.from=o.pointCategoryIndex(new li(c))||s.min,r.to=o.pointCategoryIndex(new li(d))||s.max,this.move(r.from,r.to),this.trigger(YO,this._rangeEventArgs(r))}_index(t){let e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e}_value(t){let e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t),e>this.options.max&&(e=this.options.max)),e}_slot(t){const e=this.categoryAxis,i=this._index(t);return e.getSlot(i,i,!0)}move(t,e){const i=this.options,s=this.categoryAxis.options.reverse,{offset:o,padding:r,selection:{border:a}}=i,c=s?t:e,d="x"+(s?2:1);let u=this._slot(s?e:t);const h=sn(u[d]-o.left+r.left);Jo(this.leftMask,{width:h}),Jo(this.selection,{left:h}),u=this._slot(c);const f=sn(i.width-(u[d]-o.left+r.left));Jo(this.rightMask,{width:f});let m=i.width-f;m!==i.width&&(m+=a.right),Jo(this.rightMask,{left:m}),Jo(this.selection,{width:Math.max(i.width-(h+f)-a.right,0)})}set(t,e){const i=this.options,s=this._index(i.min),o=this._index(i.max),r=ts(this._index(t),s,o),a=ts(this._index(e),r+1,o);i.visible&&this.move(r,a),i.from=this._value(r),i.to=this._value(a)}expand(t){const e=this.options,i=this._index(e.min),s=this._index(e.max),o=e.mousewheel.zoom,r=this._index(e.from),a=this._index(e.to);let l={from:r,to:a};const c=ze({},l);if(this._state&&(l=this._state.range),o!==Os&&(l.from=ts(ts(r-t,0,a-1),i,s)),o!==os&&(l.to=ts(ts(a+t,l.from+1,s),i,s)),l.from!==c.from||l.to!==c.to)return this.set(l.from,l.to),!0}trigger(t,e){return(this.observer||this.chart).trigger(t,e)}}Wt(GPe,{visible:!0,mousewheel:{zoom:"both"},min:Oa,max:ea});const jPe=GPe,bZt=class extends lne{show(t){if(!t||!t.tooltipAnchor||this._current&&this._current===t)return;const e=ze({},this.options,t.options.tooltip),i=t.tooltipAnchor();i?(this._current=t,super.show({point:t,anchor:i},e,t)):this.hide()}hide(){delete this._current,super.hide()}};class $Pe extends lne{constructor(t,e){super(t.chartService,e),this.plotArea=t,this.formatService=t.chartService.format}showAt(t,e){const i=bm(t,function(s){const o=s.series.tooltip;return!(o&&!1===o.visible)});if(i.length>0){const s=i[0],o=this.plotArea.categoryAxis.getSlot(s.categoryIx),r=e?this._slotAnchor(e,o):this._defaultAnchor(s,o);this.show({anchor:r,shared:!0,points:t,category:s.category,categoryText:this.formatService.auto(this.options.categoryFormat,s.category),series:this.plotArea.series},this.options)}}_slotAnchor(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}}_defaultAnchor(t,e){const i=t.owner.pane.chartsBox(),s=this.plotArea.categoryAxis.options.vertical,o=i.center(),r=e.center();let l;return l=s?new li(o.x,r.y):new li(r.x,o.y),{point:l,align:{horizontal:"center",vertical:"center"}}}}Wt($Pe,{categoryFormat:"{0:d}"});const UPe=$Pe;class WPe extends Uu{setup(){const{element:t,options:e}=this;if(t.bbox()){this.origin=e.origin;const s=e.vertical?cn:pn,o=this.fromScale=new Ot(1,1);o[s]=LO,t.transform(js().scale(o.x,o.y))}else this.abort()}step(t){const e=ip(this.fromScale.x,1,t),i=ip(this.fromScale.y,1,t);this.element.transform(js().scale(e,i,this.origin))}abort(){super.abort(),this.element.transform(null)}}Wt(WPe,{duration:ap}),bf.current.register(xf,WPe);class qPe extends Uu{setup(){const t=this.center=this.element.bbox().center();this.element.transform(js().scale(LO,LO,t))}step(t){this.element.transform(js().scale(t,t,this.center))}}Wt(qPe,{easing:"easeOutElastic"}),bf.current.register(RM,qPe);class XPe extends Uu{setup(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}step(t){this.element.opacity(t*this.fadeTo)}}Wt(XPe,{duration:200,easing:"linear"}),bf.current.register(Wb,XPe);class YPe extends Uu{setup(){this.element.transform(js().scale(LO,LO,this.options.center))}step(t){this.element.transform(js().scale(t,t,this.options.center))}}Wt(YPe,{easing:"easeOutElastic",duration:ap}),bf.current.register(Xb,YPe);class KPe extends f6{render(){super.render(),this.renderSegments()}createSegment(t,e,i){let o;return o=e.style===OM?Kte:$M,new o(t,e,i)}animationPoints(){return super.animationPoints().concat(this._segments)}createMissingValue(t,e){if(e===m_){const i={x:t.x,y:t.y};return qu(i.x)||(i.x=0),qu(i.y)||(i.y=0),i}}}ze(KPe.prototype,Zte);const ZPe=KPe;class Rne extends sS{initFields(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new d6,this.yAxisRangeTracker=new d6}render(t=this.panes){const e=this.groupSeriesByPane();for(let i=0;i0&&this.appendChart(new f6(this,{series:t,clip:e.options.clip}),e)}createScatterLineChart(t,e){t.length>0&&this.appendChart(new ZPe(this,{series:t,clip:e.options.clip}),e)}createBubbleChart(t,e){t.length>0&&this.appendChart(new fYt(this,{series:t,clip:e.options.clip}),e)}createXYAxis(t,e,i){const s=t.name,o=e?this.namedYAxes:this.namedXAxes,r=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=ze({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=iS(a.type,o6),c=r.query(),d=l?{min:.1,max:1}:{min:0,max:1},u=r.query(s)||c||d,h=[a.min,a.max],f=this.series;for(let D=0;D0&&c.length>0&&t.trigger(i,{element:Cm(e),originalEvent:e,x:m6(l),y:m6(c)})}updateAxisOptions(t,e){const i=t.options.vertical,s=this.groupAxes(this.panes),o=(i?s.y:s.x).indexOf(t);QPe(this.options,o,i,e),QPe(this.originalOptions,o,i,e)}}function QPe(n,t,e,i){ze([].concat(e?n.yAxis:n.xAxis)[t],i)}Wt(Rne,{xAxis:{},yAxis:{}}),ze(Rne.prototype,y6);const CZt=Rne;class Pne extends to{constructor(t,e,i){super(i),this.value=t,this.sector=e}render(){const t=this.options.labels,e=this.owner.chartService;let i=this.value;if(this._rendered||!1===this.visible)return;this._rendered=!0;const s=tc(t),o=this.pointData();if(s?i=s(o):t.format&&(i=e.format.auto(t.format,i)),t.visible&&(i||0===i)){if(t.position===Pi||t.position===r6)t.color||(t.color=new Eu(this.options.color).percBrightness()>180?vr:xs),t.background||(t.background=this.options.color);else{const r=e.theme.seriesDefaults.labels;t.color=t.color||r.color,t.background=t.background||r.background}this.label=new Cf(i,ze({},t,{align:Pi,vAlign:"",animation:{type:Wb,delay:this.animationDelay}}),o),this.append(this.label)}}reflow(t){this.render(),this.box=t,this.reflowLabel()}reflowLabel(){const{options:{labels:t},label:e}=this,i=this.sector.clone(),s=t.distance,o=i.middle();if(e){const r=e.box.height(),a=e.box.width();let l;if(t.position===Pi)i.radius=Math.abs((i.radius-r)/2)+r,l=i.point(o),e.reflow(new qt(l.x,l.y-r/2,l.x,l.y));else if(t.position===r6)i.radius=i.radius-r/2,l=i.point(o),e.reflow(new qt(l.x,l.y-r/2,l.x,l.y));else{let c;l=i.clone().expand(s).point(o),l.x>=i.center.x?(c=l.x+a,e.orientation=Os):(c=l.x-a,e.orientation=os),e.reflow(new qt(c,l.y-r,l.x,l.y))}}}createVisual(){const{sector:t,options:e}=this;if(super.createVisual(),this.value)if(e.visual){const i=(t.startAngle+180)%360,s=e.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new Ot(t.center.x,t.center.y),radius:t.radius,innerRadius:t.innerRadius,startAngle:i,endAngle:i+t.angle,options:e,sender:this.getSender(),createVisual:()=>{const o=new bs;return this.createSegmentVisual(o),o}});s&&this.visual.append(s)}else this.createSegmentVisual(this.visual)}createSegmentVisual(t){const{sector:e,options:i}=this,s=i.border||{},r=i.color,a={color:r,opacity:i.opacity},l=this.createSegment(e,ze({fill:a,stroke:{opacity:i.opacity},zIndex:i.zIndex},s.width>0?{stroke:{color:s.color,width:s.width,opacity:s.opacity,dashType:s.dashType}}:{}));t.append(l),tne(i)&&t.append(this.createGradientOverlay(l,{baseColor:r,fallbackFill:a},ze({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},i.overlay)))}createSegment(t,e){return e.singleSegment?new Tb(new qh(new Ot(t.center.x,t.center.y),t.radius),e):F8.current.createRing(t,e)}createAnimation(){const{options:t,sector:{center:e}}=this;ze(t,{animation:{center:[e.x,e.y],delay:this.animationDelay}}),super.createAnimation()}createHighlight(t){const e=this.options.highlight||{},i=e.border||{};return this.createSegment(this.sector,ze({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:i.opacity,width:i.width,color:i.color}}))}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new Ot(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}}tooltipAnchor(){const t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:SZt(e+180)}}formatValue(t){return this.owner.formatPointValue(this,t)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}const xZt=sn(sp(30),10),wZt=sn(sp(60),10);function SZt(n){const t=sp(n),e=sn(Math.sin(t),10),i=sn(Math.cos(t),10);let s,o;return s=Math.abs(e)>wZt?Pi:i<0?Os:os,o=Math.abs(e)c-5?c-5:D,u.translate(f.x-h.x,f.y-h.y);const E=c-D,O=new li(E+u.x1+D,E+u.y1+D);for(let z=0;z0&&(C.sort(this.labelComparator(!0)),this.leftLabelsReflow(C)),k.length>0&&(k.sort(this.labelComparator(!1)),this.rightLabelsReflow(k)),this.box=u}leftLabelsReflow(t){const e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)}rightLabelsReflow(t){const e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)}distanceBetweenLabels(t){const e=ta(this.points),i=e.sector,s=t.length-1,o=i.radius+e.options.labels.distance,r=[];let a=t[0].box,l=sn(a.y1-(i.center.y-o-a.height()-a.height()/2));r.push(l);for(let c=0;c0&&(s>=0||o0){const r=Math.min(t[i],o);o-=r,t[i]-=r,t[e]+=r}return o}reflowLabels(t,e){const i=ta(this.points),s=i.sector,o=i.options.labels,r=e.length,a=o.distance;let c,l=s.center.y-(s.radius+a)-e[0].box.height();t[0]+=2;for(let d=0;da.center.x?(k=a.center.x-a.radius-4,u.lineTo(r.options.labels.align!==y_?k>C.x?k:m.x-8:k,m.y),u.lineTo(C.x,D.y)):(E.y=D.y,u.lineTo(E.x,E.y))),u.lineTo(D.x,D.y),this._connectorLines.push(u),this.visual.append(u)}}}}renderVisual(){if(super.renderVisual(),vOe(this.options.series,t=>t.autoFit)){const t=this.targetBox,e=this.box.center(),i=this.visual.bbox();if(!i)return;const s=i.bottomRight(),o=Math.min((e.y-t.y1)/(e.y-i.origin.y),(t.y2-e.y)/(s.y-e.y),(e.x-t.x1)/(e.x-i.origin.x),(t.x2-e.x)/(s.x-e.x));o<1&&this.visual.transform(js().scale(o,o,[e.x,e.y]))}}labelComparator(t){const e=t?-1:1;return function(i,s){return((i.parent.sector.middle()+270)%360-(s.parent.sector.middle()+270)%360)*e}}hAlignLabel(t,e,i,s,o){const{radius:r,center:{x:a,y:l}}=e,c=Math.min(Math.abs(l-i),Math.abs(l-s));return c>r?t:a+Math.sqrt(r*r-c*c)*(o?1:-1)}pointInCircle(t,e,i){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)r-5?r-5:d;let f,u=r-d,h=0;for(let E=0;E1){const t=function(n){const t=[];for(let e=0;e1){const s=i[0].linePoints[0],o=ta(i),r=ta(o.linePoints),l=r.categoryIx===r.categoriesCount-1;0===s.categoryIx&&l&&ta(i).linePoints.push(s)}}}}createSegment(t,e,i){let o;o=e.style===OM?Kte:$M;const r=new o(t,e,i),a=this.seriesMissingValues(e);return(t.length===e.data.length||a===FM)&&(r.options.closed=!0),r}}Wt(dLe,{clip:!1,limitPoints:!1});const uLe=dLe,jZt=class extends ene{fillToAxes(){}},UZt=class extends UM{fillToAxes(){}},qZt=class extends uLe{createSegment(t,e,i,s){const r=(e.line||{}).style;let a,l,c;return this.options.isStacked&&i>0&&s&&(l=s.linePoints.slice(0),a=s),r===OM?(c=new jZt(t,e,i,a,l),c.options.closed=!0):(t.push(t[0]),c=new UZt(t,e,i,a,l)),c}seriesMissingValues(t){return t.missingValues||m_}};class hLe extends sLe{constructor(t,e){super(t,null,e)}}Wt(hLe,{overlay:{gradient:"none"},labels:{distance:10}});const XZt=hLe;class pLe extends to{constructor(t){super(t),this.forEach=t.rtl?wRe:xRe}reflow(t){const{options:e,children:i}=this,{gap:s,spacing:o}=e,r=i.length,l=t.angle/(r+s+o*(r-1));let c=t.startAngle+l*(s/2);this.forEach(i,d=>{const u=t.clone();u.startAngle=c,u.angle=l,d.sector&&(u.radius=d.sector.radius),d.reflow(u),d.sector=u,c+=l+l*o})}}Wt(pLe,{gap:1,spacing:0});const YZt=pLe,ZZt=class extends to{reflow(t){const{options:{reverse:e},children:i}=this,s=i.length,o=e?s-1:0,r=e?-1:1;this.box=new qt;for(let a=o;a>=0&&a1,e.isStacked100=o&&"100%"===o.type&&s.length>1,e.isStacked100&&(this._isStacked100=!0)}return e}createAreaChart(t,e){if(0===t.length)return;const i=new qZt(this,this.chartOptions(t));this.appendChart(i,e)}createLineChart(t,e){if(0===t.length)return;const i=new uLe(this,this.chartOptions(t));this.appendChart(i,e)}createBarChart(t,e){if(0===t.length)return;const i=t[0],s=this.chartOptions(t);s.gap=i.gap,s.spacing=i.spacing;const o=new QZt(this,s);this.appendChart(o,e),this._hasBarCharts=!0}seriesCategoryAxis(){return this.categoryAxis}_dispatchEvent(t,e,i){const s=t._eventCoordinates(e),o=new li(s.x,s.y),r=this.categoryAxis.getCategory(o),a=this.valueAxis.getValue(o);null!==r&&null!==a&&t.trigger(i,{element:Cm(e),category:r,value:a})}createCrosshairs(){}}ze(zne.prototype,y6,{appendChart:rS.prototype.appendChart,aggregateSeries:rS.prototype.aggregateSeries,seriesSourcePoints:rS.prototype.seriesSourcePoints}),Wt(zne,{categoryAxis:{categories:[]},valueAxis:{}});const JZt=zne;class Hne extends to{constructor(t,e,i){super(e),this.value=t,this.options.index=i.index}reflow(t){const e=this.points,i=this.children[0];this.box=new qt(e[0].x,e[0].y,e[1].x,e[2].y),i&&i.reflow(new qt(t.x1,e[0].y,t.x2,e[2].y))}createVisual(){const t=this.options;let e;super.createVisual(),e=t.visual?t.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:t,sender:this.getSender(),createVisual:()=>this.createPath()}):this.createPath(),e&&this.visual.append(e)}createPath(){const t=this.options,e=t.border;return Sn.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()}createHighlight(t){return Sn.fromPoints(this.points,t)}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const t=Sn.fromPoints(this.points).close();return{options:this.options,path:t}}tooltipAnchor(){const t=this.box;return{point:new li(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}}formatValue(t){return this.owner.formatPointValue(this,t)}}Wt(Hne,{color:xs,border:{width:1}}),ze(Hne.prototype,km);const eQt=Hne;class Gne extends to{constructor(t,e){super(e),this.plotArea=t,this.points=[],this.labels=[],this.legendItems=[],this.render()}formatPointValue(t,e){return this.chartService.format.auto(e,t.value)}render(){const{options:t,plotArea:{options:{seriesColors:e=[]}}}=this,i=t.series[0],s=i.data;if(!s)return;const{total:o,points:r}=NRe(i);for(let a=0;a180?vr:xs,o.background||(o.background=i.color)),this.evalSegmentOptions(o,t,e);const c=new Cf(r,ze({vAlign:o.position},o),l);return this.labels.push(c),c}}labelPadding(){const t=this.labels,e={left:0,right:0};for(let i=0;il.percentage&&(l=o[h]);let c=a.percentage/l.percentage*e,d=(e-c)/2,u=0;for(let h=0;h{this.fontLoaded=!0,this._destroyed||(this.trigger("init"),this._redraw(),this._attachEvents())})}_initElement(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t}_setElementClass(t){S8(t,"k-chart")}_initTheme(t,e){const i=[],s=t.series||[];for(let o=0;o0||e.height>0;t||s&&(!i||e.width!==i.width||e.height!==i.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):s&&this._selections&&vOe(this._selections,o=>!o.visible)&&(this._destroySelections(),this._setupSelection())}_resize(){this._noTransitionsRedraw()}redraw(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){const e=this._model._plotArea,i=e.findPane(t);e.redraw(i)}else this._redraw()}getAxis(t){return tRe(t,this._plotArea.axes)}findAxisByName(t){return this.getAxis(t)}findPaneByName(t){const e=this._plotArea.panes;for(let i=0;i=0){const a=this._plotArea.pointsByCategoryIndex(r);i.showAt(a)}}else o&&i.show(o)}hideTooltip(){this._tooltip.hide()}_initSurface(){const t=this.surface,e=this._surfaceWrap(),i=this.options.chartArea||{};i.width&&h_(e,{width:i.width}),i.height&&h_(e,{height:i.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=RPe.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))}_surfaceWrap(){return this.element}_redraw(){const t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse(function(e){e.animation&&e.animation.setup()}),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse(function(e){e.animation&&e.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new tZt,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),vLe(this._plotArea.panes),this._navState||this._cancelDomEvents()}exportVisual(t){let e;if(t&&(t.width||t.height||t.options)){const i=this.options,s=ze({},t.options,{chartArea:{width:t.width,height:t.height}});Une(this._originalOptions,s),this.options=ze({},this._originalOptions,s),this._initTheme(this.options,this._theme),this.bindCategories();const o=this._getModel();o.renderVisual(),vLe(o._plotArea.panes),e=o.visual,this.options=i}else e=this.surface.exportVisual();return e}_sharedTooltip(){return this._plotArea instanceof rS&&this.options.tooltip&&this.options.tooltip.shared}_createPannable(){const t=this.options;!1!==t.pannable&&(this._pannable=new nZt(this._plotArea,t.pannable))}_createZoomSelection(){const t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new iZt(this,e))}_createMousewheelZoom(){const t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new oZt(this,e))}_toggleDragZoomEvents(){const e=this.options.zoomable,s=(e||{}).mousewheel,o=!(this.options.pannable||!1!==e&&!1!==(e||{}).selection||this.requiresHandlers([jte,WO,qO])),r=(!1===e||!1===s)&&!this.requiresHandlers([XO,GM,jM]),a=this.element;this._dragZoomEnabled&&o&&r?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(o&&r)&&(a.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!o,!r)}_toggleDomEvents(t,e){const i=this.domEvents;!i||(i.toggleDrag&&i.toggleDrag(t),i.toggleZoom&&i.toggleZoom(e))}_createTooltip(){const{options:{tooltip:t}}=this;let e;return e=this._sharedTooltip()?this._createSharedTooltip(t):new bZt(this.chartService,t),e}_createSharedTooltip(t){return new UPe(this._plotArea,t)}applyDefaults(t,e){(function(n,t){const e=(t||{}).axisDefaults||{};let i,s,o;function r(a){const l=(a||{}).color||s.color,c=ze({},e,e[i],s,s[i],{line:{color:l},labels:{color:l},title:{color:l}},a);return delete c[i],c}for(let a=0;a<$ne.length;a++)i=$ne[a]+"Axis",s=n.axisDefaults||{},o=[].concat(n[i]),o=o.map(r),n[i]=o.length>1?o:o[0]})(t,e),function(n,t){const e=n.series,i=e.length,s=n.seriesDefaults,o=ze({},n.seriesDefaults),r=t?ze({},t.seriesDefaults):{},a=ze({},r);_Le(o),_Le(a);for(let l=0;l=0&&this.observers.splice(e,1)}requiresHandlers(t){const e=this.observers;for(let i=0;i=.1){s=Math.round(10*s),this._gestureDistance=t.distance;const o={delta:s,axisRanges:iR(this._plotArea.axes),originalEvent:t};(this._zooming||!this.trigger(XO,o))&&(this._zooming||(this._zooming=!0),(o.axisRanges=e.updateRanges(s))&&!this.trigger(GM,o)&&e.zoom())}}}_mouseout(t){if(t.element){const e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}}_start(t){const e=this._eventCoordinates(t);this._stopChartHandlers(t)||!this._plotArea.backgroundContainsPoint(e)||(this.requiresHandlers([jte,WO,qO])&&this._startNavigation(t,e,jte),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger(XO,{axisRanges:iR(this._plotArea.axes),originalEvent:t}))}_move(t){let{_navState:e,_pannable:i}=this;if(!this._stopChartHandlers(t)){if(i){const s=i.move(t);s&&!this.trigger(WO,{axisRanges:s,originalEvent:t})&&i.pan()}else if(e){const s={},o=e.axes;for(let r=0;r{this.trigger(jM,o),this._zooming=!1,this.surface&&this.surface.resumeTracking()},150))}else{let o=this._navState;if(o||this._startNavigation(t,s,XO)||(o=this._navState),o){const r=o.totalDelta||e;o.totalDelta=r+e;const a=this._navState.axes,l={};for(let c=0;c{this._endNavigation(t,jM)},150)}}}_startNavigation(t,e,i){const s=this._model._plotArea,o=s.findPointPane(e),r=s.axes.slice(0);if(!o)return;const a=iR(r);this.trigger(i,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:a,pane:o,axes:r})}_endNavigation(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)}_getChartElement(t,e){const i=this.surface.eventTarget(t);if(i)return this._drawingChartElement(i,t,e)}_drawingChartElement(t,e,i){let o,s=t;for(;s&&!o;)o=s.chartElement,s=s.parent;if(o)return o.aliasFor&&(o=o.aliasFor(e,this._eventCoordinates(e))),i&&(o=o.closest(i),o&&o.aliasFor&&(o=o.aliasFor())),o}_eventCoordinates(t){const e=kqt(t);return this._toModelCoordinates(e.x,e.y)}_elementPadding(){if(!this._padding){const{paddingLeft:t,paddingTop:e}=Jo(this.element,["paddingLeft","paddingTop"]);this._padding={top:e,left:t}}return this._padding}_toDocumentCoordinates(t){const e=this._elementPadding(),i=lte(this.element);return{left:sn(t.x+e.left+i.left),top:sn(t.y+e.top+i.top)}}_toModelCoordinates(t,e){const i=this.element,s=lte(i),o=this._elementPadding(),r=function(n){if(!n)return D8.unit();let t=bOe(n),e=n.parentElement;for(;e;){const i=bOe(e);t=t.multiplyCopy(i),e=e.parentElement}return t.b=t.c=t.e=t.f=0,t}(i).invert(),a=new Ot(t-s.left-o.left,e-s.top-o.top).transform(r);return new li(a.x,a.y)}_tap(t){const e=this.surface.eventTarget(t),i=this._drawingChartElement(e,t),s=this._sharedTooltip();!this._startHover(e,t)&&!s&&this._unsetActivePoint(),s&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(i,t),this.handlingTap=!0,setTimeout(()=>{this.handlingTap=!1},0)}_click(t){const e=this._getChartElement(t);this._propagateClick(e,t)}_propagateClick(t,e){let i=t;for(;i;)i.click&&i.click(this,e),i=i.parent}_startHover(t,e){if(this._suppressHover)return!1;let i=this._drawingChartElement(t,e,function(a){return(a.hover||a.over)&&!(a instanceof sS)});const s=this._activePoint,o=this._plotArea.series.length>1,r=this._hasInactiveOpacity();return this._updateHoveredPoint(i,e),i&&s!==i&&i.hover?(this._activePoint=i,!this._sharedTooltip()&&!i.hover(this,e)&&(this._displayTooltip(i),r?this._displayInactiveOpacity(i,o):this._highlight.show(i))):!i&&r&&(o&&this._activeChartInstance&&(this._updateSeriesOpacity(i,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),i}_displayTooltip(t){ze({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)}_displayInactiveOpacity(t,e,i){const s=this._activeChartInstance=this._chartInstanceFromPoint(t);if(s)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(s.children,null,!0),this._applySeriesOpacity(s.children,t.series),this._highlight.show(i||t);else{let o;if(!s.supportsPointInactiveOpacity())return void this._highlight.show(t);o=this._getInactivePoints(t,s),o&&o.length&&this._highlight.show(o,1-this._getInactiveOpacityForSeries(t.series))}}_getInactivePoints(t,e){return this._getAllPointsOfType(e,t.constructor).filter(s=>s!==t)}_getAllPointsOfType(t,e){let i=[];for(let s=0;svoid 0!==i.highlight.inactiveOpacity).length>0;return t||e}_getInactiveOpacityForSeries(t){return t.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||t.opacity||1}_getDefaultOpacityForSeries(t){return t.defaultOpacity||t.opacity||1}_mouseover(t){const e=this._startHover(t.element,t.originalEvent);e&&e.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),MO(document,{[cS]:this._mouseMoveTrackHandler}))}_mouseMoveTracking(t){const{options:e,_tooltip:i,_highlight:s,_activePoint:o}=this,r=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(r)){if(o&&o.tooltipTracking&&o.series&&o.parent.getNearestPoint){const a=o.parent.getNearestPoint(r.x,r.y,o.seriesIx);a&&a!==o&&(this._activePoint=a,a.hover(this,t)||(ze({},e.tooltip,a.options.tooltip).visible&&i.show(a),s.show(a)))}}else EO(document,{[cS]:this._mouseMoveTrackHandler}),this._unsetActivePoint(),this._mouseMoveTrackHandler=null}_mousemove(t){const e=this._eventCoordinates(t),i=this._plotArea;if(this._trackCrosshairs(e),i.hover){const s=i.backgroundContainsPoint(e);s?(i.hovered=!0,this._plotArea.hover(this,t)):i.hovered&&!s&&(this.trigger(Gte),i.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)}_trackCrosshairs(t){const e=this._plotArea.crosshairs;for(let i=0;i0&&!this.trigger(aRe,h)?(s.visible&&a.showAt(d,t),l.show(d),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=c}else i&&this._sharedHighlight&&(l.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(l.hide(),a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}hideElements(t){const e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)}_unsetActivePoint(t){const{_tooltip:e,_highlight:i}=this;this._activePoint=null,this._hoveredPoint=null,e&&!(t&&t.keepTooltipOpen)&&e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,i&&i.hide()}_deferRedraw(){this._redraw()}_clearRedrawTimeout(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}bindCategories(){const e=[].concat(this.options.categoryAxis);for(let i=0;i0){l=VRe(t,K8(d.categoryField,h[0]));const C=l?BRe:K8;for(let k=0;k0){l&&(r=function(n,t=Qw){const e=function(n,t=Qw){for(let e=1,i=n.length;e0?[e[0]]:[];for(let o=1;o1,r):s.show(r)}_shouldAttachMouseMove(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([lRe,Gte])}updateMouseMoveHandler(){EO(this.element,{[cS]:this._mousemove}),this._shouldAttachMouseMove()&&MO(this.element,{[cS]:this._mousemove})}applyOptions(t,e){Une(this._originalOptions,t),this._originalOptions=ze(this._originalOptions,t),this.options=ze({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}setOptions(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}setDirection(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()}setIntlService(t){this.chartService.intl=t}noTransitionsRedraw(){this._noTransitionsRedraw()}destroy(){this._destroyed=!0,EO(this.element,{[fLe]:this._clickHandler,[a6]:this._mousewheelHandler,[cS]:this._mousemove,[gLe]:this._mouseleaveHandler}),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&EO(document,{[cS]:this._mouseMoveTrackHandler}),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}_destroySurface(){const t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)}_destroySelections(){const t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()}_destroyView(){const t=this._model;t&&(t.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)}}function yLe(n,t){if(n)for(let e=0;e0&&(a+=i.left+i.right),a}_createSharedTooltip(t){return new yQt(this._plotArea,t)}static normalizeOptions(t){let e=wLe(t);return e=Zd(e)?{seriesDefaults:{data:e}}:ze({},e),e.series||(e.series=[{data:wLe(e.data)}]),ze(e,{seriesDefaults:{type:e.type}}),(Bs(e.series[0].type,bLe)||Bs(e.seriesDefaults.type,bLe))&&(e=ze({},{categoryAxis:{crosshair:{visible:!1}}},e)),e}}Wt(SLe,{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}]});const qne=SLe,CQt=class extends Uu{setup(){this._initialOpacity=parseFloat(Jo(this.element,"opacity").opacity)}step(t){Jo(this.element,{opacity:String(ip(this._initialOpacity,0,t))})}abort(){super.abort(),Jo(this.element,{display:"none",opacity:String(this._initialOpacity)})}cancel(){super.abort(),Jo(this.element,{opacity:String(this._initialOpacity)})}};function Xne(n,t){const e=document.createElement("div");return e.className=n,t&&(e.style.cssText=t),e}class TLe extends Yi{constructor(t,e,i){super(),this.options=ze({},this.options,i),this.container=t,this.chartService=e;const s=Jo(t,["paddingLeft","paddingTop"]);this.chartPadding={top:s.paddingTop,left:s.paddingLeft},this.createElements(),t.appendChild(this.element)}createElements(){const t=this.element=Xne("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=Xne("k-tooltip k-chart-tooltip"),i=this.scroll=Xne("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(i)}show(t,e,i){const{element:s,options:o,scroll:r,tooltip:a}=this,l=Ro(Po(t)+Po(e-t)/2),c=.4*i.width(),d=i.center().x-c,m=(i.center().x-d)/(o.max-o.min),C=l-o.min;let k=this.chartService.intl.format(o.format,t,e);const D=tc(o);this.clearHideTimeout(),this._visible||(Jo(s,{visibility:"hidden",display:"block"}),this._visible=!0),D&&(k=D({from:t,to:e})),a.innerHTML=k,Jo(a,{left:i.center().x-a.offsetWidth/2,top:i.y1});const E=Jo(a,["marginTop","borderTopWidth","height"]);Jo(r,{width:c,left:d+C*m,top:i.y1+E.marginTop+E.borderTopWidth+E.height/2}),Jo(s,{visibility:"visible"})}clearHideTimeout(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}hide(){this.clearHideTimeout(),this._hideTimeout=setTimeout(()=>{this._visible=!1,this._hideAnimation=new CQt(this.element),this._hideAnimation.setup(),this._hideAnimation.play()},this.options.hideDelay)}destroy(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}Wt(TLe,{format:"{0:d} - {1:d}",hideDelay:500});const xQt=TLe,t0="_navigator",C_=t0;class T6 extends Yi{constructor(t){super(),this.chart=t;const e=this.options=ze({},this.options,t.options.navigator),i=e.select;i&&(i.from=this.parseDate(i.from),i.to=this.parseDate(i.to)),St(e.hint.visible)||(e.hint.visible=e.visible),this.chartObserver=new ote(this,{[WO]:"_drag",[qO]:"_dragEnd",[GM]:"_zoom",[jM]:"_zoomEnd"}),t.addObserver(this.chartObserver)}parseDate(t){return nc(this.chart.chartService.intl,t)}clean(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}destroy(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}redraw(){this._redrawSelf(),this.initSelection()}initSelection(){const{chart:t,options:e}=this,i=this.mainAxis(),{min:s,max:o}=i.roundedRange(),{from:r,to:a,mousewheel:l}=e.select,c=function(n){return kLe.prototype=n,new kLe}(i);0!==i.categoriesCount()&&(this.clean(),c.box=i.box,this.selection=new jPe(t,c,{min:s,max:o,from:r||s,to:a||o,mousewheel:er(l,{zoom:"left"}),visible:e.visible},new ote(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),e.hint.visible&&(this.hint=new xQt(t.element,t.chartService,{min:s,max:o,template:tc(e.hint),format:e.hint.format})))}setRange(){const e=this.chart._createPlotArea(!0).namedCategoryAxes[C_],{min:i,max:s}=e.roundedRange(),o=this.options.select||{};let r=o.from||i;rs&&(a=s),this.options.select=ze({},o,{from:r,to:a}),this.filterAxes()}_redrawSelf(t){const e=this.chart._plotArea;e&&e.redraw(ta(e.panes),t)}redrawSlaves(){const t=this.chart,e=t._plotArea,i=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(i)}_drag(t){const{chart:e,selection:i}=this,s=e._eventCoordinates(t.originalEvent),o=this.mainAxis(),r=o.roundedRange(),a=o.pane.box.containsPoint(s),c=t.axisRanges[e._plotArea.categoryAxis.options.name],d=this.options.select;let u;if(!c||a||!i)return;u=d.from&&d.to?Po(d.to)-Po(d.from):Po(i.options.to)-Po(i.options.from);const h=Ro(ts(Po(c.min),r.min,Po(r.max)-u)),f=Ro(ts(Po(h)+u,Po(r.min)+u,r.max));this.options.select={from:h,to:f},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),i.set(h,f),this.showHint(h,f)}_dragEnd(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}readSelection(){const{selection:{options:{from:t,to:e}},options:{select:i}}=this;i.from=t,i.to=e}filterAxes(){const{options:{select:t={}},chart:e}=this,i=e.options.categoryAxis,{from:s,to:o}=t;for(let r=0;r1&&(a*=3),c-l>1?(i.expand(a),this.readSelection()):(e.options.min=s.from,s.from=e.scaleRange(-t.delta).min),o&&(this.filterAxes(),this.redrawSlaves()),i.set(s.from,s.to),this.showHint(this.options.select.from,this.options.select.to)}_zoomEnd(t){this._dragEnd(t)}showHint(t,e){this.hint&&this.hint.show(t,e,this.chart._plotArea.backgroundBox())}_selectStart(t){return this.chart._selectStart(t)}_select(t){return this.showHint(t.from,t.to),this.chart._select(t)}_selectEnd(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)}mainAxis(){const t=this.chart._plotArea;if(t)return t.namedCategoryAxes[C_]}select(t,e){const i=this.options.select;return t&&e&&(i.from=this.parseDate(t),i.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:i.from,to:i.to}}static setup(t={},e={}){if(t.__navi)return;t.__navi=!0;const i=ze({},e.navigator,t.navigator),s=t.panes=[].concat(t.panes),o=ze({},i.pane,{name:t0});i.visible||(o.visible=!1,o.height=.1),s.push(o),T6.attachAxes(t,i),T6.attachSeries(t,i,e)}static attachAxes(t,e){const i=e.series||[],s=t.categoryAxis=[].concat(t.categoryAxis),o=t.valueAxis=[].concat(t.valueAxis),a=0===na(i,rRe).length,l=ze({type:"date",pane:t0,roundToBaseUnit:!a,justified:a,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),c=e.categoryAxis;s.push(ze({},l,{maxDateGroups:200},c,{name:C_,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),ze({},l,c,{name:C_+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),ze({},l,c,{name:C_+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),o.push(ze({name:C_,pane:t0,majorGridLines:{visible:!1},visible:!1},e.valueAxis))}static attachSeries(t,e,i){const s=t.series=t.series||[],o=[].concat(e.series||[]),r=i.seriesColors,a=e.seriesDefaults;for(let l=0;l0){t.moveTo(e[0].x,e[0].y);for(let i=1;i1){const s=new Ot;let o=n[0].bbox;for(let r=1;ri?o.length?(s.push(o),o=[],c(),r=u):(c(),s.push(o),o=[],r=0):(c(),r+=u)}return o.length&&s.push(o),s}(n,t,s),r=t.origin.clone(),a=[];for(let l=0;l${t.render()}`;return t.destroy(),s}function OLe(n,t){const e={width:"800px",height:"600px",cors:"Anonymous"};let i=n;const s=n.clippedBBox();if(s){const u=s.getOrigin();i=new bs,i.transform(js().translate(-u.x,-u.y)),i.children.push(n);const h=s.getSize();e.width=h.width+"px",e.height=h.height+"px"}const o=Object.assign(e,t),r=document.createElement("div"),a=r.style;a.display="none",a.width=o.width,a.height=o.height,document.body.appendChild(r);const l=new Dne(r,o);l.suspendTracking(),l.draw(i);const c=l.image(),d=()=>{l.destroy(),document.body.removeChild(r)};return c.then(d,d),c}function RLe(n,t){let e=FLe(n);return(!t||!t.raw)&&(e="data:image/svg+xml;base64,"+sQ(e)),Qx().resolve(e)}const LLe="arrowPointer",oR="barPointer",VLe=Math.PI/180,n0="inside",k6="linear",Qne="outside",zLe="radialPointer",HLe="radialRangePointer";function GLe(n,t){const e=n.getOrigin(),i=n.getSize(),s=Co(t);return n.setOrigin([e.x-s.left,e.y-s.top]),n.setSize([i.width+(s.left+s.right),i.height+(s.top+s.bottom)]),n}const{Group:GQt,Path:jLe,Text:jQt}=ke;function $Le(n,t){const e=n.box,i=n.children[0].box,s=t.border||{},o=t.background||"",r=jLe.fromRect(new ji([e.x1,e.y1],[e.width(),e.height()]),{stroke:{}}),a=new jQt(n.text,new Ot(i.x1,i.y1),{font:t.font,fill:{color:t.color}}),l=GLe(a.bbox().clone(),t.padding),c=jLe.fromRect(l,{stroke:{color:s.width?s.color:"",width:s.width,opacity:s.opacity,dashType:s.dashType,lineJoin:"round",lineCap:"round"},fill:{color:o}}),d=new GQt;return d.append(r),d.append(c),d.append(a),d}function ULe(n,t,e){const i=St(n.from)?n.from:Oa,s=St(n.to)?n.to:ea;return n.from=Math.max(Math.min(s,i),t),n.to=Math.min(Math.max(s,i),e),n}function WLe(n,t){const e=Co(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,GLe(n,e)}const{Path:UQt,Surface:WQt}=ke;class qLe extends Yi{constructor(t,e,i,s={}){super(),this.element=t,this.theme=i,this.contextService=new nte(this,s),this._originalOptions=ze({},this.options,e),this.options=ze({},this._originalOptions),this._initTheme(i),this.redraw()}destroy(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}value(t){const e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)}_draw(){const t=this.surface;t.clear(),t.draw(this._visuals)}exportVisual(){return this._visuals}allValues(t){const e=this.pointers,i=[];if(0===arguments.length){for(let s=0;s0&&(s=WLe(s,i.width)),UQt.fromRect(s,{stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})}_initSurface(){const{options:t,surface:e}=this,i=this._surfaceElement(),s=this._surfaceSize();h_(i,s),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=WQt.create(i,{type:t.renderAs}))}_surfaceSize(){const t=this.options,e=this._getSize();return t.gaugeArea&&ze(e,t.gaugeArea),e}_surfaceElement(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}getSize(){return this._getSize()}_getSize(){const t=this.element,e=this._defaultSize();let i=t.offsetWidth,s=t.offsetHeight;return i||(i=e.width),s||(s=e.height),{width:i,height:s}}_defaultSize(){return{width:200,height:200}}_toggleTransitions(t){this.options.transitions=t;for(let e=0;e0&&t.visible){const s=new Jne({stroke:{color:t.color,dashType:t.dashType,width:t.width}});s.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),i.append(s)}return i}renderTicks(){const t=new rR,e=this.options,i=e.majorTicks.visible?e.majorUnit:0,s={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return YLe(t,this.getMajorTickPositions(),s,e.majorTicks),YLe(t,this.getMinorTickPositions(),s,ze({},{skipUnit:i/e.minorUnit},e.minorTicks)),t}}Wt(KLe,{min:0,max:50,majorTicks:{size:15,align:n0,color:vr,width:.5,visible:!0},minorTicks:{size:10,align:n0,color:vr,width:.5,visible:!0},line:{width:.5},labels:{position:n0,padding:2},mirror:!1,_alignLines:!1});const XQt=KLe;class ZLe extends Yi{constructor(t,e){super();const{min:i,max:s}=t.options,o=this.options=ze({},this.options,e);o.fill=o.color,this.scale=t,o.value=St(o.value)?ts(o.value,i,s):i}value(t){const e=this.options;if(0===arguments.length)return e.value;const{min:s,max:o}=this.scale.options;e._oldValue=St(e._oldValue)?e.value:s,e.value=ts(t,s,o),this.elements&&this.repaint()}}Wt(ZLe,{color:vr});const eie=ZLe;class QLe extends eie{constructor(t,e){super(t,e),this.options=ze({track:{visible:St(e.track)}},this.options)}reflow(){const{options:t,scale:e}=this,{mirror:i,vertical:s}=e.options,o=e.lineBox(),r=t.track.size||t.size,a=t.size/2,l=Co(t.margin);let d,u,h,c=s?l[i?"left":"right"]:l[i?"bottom":"top"];c=i?-c:c,s?(h=new qt(o.x1+c,o.y1,o.x1+c,o.y2),i?h.x1-=r:h.x2+=r,t.shape!==oR&&(u=new qt(o.x2+c,o.y1-a,o.x2+c,o.y2+a),d=u)):(h=new qt(o.x1,o.y1-c,o.x2,o.y1-c),i?h.y2+=r:h.y1-=r,t.shape!==oR&&(u=new qt(o.x1-a,o.y1-c,o.x2+a,o.y1-c),d=u)),this.trackBox=h,this.pointerRangeBox=u,this.box=d||h.clone().pad(t.border.width)}getElementOptions(){const t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:St(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}}_margin(){const{scale:t,options:e}=this,{mirror:i,vertical:s}=t.options,o=Co(e.margin);return s?o[i?"left":"right"]:o[i?"bottom":"top"]}}Wt(QLe,{shape:oR,track:{border:{width:1}},color:vr,border:{width:1},opacity:1,margin:Co(3),animation:{type:oR},visible:!0});const JLe=QLe;class tie extends Uu{setup(){const t=this.options,{margin:e,from:i,to:s,vertical:o}=t,r=o?"x1":"y1";t.mirror===o?(i[r]-=e,s[r]-=e):(i[r]+=e,s[r]+=e);const a=this.fromScale=new Ot(i.x1,i.y1),l=this.toScale=new Ot(s.x1,s.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(l)/t.duration*1e3,1))}step(t){const e=ip(this.fromScale.x,this.toScale.x,t),i=ip(this.fromScale.y,this.toScale.y,t);this.element.transform(js().translate(e,i))}}Wt(tie,{easing:k6,duration:250}),bf.current.register(LLe,tie);const YQt=tie,XM=Ot,KQt=Sn,QQt=class extends JLe{constructor(t,e){super(t,e),St(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}pointerShape(){const{scale:t,options:{size:e}}=this,i=e/2,s=t.options.mirror?-1:1;let o;return o=t.options.vertical?[new XM(0,0-i),new XM(0-s*e,0),new XM(0,0+i)]:[new XM(0-i,0),new XM(0,0+s*e),new XM(0+i,0)],o}repaint(){const{scale:t,options:e}=this,i=new YQt(this.elements,ze(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(i.options.duration=0),i.setup(),i.play()}render(){const{scale:t,options:e}=this,i=this.getElementOptions(),s=this.pointerShape(e.value);e.animation.type=LLe;const o=new KQt({stroke:i.stroke,fill:i.fill}).moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).close(),r=t.getSlot(e.value);return o.transform(js().translate(r.x1,r.y1)),this.elements=o,o}};class nie extends Uu{setup(){const t=this.options,e=this.axis=t.vertical?cn:pn,i=this.to=t.newPoints[0][e],s=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(i-s)/t.speed*1e3,1)),this._set(s)}step(t){const e=ip(this.from,this.to,t);this._set(e)}_set(t){const e="set"+this.axis.toUpperCase(),i=this.options.newPoints;i[0][e](t),i[1][e](t)}}Wt(nie,{easing:k6,speed:250}),bf.current.register(oR,nie);const JQt=nie,{Group:eJt,Path:eNe}=ke,nJt=class extends JLe{constructor(t,e){super(t,e),St(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}pointerShape(t){const{scale:e,options:i}=this,{mirror:s,vertical:o}=e.options,r=s===o?-1:1,a=i.size*r,l=e.getSlot(e.options.min),c=e.getSlot(t),d=o?cn:pn,u=o?pn:cn,h=this._margin()*r,f=new Ot;f[d]=l[d+"1"],f[u]=l[u+"1"];const m=new Ot;m[d]=c[d+"1"],m[u]=c[u+"1"],o?(f.translate(h,0),m.translate(h,0)):(f.translate(0,h),m.translate(0,h));const C=m.clone(),k=f.clone();return o?(C.translate(a,0),k.translate(a,0)):(C.translate(0,a),k.translate(0,a)),[f,m,C,k]}repaint(){const{scale:t,options:e}=this,i=this.pointerShape(e.value),s=this.pointerPath,o=this.pointerShape(e._oldValue);s.moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).lineTo(i[3]).close();const r=new JQt(s,ze(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[o[1],o[2]],newPoints:[i[1],i[2]]}));!1===e.animation.transitions&&(r.options.duration=0),r.setup(),r.play()}render(){const t=new eJt,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());const i=this.pointerPath=new eNe({stroke:e.stroke,fill:e.fill});return t.append(i),this.elements=t,t}renderTrack(){const t=this.options.track,e=t.border||{},i=this.trackBox.clone().pad(e.width||0);return new eNe.fromRect(i.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})}},oJt=bs;Wt(class extends XLe{reflow(t){const e=this.pointers,i=t.origin.x,s=t.origin.y,o=new qt(i,s,i+t.width(),s+t.height());this.scale.reflow(o),this._shrinkScaleWidth(o);for(let r=0;r0&&(e.box.shrink(i,0),e.box.alignTo(t,"center"),e.reflow(e.box))}}_shrinkElements(){const{scale:t,pointers:e}=this,i=t.box.clone(),s=t.options.vertical?"y":"x",o=e[0].box;for(let r=0;r=360&&e.max%e.majorUnit==0&&(t-=1),t}renderLabels(){const t=this.options,e=this.arc.clone();let i=e.getRadiusX();const s=this.tickAngles(e,t.majorUnit),o=t.rangeSize=t.rangeSize||.1*i,r=new E6;let a=.05*i;St(t.rangeDistance)?a=t.rangeDistance:t.rangeDistance=a;const l=t.labels,c=l.position===n0,d=St(this.labelElements);c&&(i-=this.ticksSize(),this.hasRanges()&&!d&&(i-=o+a),e.setRadiusX(i).setRadiusY(i));const u=this.labels,h=u.length,f=Co(l.padding),m=(f.left+f.right)/2,C=(f.top+f.bottom)/2;for(let k=0;k0){const{rangeDistance:e,rangeSize:i}=this.options;let s=this.getRangeRadius();this.options.labels.position===n0&&(s+=i+e);const o=s+i/2;for(let r=0;r=0;s--)s%i==0&&t.splice(s,1);return t}tickAngles(t,e){const i=this.options,r=t.endAngle-t.startAngle;let a=(i.max-i.min)/e,l=t.startAngle,c=r/a;i.reverse&&(l+=r,c=-c),r>=360&&i.max%e==0&&(a-=1);const d=[];for(let u=0;u5||o!==d&&(a=this.getPlotBox(o,t,e),0<=a&&a<=2)||r!==d&&(c=this.getPlotBox(r,t,e),0<=c&&c<=2)||(d=a>0&&c>0?2*o:a<0&&c<0?2*r:sn((o+r)/2||1,3),l=this.getPlotBox(d,t,e),0<=l&&l<=2)));)u=c,l>0?(r=d,c=l):(o=d,a=l)}getPlotBox(t,e,i){const s=this.scale,o=this.pointers,r=i.getRadiusX(),a=i.clone();a.setRadiusX(r+t).setRadiusY(r+t),s.arc=a,s.reflow(e),this.plotBbox=s.bbox;for(let l=0;l({icon:{border:{width:1}},label:{font:aie,padding:3},line:{length:10,width:2},visible:!0}),LJt=n=>({visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:n.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:"transparent"},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},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:lNe(),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}}),yNe=(n={})=>({axisDefaults:{labels:{font:aie},notes:lNe(),title:{font:rNe,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:LJt(n),title:{font:rNe},legend:{labels:{font:aie}}}),_Ne=["content"];function VJt(n,t){}function zJt(n,t){if(1&n&&A(0,VJt,0,0,"ng-template",5),2&n){const e=I(2);v("ngTemplateOutlet",e.seriesTooltipTemplateRef)("ngTemplateOutletContext",e.seriesTooltipContext)}}function HJt(n,t){}function GJt(n,t){if(1&n&&A(0,HJt,0,0,"ng-template",5),2&n){const e=I(2);v("ngTemplateOutlet",e.seriesSharedTooltipTemplateRef)("ngTemplateOutletContext",e.seriesSharedTooltipContext)}}function jJt(n,t){if(1&n&&(y(0,"div",3),A(1,zJt,1,2,void 0,4),A(2,GJt,1,2,void 0,4),_()),2&n){const e=I();v("ngClass",e.popupClasses)("ngStyle",e.style),b(1),v("ngIf",!e.shared),b(1),v("ngIf",e.shared)}}function $Jt(n,t){1&n&&P(0,"span",6),2&n&&v("innerHTML",t.formattedValue,cP)}function UJt(n,t){if(1&n&&(y(0,"td"),P(1,"span",8),_()),2&n){const e=I().$implicit;b(1),yt("background-color",e.series.color)}}function WJt(n,t){if(1&n&&(_n(0),H(1),vn()),2&n){const e=I(2).$implicit;b(1),un(e.series.name)}}function qJt(n,t){1&n&&(_n(0),H(1,"\xa0"),vn())}function XJt(n,t){if(1&n&&(y(0,"td"),A(1,WJt,2,1,"ng-container",4),A(2,qJt,2,0,"ng-container",4),_()),2&n){const e=I().$implicit;b(1),v("ngIf",void 0!==e.series.name),b(1),v("ngIf",void 0===e.series.name)}}function YJt(n,t){}function KJt(n,t){if(1&n&&(y(0,"tr"),A(1,UJt,2,2,"td",4),A(2,XJt,3,2,"td",4),y(3,"td"),A(4,YJt,0,0,"ng-template",5),_(),_()),2&n){const e=t.$implicit,i=I(),s=i.colorMarker,o=i.nameColumn;b(1),v("ngIf",s),b(1),v("ngIf",o),b(2),v("ngTemplateOutlet",e.template)("ngTemplateOutletContext",e)}}function ZJt(n,t){if(1&n&&(y(0,"table"),y(1,"tr"),y(2,"th"),H(3),_(),_(),A(4,KJt,5,4,"tr",7),_()),2&n){const e=t.points,i=t.categoryText,s=t.colspan;b(2),fe("colspan",s),b(1),_t(" ",i," "),b(1),v("ngForOf",e)}}function QJt(n,t){if(1&n&&(y(0,"div",1),H(1),_()),2&n){const e=I();v("ngStyle",e.style),b(1),_t(" ",e.value," ")}}function JJt(n,t){if(1&n&&P(0,"kendo-chart-crosshair-tooltip",1),2&n){const e=t.$implicit,i=I();v("key",e)("popupSettings",i.popupSettings)}}const een=["surface"];function ten(n,t){}function nen(n,t){if(1&n&&(y(0,"div",6),A(1,ten,0,0,"ng-template",7),_()),2&n){const e=I();v("ngStyle",e.donutCenterStyle),b(1),v("ngTemplateOutlet",e.donutCenterTemplate.templateRef)}}const lie={name:"@progress/kendo-angular-charts",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1624945141,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"};class bi{constructor(t){this.configurationService=t,this.axisLabelClick=new S,this.drag=new S,this.dragEnd=new S,this.dragStart=new S,this.legendItemHover=new S,this.legendItemLeave=new S,this.noteClick=new S,this.noteHover=new S,this.noteLeave=new S,this.paneRender=new S,this.plotAreaClick=new S,this.plotAreaHover=new S,this.plotAreaLeave=new S,this.render=new S,this.select=new S,this.selectEnd=new S,this.selectStart=new S,this.seriesClick=new S,this.seriesHover=new S,this.seriesOver=new S,this.seriesLeave=new S,this.zoom=new S,this.zoomEnd=new S,this.zoomStart=new S}}bi.\u0275fac=function(t){kt()},bi.\u0275dir=R({type:bi,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"},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"}}),x([p(),w("design:type",Object)],bi.prototype,"pannable",void 0),x([p(),w("design:type",String)],bi.prototype,"renderAs",void 0),x([p(),w("design:type",Array)],bi.prototype,"seriesColors",void 0),x([p(),w("design:type",Object)],bi.prototype,"title",void 0),x([p(),w("design:type",Boolean)],bi.prototype,"transitions",void 0),x([p(),w("design:type",Object)],bi.prototype,"zoomable",void 0),x([p(),w("design:type",Object)],bi.prototype,"axisDefaults",void 0),x([p(),w("design:type",Object)],bi.prototype,"categoryAxis",void 0),x([p(),w("design:type",Object)],bi.prototype,"chartArea",void 0),x([p(),w("design:type",Object)],bi.prototype,"legend",void 0),x([p(),w("design:type",Array)],bi.prototype,"panes",void 0),x([p(),w("design:type",Object)],bi.prototype,"paneDefaults",void 0),x([p(),w("design:type",Object)],bi.prototype,"plotArea",void 0),x([p(),w("design:type",Array)],bi.prototype,"series",void 0),x([p(),w("design:type",Object)],bi.prototype,"seriesDefaults",void 0),x([p(),w("design:type",Object)],bi.prototype,"tooltip",void 0),x([p(),w("design:type",Object)],bi.prototype,"valueAxis",void 0),x([p(),w("design:type",Object)],bi.prototype,"xAxis",void 0),x([p(),w("design:type",Object)],bi.prototype,"yAxis",void 0),x([Q(),w("design:type",S)],bi.prototype,"axisLabelClick",void 0),x([Q(),w("design:type",S)],bi.prototype,"drag",void 0),x([Q(),w("design:type",S)],bi.prototype,"dragEnd",void 0),x([Q(),w("design:type",S)],bi.prototype,"dragStart",void 0),x([Q(),w("design:type",S)],bi.prototype,"legendItemHover",void 0),x([Q(),w("design:type",S)],bi.prototype,"legendItemLeave",void 0),x([Q(),w("design:type",S)],bi.prototype,"noteClick",void 0),x([Q(),w("design:type",S)],bi.prototype,"noteHover",void 0),x([Q(),w("design:type",S)],bi.prototype,"noteLeave",void 0),x([Q(),w("design:type",S)],bi.prototype,"paneRender",void 0),x([Q(),w("design:type",S)],bi.prototype,"plotAreaClick",void 0),x([Q(),w("design:type",S)],bi.prototype,"plotAreaHover",void 0),x([Q(),w("design:type",S)],bi.prototype,"plotAreaLeave",void 0),x([Q(),w("design:type",S)],bi.prototype,"render",void 0),x([Q(),w("design:type",S)],bi.prototype,"select",void 0),x([Q(),w("design:type",S)],bi.prototype,"selectEnd",void 0),x([Q(),w("design:type",S)],bi.prototype,"selectStart",void 0),x([Q(),w("design:type",S)],bi.prototype,"seriesClick",void 0),x([Q(),w("design:type",S)],bi.prototype,"seriesHover",void 0),x([Q(),w("design:type",S)],bi.prototype,"seriesOver",void 0),x([Q(),w("design:type",S)],bi.prototype,"seriesLeave",void 0),x([Q(),w("design:type",S)],bi.prototype,"zoom",void 0),x([Q(),w("design:type",S)],bi.prototype,"zoomEnd",void 0),x([Q(),w("design:type",S)],bi.prototype,"zoomStart",void 0);const vNe=1e3/60;class cie{constructor(t,e){this.key=t,this.value=e}}let pe=class{constructor(t){this.ngZone=t,this.store={},this.source=new Hs({}),this.initSource()}initSource(){this.onFastChange$=this.source.asObservable(),this.onChange$=this.onFastChange$.pipe(Bp(vNe))}push(t){this.store=t,this.next()}notify(t){this.set(t.key,t.value),this.next()}set(t,e){let i=this.store;const s=t.split(".");let o=s.shift();for(;s.length>0;)i=i[o]=i[o]||{},o=s.shift();i[o]=e}next(){this.ngZone.runOutsideAngular(()=>{this.source.next(this.store)})}};pe.\u0275fac=function(t){return new(t||pe)(V(ce))},pe.\u0275prov=ue({token:pe,factory:function(n){return pe.\u0275fac(n)}}),pe=x([w("design:paramtypes",[ce])],pe);class Yu{constructor(t){this.sender=t}}class s0 extends Yu{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class die extends s0{constructor(t,e){super(e),this.series=t.series,this.seriesIndex=t.seriesIndex,this.pointIndex=t.pointIndex,this.text=t.text}}class ien extends die{preventDefault(){super.preventDefault()}}class uie extends Yu{constructor(t,e){super(e),this.category=t.category,this.dataItem=t.dataItem,this.series=t.series,this.value=t.value,this.visual=t.visual}}class bNe extends Yu{constructor(t,e){super(e)}}class hie extends s0{constructor(t,e){super(e),this.category=t.category,this.dataItem=t.dataItem,this.originalEvent=t.originalEvent,this.percentage=t.percentage,this.point=t.point,this.series=t.series,this.stackValue=t.stackValue,this.value=t.value}}const CNe={axisLabelClick:class extends Yu{constructor(t,e){super(e),this.axis=t.axis,this.dataItem=t.dataItem,this.index=t.index,this.text=t.text,this.value=t.value}},drag:class extends s0{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},dragEnd:class extends Yu{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},dragStart:class extends s0{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},legendItemHover:class extends die{preventDefault(){super.preventDefault()}},legendItemLeave:class extends die{preventDefault(){}isDefaultPrevented(){return!1}},noteClick:class extends uie{},noteHover:class extends uie{},noteLeave:class extends uie{},paneRender:class extends Yu{constructor(t,e){super(e),Object.assign(this,t)}},plotAreaClick:class extends Yu{constructor(t,e){super(e),this.category=t.category,this.originalEvent=t.originalEvent,this.value=t.value,this.x=t.x,this.y=t.y}},plotAreaHover:class extends Yu{constructor(t,e){super(e),this.category=t.category,this.originalEvent=t.originalEvent,this.value=t.value,this.x=t.x,this.y=t.y}},plotAreaLeave:class extends Yu{},render:bNe,select:class extends s0{constructor(t,e){super(e),this.axis=t.axis,this.from=t.from,this.to=t.to}},selectEnd:class extends Yu{constructor(t,e){super(e),this.axis=t.axis,this.from=t.from,this.to=t.to}},selectStart:class extends s0{constructor(t,e){super(e),this.axis=t.axis,this.from=t.from,this.to=t.to}},seriesClick:class extends Yu{constructor(t,e){super(e),this.category=t.category,this.dataItem=t.dataItem,this.originalEvent=t.originalEvent,this.percentage=t.percentage,this.point=t.point,this.series=t.series,this.stackValue=t.stackValue,this.value=t.value}},seriesHover:class extends hie{},seriesOver:class extends hie{},seriesLeave:class extends hie{},zoom:class extends s0{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.delta=t.delta,this.originalEvent=t.originalEvent}},zoomEnd:class extends Yu{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}},zoomStart:class extends s0{constructor(t,e){super(e),this.axisRanges=t.axisRanges,this.originalEvent=t.originalEvent}}};let dS=(()=>{class n{create(e,i,s){if(CNe[e])return new CNe[e](i,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})(),Mm=class{constructor(t){this.templateRef=t}};Mm.\u0275fac=function(t){return new(t||Mm)(g(ve,8))},Mm.\u0275dir=R({type:Mm,selectors:[["","kendoChartDonutCenterTemplate",""]]}),Mm=x([jb(0,gt()),w("design:paramtypes",[ve])],Mm);class Den{constructor(t,e){this.sender=t,this.options=e}}let $i=class{constructor(){this.source=new Z,this.onItemChange$=this.source.asObservable()}notify(t){this.source.next(t)}};function pie(n,t){for(const e in n){if(!n.hasOwnProperty(e))continue;const i=n[e].currentValue;void 0===i?delete t[e]:t[e]=i}}function fie(n){const t={};for(const e in n)!n.hasOwnProperty(e)||(t[e]=new uH(null,n[e],!1));return t}$i.\u0275fac=function(t){return new(t||$i)},$i.\u0275prov=ue({token:$i,factory:function(n){return $i.\u0275fac(n)}}),$i=x([w("design:paramtypes",[])],$i);let KM=(()=>{class n{constructor(e,i){this.configurationService=e,this.collectionService=i,this.options={},this.subscription=e.onFastChange$.subscribe(s=>{this.options=s,this.notify()})}ngOnChanges(e){const i=this.configurationService.store;pie(e,i),this.configurationService.push(i)}notifyChanges(e){this.ngOnChanges(fie(e))}ngOnDestroy(){this.subscription.unsubscribe()}notify(){!this.collectionService||this.collectionService.notify(new Den(this,this.options))}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,features:[st]}),n})();class Nt extends KM{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}}Nt.\u0275fac=function(t){kt()},Nt.\u0275dir=R({type:Nt,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:[N]}),x([p(),w("design:type",Object)],Nt.prototype,"aggregate",void 0),x([p(),w("design:type",Boolean)],Nt.prototype,"autoFit",void 0),x([p(),w("design:type",String)],Nt.prototype,"axis",void 0),x([p(),w("design:type",Object)],Nt.prototype,"border",void 0),x([p(),w("design:type",String)],Nt.prototype,"categoryAxis",void 0),x([p(),w("design:type",String)],Nt.prototype,"categoryField",void 0),x([p(),w("design:type",String)],Nt.prototype,"closeField",void 0),x([p(),w("design:type",Object)],Nt.prototype,"color",void 0),x([p(),w("design:type",String)],Nt.prototype,"colorField",void 0),x([p(),w("design:type",Object)],Nt.prototype,"connectors",void 0),x([p(),w("design:type",String)],Nt.prototype,"currentField",void 0),x([p(),w("design:type",String)],Nt.prototype,"dashType",void 0),x([p(),w("design:type",Array)],Nt.prototype,"data",void 0),x([p(),w("design:type",String)],Nt.prototype,"downColor",void 0),x([p(),w("design:type",String)],Nt.prototype,"downColorField",void 0),x([p(),w("design:type",Boolean)],Nt.prototype,"dynamicHeight",void 0),x([p(),w("design:type",Boolean)],Nt.prototype,"dynamicSlope",void 0),x([p(),w("design:type",String)],Nt.prototype,"errorHighField",void 0),x([p(),w("design:type",String)],Nt.prototype,"errorLowField",void 0),x([p(),w("design:type",String)],Nt.prototype,"explodeField",void 0),x([p(),w("design:type",String)],Nt.prototype,"field",void 0),x([p(),w("design:type",String)],Nt.prototype,"fromField",void 0),x([p(),w("design:type",Number)],Nt.prototype,"gap",void 0),x([p(),w("design:type",String)],Nt.prototype,"highField",void 0),x([p(),w("design:type",Number)],Nt.prototype,"holeSize",void 0),x([p(),w("design:type",Object)],Nt.prototype,"line",void 0),x([p(),w("design:type",String)],Nt.prototype,"lowField",void 0),x([p(),w("design:type",String)],Nt.prototype,"lowerField",void 0),x([p(),w("design:type",Object)],Nt.prototype,"margin",void 0),x([p(),w("design:type",Number)],Nt.prototype,"maxSize",void 0),x([p(),w("design:type",Object)],Nt.prototype,"mean",void 0),x([p(),w("design:type",String)],Nt.prototype,"meanField",void 0),x([p(),w("design:type",Object)],Nt.prototype,"median",void 0),x([p(),w("design:type",String)],Nt.prototype,"medianField",void 0),x([p(),w("design:type",Number)],Nt.prototype,"minSize",void 0),x([p(),w("design:type",String)],Nt.prototype,"missingValues",void 0),x([p(),w("design:type",String)],Nt.prototype,"name",void 0),x([p(),w("design:type",Number)],Nt.prototype,"neckRatio",void 0),x([p(),w("design:type",String)],Nt.prototype,"negativeColor",void 0),x([p(),w("design:type",Object)],Nt.prototype,"negativeValues",void 0),x([p(),w("design:type",String)],Nt.prototype,"noteTextField",void 0),x([p(),w("design:type",Number)],Nt.prototype,"opacity",void 0),x([p(),w("design:type",String)],Nt.prototype,"openField",void 0),x([p(),w("design:type",String)],Nt.prototype,"outliersField",void 0),x([p(),w("design:type",Object)],Nt.prototype,"overlay",void 0),x([p(),w("design:type",Number)],Nt.prototype,"padding",void 0),x([p(),w("design:type",String)],Nt.prototype,"q1Field",void 0),x([p(),w("design:type",String)],Nt.prototype,"q3Field",void 0),x([p(),w("design:type",Number)],Nt.prototype,"segmentSpacing",void 0),x([p(),w("design:type",Number)],Nt.prototype,"size",void 0),x([p(),w("design:type",String)],Nt.prototype,"sizeField",void 0),x([p(),w("design:type",Number)],Nt.prototype,"spacing",void 0),x([p(),w("design:type",Object)],Nt.prototype,"stack",void 0),x([p(),w("design:type",Number)],Nt.prototype,"startAngle",void 0),x([p(),w("design:type",String)],Nt.prototype,"style",void 0),x([p(),w("design:type",String)],Nt.prototype,"summaryField",void 0),x([p(),w("design:type",Object)],Nt.prototype,"target",void 0),x([p(),w("design:type",String)],Nt.prototype,"toField",void 0),x([p(),w("design:type",String)],Nt.prototype,"type",void 0),x([p(),w("design:type",String)],Nt.prototype,"upperField",void 0),x([p(),w("design:type",Boolean)],Nt.prototype,"visible",void 0),x([p(),w("design:type",Boolean)],Nt.prototype,"visibleInLegend",void 0),x([p(),w("design:type",String)],Nt.prototype,"visibleInLegendField",void 0),x([p(),w("design:type",Function)],Nt.prototype,"visual",void 0),x([p(),w("design:type",Number)],Nt.prototype,"width",void 0),x([p(),w("design:type",Object)],Nt.prototype,"whiskers",void 0),x([p(),w("design:type",String)],Nt.prototype,"xAxis",void 0),x([p(),w("design:type",String)],Nt.prototype,"xErrorHighField",void 0),x([p(),w("design:type",String)],Nt.prototype,"xErrorLowField",void 0),x([p(),w("design:type",String)],Nt.prototype,"xField",void 0),x([p(),w("design:type",String)],Nt.prototype,"yAxis",void 0),x([p(),w("design:type",String)],Nt.prototype,"yErrorHighField",void 0),x([p(),w("design:type",String)],Nt.prototype,"yErrorLowField",void 0),x([p(),w("design:type",String)],Nt.prototype,"yField",void 0),x([p(),w("design:type",Number)],Nt.prototype,"zIndex",void 0),x([p(),w("design:type",Object)],Nt.prototype,"errorBars",void 0),x([p(),w("design:type",Object)],Nt.prototype,"extremes",void 0),x([p(),w("design:type",Object)],Nt.prototype,"highlight",void 0),x([p(),w("design:type",Object)],Nt.prototype,"labels",void 0),x([p(),w("design:type",Object)],Nt.prototype,"markers",void 0),x([p(),w("design:type",Object)],Nt.prototype,"notes",void 0),x([p(),w("design:type",Object)],Nt.prototype,"outliers",void 0),x([p(),w("design:type",Object)],Nt.prototype,"tooltip",void 0);let fn=(()=>{class n{constructor(e,i){if(this.configKey=e,this.configurationService=i,this.store={},void 0===e)throw new Error("Configuration key not set")}ngOnDestroy(){this.store=void 0,this.notify()}ngOnChanges(e){pie(e,this.store),this.notify()}notifyChanges(e){this.ngOnChanges(fie(e))}markAsVisible(){this.store.visible=!0,this.notify()}notify(){this.configurationService.notify(new cie(this.configKey,this.store))}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n,features:[st]}),n})();class wf extends fn{constructor(t){super("tooltip",t),this.configurationService=t}}wf.\u0275fac=function(t){kt()},wf.\u0275dir=R({type:wf,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],wf.prototype,"background",void 0),x([p(),w("design:type",Object)],wf.prototype,"border",void 0),x([p(),w("design:type",String)],wf.prototype,"color",void 0),x([p(),w("design:type",String)],wf.prototype,"font",void 0),x([p(),w("design:type",String)],wf.prototype,"format",void 0),x([p(),w("design:type",Object)],wf.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],wf.prototype,"visible",void 0);let Qd=class extends wf{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}get seriesTooltipTemplateRef(){return this.seriesTooltipTemplate}};Qd.\u0275fac=function(t){return new(t||Qd)(g(pe))},Qd.\u0275cmp=K({type:Qd,selectors:[["kendo-chart-series-item-tooltip"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,ve,5),2&t){let s;U(s=W())&&(e.seriesTooltipTemplate=s.first)}},features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([ct(ve,{static:!1}),w("design:type",ve)],Qd.prototype,"seriesTooltipTemplate",void 0),Qd=x([w("design:paramtypes",[pe])],Qd);const xNe=n=>void 0!==n&&!n;let va=class extends Nt{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}toggleVisibility(){this.options.visible=xNe(this.options.visible),this.notify()}togglePointVisibility(t){const e=this.options.pointVisibility=this.options.pointVisibility||{};e[t]=xNe(e[t]),this.notify()}get seriesTooltipTemplateRef(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef}};va.\u0275fac=function(t){return new(t||va)(g(pe),g($i))},va.\u0275cmp=K({type:va,selectors:[["kendo-chart-series-item"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,Qd,5),2&t){let s;U(s=W())&&(e.seriesTooltip=s.first)}},features:[we([pe]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([ct(Qd,{static:!1}),w("design:type",Qd)],va.prototype,"seriesTooltip",void 0),va=x([w("design:paramtypes",[pe,$i])],va);const I6=n=>`${n.fontWeight} ${n.fontSize} ${n.fontFamily}`,wNe=n=>window.getComputedStyle(n).backgroundColor;let Jd=class extends pe{constructor(t){super(t),this.loaded=!1}loadTheme(){this.loaded||!Ft()||(this.readTheme()||this.readDefaultTheme(),this.loaded=!0,this.next())}readTheme(){this.createElement();const t=this.queryColor("accent")!==this.queryColor("accent-contrast");try{t&&(this.push(yNe()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return t}readDefaultTheme(){this.push(Object.assign({},yNe(),{axisDefaults:{crosshair:{color:"rgba(0, 0, 0, 0.5)"},labels:{color:"rgb(101, 101, 101)",font:"12px serif"},line:{color:"rgba(0, 0, 0, 0.08)"},majorGridLines:{color:"rgba(0, 0, 0, 0.08)"},minorGridLines:{color:"rgba(0, 0, 0, 0.04)"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},title:{color:"rgb(101, 101, 101)",font:"14px serif"}},chartArea:{background:"rgb(255, 255, 255)"},legend:{inactiveItems:{labels:{color:"rgba(102, 102, 102, 0.5)"},markers:{color:"rgba(102, 102, 102, 0.5)"}},labels:{color:"rgb(101, 101, 101)",font:"14px serif"}},seriesDefaults:{boxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},bullet:{target:{color:"rgb(101, 101, 101)"}},candlestick:{downColor:"rgb(101, 101, 101)",line:{color:"rgb(101, 101, 101)"}},errorBars:{color:"rgba(0, 0, 0, 0.5)"},horizontalWaterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},icon:{border:{color:"rgba(0, 0, 0, 0.08)"}},labels:{background:"rgb(255, 255, 255)",color:"rgb(101, 101, 101)",opacity:.8,font:"12px serif"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},overlay:{gradient:"none"},verticalBoxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},verticalBullet:{target:{color:"rgb(101, 101, 101)"}},waterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},area:{opacity:.8}},title:{color:"rgb(101, 101, 101)",font:"16px serif"},seriesColors:["rgb(255, 99, 88)","rgb(255, 210, 70)","rgb(120, 210, 55)","rgb(40, 180, 200)","rgb(45, 115, 245)","rgb(170, 70, 190)"]}))}createElement(){const t=this.element=document.createElement("div");t.style.display="none",t.innerHTML=`\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
\n ${(()=>{let n='\n
\n
\n
\n
\n
\n
\n ';for(let t=0;t<30;t++)n+=`\n
`;return n})()}\n
\n`,document.body.appendChild(t)}destroyElement(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}setStyle(t,e){this.set(t,e)}setColors(){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");const t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.radarArea.opacity",t),this.setStyle("seriesDefaults.verticalArea.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}setInactiveOpacity(t,e){const i=parseFloat(this.queryStyle(e).opacity);!isNaN(i)&&i<1&&t.forEach(s=>this.setStyle(`seriesDefaults.${s}.highlight.inactiveOpacity`,i))}setFonts(){const t=I6(this.queryStyle("chart-font")),e=I6(this.queryStyle("chart-title-font")),i=I6(this.queryStyle("chart-pane-title-font")),s=I6(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",s),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",s),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("paneDefaults.title.font",i)}setSeriesColors(){const t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),i=wNe(t.querySelector(".k-var--series-unset")),s=e.reduce((o,r)=>{const a=(n=>{const t=n.match(/series-([a-z])$/);if(null!==t)return(n=>n.toLowerCase().charCodeAt(0)-"a".charCodeAt(0))(t[1]);const e=n.split("--series-")[1];return parseInt(e,10)-1})(r.className),l=wNe(r);return l!==i&&(o[a]=l),o},[]);this.setStyle("seriesColors",s)}mapColor(t,e){this.setStyle(t,this.queryColor(e))}queryColor(t){return this.queryStyle(t).backgroundColor}queryStyle(t){const e=this.element.querySelector(`.k-var--${t}`);return window.getComputedStyle(e)}};Jd.\u0275fac=function(t){return new(t||Jd)(V(ce))},Jd.\u0275prov=ue({token:Jd,factory:function(n){return Jd.\u0275fac(n)}}),Jd=x([w("design:paramtypes",[ce])],Jd);class Ren extends ote{constructor(t){super(t),this.handlerMap={hideTooltip:"onHideTooltip",legendItemClick:"onLegendItemClick",render:"onRender",showTooltip:"onShowTooltip",init:"onInit"}}}let Ac=class{setTemplate(t){this.template=t}getTemplate(t){return this.seriesTemplates&&this.seriesTemplates[t]?this.seriesTemplates[t]:this.template}setSeriesTemplates(t){this.seriesTemplates=t}setSharedTemplate(t){this.sharedTemplate=t}getSharedTemplate(){return this.sharedTemplate}};Ac.\u0275fac=function(t){return new(t||Ac)},Ac.\u0275prov=ue({token:Ac,factory:function(n){return Ac.\u0275fac(n)}});let pd=class{constructor(t){this.templateRef=t}};pd.\u0275fac=function(t){return new(t||pd)(g(ve,8))},pd.\u0275dir=R({type:pd,selectors:[["","kendoChartSeriesTooltipTemplate",""]]}),pd=x([jb(0,gt()),w("design:paramtypes",[ve])],pd);let eu=class{constructor(t){this.templateRef=t}};eu.\u0275fac=function(t){return new(t||eu)(g(ve,8))},eu.\u0275dir=R({type:eu,selectors:[["","kendoChartSharedTooltipTemplate",""]]}),eu=x([jb(0,gt()),w("design:paramtypes",[ve])],eu);class SNe{constructor(t,e,i){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.template=i,this.point=t,this.format=e}get formattedValue(){return this.format?this.point.formatValue(this.format):String(this.value)}}const Len={horizontal:"fit",vertical:"fit"};let TNe=(()=>{class n{constructor(e,i){this.popupService=e,this.localizationService=i,this.style={},this.popupRef=null}get active(){return null!==this.popupRef}show(e){const i=e.anchor.align,s=this.position(e.anchor.point);if(this.style=e.style,this.popupRef){const o=this.popupRef.popup.instance;o.offset=s,o.popupAlign=i}else this.popupRef=this.popupService.open(Object.assign({offset:s,popupAlign:i,animate:this.animate,content:this.templateRef,collision:Len,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()}hide(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}onInit(){}ngOnDestroy(){this.hide()}position(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;const i=this.popupSettings.appendTo.element.nativeElement;console.log("appendTo",i);const s=i.getBoundingClientRect(),{scrollLeft:o,scrollTop:r}=this.scrollOffset(i);return{left:e.left-s.left-o,top:e.top-s.top-r}}scrollOffset(e){if(!e)return null;let i=e.scrollLeft,s=e.scrollTop,o=e.parentElement;for(;o;)i+=o.scrollLeft,s+=o.scrollTop,o=o.parentElement;return{scrollLeft:i,scrollTop:s}}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n}),n})();function gie(n,t){let e=n;for(;e&&e!==t;)e=e.parentNode;return!!e}function kNe(){if(Ft())return new $(document.body)}const Ven=kNe;let ba=class extends TNe{constructor(t,e,i,s){super(t,i),this.popupService=t,this.templateService=e,this.localizationService=i,this.ngZone=s,this.seriesTooltipContext={},this.seriesSharedTooltipContext={},this.animate=!0,this.wrapperClass="k-chart-tooltip-wrapper",this.leave=new S,this.popupClasses={}}show(t){this.shared=t.shared,this.popupClasses=Object.assign({"k-chart-shared-tooltip":t.shared,"k-chart-tooltip":!0,[t.className]:!!t.className},this.classNames),t.shared?(this.seriesSharedTooltipTemplateRef=this.templateService.getSharedTemplate()||this.defaultSharedTooltipTemplate.templateRef,this.seriesSharedTooltipContext=this.sharedTemplateContext(t)):(this.seriesTooltipContext=new SNe(t.point,t.format),this.seriesTooltipTemplateRef=this.pointTemplateRef(t.point)),super.show(t)}containsElement(t){if(this.popupRef)return gie(t,this.popupRef.popupElement)}sharedTemplateContext(t){const i=t.points.filter(r=>void 0!==r.series.name).length>0,s=t.series.length>1;let o=1;return i&&o++,s&&o++,{category:t.category,categoryText:t.categoryText,colorMarker:s,colspan:o,nameColumn:i,points:this.wrapPoints(t.points,t.format)}}pointTemplateRef(t){return this.templateService.getTemplate(t.series.index)||this.defaultSeriesTooltipTemplate.templateRef}wrapPoints(t,e){const i=[];for(let s=0;s{this.mouseleaveSubscription=this.popupRef.popupElement.addEventListener("mouseleave",t=>{this.leave.emit(t)})}),this.popupRef.popupElement.className+=` ${this.wrapperClass}`}hide(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),super.hide()}};ba.\u0275fac=function(t){return new(t||ba)(g(Oi),g(Ac),g(J),g(ce))},ba.\u0275cmp=K({type:ba,selectors:[["kendo-chart-tooltip-popup"]],viewQuery:function(t,e){if(1&t&&(Ae(pd,5),Ae(eu,5),Ae(_Ne,7)),2&t){let i;U(i=W())&&(e.defaultSeriesTooltipTemplate=i.first),U(i=W())&&(e.defaultSharedTooltipTemplate=i.first),U(i=W())&&(e.templateRef=i.first)}},inputs:{animate:"animate",wrapperClass:"wrapperClass",classNames:"classNames",popupSettings:"popupSettings"},outputs:{leave:"leave"},features:[we([Oi,{provide:i5,useFactory:Ven}]),N],decls:4,vars:0,consts:[["content",""],["kendoChartSeriesTooltipTemplate",""],["kendoChartSharedTooltipTemplate",""],[3,"ngClass","ngStyle"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[1,"k-chart-shared-tooltip-marker"]],template:function(t,e){1&t&&(A(0,jJt,3,4,"ng-template",null,0,Ls),A(2,$Jt,1,1,"ng-template",1),A(3,ZJt,5,3,"ng-template",2))},directives:[pd,eu,Un,zo,pt,zs,Wn],encapsulation:2}),x([at(pd,{static:!1}),w("design:type",pd)],ba.prototype,"defaultSeriesTooltipTemplate",void 0),x([at(eu,{static:!1}),w("design:type",eu)],ba.prototype,"defaultSharedTooltipTemplate",void 0),x([at("content",{static:!0}),w("design:type",ve)],ba.prototype,"templateRef",void 0),x([p(),w("design:type",Boolean)],ba.prototype,"animate",void 0),x([p(),w("design:type",Object)],ba.prototype,"classNames",void 0),x([p(),w("design:type",Object)],ba.prototype,"popupSettings",void 0),x([p(),w("design:type",String)],ba.prototype,"wrapperClass",void 0),x([Q(),w("design:type",S)],ba.prototype,"leave",void 0),ba=x([w("design:paramtypes",[Oi,Ac,J,ce])],ba);const zen=kNe;let Ku=class extends TNe{constructor(t,e){super(t,e),this.animate=!1}show(t){super.show(t),this.value=t.value,this.popupRef.popup.changeDetectorRef.detectChanges()}};Ku.\u0275fac=function(t){return new(t||Ku)(g(Oi),g(J))},Ku.\u0275cmp=K({type:Ku,selectors:[["kendo-chart-crosshair-tooltip"]],viewQuery:function(t,e){if(1&t&&Ae(_Ne,7),2&t){let i;U(i=W())&&(e.templateRef=i.first)}},inputs:{key:"key",popupSettings:"popupSettings"},features:[we([Oi,{provide:i5,useFactory:zen}]),N],decls:2,vars:0,consts:[["content",""],[1,"k-chart-tooltip","k-chart-crosshair-tooltip",3,"ngStyle"]],template:function(t,e){1&t&&A(0,QJt,2,2,"ng-template",null,0,Ls)},directives:[zo],encapsulation:2}),x([at("content",{static:!0}),w("design:type",ve)],Ku.prototype,"templateRef",void 0),x([p(),w("design:type",String)],Ku.prototype,"key",void 0),x([p(),w("design:type",Object)],Ku.prototype,"popupSettings",void 0),Ku=x([w("design:paramtypes",[Oi,J])],Ku);const DNe=["categoryAxis","valueAxis","xAxis","yAxis"];let Zu=class{constructor(){this.tooltipKeys=[],this.tooltipsMap={}}show(t){const e=this.crossahirTooltipComponents.toArray(),i=t.axisName,s=t.axisIndex;for(let o=0;o0}createCrosshairTooltips(t){const e=this.mapTooltips(t),i=this.tooltipsMap;for(let s in i)e[s]||(this.removeTooltip(s),delete i[s]);for(let s in e)i[s]||(i[s]=e[s],this.tooltipKeys.push(s))}removeTooltip(t){const e=this.tooltipKeys;for(let i=0;i({x:{location:n.pageX},y:{location:n.pageY}});function jen(n,t){for(let e=0;e{const e=n.pointers,i=e[0],s=i.pageX,o=i.pageY;let r=0;if(e.length>1){const a=e[0],l=e[1];r=Math.sqrt(Math.pow(a.pageX-l.pageX,2)+Math.pow(a.pageY-l.pageY,2))}return{distance:r,event:n.srcEvent,preventDefault:function(){n.preventDefault()},target:n.target,touches:e.map(Hen),type:n.type,x:{delta:t?s-t.x.location:0,initialDelta:n.deltaX,location:s,startLocation:s-n.deltaX},y:{delta:t?o-t.y.location:0,initialDelta:n.deltaY,location:o,startLocation:o-n.deltaY}}})(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](i),i}bind(t={}){this.unbind(),this.eventHandlers=t;for(let e=0;e0}Object.assign(H8.prototype.options.labels.dateFormats,ENe),Object.assign(Xen,ENe),ste.register(class{static create(t,e){if("undefined"!=typeof window){const i=window.Hammer;if(!i){if(En())throw new Error("Hammerjs is not loaded.Solution: http://www.telerik.com/kendo-angular-ui/components/charts/troubleshooting/#toc-hammerjs-is-not-loaded");return}const s=new i(t,{recognizers:[[i.Tap],[i.Pan],[i.Pinch],[i.Press,{time:0}]]});return new $en(s,e)}}});let dr=class extends bi{constructor(t,e,i,s,o,r,a,l,c){super(t),this.configurationService=t,this.themeService=e,this.element=i,this.intl=s,this.localizationService=o,this.ngZone=r,this.instanceEventService=a,this.changeDetector=l,this.renderer=c,this.legendItemClick=new S,this.resizeRateLimit=10,this.theme=null,this.suppressTransitions=!1,this.rtl=!1,this.hostClasses=["k-chart","k-widget"],Ii(lie),this.themeService.loadTheme(),this.refreshWait()}ngOnInit(){this.element&&(this.hostClasses.forEach(t=>{this.renderer.addClass(this.element.nativeElement,t)}),this.renderer.setStyle(this.element.nativeElement,"position","relative"))}ngAfterViewInit(){this.canRender&&this.ngZone.runOutsideAngular(()=>{const t=this.renderer.listen(this.surfaceElement.nativeElement,"mouseleave",this.chartMouseleave.bind(this));this.domSubscriptions=()=>{t()}}),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}ngAfterViewChecked(){this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resize()},0)})}ngOnChanges(t){const e=this.configurationService.store;pie(t,e),e.popupSettings=null,this.configurationService.push(e)}notifyChanges(t){this.ngOnChanges(fie(t))}ngOnDestroy(){this.destroyed=!0,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)}createInstance(t,e){this.instance=new Wne(t,this.options,this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})}exportImage(t={}){return OLe(this.exportVisual(t),t)}exportSVG(t={}){return RLe(this.exportVisual(t),t)}exportVisual(t={}){return this.instance.exportVisual(t)}findAxisByName(t){if(this.instance)return this.instance.findAxisByName(t)}findPaneByIndex(t){if(this.instance)return this.instance.findPaneByIndex(t)}findPaneByName(t){if(this.instance)return this.instance.findPaneByName(t)}getPlotArea(){if(this.instance)return this.instance.plotArea()}toggleHighlight(t,e){this.instance&&this.instance.toggleHighlight(t,e)}hideTooltip(){this.instance&&this.instance.hideTooltip()}showTooltip(t){this.instance&&this.instance.showTooltip(t)}init(){if(!this.canRender)return;const t=this.surfaceElement.nativeElement,e=new Ren(this);this.createInstance(t,e)}resize(){this.instance&&this.instance.resize()}onResize(t){this.autoResize&&this.resize()}onLegendItemClick(t){this.run(()=>{const e=new ien(t,this);if(this.legendItemClick.emit(e),!e.isDefaultPrevented()){const i=this.seriesComponents.toArray()[t.series.index];if(!i)return;void 0===t.pointIndex?i.toggleVisibility():i.togglePointVisibility(t.pointIndex),this.suppressTransitions=!0}},mie(this.legendItemClick),this.seriesComponents.length>0)}onInit(t){this.instance=t.sender}onRender(t){const e=this.getDonutCenterStyle();this.run(()=>{const i=new bNe(t,this);this.surface=t.sender.surface,this.render.emit(i),this.donutCenterStyle=e},mie(this.render),this.donutCenterStyle!==e)}onShowTooltip(t){this.run(()=>{t.crosshair?this.crossahirTooltips.show(t):this.tooltipInstance.show(t)},!t.crosshair,!0)}onHideTooltip(t){t.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}trigger(t,e){if("resize"===t)return;const i=this.activeEmitter(t);if(i){const s=this.instanceEventService.create(t,e,this);return this.run(()=>{i.emit(s)}),s.isDefaultPrevented&&s.isDefaultPrevented()}}requiresHandlers(t){for(let e=0;e0}activeEmitter(t){const e=this[t];if(e&&e.emit&&mie(e))return e}getDonutCenterStyle(){if(!this.instance||!this.options||!this.options.series)return;const t=this.options.series[0],e=this.instance._plotArea.charts;if(!t||"donut"!==t.type||0===e[0].points.length)return;const i=e[0].points[0],s=i.box.center(),o=i.sector.innerRadius,l=2*o;return{height:l+"px",left:s.x-o+"px",top:s.y-o+"px",width:l+"px"}}refreshWait(){this.ngZone.runOutsideAngular(()=>{this.subscription=nN(this.configurationService.onChange$,this.themeService.onChange$).pipe(lt(t=>{this.options=t[0],this.theme=t[1]}),Bp(vNe)).subscribe(()=>{this.refresh()})})}run(t,e=!0,i){e?(i&&this.changeDetector.markForCheck(),this.ngZone.run(t)):(t(),i&&this.detectChanges())}detectChanges(){this.destroyed||this.changeDetector.detectChanges()}intlChange(){this.instance&&this.deferredRedraw()}rtlChange(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()}deferredRedraw(){this.ngZone.runOutsideAngular(()=>{clearTimeout(this.redrawTimeout),this.redrawTimeout=setTimeout(()=>{this.updateDirection(),this.instance.noTransitionsRedraw()},0)})}updateDirection(){const t=this.isRTL;this.rtl!==t&&(this.setDirection(),this.instance&&this.instance.setDirection(t))}setDirection(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}get isRTL(){return Boolean(this.localizationService.rtl)}};dr.\u0275fac=function(t){return new(t||dr)(g(pe),g(Jd),g($),g(kn),g(J),g(ce),g(dS),g(Be),g(Ie))},dr.\u0275cmp=K({type:dr,selectors:[["kendo-chart"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,Mm,5),Ce(i,va,5)),2&t){let s;U(s=W())&&(e.donutCenterTemplate=s.first),U(s=W())&&(e.seriesComponents=s)}},viewQuery:function(t,e){if(1&t&&(Ae(ba,7),Ae(Zu,7),Ae(een,7)),2&t){let i;U(i=W())&&(e.tooltipInstance=i.first),U(i=W())&&(e.crossahirTooltips=i.first),U(i=W())&&(e.surfaceElement=i.first)}},inputs:{resizeRateLimit:"resizeRateLimit",popupSettings:"popupSettings"},outputs:{legendItemClick:"legendItemClick"},exportAs:["kendoChart"],features:[we([pe,Ac,dS,J,{provide:An,useValue:"kendo.chart"}]),N,st],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&&(P(0,"div",0,1),P(2,"kendo-chart-crosshair-tooltips-container",2),y(3,"kendo-chart-tooltip-popup",3),se("leave",function(s){return e.tooltipMouseleave(s)}),_(),y(4,"kendo-resize-sensor",4),se("resize",function(s){return e.onResize(s)}),_(),A(5,nen,2,2,"div",5)),2&t&&(b(2),v("popupSettings",e.popupSettings),b(1),v("popupSettings",e.popupSettings),b(1),v("rateLimit",e.resizeRateLimit),b(1),v("ngIf",e.donutCenterStyle&&e.donutCenterTemplate))},directives:[Zu,ba,Kr,pt,zo,zs],encapsulation:2,changeDetection:0}),x([Q(),w("design:type",S)],dr.prototype,"legendItemClick",void 0),x([p(),w("design:type",Number)],dr.prototype,"resizeRateLimit",void 0),x([p(),w("design:type",Object)],dr.prototype,"popupSettings",void 0),x([fi(va,{descendants:!0}),w("design:type",wt)],dr.prototype,"seriesComponents",void 0),x([ct(Mm,{static:!1}),w("design:type",Mm)],dr.prototype,"donutCenterTemplate",void 0),x([at(ba,{static:!0}),w("design:type",ba)],dr.prototype,"tooltipInstance",void 0),x([at(Zu,{static:!0}),w("design:type",Zu)],dr.prototype,"crossahirTooltips",void 0),x([at("surface",{static:!0}),w("design:type",$)],dr.prototype,"surfaceElement",void 0),dr=x([w("design:paramtypes",[pe,Jd,$,kn,J,ce,dS,Be,Ie])],dr);class Pa extends fn{constructor(t){super("axisDefaults",t),this.configurationService=t}}Pa.\u0275fac=function(t){kt()},Pa.\u0275dir=R({type:Pa,inputs:{background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",minorGridLines:"minorGridLines",minorTicks:"minorTicks",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",startAngle:"startAngle",visible:"visible",crosshair:"crosshair",labels:"labels",title:"title"},features:[N]}),x([p(),w("design:type",String)],Pa.prototype,"background",void 0),x([p(),w("design:type",String)],Pa.prototype,"color",void 0),x([p(),w("design:type",Object)],Pa.prototype,"line",void 0),x([p(),w("design:type",Object)],Pa.prototype,"majorGridLines",void 0),x([p(),w("design:type",Object)],Pa.prototype,"majorTicks",void 0),x([p(),w("design:type",Object)],Pa.prototype,"minorGridLines",void 0),x([p(),w("design:type",Object)],Pa.prototype,"minorTicks",void 0),x([p(),w("design:type",Boolean)],Pa.prototype,"narrowRange",void 0),x([p(),w("design:type",String)],Pa.prototype,"pane",void 0),x([p(),w("design:type",Array)],Pa.prototype,"plotBands",void 0),x([p(),w("design:type",Boolean)],Pa.prototype,"reverse",void 0),x([p(),w("design:type",Number)],Pa.prototype,"startAngle",void 0),x([p(),w("design:type",Boolean)],Pa.prototype,"visible",void 0),x([p(),w("design:type",Object)],Pa.prototype,"crosshair",void 0),x([p(),w("design:type",Object)],Pa.prototype,"labels",void 0),x([p(),w("design:type",Object)],Pa.prototype,"title",void 0);let uS=class extends Pa{constructor(t){super(t),this.configurationService=t}};uS.\u0275fac=function(t){return new(t||uS)(g(pe))},uS.\u0275cmp=K({type:uS,selectors:[["kendo-chart-axis-defaults"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),uS=x([w("design:paramtypes",[pe])],uS);class Em extends fn{constructor(t){super("axisDefaults.crosshair",t),this.configurationService=t}}Em.\u0275fac=function(t){kt()},Em.\u0275dir=R({type:Em,inputs:{color:"color",dashType:"dashType",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},features:[N]}),x([p(),w("design:type",String)],Em.prototype,"color",void 0),x([p(),w("design:type",String)],Em.prototype,"dashType",void 0),x([p(),w("design:type",Number)],Em.prototype,"opacity",void 0),x([p(),w("design:type",Boolean)],Em.prototype,"visible",void 0),x([p(),w("design:type",Number)],Em.prototype,"width",void 0),x([p(),w("design:type",Object)],Em.prototype,"tooltip",void 0);let hS=class extends Em{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};hS.\u0275fac=function(t){return new(t||hS)(g(pe))},hS.\u0275cmp=K({type:hS,selectors:[["kendo-chart-axis-defaults-crosshair"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),hS=x([w("design:paramtypes",[pe])],hS);class Sf extends fn{constructor(t){super("axisDefaults.crosshair.tooltip",t),this.configurationService=t}}Sf.\u0275fac=function(t){kt()},Sf.\u0275dir=R({type:Sf,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],Sf.prototype,"background",void 0),x([p(),w("design:type",Object)],Sf.prototype,"border",void 0),x([p(),w("design:type",String)],Sf.prototype,"color",void 0),x([p(),w("design:type",String)],Sf.prototype,"font",void 0),x([p(),w("design:type",String)],Sf.prototype,"format",void 0),x([p(),w("design:type",Object)],Sf.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],Sf.prototype,"visible",void 0);let pS=class extends Sf{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};pS.\u0275fac=function(t){return new(t||pS)(g(pe))},pS.\u0275cmp=K({type:pS,selectors:[["kendo-chart-axis-defaults-crosshair-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),pS=x([w("design:paramtypes",[pe])],pS);class fd extends fn{constructor(t){super("axisDefaults.labels",t),this.configurationService=t}}fd.\u0275fac=function(t){kt()},fd.\u0275dir=R({type:fd,inputs:{content:"content",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",Function)],fd.prototype,"content",void 0),x([p(),w("design:type",String)],fd.prototype,"font",void 0),x([p(),w("design:type",String)],fd.prototype,"format",void 0),x([p(),w("design:type",Object)],fd.prototype,"margin",void 0),x([p(),w("design:type",Boolean)],fd.prototype,"mirror",void 0),x([p(),w("design:type",Object)],fd.prototype,"padding",void 0),x([p(),w("design:type",Object)],fd.prototype,"rotation",void 0),x([p(),w("design:type",Number)],fd.prototype,"skip",void 0),x([p(),w("design:type",Number)],fd.prototype,"step",void 0),x([p(),w("design:type",Boolean)],fd.prototype,"visible",void 0),x([p(),w("design:type",Function)],fd.prototype,"visual",void 0);let fS=class extends fd{constructor(t){super(t),this.configurationService=t}};fS.\u0275fac=function(t){return new(t||fS)(g(pe))},fS.\u0275cmp=K({type:fS,selectors:[["kendo-chart-axis-defaults-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),fS=x([w("design:paramtypes",[pe])],fS);class gd extends fn{constructor(t){super("axisDefaults.title",t),this.configurationService=t}}gd.\u0275fac=function(t){kt()},gd.\u0275dir=R({type:gd,inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],gd.prototype,"background",void 0),x([p(),w("design:type",Object)],gd.prototype,"border",void 0),x([p(),w("design:type",String)],gd.prototype,"color",void 0),x([p(),w("design:type",String)],gd.prototype,"font",void 0),x([p(),w("design:type",Object)],gd.prototype,"margin",void 0),x([p(),w("design:type",Object)],gd.prototype,"padding",void 0),x([p(),w("design:type",String)],gd.prototype,"position",void 0),x([p(),w("design:type",Number)],gd.prototype,"rotation",void 0),x([p(),w("design:type",String)],gd.prototype,"text",void 0),x([p(),w("design:type",Boolean)],gd.prototype,"visible",void 0),x([p(),w("design:type",Function)],gd.prototype,"visual",void 0);let gS=class extends gd{constructor(t){super(t),this.configurationService=t}};gS.\u0275fac=function(t){return new(t||gS)(g(pe))},gS.\u0275cmp=K({type:gS,selectors:[["kendo-chart-axis-defaults-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),gS=x([w("design:paramtypes",[pe])],gS);let ZM=(()=>{class n{constructor(e,i,s){this.configKey=e,this.configurationService=i,this.collectionService=s,this.items=[],this.subscription=s.onItemChange$.subscribe(o=>this.processChanges(o))}ngOnDestroy(){this.subscription.unsubscribe()}ngAfterContentInit(){this.readItems(),this.children.changes.subscribe(()=>this.readItems())}processChanges(e){if(!this.children)return;const i=this.children.toArray().indexOf(e.sender);i<0||(this.items[i]=e.options,this.change())}readItems(){this.items=this.children.map(e=>e.options),this.change()}change(){this.configurationService.notify(new cie(this.configKey,this.items))}}return n.\u0275fac=function(e){kt()},n.\u0275dir=R({type:n}),n})();class ws extends KM{constructor(t,e,i,s){super(t,e),this.configurationService=t,this.collectionService=e,this.notifyChanges({weekStartDay:i.firstDay(s)})}}ws.\u0275fac=function(t){kt()},ws.\u0275dir=R({type:ws,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"},features:[N]}),x([p(),w("design:type",Object)],ws.prototype,"autoBaseUnitSteps",void 0),x([p(),w("design:type",Object)],ws.prototype,"axisCrossingValue",void 0),x([p(),w("design:type",String)],ws.prototype,"background",void 0),x([p(),w("design:type",String)],ws.prototype,"baseUnit",void 0),x([p(),w("design:type",Object)],ws.prototype,"baseUnitStep",void 0),x([p(),w("design:type",Array)],ws.prototype,"categories",void 0),x([p(),w("design:type",String)],ws.prototype,"color",void 0),x([p(),w("design:type",Boolean)],ws.prototype,"justified",void 0),x([p(),w("design:type",Object)],ws.prototype,"line",void 0),x([p(),w("design:type",Object)],ws.prototype,"majorGridLines",void 0),x([p(),w("design:type",Object)],ws.prototype,"majorTicks",void 0),x([p(),w("design:type",Object)],ws.prototype,"max",void 0),x([p(),w("design:type",Number)],ws.prototype,"maxDateGroups",void 0),x([p(),w("design:type",Number)],ws.prototype,"maxDivisions",void 0),x([p(),w("design:type",Object)],ws.prototype,"min",void 0),x([p(),w("design:type",Object)],ws.prototype,"minorGridLines",void 0),x([p(),w("design:type",Object)],ws.prototype,"minorTicks",void 0),x([p(),w("design:type",String)],ws.prototype,"name",void 0),x([p(),w("design:type",String)],ws.prototype,"pane",void 0),x([p(),w("design:type",Array)],ws.prototype,"plotBands",void 0),x([p(),w("design:type",Boolean)],ws.prototype,"reverse",void 0),x([p(),w("design:type",Boolean)],ws.prototype,"roundToBaseUnit",void 0),x([p(),w("design:type",Number)],ws.prototype,"startAngle",void 0),x([p(),w("design:type",String)],ws.prototype,"type",void 0),x([p(),w("design:type",Boolean)],ws.prototype,"visible",void 0),x([p(),w("design:type",Number)],ws.prototype,"weekStartDay",void 0),x([p(),w("design:type",Object)],ws.prototype,"crosshair",void 0),x([p(),w("design:type",Object)],ws.prototype,"labels",void 0),x([p(),w("design:type",Object)],ws.prototype,"notes",void 0),x([p(),w("design:type",Object)],ws.prototype,"select",void 0),x([p(),w("design:type",Object)],ws.prototype,"title",void 0);let ic=class extends ws{constructor(t,e,i,s){super(t,e,i,s),this.configurationService=t,this.collectionService=e}};ic.\u0275fac=function(t){return new(t||ic)(g(pe),g($i),g(kn),g(ra))},ic.\u0275cmp=K({type:ic,selectors:[["kendo-chart-category-axis-item"]],inputs:{rangeLabels:"rangeLabels"},features:[we([pe]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([p(),w("design:type",Object)],ic.prototype,"rangeLabels",void 0),ic=x([jb(3,Rn(ra)),w("design:paramtypes",[pe,$i,kn,String])],ic);class lR extends ZM{constructor(t,e){super("categoryAxis",t,e),this.configurationService=t,this.collectionService=e}}lR.\u0275fac=function(t){kt()},lR.\u0275dir=R({type:lR,contentQueries:function(t,e,i){if(1&t&&Ce(i,ic,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[N]}),x([fi(ic),w("design:type",wt)],lR.prototype,"children",void 0);let Qu=class extends lR{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};Qu.\u0275fac=function(t){return new(t||Qu)(g(pe),g($i))},Qu.\u0275cmp=K({type:Qu,selectors:[["kendo-chart-category-axis"]],features:[we([$i]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),Qu=x([w("design:paramtypes",[pe,$i])],Qu);class Im extends fn{constructor(t){super("crosshair",t),this.configurationService=t}}Im.\u0275fac=function(t){kt()},Im.\u0275dir=R({type:Im,inputs:{color:"color",dashType:"dashType",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},features:[N]}),x([p(),w("design:type",String)],Im.prototype,"color",void 0),x([p(),w("design:type",String)],Im.prototype,"dashType",void 0),x([p(),w("design:type",Number)],Im.prototype,"opacity",void 0),x([p(),w("design:type",Boolean)],Im.prototype,"visible",void 0),x([p(),w("design:type",Number)],Im.prototype,"width",void 0),x([p(),w("design:type",Object)],Im.prototype,"tooltip",void 0);let o0=class extends Im{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};o0.\u0275fac=function(t){return new(t||o0)(g(pe))},o0.\u0275cmp=K({type:o0,selectors:[["kendo-chart-category-axis-item-crosshair"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),o0=x([w("design:paramtypes",[pe])],o0);class Tf extends fn{constructor(t){super("crosshair.tooltip",t),this.configurationService=t}}Tf.\u0275fac=function(t){kt()},Tf.\u0275dir=R({type:Tf,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],Tf.prototype,"background",void 0),x([p(),w("design:type",Object)],Tf.prototype,"border",void 0),x([p(),w("design:type",String)],Tf.prototype,"color",void 0),x([p(),w("design:type",String)],Tf.prototype,"font",void 0),x([p(),w("design:type",String)],Tf.prototype,"format",void 0),x([p(),w("design:type",Object)],Tf.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],Tf.prototype,"visible",void 0);let r0=class extends Tf{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};r0.\u0275fac=function(t){return new(t||r0)(g(pe))},r0.\u0275cmp=K({type:r0,selectors:[["kendo-chart-category-axis-item-crosshair-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),r0=x([w("design:paramtypes",[pe])],r0);let Ws=class extends fn{constructor(t){super("labels",t),this.configurationService=t}};Ws.\u0275fac=function(t){return new(t||Ws)(g(pe))},Ws.\u0275cmp=K({type:Ws,selectors:[["kendo-chart-category-axis-item-labels"]],inputs:{background:"background",border:"border",color:"color",content:"content",culture:"culture",dateFormats:"dateFormats",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([p(),w("design:type",String)],Ws.prototype,"background",void 0),x([p(),w("design:type",Object)],Ws.prototype,"border",void 0),x([p(),w("design:type",String)],Ws.prototype,"color",void 0),x([p(),w("design:type",Function)],Ws.prototype,"content",void 0),x([p(),w("design:type",String)],Ws.prototype,"culture",void 0),x([p(),w("design:type",Object)],Ws.prototype,"dateFormats",void 0),x([p(),w("design:type",String)],Ws.prototype,"font",void 0),x([p(),w("design:type",String)],Ws.prototype,"format",void 0),x([p(),w("design:type",Object)],Ws.prototype,"margin",void 0),x([p(),w("design:type",Boolean)],Ws.prototype,"mirror",void 0),x([p(),w("design:type",Object)],Ws.prototype,"padding",void 0),x([p(),w("design:type",String)],Ws.prototype,"position",void 0),x([p(),w("design:type",Object)],Ws.prototype,"rotation",void 0),x([p(),w("design:type",Number)],Ws.prototype,"skip",void 0),x([p(),w("design:type",Number)],Ws.prototype,"step",void 0),x([p(),w("design:type",Boolean)],Ws.prototype,"visible",void 0),x([p(),w("design:type",Function)],Ws.prototype,"visual",void 0),Ws=x([w("design:paramtypes",[pe])],Ws);let mS=class extends Ws{constructor(t){super(t),this.configurationService=t,this.configKey="rangeLabels",this.markAsVisible()}};mS.\u0275fac=function(t){return new(t||mS)(g(pe))},mS.\u0275cmp=K({type:mS,selectors:[["kendo-chart-category-axis-item-range-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),mS=x([w("design:paramtypes",[pe])],mS);class Am extends fn{constructor(t){super("notes",t),this.configurationService=t}}Am.\u0275fac=function(t){kt()},Am.\u0275dir=R({type:Am,inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},features:[N]}),x([p(),w("design:type",Array)],Am.prototype,"data",void 0),x([p(),w("design:type",Object)],Am.prototype,"line",void 0),x([p(),w("design:type",String)],Am.prototype,"position",void 0),x([p(),w("design:type",Function)],Am.prototype,"visual",void 0),x([p(),w("design:type",Object)],Am.prototype,"icon",void 0),x([p(),w("design:type",Object)],Am.prototype,"label",void 0);let a0=class extends Am{constructor(t){super(t),this.configurationService=t}};a0.\u0275fac=function(t){return new(t||a0)(g(pe))},a0.\u0275cmp=K({type:a0,selectors:[["kendo-chart-category-axis-item-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),a0=x([w("design:paramtypes",[pe])],a0);class x_ extends fn{constructor(t){super("notes.icon",t),this.configurationService=t}}x_.\u0275fac=function(t){kt()},x_.\u0275dir=R({type:x_,inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],x_.prototype,"background",void 0),x([p(),w("design:type",Object)],x_.prototype,"border",void 0),x([p(),w("design:type",Number)],x_.prototype,"size",void 0),x([p(),w("design:type",String)],x_.prototype,"type",void 0),x([p(),w("design:type",Boolean)],x_.prototype,"visible",void 0);let l0=class extends x_{constructor(t){super(t),this.configurationService=t}};l0.\u0275fac=function(t){return new(t||l0)(g(pe))},l0.\u0275cmp=K({type:l0,selectors:[["kendo-chart-category-axis-item-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),l0=x([w("design:paramtypes",[pe])],l0);class Ju extends fn{constructor(t){super("notes.label",t),this.configurationService=t}}Ju.\u0275fac=function(t){kt()},Ju.\u0275dir=R({type:Ju,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],Ju.prototype,"background",void 0),x([p(),w("design:type",Object)],Ju.prototype,"border",void 0),x([p(),w("design:type",String)],Ju.prototype,"color",void 0),x([p(),w("design:type",Function)],Ju.prototype,"content",void 0),x([p(),w("design:type",String)],Ju.prototype,"font",void 0),x([p(),w("design:type",String)],Ju.prototype,"format",void 0),x([p(),w("design:type",String)],Ju.prototype,"position",void 0),x([p(),w("design:type",Number)],Ju.prototype,"rotation",void 0),x([p(),w("design:type",Boolean)],Ju.prototype,"visible",void 0);let c0=class extends Ju{constructor(t){super(t),this.configurationService=t}};c0.\u0275fac=function(t){return new(t||c0)(g(pe))},c0.\u0275cmp=K({type:c0,selectors:[["kendo-chart-category-axis-item-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),c0=x([w("design:paramtypes",[pe])],c0);class w_ extends fn{constructor(t){super("select",t),this.configurationService=t}}w_.\u0275fac=function(t){kt()},w_.\u0275dir=R({type:w_,inputs:{from:"from",max:"max",min:"min",mousewheel:"mousewheel",to:"to"},features:[N]}),x([p(),w("design:type",Object)],w_.prototype,"from",void 0),x([p(),w("design:type",Object)],w_.prototype,"max",void 0),x([p(),w("design:type",Object)],w_.prototype,"min",void 0),x([p(),w("design:type",Object)],w_.prototype,"mousewheel",void 0),x([p(),w("design:type",Object)],w_.prototype,"to",void 0);let d0=class extends w_{constructor(t){super(t),this.configurationService=t}};d0.\u0275fac=function(t){return new(t||d0)(g(pe))},d0.\u0275cmp=K({type:d0,selectors:[["kendo-chart-category-axis-item-select"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),d0=x([w("design:paramtypes",[pe])],d0);class md extends fn{constructor(t){super("title",t),this.configurationService=t}}md.\u0275fac=function(t){kt()},md.\u0275dir=R({type:md,inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],md.prototype,"background",void 0),x([p(),w("design:type",Object)],md.prototype,"border",void 0),x([p(),w("design:type",String)],md.prototype,"color",void 0),x([p(),w("design:type",String)],md.prototype,"font",void 0),x([p(),w("design:type",Object)],md.prototype,"margin",void 0),x([p(),w("design:type",Object)],md.prototype,"padding",void 0),x([p(),w("design:type",String)],md.prototype,"position",void 0),x([p(),w("design:type",Number)],md.prototype,"rotation",void 0),x([p(),w("design:type",String)],md.prototype,"text",void 0),x([p(),w("design:type",Boolean)],md.prototype,"visible",void 0),x([p(),w("design:type",Function)],md.prototype,"visual",void 0);let u0=class extends md{constructor(t){super(t),this.configurationService=t}};u0.\u0275fac=function(t){return new(t||u0)(g(pe))},u0.\u0275cmp=K({type:u0,selectors:[["kendo-chart-category-axis-item-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),u0=x([w("design:paramtypes",[pe])],u0);class Fm extends fn{constructor(t){super("chartArea",t),this.configurationService=t}}Fm.\u0275fac=function(t){kt()},Fm.\u0275dir=R({type:Fm,inputs:{background:"background",border:"border",height:"height",margin:"margin",opacity:"opacity",width:"width"},features:[N]}),x([p(),w("design:type",String)],Fm.prototype,"background",void 0),x([p(),w("design:type",Object)],Fm.prototype,"border",void 0),x([p(),w("design:type",Number)],Fm.prototype,"height",void 0),x([p(),w("design:type",Object)],Fm.prototype,"margin",void 0),x([p(),w("design:type",Number)],Fm.prototype,"opacity",void 0),x([p(),w("design:type",Number)],Fm.prototype,"width",void 0);let yS=class extends Fm{constructor(t){super(t),this.configurationService=t}};yS.\u0275fac=function(t){return new(t||yS)(g(pe))},yS.\u0275cmp=K({type:yS,selectors:[["kendo-chart-area"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),yS=x([w("design:paramtypes",[pe])],yS);class zr extends fn{constructor(t){super("legend",t),this.configurationService=t}}zr.\u0275fac=function(t){kt()},zr.\u0275dir=R({type:zr,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:[N]}),x([p(),w("design:type",String)],zr.prototype,"align",void 0),x([p(),w("design:type",String)],zr.prototype,"background",void 0),x([p(),w("design:type",Object)],zr.prototype,"border",void 0),x([p(),w("design:type",Number)],zr.prototype,"height",void 0),x([p(),w("design:type",Object)],zr.prototype,"labels",void 0),x([p(),w("design:type",Object)],zr.prototype,"margin",void 0),x([p(),w("design:type",Number)],zr.prototype,"offsetX",void 0),x([p(),w("design:type",Number)],zr.prototype,"offsetY",void 0),x([p(),w("design:type",String)],zr.prototype,"orientation",void 0),x([p(),w("design:type",Object)],zr.prototype,"padding",void 0),x([p(),w("design:type",String)],zr.prototype,"position",void 0),x([p(),w("design:type",Boolean)],zr.prototype,"reverse",void 0),x([p(),w("design:type",Boolean)],zr.prototype,"visible",void 0),x([p(),w("design:type",Number)],zr.prototype,"width",void 0),x([p(),w("design:type",Object)],zr.prototype,"markers",void 0),x([p(),w("design:type",Number)],zr.prototype,"spacing",void 0),x([p(),w("design:type",Object)],zr.prototype,"inactiveItems",void 0),x([p(),w("design:type",Object)],zr.prototype,"item",void 0),x([p(),w("design:type",Object)],zr.prototype,"title",void 0);let yd=class extends zr{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};yd.\u0275fac=function(t){return new(t||yd)(g(pe))},yd.\u0275cmp=K({type:yd,selectors:[["kendo-chart-legend"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),yd=x([w("design:paramtypes",[pe])],yd);class cR extends fn{constructor(t){super("legend.inactiveItems",t),this.configurationService=t}}cR.\u0275fac=function(t){kt()},cR.\u0275dir=R({type:cR,inputs:{labels:"labels"},features:[N]}),x([p(),w("design:type",Object)],cR.prototype,"labels",void 0);let _S=class extends cR{constructor(t){super(t),this.configurationService=t}};_S.\u0275fac=function(t){return new(t||_S)(g(pe))},_S.\u0275cmp=K({type:_S,selectors:[["kendo-chart-legend-inactive-items"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),_S=x([w("design:paramtypes",[pe])],_S);class QM extends fn{constructor(t){super("legend.item",t),this.configurationService=t}}QM.\u0275fac=function(t){kt()},QM.\u0275dir=R({type:QM,inputs:{cursor:"cursor",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],QM.prototype,"cursor",void 0),x([p(),w("design:type",Function)],QM.prototype,"visual",void 0);let vS=class extends QM{constructor(t){super(t),this.configurationService=t}};vS.\u0275fac=function(t){return new(t||vS)(g(pe))},vS.\u0275cmp=K({type:vS,selectors:[["kendo-chart-legend-item"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),vS=x([w("design:paramtypes",[pe])],vS);class eh extends KM{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}}eh.\u0275fac=function(t){kt()},eh.\u0275dir=R({type:eh,inputs:{background:"background",border:"border",clip:"clip",height:"height",margin:"margin",name:"name",padding:"padding",title:"title"},features:[N]}),x([p(),w("design:type",String)],eh.prototype,"background",void 0),x([p(),w("design:type",Object)],eh.prototype,"border",void 0),x([p(),w("design:type",Boolean)],eh.prototype,"clip",void 0),x([p(),w("design:type",Number)],eh.prototype,"height",void 0),x([p(),w("design:type",Object)],eh.prototype,"margin",void 0),x([p(),w("design:type",String)],eh.prototype,"name",void 0),x([p(),w("design:type",Object)],eh.prototype,"padding",void 0),x([p(),w("design:type",Object)],eh.prototype,"title",void 0);let S_=class extends eh{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};S_.\u0275fac=function(t){return new(t||S_)(g(pe),g($i))},S_.\u0275cmp=K({type:S_,selectors:[["kendo-chart-pane"],["kendo-chart-panes-item"]],features:[we([pe]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),S_=x([w("design:paramtypes",[pe,$i])],S_);let tu=class extends fn{constructor(t){super("paneDefaults",t),this.configurationService=t}};tu.\u0275fac=function(t){return new(t||tu)(g(pe))},tu.\u0275cmp=K({type:tu,selectors:[["kendo-chart-pane-defaults"]],inputs:{background:"background",border:"border",clip:"clip",height:"height",margin:"margin",padding:"padding",title:"title"},features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([p(),w("design:type",String)],tu.prototype,"background",void 0),x([p(),w("design:type",Object)],tu.prototype,"border",void 0),x([p(),w("design:type",Boolean)],tu.prototype,"clip",void 0),x([p(),w("design:type",Number)],tu.prototype,"height",void 0),x([p(),w("design:type",Object)],tu.prototype,"margin",void 0),x([p(),w("design:type",Object)],tu.prototype,"padding",void 0),x([p(),w("design:type",Object)],tu.prototype,"title",void 0),tu=x([w("design:paramtypes",[pe])],tu);let _d=class extends fn{constructor(t){super("paneDefaults.title",t),this.configurationService=t}};_d.\u0275fac=function(t){return new(t||_d)(g(pe))},_d.\u0275cmp=K({type:_d,selectors:[["kendo-chart-pane-defaults-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",position:"position",visible:"visible",visual:"visual"},features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([p(),w("design:type",String)],_d.prototype,"background",void 0),x([p(),w("design:type",Object)],_d.prototype,"border",void 0),x([p(),w("design:type",String)],_d.prototype,"color",void 0),x([p(),w("design:type",String)],_d.prototype,"font",void 0),x([p(),w("design:type",Object)],_d.prototype,"margin",void 0),x([p(),w("design:type",String)],_d.prototype,"position",void 0),x([p(),w("design:type",Boolean)],_d.prototype,"visible",void 0),x([p(),w("design:type",Function)],_d.prototype,"visual",void 0),_d=x([w("design:paramtypes",[pe])],_d);class dR extends ZM{constructor(t,e){super("panes",t,e),this.configurationService=t,this.collectionService=e}}dR.\u0275fac=function(t){kt()},dR.\u0275dir=R({type:dR,contentQueries:function(t,e,i){if(1&t&&Ce(i,S_,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[N]}),x([fi(S_),w("design:type",wt)],dR.prototype,"children",void 0);let bS=class extends dR{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};bS.\u0275fac=function(t){return new(t||bS)(g(pe),g($i))},bS.\u0275cmp=K({type:bS,selectors:[["kendo-chart-panes"]],features:[we([$i]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),bS=x([w("design:paramtypes",[pe,$i])],bS);class th extends fn{constructor(t){super("title",t),this.configurationService=t}}th.\u0275fac=function(t){kt()},th.\u0275dir=R({type:th,inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",position:"position",text:"text",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],th.prototype,"background",void 0),x([p(),w("design:type",Object)],th.prototype,"border",void 0),x([p(),w("design:type",String)],th.prototype,"color",void 0),x([p(),w("design:type",String)],th.prototype,"font",void 0),x([p(),w("design:type",Object)],th.prototype,"margin",void 0),x([p(),w("design:type",String)],th.prototype,"position",void 0),x([p(),w("design:type",String)],th.prototype,"text",void 0),x([p(),w("design:type",Boolean)],th.prototype,"visible",void 0),x([p(),w("design:type",Function)],th.prototype,"visual",void 0);let h0=class extends th{constructor(t){super(t),this.configurationService=t}};h0.\u0275fac=function(t){return new(t||h0)(g(pe))},h0.\u0275cmp=K({type:h0,selectors:[["kendo-chart-pane-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),h0=x([w("design:paramtypes",[pe])],h0);class T_ extends fn{constructor(t){super("plotArea",t),this.configurationService=t}}T_.\u0275fac=function(t){kt()},T_.\u0275dir=R({type:T_,inputs:{background:"background",border:"border",margin:"margin",opacity:"opacity",padding:"padding"},features:[N]}),x([p(),w("design:type",String)],T_.prototype,"background",void 0),x([p(),w("design:type",Object)],T_.prototype,"border",void 0),x([p(),w("design:type",Object)],T_.prototype,"margin",void 0),x([p(),w("design:type",Number)],T_.prototype,"opacity",void 0),x([p(),w("design:type",Object)],T_.prototype,"padding",void 0);let CS=class extends T_{constructor(t){super(t),this.configurationService=t}};CS.\u0275fac=function(t){return new(t||CS)(g(pe))},CS.\u0275cmp=K({type:CS,selectors:[["kendo-chart-plot-area"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),CS=x([w("design:paramtypes",[pe])],CS);class uR extends ZM{constructor(t,e){super("series",t,e),this.configurationService=t,this.collectionService=e}}uR.\u0275fac=function(t){kt()},uR.\u0275dir=R({type:uR,contentQueries:function(t,e,i){if(1&t&&Ce(i,va,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[N]}),x([fi(va),w("design:type",wt)],uR.prototype,"children",void 0);let Fc=class extends uR{constructor(t,e,i){super(t,e),this.configurationService=t,this.collectionService=e,this.tooltipTemplateService=i}ngAfterContentChecked(){this.readTooltipTemplates()}readTooltipTemplates(){const t=this.children.map(e=>e.seriesTooltipTemplateRef);this.tooltipTemplateService.setSeriesTemplates(t)}};Fc.\u0275fac=function(t){return new(t||Fc)(g(pe),g($i),g(Ac))},Fc.\u0275cmp=K({type:Fc,selectors:[["kendo-chart-series"]],features:[we([$i]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),Fc=x([w("design:paramtypes",[pe,$i,Ac])],Fc);class vd extends fn{constructor(t){super("seriesDefaults",t),this.configurationService=t}}vd.\u0275fac=function(t){kt()},vd.\u0275dir=R({type:vd,inputs:{border:"border",gap:"gap",highlight:"highlight",overlay:"overlay",spacing:"spacing",stack:"stack",type:"type",visual:"visual",labels:"labels",notes:"notes",tooltip:"tooltip"},features:[N]}),x([p(),w("design:type",Object)],vd.prototype,"border",void 0),x([p(),w("design:type",Number)],vd.prototype,"gap",void 0),x([p(),w("design:type",Object)],vd.prototype,"highlight",void 0),x([p(),w("design:type",Object)],vd.prototype,"overlay",void 0),x([p(),w("design:type",Number)],vd.prototype,"spacing",void 0),x([p(),w("design:type",Object)],vd.prototype,"stack",void 0),x([p(),w("design:type",String)],vd.prototype,"type",void 0),x([p(),w("design:type",Function)],vd.prototype,"visual",void 0),x([p(),w("design:type",Object)],vd.prototype,"labels",void 0),x([p(),w("design:type",Object)],vd.prototype,"notes",void 0),x([p(),w("design:type",Object)],vd.prototype,"tooltip",void 0);let xS=class extends vd{constructor(t){super(t),this.configurationService=t}};xS.\u0275fac=function(t){return new(t||xS)(g(pe))},xS.\u0275cmp=K({type:xS,selectors:[["kendo-chart-series-defaults"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),xS=x([w("design:paramtypes",[pe])],xS);class Oc extends fn{constructor(t){super("seriesDefaults.labels",t),this.configurationService=t}}Oc.\u0275fac=function(t){kt()},Oc.\u0275dir=R({type:Oc,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",visible:"visible",visual:"visual",from:"from",to:"to"},features:[N]}),x([p(),w("design:type",String)],Oc.prototype,"background",void 0),x([p(),w("design:type",Object)],Oc.prototype,"border",void 0),x([p(),w("design:type",String)],Oc.prototype,"color",void 0),x([p(),w("design:type",Function)],Oc.prototype,"content",void 0),x([p(),w("design:type",String)],Oc.prototype,"font",void 0),x([p(),w("design:type",String)],Oc.prototype,"format",void 0),x([p(),w("design:type",Object)],Oc.prototype,"margin",void 0),x([p(),w("design:type",Object)],Oc.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],Oc.prototype,"visible",void 0),x([p(),w("design:type",Function)],Oc.prototype,"visual",void 0),x([p(),w("design:type",Object)],Oc.prototype,"from",void 0),x([p(),w("design:type",Object)],Oc.prototype,"to",void 0);let wS=class extends Oc{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};wS.\u0275fac=function(t){return new(t||wS)(g(pe))},wS.\u0275cmp=K({type:wS,selectors:[["kendo-chart-series-defaults-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),wS=x([w("design:paramtypes",[pe])],wS);class nh extends fn{constructor(t){super("seriesDefaults.labels.from",t),this.configurationService=t}}nh.\u0275fac=function(t){kt()},nh.\u0275dir=R({type:nh,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],nh.prototype,"background",void 0),x([p(),w("design:type",Object)],nh.prototype,"border",void 0),x([p(),w("design:type",String)],nh.prototype,"color",void 0),x([p(),w("design:type",Function)],nh.prototype,"content",void 0),x([p(),w("design:type",String)],nh.prototype,"font",void 0),x([p(),w("design:type",String)],nh.prototype,"format",void 0),x([p(),w("design:type",Object)],nh.prototype,"margin",void 0),x([p(),w("design:type",Object)],nh.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],nh.prototype,"visible",void 0);let SS=class extends nh{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};SS.\u0275fac=function(t){return new(t||SS)(g(pe))},SS.\u0275cmp=K({type:SS,selectors:[["kendo-chart-series-defaults-labels-from"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),SS=x([w("design:paramtypes",[pe])],SS);class ih extends fn{constructor(t){super("seriesDefaults.labels.to",t),this.configurationService=t}}ih.\u0275fac=function(t){kt()},ih.\u0275dir=R({type:ih,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],ih.prototype,"background",void 0),x([p(),w("design:type",Object)],ih.prototype,"border",void 0),x([p(),w("design:type",String)],ih.prototype,"color",void 0),x([p(),w("design:type",Function)],ih.prototype,"content",void 0),x([p(),w("design:type",String)],ih.prototype,"font",void 0),x([p(),w("design:type",String)],ih.prototype,"format",void 0),x([p(),w("design:type",Object)],ih.prototype,"margin",void 0),x([p(),w("design:type",Object)],ih.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],ih.prototype,"visible",void 0);let TS=class extends ih{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};TS.\u0275fac=function(t){return new(t||TS)(g(pe))},TS.\u0275cmp=K({type:TS,selectors:[["kendo-chart-series-defaults-labels-to"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),TS=x([w("design:paramtypes",[pe])],TS);class p0 extends fn{constructor(t){super("seriesDefaults.notes",t),this.configurationService=t}}p0.\u0275fac=function(t){kt()},p0.\u0275dir=R({type:p0,inputs:{line:"line",visual:"visual",icon:"icon",label:"label"},features:[N]}),x([p(),w("design:type",Object)],p0.prototype,"line",void 0),x([p(),w("design:type",Function)],p0.prototype,"visual",void 0),x([p(),w("design:type",Object)],p0.prototype,"icon",void 0),x([p(),w("design:type",Object)],p0.prototype,"label",void 0);let kS=class extends p0{constructor(t){super(t),this.configurationService=t}};kS.\u0275fac=function(t){return new(t||kS)(g(pe))},kS.\u0275cmp=K({type:kS,selectors:[["kendo-chart-series-defaults-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),kS=x([w("design:paramtypes",[pe])],kS);class k_ extends fn{constructor(t){super("seriesDefaults.notes.icon",t),this.configurationService=t}}k_.\u0275fac=function(t){kt()},k_.\u0275dir=R({type:k_,inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],k_.prototype,"background",void 0),x([p(),w("design:type",Object)],k_.prototype,"border",void 0),x([p(),w("design:type",Number)],k_.prototype,"size",void 0),x([p(),w("design:type",String)],k_.prototype,"type",void 0),x([p(),w("design:type",Boolean)],k_.prototype,"visible",void 0);let DS=class extends k_{constructor(t){super(t),this.configurationService=t}};DS.\u0275fac=function(t){return new(t||DS)(g(pe))},DS.\u0275cmp=K({type:DS,selectors:[["kendo-chart-series-defaults-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),DS=x([w("design:paramtypes",[pe])],DS);class sh extends fn{constructor(t){super("seriesDefaults.notes.label",t),this.configurationService=t}}sh.\u0275fac=function(t){kt()},sh.\u0275dir=R({type:sh,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],sh.prototype,"background",void 0),x([p(),w("design:type",Object)],sh.prototype,"border",void 0),x([p(),w("design:type",String)],sh.prototype,"color",void 0),x([p(),w("design:type",Function)],sh.prototype,"content",void 0),x([p(),w("design:type",String)],sh.prototype,"font",void 0),x([p(),w("design:type",String)],sh.prototype,"format",void 0),x([p(),w("design:type",String)],sh.prototype,"position",void 0),x([p(),w("design:type",Number)],sh.prototype,"rotation",void 0),x([p(),w("design:type",Boolean)],sh.prototype,"visible",void 0);let MS=class extends sh{constructor(t){super(t),this.configurationService=t}};MS.\u0275fac=function(t){return new(t||MS)(g(pe))},MS.\u0275cmp=K({type:MS,selectors:[["kendo-chart-series-defaults-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),MS=x([w("design:paramtypes",[pe])],MS);class kf extends fn{constructor(t){super("seriesDefaults.tooltip",t),this.configurationService=t}}kf.\u0275fac=function(t){kt()},kf.\u0275dir=R({type:kf,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],kf.prototype,"background",void 0),x([p(),w("design:type",Object)],kf.prototype,"border",void 0),x([p(),w("design:type",String)],kf.prototype,"color",void 0),x([p(),w("design:type",String)],kf.prototype,"font",void 0),x([p(),w("design:type",String)],kf.prototype,"format",void 0),x([p(),w("design:type",Object)],kf.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],kf.prototype,"visible",void 0);let ES=class extends kf{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};ES.\u0275fac=function(t){return new(t||ES)(g(pe))},ES.\u0275cmp=K({type:ES,selectors:[["kendo-chart-series-defaults-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),ES=x([w("design:paramtypes",[pe])],ES);class Df extends fn{constructor(t){super("errorBars",t),this.configurationService=t}}Df.\u0275fac=function(t){kt()},Df.\u0275dir=R({type:Df,inputs:{color:"color",endCaps:"endCaps",line:"line",value:"value",visual:"visual",xValue:"xValue",yValue:"yValue"},features:[N]}),x([p(),w("design:type",String)],Df.prototype,"color",void 0),x([p(),w("design:type",Boolean)],Df.prototype,"endCaps",void 0),x([p(),w("design:type",Object)],Df.prototype,"line",void 0),x([p(),w("design:type",String)],Df.prototype,"value",void 0),x([p(),w("design:type",Function)],Df.prototype,"visual",void 0),x([p(),w("design:type",String)],Df.prototype,"xValue",void 0),x([p(),w("design:type",String)],Df.prototype,"yValue",void 0);let f0=class extends Df{constructor(t){super(t),this.configurationService=t}};f0.\u0275fac=function(t){return new(t||f0)(g(pe))},f0.\u0275cmp=K({type:f0,selectors:[["kendo-chart-series-item-error-bars"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),f0=x([w("design:paramtypes",[pe])],f0);class D_ extends fn{constructor(t){super("extremes",t),this.configurationService=t}}D_.\u0275fac=function(t){kt()},D_.\u0275dir=R({type:D_,inputs:{background:"background",border:"border",rotation:"rotation",size:"size",type:"type"},features:[N]}),x([p(),w("design:type",String)],D_.prototype,"background",void 0),x([p(),w("design:type",Object)],D_.prototype,"border",void 0),x([p(),w("design:type",Number)],D_.prototype,"rotation",void 0),x([p(),w("design:type",Number)],D_.prototype,"size",void 0),x([p(),w("design:type",String)],D_.prototype,"type",void 0);let g0=class extends D_{constructor(t){super(t),this.configurationService=t}};g0.\u0275fac=function(t){return new(t||g0)(g(pe))},g0.\u0275cmp=K({type:g0,selectors:[["kendo-chart-series-item-extremes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),g0=x([w("design:paramtypes",[pe])],g0);class cp extends fn{constructor(t){super("highlight",t),this.configurationService=t}}cp.\u0275fac=function(t){kt()},cp.\u0275dir=R({type:cp,inputs:{border:"border",color:"color",line:"line",markers:"markers",opacity:"opacity",toggle:"toggle",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",Object)],cp.prototype,"border",void 0),x([p(),w("design:type",String)],cp.prototype,"color",void 0),x([p(),w("design:type",Object)],cp.prototype,"line",void 0),x([p(),w("design:type",Object)],cp.prototype,"markers",void 0),x([p(),w("design:type",Number)],cp.prototype,"opacity",void 0),x([p(),w("design:type",Function)],cp.prototype,"toggle",void 0),x([p(),w("design:type",Boolean)],cp.prototype,"visible",void 0),x([p(),w("design:type",Function)],cp.prototype,"visual",void 0);let m0=class extends cp{constructor(t){super(t),this.configurationService=t}};m0.\u0275fac=function(t){return new(t||m0)(g(pe))},m0.\u0275cmp=K({type:m0,selectors:[["kendo-chart-series-item-highlight"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),m0=x([w("design:paramtypes",[pe])],m0);class La extends fn{constructor(t){super("labels",t),this.configurationService=t}}La.\u0275fac=function(t){kt()},La.\u0275dir=R({type:La,inputs:{align:"align",background:"background",border:"border",color:"color",content:"content",distance:"distance",font:"font",format:"format",margin:"margin",padding:"padding",position:"position",rotation:"rotation",visible:"visible",visual:"visual",from:"from",to:"to"},features:[N]}),x([p(),w("design:type",String)],La.prototype,"align",void 0),x([p(),w("design:type",String)],La.prototype,"background",void 0),x([p(),w("design:type",Object)],La.prototype,"border",void 0),x([p(),w("design:type",String)],La.prototype,"color",void 0),x([p(),w("design:type",Function)],La.prototype,"content",void 0),x([p(),w("design:type",Number)],La.prototype,"distance",void 0),x([p(),w("design:type",String)],La.prototype,"font",void 0),x([p(),w("design:type",String)],La.prototype,"format",void 0),x([p(),w("design:type",Object)],La.prototype,"margin",void 0),x([p(),w("design:type",Object)],La.prototype,"padding",void 0),x([p(),w("design:type",String)],La.prototype,"position",void 0),x([p(),w("design:type",Number)],La.prototype,"rotation",void 0),x([p(),w("design:type",Boolean)],La.prototype,"visible",void 0),x([p(),w("design:type",Function)],La.prototype,"visual",void 0),x([p(),w("design:type",Object)],La.prototype,"from",void 0),x([p(),w("design:type",Object)],La.prototype,"to",void 0);let Om=class extends La{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};Om.\u0275fac=function(t){return new(t||Om)(g(pe))},Om.\u0275cmp=K({type:Om,selectors:[["kendo-chart-series-item-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),Om=x([w("design:paramtypes",[pe])],Om);class nu extends fn{constructor(t){super("labels.from",t),this.configurationService=t}}nu.\u0275fac=function(t){kt()},nu.\u0275dir=R({type:nu,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",position:"position",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],nu.prototype,"background",void 0),x([p(),w("design:type",Object)],nu.prototype,"border",void 0),x([p(),w("design:type",String)],nu.prototype,"color",void 0),x([p(),w("design:type",Function)],nu.prototype,"content",void 0),x([p(),w("design:type",String)],nu.prototype,"font",void 0),x([p(),w("design:type",String)],nu.prototype,"format",void 0),x([p(),w("design:type",Object)],nu.prototype,"margin",void 0),x([p(),w("design:type",Object)],nu.prototype,"padding",void 0),x([p(),w("design:type",String)],nu.prototype,"position",void 0),x([p(),w("design:type",Boolean)],nu.prototype,"visible",void 0);let y0=class extends nu{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};y0.\u0275fac=function(t){return new(t||y0)(g(pe))},y0.\u0275cmp=K({type:y0,selectors:[["kendo-chart-series-item-labels-from"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),y0=x([w("design:paramtypes",[pe])],y0);class iu extends fn{constructor(t){super("labels.to",t),this.configurationService=t}}iu.\u0275fac=function(t){kt()},iu.\u0275dir=R({type:iu,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",padding:"padding",position:"position",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],iu.prototype,"background",void 0),x([p(),w("design:type",Object)],iu.prototype,"border",void 0),x([p(),w("design:type",String)],iu.prototype,"color",void 0),x([p(),w("design:type",Function)],iu.prototype,"content",void 0),x([p(),w("design:type",String)],iu.prototype,"font",void 0),x([p(),w("design:type",String)],iu.prototype,"format",void 0),x([p(),w("design:type",Object)],iu.prototype,"margin",void 0),x([p(),w("design:type",Object)],iu.prototype,"padding",void 0),x([p(),w("design:type",String)],iu.prototype,"position",void 0),x([p(),w("design:type",Boolean)],iu.prototype,"visible",void 0);let _0=class extends iu{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};_0.\u0275fac=function(t){return new(t||_0)(g(pe))},_0.\u0275cmp=K({type:_0,selectors:[["kendo-chart-series-item-labels-to"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),_0=x([w("design:paramtypes",[pe])],_0);class oh extends fn{constructor(t){super("markers",t),this.configurationService=t}}oh.\u0275fac=function(t){kt()},oh.\u0275dir=R({type:oh,inputs:{background:"background",border:"border",rotation:"rotation",size:"size",type:"type",visible:"visible",visual:"visual",from:"from",to:"to"},features:[N]}),x([p(),w("design:type",String)],oh.prototype,"background",void 0),x([p(),w("design:type",Object)],oh.prototype,"border",void 0),x([p(),w("design:type",Number)],oh.prototype,"rotation",void 0),x([p(),w("design:type",Number)],oh.prototype,"size",void 0),x([p(),w("design:type",String)],oh.prototype,"type",void 0),x([p(),w("design:type",Boolean)],oh.prototype,"visible",void 0),x([p(),w("design:type",Function)],oh.prototype,"visual",void 0),x([p(),w("design:type",Object)],oh.prototype,"from",void 0),x([p(),w("design:type",Object)],oh.prototype,"to",void 0);let v0=class extends oh{constructor(t){super(t),this.configurationService=t}};v0.\u0275fac=function(t){return new(t||v0)(g(pe))},v0.\u0275cmp=K({type:v0,selectors:[["kendo-chart-series-item-markers"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),v0=x([w("design:paramtypes",[pe])],v0);class M_ extends fn{constructor(t){super("notes",t),this.configurationService=t}}M_.\u0275fac=function(t){kt()},M_.\u0275dir=R({type:M_,inputs:{line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},features:[N]}),x([p(),w("design:type",Object)],M_.prototype,"line",void 0),x([p(),w("design:type",String)],M_.prototype,"position",void 0),x([p(),w("design:type",Function)],M_.prototype,"visual",void 0),x([p(),w("design:type",Object)],M_.prototype,"icon",void 0),x([p(),w("design:type",Object)],M_.prototype,"label",void 0);let b0=class extends M_{constructor(t){super(t),this.configurationService=t}};b0.\u0275fac=function(t){return new(t||b0)(g(pe))},b0.\u0275cmp=K({type:b0,selectors:[["kendo-chart-series-item-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),b0=x([w("design:paramtypes",[pe])],b0);class E_ extends fn{constructor(t){super("notes.icon",t),this.configurationService=t}}E_.\u0275fac=function(t){kt()},E_.\u0275dir=R({type:E_,inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],E_.prototype,"background",void 0),x([p(),w("design:type",Object)],E_.prototype,"border",void 0),x([p(),w("design:type",Number)],E_.prototype,"size",void 0),x([p(),w("design:type",String)],E_.prototype,"type",void 0),x([p(),w("design:type",Boolean)],E_.prototype,"visible",void 0);let C0=class extends E_{constructor(t){super(t),this.configurationService=t}};C0.\u0275fac=function(t){return new(t||C0)(g(pe))},C0.\u0275cmp=K({type:C0,selectors:[["kendo-chart-series-item-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),C0=x([w("design:paramtypes",[pe])],C0);class rh extends fn{constructor(t){super("notes.label",t),this.configurationService=t}}rh.\u0275fac=function(t){kt()},rh.\u0275dir=R({type:rh,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],rh.prototype,"background",void 0),x([p(),w("design:type",Object)],rh.prototype,"border",void 0),x([p(),w("design:type",String)],rh.prototype,"color",void 0),x([p(),w("design:type",Function)],rh.prototype,"content",void 0),x([p(),w("design:type",String)],rh.prototype,"font",void 0),x([p(),w("design:type",String)],rh.prototype,"format",void 0),x([p(),w("design:type",String)],rh.prototype,"position",void 0),x([p(),w("design:type",Number)],rh.prototype,"rotation",void 0),x([p(),w("design:type",Boolean)],rh.prototype,"visible",void 0);let x0=class extends rh{constructor(t){super(t),this.configurationService=t}};x0.\u0275fac=function(t){return new(t||x0)(g(pe))},x0.\u0275cmp=K({type:x0,selectors:[["kendo-chart-series-item-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x0=x([w("design:paramtypes",[pe])],x0);class I_ extends fn{constructor(t){super("outliers",t),this.configurationService=t}}I_.\u0275fac=function(t){kt()},I_.\u0275dir=R({type:I_,inputs:{background:"background",border:"border",rotation:"rotation",size:"size",type:"type"},features:[N]}),x([p(),w("design:type",String)],I_.prototype,"background",void 0),x([p(),w("design:type",Object)],I_.prototype,"border",void 0),x([p(),w("design:type",Number)],I_.prototype,"rotation",void 0),x([p(),w("design:type",Number)],I_.prototype,"size",void 0),x([p(),w("design:type",String)],I_.prototype,"type",void 0);let w0=class extends I_{constructor(t){super(t),this.configurationService=t}};w0.\u0275fac=function(t){return new(t||w0)(g(pe))},w0.\u0275cmp=K({type:w0,selectors:[["kendo-chart-series-item-outliers"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),w0=x([w("design:paramtypes",[pe])],w0);class su extends fn{constructor(t){super("title",t),this.configurationService=t}}su.\u0275fac=function(t){kt()},su.\u0275dir=R({type:su,inputs:{align:"align",background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",text:"text",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],su.prototype,"align",void 0),x([p(),w("design:type",String)],su.prototype,"background",void 0),x([p(),w("design:type",Object)],su.prototype,"border",void 0),x([p(),w("design:type",String)],su.prototype,"color",void 0),x([p(),w("design:type",String)],su.prototype,"font",void 0),x([p(),w("design:type",Object)],su.prototype,"margin",void 0),x([p(),w("design:type",Object)],su.prototype,"padding",void 0),x([p(),w("design:type",String)],su.prototype,"position",void 0),x([p(),w("design:type",String)],su.prototype,"text",void 0),x([p(),w("design:type",Boolean)],su.prototype,"visible",void 0);let bd=class extends su{constructor(t){super(t),this.configurationService=t}};bd.\u0275fac=function(t){return new(t||bd)(g(pe))},bd.\u0275cmp=K({type:bd,selectors:[["kendo-chart-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),bd=x([w("design:paramtypes",[pe])],bd);class ah extends fn{constructor(t){super("tooltip",t),this.configurationService=t}}ah.\u0275fac=function(t){kt()},ah.\u0275dir=R({type:ah,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",opacity:"opacity",padding:"padding",shared:"shared",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],ah.prototype,"background",void 0),x([p(),w("design:type",Object)],ah.prototype,"border",void 0),x([p(),w("design:type",String)],ah.prototype,"color",void 0),x([p(),w("design:type",String)],ah.prototype,"font",void 0),x([p(),w("design:type",String)],ah.prototype,"format",void 0),x([p(),w("design:type",Number)],ah.prototype,"opacity",void 0),x([p(),w("design:type",Object)],ah.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],ah.prototype,"shared",void 0),x([p(),w("design:type",Boolean)],ah.prototype,"visible",void 0);let Cd=class extends ah{constructor(t,e){super(t),this.configurationService=t,this.templateService=e,this.markAsVisible()}ngAfterContentChecked(){this.templateService.setTemplate(this.seriesTooltipTemplate?this.seriesTooltipTemplate.templateRef:null),this.templateService.setSharedTemplate(this.sharedTooltipTemplate?this.sharedTooltipTemplate.templateRef:null)}};Cd.\u0275fac=function(t){return new(t||Cd)(g(pe),g(Ac))},Cd.\u0275cmp=K({type:Cd,selectors:[["kendo-chart-tooltip"]],contentQueries:function(t,e,i){if(1&t&&(Ce(i,pd,5),Ce(i,eu,5)),2&t){let s;U(s=W())&&(e.seriesTooltipTemplate=s.first),U(s=W())&&(e.sharedTooltipTemplate=s.first)}},features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2}),x([ct(pd,{static:!1}),w("design:type",pd)],Cd.prototype,"seriesTooltipTemplate",void 0),x([ct(eu,{static:!1}),w("design:type",eu)],Cd.prototype,"sharedTooltipTemplate",void 0),Cd=x([w("design:paramtypes",[pe,Ac])],Cd);class Lo extends KM{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}}Lo.\u0275fac=function(t){kt()},Lo.\u0275dir=R({type:Lo,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:[N]}),x([p(),w("design:type",Object)],Lo.prototype,"axisCrossingValue",void 0),x([p(),w("design:type",String)],Lo.prototype,"background",void 0),x([p(),w("design:type",String)],Lo.prototype,"color",void 0),x([p(),w("design:type",Object)],Lo.prototype,"line",void 0),x([p(),w("design:type",Object)],Lo.prototype,"majorGridLines",void 0),x([p(),w("design:type",Object)],Lo.prototype,"majorTicks",void 0),x([p(),w("design:type",Number)],Lo.prototype,"majorUnit",void 0),x([p(),w("design:type",Object)],Lo.prototype,"max",void 0),x([p(),w("design:type",Object)],Lo.prototype,"min",void 0),x([p(),w("design:type",Object)],Lo.prototype,"minorGridLines",void 0),x([p(),w("design:type",Object)],Lo.prototype,"minorTicks",void 0),x([p(),w("design:type",Number)],Lo.prototype,"minorUnit",void 0),x([p(),w("design:type",String)],Lo.prototype,"name",void 0),x([p(),w("design:type",Boolean)],Lo.prototype,"narrowRange",void 0),x([p(),w("design:type",String)],Lo.prototype,"pane",void 0),x([p(),w("design:type",Array)],Lo.prototype,"plotBands",void 0),x([p(),w("design:type",Boolean)],Lo.prototype,"reverse",void 0),x([p(),w("design:type",String)],Lo.prototype,"type",void 0),x([p(),w("design:type",Boolean)],Lo.prototype,"visible",void 0),x([p(),w("design:type",Object)],Lo.prototype,"crosshair",void 0),x([p(),w("design:type",Object)],Lo.prototype,"labels",void 0),x([p(),w("design:type",Object)],Lo.prototype,"notes",void 0),x([p(),w("design:type",Object)],Lo.prototype,"title",void 0);let sc=class extends Lo{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};sc.\u0275fac=function(t){return new(t||sc)(g(pe),g($i))},sc.\u0275cmp=K({type:sc,selectors:[["kendo-chart-value-axis-item"]],features:[we([pe]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),sc=x([w("design:paramtypes",[pe,$i])],sc);class hR extends ZM{constructor(t,e){super("valueAxis",t,e),this.configurationService=t,this.collectionService=e}}hR.\u0275fac=function(t){kt()},hR.\u0275dir=R({type:hR,contentQueries:function(t,e,i){if(1&t&&Ce(i,sc,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[N]}),x([fi(sc),w("design:type",wt)],hR.prototype,"children",void 0);let xd=class extends hR{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};xd.\u0275fac=function(t){return new(t||xd)(g(pe),g($i))},xd.\u0275cmp=K({type:xd,selectors:[["kendo-chart-value-axis"]],features:[we([$i]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),xd=x([w("design:paramtypes",[pe,$i])],xd);class A_ extends fn{constructor(t){super("crosshair",t),this.configurationService=t}}A_.\u0275fac=function(t){kt()},A_.\u0275dir=R({type:A_,inputs:{color:"color",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},features:[N]}),x([p(),w("design:type",String)],A_.prototype,"color",void 0),x([p(),w("design:type",Number)],A_.prototype,"opacity",void 0),x([p(),w("design:type",Boolean)],A_.prototype,"visible",void 0),x([p(),w("design:type",Number)],A_.prototype,"width",void 0),x([p(),w("design:type",Object)],A_.prototype,"tooltip",void 0);let IS=class extends A_{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};IS.\u0275fac=function(t){return new(t||IS)(g(pe))},IS.\u0275cmp=K({type:IS,selectors:[["kendo-chart-value-axis-item-crosshair"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),IS=x([w("design:paramtypes",[pe])],IS);class Mf extends fn{constructor(t){super("crosshair.tooltip",t),this.configurationService=t}}Mf.\u0275fac=function(t){kt()},Mf.\u0275dir=R({type:Mf,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],Mf.prototype,"background",void 0),x([p(),w("design:type",Object)],Mf.prototype,"border",void 0),x([p(),w("design:type",String)],Mf.prototype,"color",void 0),x([p(),w("design:type",String)],Mf.prototype,"font",void 0),x([p(),w("design:type",String)],Mf.prototype,"format",void 0),x([p(),w("design:type",Object)],Mf.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],Mf.prototype,"visible",void 0);let AS=class extends Mf{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};AS.\u0275fac=function(t){return new(t||AS)(g(pe))},AS.\u0275cmp=K({type:AS,selectors:[["kendo-chart-value-axis-item-crosshair-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),AS=x([w("design:paramtypes",[pe])],AS);class rl extends fn{constructor(t){super("labels",t),this.configurationService=t}}rl.\u0275fac=function(t){kt()},rl.\u0275dir=R({type:rl,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],rl.prototype,"background",void 0),x([p(),w("design:type",Object)],rl.prototype,"border",void 0),x([p(),w("design:type",String)],rl.prototype,"color",void 0),x([p(),w("design:type",Function)],rl.prototype,"content",void 0),x([p(),w("design:type",String)],rl.prototype,"font",void 0),x([p(),w("design:type",String)],rl.prototype,"format",void 0),x([p(),w("design:type",Object)],rl.prototype,"margin",void 0),x([p(),w("design:type",Boolean)],rl.prototype,"mirror",void 0),x([p(),w("design:type",Object)],rl.prototype,"padding",void 0),x([p(),w("design:type",String)],rl.prototype,"position",void 0),x([p(),w("design:type",Object)],rl.prototype,"rotation",void 0),x([p(),w("design:type",Number)],rl.prototype,"skip",void 0),x([p(),w("design:type",Number)],rl.prototype,"step",void 0),x([p(),w("design:type",Boolean)],rl.prototype,"visible",void 0),x([p(),w("design:type",Function)],rl.prototype,"visual",void 0);let FS=class extends rl{constructor(t){super(t),this.configurationService=t}};FS.\u0275fac=function(t){return new(t||FS)(g(pe))},FS.\u0275cmp=K({type:FS,selectors:[["kendo-chart-value-axis-item-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),FS=x([w("design:paramtypes",[pe])],FS);class Rm extends fn{constructor(t){super("notes",t),this.configurationService=t}}Rm.\u0275fac=function(t){kt()},Rm.\u0275dir=R({type:Rm,inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},features:[N]}),x([p(),w("design:type",Array)],Rm.prototype,"data",void 0),x([p(),w("design:type",Object)],Rm.prototype,"line",void 0),x([p(),w("design:type",String)],Rm.prototype,"position",void 0),x([p(),w("design:type",Function)],Rm.prototype,"visual",void 0),x([p(),w("design:type",Object)],Rm.prototype,"icon",void 0),x([p(),w("design:type",Object)],Rm.prototype,"label",void 0);let OS=class extends Rm{constructor(t){super(t),this.configurationService=t}};OS.\u0275fac=function(t){return new(t||OS)(g(pe))},OS.\u0275cmp=K({type:OS,selectors:[["kendo-chart-value-axis-item-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),OS=x([w("design:paramtypes",[pe])],OS);class F_ extends fn{constructor(t){super("notes.icon",t),this.configurationService=t}}F_.\u0275fac=function(t){kt()},F_.\u0275dir=R({type:F_,inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],F_.prototype,"background",void 0),x([p(),w("design:type",Object)],F_.prototype,"border",void 0),x([p(),w("design:type",Number)],F_.prototype,"size",void 0),x([p(),w("design:type",String)],F_.prototype,"type",void 0),x([p(),w("design:type",Boolean)],F_.prototype,"visible",void 0);let RS=class extends F_{constructor(t){super(t),this.configurationService=t}};RS.\u0275fac=function(t){return new(t||RS)(g(pe))},RS.\u0275cmp=K({type:RS,selectors:[["kendo-chart-value-axis-item-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),RS=x([w("design:paramtypes",[pe])],RS);class lh extends fn{constructor(t){super("notes.label",t),this.configurationService=t}}lh.\u0275fac=function(t){kt()},lh.\u0275dir=R({type:lh,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],lh.prototype,"background",void 0),x([p(),w("design:type",Object)],lh.prototype,"border",void 0),x([p(),w("design:type",String)],lh.prototype,"color",void 0),x([p(),w("design:type",Function)],lh.prototype,"content",void 0),x([p(),w("design:type",String)],lh.prototype,"font",void 0),x([p(),w("design:type",String)],lh.prototype,"format",void 0),x([p(),w("design:type",String)],lh.prototype,"position",void 0),x([p(),w("design:type",Number)],lh.prototype,"rotation",void 0),x([p(),w("design:type",Boolean)],lh.prototype,"visible",void 0);let PS=class extends lh{constructor(t){super(t),this.configurationService=t}};PS.\u0275fac=function(t){return new(t||PS)(g(pe))},PS.\u0275cmp=K({type:PS,selectors:[["kendo-chart-value-axis-item-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),PS=x([w("design:paramtypes",[pe])],PS);class wd extends fn{constructor(t){super("title",t),this.configurationService=t}}wd.\u0275fac=function(t){kt()},wd.\u0275dir=R({type:wd,inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],wd.prototype,"background",void 0),x([p(),w("design:type",Object)],wd.prototype,"border",void 0),x([p(),w("design:type",String)],wd.prototype,"color",void 0),x([p(),w("design:type",String)],wd.prototype,"font",void 0),x([p(),w("design:type",Object)],wd.prototype,"margin",void 0),x([p(),w("design:type",Object)],wd.prototype,"padding",void 0),x([p(),w("design:type",String)],wd.prototype,"position",void 0),x([p(),w("design:type",Number)],wd.prototype,"rotation",void 0),x([p(),w("design:type",String)],wd.prototype,"text",void 0),x([p(),w("design:type",Boolean)],wd.prototype,"visible",void 0),x([p(),w("design:type",Function)],wd.prototype,"visual",void 0);let LS=class extends wd{constructor(t){super(t),this.configurationService=t}};LS.\u0275fac=function(t){return new(t||LS)(g(pe))},LS.\u0275cmp=K({type:LS,selectors:[["kendo-chart-value-axis-item-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),LS=x([w("design:paramtypes",[pe])],LS);class uo extends KM{constructor(t,e,i,s){super(t,e),this.configurationService=t,this.collectionService=e,this.notifyChanges({weekStartDay:i.firstDay(s)})}}uo.\u0275fac=function(t){kt()},uo.\u0275dir=R({type:uo,inputs:{axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",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",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},features:[N]}),x([p(),w("design:type",Object)],uo.prototype,"axisCrossingValue",void 0),x([p(),w("design:type",String)],uo.prototype,"background",void 0),x([p(),w("design:type",String)],uo.prototype,"baseUnit",void 0),x([p(),w("design:type",String)],uo.prototype,"color",void 0),x([p(),w("design:type",Object)],uo.prototype,"line",void 0),x([p(),w("design:type",Object)],uo.prototype,"majorGridLines",void 0),x([p(),w("design:type",Object)],uo.prototype,"majorTicks",void 0),x([p(),w("design:type",Number)],uo.prototype,"majorUnit",void 0),x([p(),w("design:type",Object)],uo.prototype,"max",void 0),x([p(),w("design:type",Object)],uo.prototype,"min",void 0),x([p(),w("design:type",Object)],uo.prototype,"minorGridLines",void 0),x([p(),w("design:type",Object)],uo.prototype,"minorTicks",void 0),x([p(),w("design:type",Number)],uo.prototype,"minorUnit",void 0),x([p(),w("design:type",String)],uo.prototype,"name",void 0),x([p(),w("design:type",Boolean)],uo.prototype,"narrowRange",void 0),x([p(),w("design:type",String)],uo.prototype,"pane",void 0),x([p(),w("design:type",Array)],uo.prototype,"plotBands",void 0),x([p(),w("design:type",Boolean)],uo.prototype,"reverse",void 0),x([p(),w("design:type",Number)],uo.prototype,"startAngle",void 0),x([p(),w("design:type",String)],uo.prototype,"type",void 0),x([p(),w("design:type",Boolean)],uo.prototype,"visible",void 0),x([p(),w("design:type",Number)],uo.prototype,"weekStartDay",void 0),x([p(),w("design:type",Object)],uo.prototype,"crosshair",void 0),x([p(),w("design:type",Object)],uo.prototype,"labels",void 0),x([p(),w("design:type",Object)],uo.prototype,"notes",void 0),x([p(),w("design:type",Object)],uo.prototype,"title",void 0);let O_=class extends uo{constructor(t,e,i,s){super(t,e,i,s),this.configurationService=t,this.collectionService=e,this.intl=i}};O_.\u0275fac=function(t){return new(t||O_)(g(pe),g($i),g(kn),g(ra))},O_.\u0275cmp=K({type:O_,selectors:[["kendo-chart-x-axis-item"]],features:[we([pe]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),O_=x([jb(3,Rn(ra)),w("design:paramtypes",[pe,$i,kn,String])],O_);class pR extends ZM{constructor(t,e){super("xAxis",t,e),this.configurationService=t,this.collectionService=e}}pR.\u0275fac=function(t){kt()},pR.\u0275dir=R({type:pR,contentQueries:function(t,e,i){if(1&t&&Ce(i,O_,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[N]}),x([fi(O_),w("design:type",wt)],pR.prototype,"children",void 0);let NS=class extends pR{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};NS.\u0275fac=function(t){return new(t||NS)(g(pe),g($i))},NS.\u0275cmp=K({type:NS,selectors:[["kendo-chart-x-axis"]],features:[we([$i]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),NS=x([w("design:paramtypes",[pe,$i])],NS);class R_ extends fn{constructor(t){super("crosshair",t),this.configurationService=t}}R_.\u0275fac=function(t){kt()},R_.\u0275dir=R({type:R_,inputs:{color:"color",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},features:[N]}),x([p(),w("design:type",String)],R_.prototype,"color",void 0),x([p(),w("design:type",Number)],R_.prototype,"opacity",void 0),x([p(),w("design:type",Boolean)],R_.prototype,"visible",void 0),x([p(),w("design:type",Number)],R_.prototype,"width",void 0),x([p(),w("design:type",Object)],R_.prototype,"tooltip",void 0);let BS=class extends R_{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};BS.\u0275fac=function(t){return new(t||BS)(g(pe))},BS.\u0275cmp=K({type:BS,selectors:[["kendo-chart-x-axis-item-crosshair"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),BS=x([w("design:paramtypes",[pe])],BS);class Ef extends fn{constructor(t){super("crosshair.tooltip",t),this.configurationService=t}}Ef.\u0275fac=function(t){kt()},Ef.\u0275dir=R({type:Ef,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],Ef.prototype,"background",void 0),x([p(),w("design:type",Object)],Ef.prototype,"border",void 0),x([p(),w("design:type",String)],Ef.prototype,"color",void 0),x([p(),w("design:type",String)],Ef.prototype,"font",void 0),x([p(),w("design:type",String)],Ef.prototype,"format",void 0),x([p(),w("design:type",Object)],Ef.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],Ef.prototype,"visible",void 0);let VS=class extends Ef{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};VS.\u0275fac=function(t){return new(t||VS)(g(pe))},VS.\u0275cmp=K({type:VS,selectors:[["kendo-chart-x-axis-item-crosshair-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),VS=x([w("design:paramtypes",[pe])],VS);class Ca extends fn{constructor(t){super("labels",t),this.configurationService=t}}Ca.\u0275fac=function(t){kt()},Ca.\u0275dir=R({type:Ca,inputs:{background:"background",border:"border",color:"color",content:"content",culture:"culture",dateFormats:"dateFormats",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],Ca.prototype,"background",void 0),x([p(),w("design:type",Object)],Ca.prototype,"border",void 0),x([p(),w("design:type",String)],Ca.prototype,"color",void 0),x([p(),w("design:type",Function)],Ca.prototype,"content",void 0),x([p(),w("design:type",String)],Ca.prototype,"culture",void 0),x([p(),w("design:type",Object)],Ca.prototype,"dateFormats",void 0),x([p(),w("design:type",String)],Ca.prototype,"font",void 0),x([p(),w("design:type",String)],Ca.prototype,"format",void 0),x([p(),w("design:type",Object)],Ca.prototype,"margin",void 0),x([p(),w("design:type",Boolean)],Ca.prototype,"mirror",void 0),x([p(),w("design:type",Object)],Ca.prototype,"padding",void 0),x([p(),w("design:type",String)],Ca.prototype,"position",void 0),x([p(),w("design:type",Object)],Ca.prototype,"rotation",void 0),x([p(),w("design:type",Number)],Ca.prototype,"skip",void 0),x([p(),w("design:type",Number)],Ca.prototype,"step",void 0),x([p(),w("design:type",Boolean)],Ca.prototype,"visible",void 0),x([p(),w("design:type",Function)],Ca.prototype,"visual",void 0);let zS=class extends Ca{constructor(t){super(t),this.configurationService=t}};zS.\u0275fac=function(t){return new(t||zS)(g(pe))},zS.\u0275cmp=K({type:zS,selectors:[["kendo-chart-x-axis-item-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),zS=x([w("design:paramtypes",[pe])],zS);class Pm extends fn{constructor(t){super("notes",t),this.configurationService=t}}Pm.\u0275fac=function(t){kt()},Pm.\u0275dir=R({type:Pm,inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},features:[N]}),x([p(),w("design:type",Array)],Pm.prototype,"data",void 0),x([p(),w("design:type",Object)],Pm.prototype,"line",void 0),x([p(),w("design:type",String)],Pm.prototype,"position",void 0),x([p(),w("design:type",Function)],Pm.prototype,"visual",void 0),x([p(),w("design:type",Object)],Pm.prototype,"icon",void 0),x([p(),w("design:type",Object)],Pm.prototype,"label",void 0);let HS=class extends Pm{constructor(t){super(t),this.configurationService=t}};HS.\u0275fac=function(t){return new(t||HS)(g(pe))},HS.\u0275cmp=K({type:HS,selectors:[["kendo-chart-x-axis-item-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),HS=x([w("design:paramtypes",[pe])],HS);class P_ extends fn{constructor(t){super("notes.icon",t),this.configurationService=t}}P_.\u0275fac=function(t){kt()},P_.\u0275dir=R({type:P_,inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],P_.prototype,"background",void 0),x([p(),w("design:type",Object)],P_.prototype,"border",void 0),x([p(),w("design:type",Number)],P_.prototype,"size",void 0),x([p(),w("design:type",String)],P_.prototype,"type",void 0),x([p(),w("design:type",Boolean)],P_.prototype,"visible",void 0);let GS=class extends P_{constructor(t){super(t),this.configurationService=t}};GS.\u0275fac=function(t){return new(t||GS)(g(pe))},GS.\u0275cmp=K({type:GS,selectors:[["kendo-chart-x-axis-item-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),GS=x([w("design:paramtypes",[pe])],GS);class ch extends fn{constructor(t){super("notes.label",t),this.configurationService=t}}ch.\u0275fac=function(t){kt()},ch.\u0275dir=R({type:ch,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],ch.prototype,"background",void 0),x([p(),w("design:type",Object)],ch.prototype,"border",void 0),x([p(),w("design:type",String)],ch.prototype,"color",void 0),x([p(),w("design:type",Function)],ch.prototype,"content",void 0),x([p(),w("design:type",String)],ch.prototype,"font",void 0),x([p(),w("design:type",String)],ch.prototype,"format",void 0),x([p(),w("design:type",String)],ch.prototype,"position",void 0),x([p(),w("design:type",Number)],ch.prototype,"rotation",void 0),x([p(),w("design:type",Boolean)],ch.prototype,"visible",void 0);let jS=class extends ch{constructor(t){super(t),this.configurationService=t}};jS.\u0275fac=function(t){return new(t||jS)(g(pe))},jS.\u0275cmp=K({type:jS,selectors:[["kendo-chart-x-axis-item-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),jS=x([w("design:paramtypes",[pe])],jS);class Sd extends fn{constructor(t){super("title",t),this.configurationService=t}}Sd.\u0275fac=function(t){kt()},Sd.\u0275dir=R({type:Sd,inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],Sd.prototype,"background",void 0),x([p(),w("design:type",Object)],Sd.prototype,"border",void 0),x([p(),w("design:type",String)],Sd.prototype,"color",void 0),x([p(),w("design:type",String)],Sd.prototype,"font",void 0),x([p(),w("design:type",Object)],Sd.prototype,"margin",void 0),x([p(),w("design:type",Object)],Sd.prototype,"padding",void 0),x([p(),w("design:type",String)],Sd.prototype,"position",void 0),x([p(),w("design:type",Number)],Sd.prototype,"rotation",void 0),x([p(),w("design:type",String)],Sd.prototype,"text",void 0),x([p(),w("design:type",Boolean)],Sd.prototype,"visible",void 0),x([p(),w("design:type",Function)],Sd.prototype,"visual",void 0);let $S=class extends Sd{constructor(t){super(t),this.configurationService=t}};$S.\u0275fac=function(t){return new(t||$S)(g(pe))},$S.\u0275cmp=K({type:$S,selectors:[["kendo-chart-x-axis-item-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),$S=x([w("design:paramtypes",[pe])],$S);class Mo extends KM{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}}Mo.\u0275fac=function(t){kt()},Mo.\u0275dir=R({type:Mo,inputs:{axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",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:[N]}),x([p(),w("design:type",Object)],Mo.prototype,"axisCrossingValue",void 0),x([p(),w("design:type",String)],Mo.prototype,"background",void 0),x([p(),w("design:type",String)],Mo.prototype,"baseUnit",void 0),x([p(),w("design:type",String)],Mo.prototype,"color",void 0),x([p(),w("design:type",Object)],Mo.prototype,"line",void 0),x([p(),w("design:type",Object)],Mo.prototype,"majorGridLines",void 0),x([p(),w("design:type",Object)],Mo.prototype,"majorTicks",void 0),x([p(),w("design:type",Number)],Mo.prototype,"majorUnit",void 0),x([p(),w("design:type",Object)],Mo.prototype,"max",void 0),x([p(),w("design:type",Object)],Mo.prototype,"min",void 0),x([p(),w("design:type",Object)],Mo.prototype,"minorGridLines",void 0),x([p(),w("design:type",Object)],Mo.prototype,"minorTicks",void 0),x([p(),w("design:type",Number)],Mo.prototype,"minorUnit",void 0),x([p(),w("design:type",String)],Mo.prototype,"name",void 0),x([p(),w("design:type",Boolean)],Mo.prototype,"narrowRange",void 0),x([p(),w("design:type",String)],Mo.prototype,"pane",void 0),x([p(),w("design:type",Array)],Mo.prototype,"plotBands",void 0),x([p(),w("design:type",Boolean)],Mo.prototype,"reverse",void 0),x([p(),w("design:type",String)],Mo.prototype,"type",void 0),x([p(),w("design:type",Boolean)],Mo.prototype,"visible",void 0),x([p(),w("design:type",Object)],Mo.prototype,"crosshair",void 0),x([p(),w("design:type",Object)],Mo.prototype,"labels",void 0),x([p(),w("design:type",Object)],Mo.prototype,"notes",void 0),x([p(),w("design:type",Object)],Mo.prototype,"title",void 0);let L_=class extends Mo{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};L_.\u0275fac=function(t){return new(t||L_)(g(pe),g($i))},L_.\u0275cmp=K({type:L_,selectors:[["kendo-chart-y-axis-item"]],features:[we([pe]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),L_=x([w("design:paramtypes",[pe,$i])],L_);class fR extends ZM{constructor(t,e){super("yAxis",t,e),this.configurationService=t,this.collectionService=e}}fR.\u0275fac=function(t){kt()},fR.\u0275dir=R({type:fR,contentQueries:function(t,e,i){if(1&t&&Ce(i,L_,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[N]}),x([fi(L_),w("design:type",wt)],fR.prototype,"children",void 0);let US=class extends fR{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};US.\u0275fac=function(t){return new(t||US)(g(pe),g($i))},US.\u0275cmp=K({type:US,selectors:[["kendo-chart-y-axis"]],features:[we([$i]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),US=x([w("design:paramtypes",[pe,$i])],US);class N_ extends fn{constructor(t){super("crosshair",t),this.configurationService=t}}N_.\u0275fac=function(t){kt()},N_.\u0275dir=R({type:N_,inputs:{color:"color",opacity:"opacity",visible:"visible",width:"width",tooltip:"tooltip"},features:[N]}),x([p(),w("design:type",String)],N_.prototype,"color",void 0),x([p(),w("design:type",Number)],N_.prototype,"opacity",void 0),x([p(),w("design:type",Boolean)],N_.prototype,"visible",void 0),x([p(),w("design:type",Number)],N_.prototype,"width",void 0),x([p(),w("design:type",Object)],N_.prototype,"tooltip",void 0);let WS=class extends N_{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};WS.\u0275fac=function(t){return new(t||WS)(g(pe))},WS.\u0275cmp=K({type:WS,selectors:[["kendo-chart-y-axis-item-crosshair"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),WS=x([w("design:paramtypes",[pe])],WS);class If extends fn{constructor(t){super("crosshair.tooltip",t),this.configurationService=t}}If.\u0275fac=function(t){kt()},If.\u0275dir=R({type:If,inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],If.prototype,"background",void 0),x([p(),w("design:type",Object)],If.prototype,"border",void 0),x([p(),w("design:type",String)],If.prototype,"color",void 0),x([p(),w("design:type",String)],If.prototype,"font",void 0),x([p(),w("design:type",String)],If.prototype,"format",void 0),x([p(),w("design:type",Object)],If.prototype,"padding",void 0),x([p(),w("design:type",Boolean)],If.prototype,"visible",void 0);let qS=class extends If{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};qS.\u0275fac=function(t){return new(t||qS)(g(pe))},qS.\u0275cmp=K({type:qS,selectors:[["kendo-chart-y-axis-item-crosshair-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),qS=x([w("design:paramtypes",[pe])],qS);class xa extends fn{constructor(t){super("labels",t),this.configurationService=t}}xa.\u0275fac=function(t){kt()},xa.\u0275dir=R({type:xa,inputs:{background:"background",border:"border",color:"color",content:"content",culture:"culture",dateFormats:"dateFormats",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],xa.prototype,"background",void 0),x([p(),w("design:type",Object)],xa.prototype,"border",void 0),x([p(),w("design:type",String)],xa.prototype,"color",void 0),x([p(),w("design:type",Function)],xa.prototype,"content",void 0),x([p(),w("design:type",String)],xa.prototype,"culture",void 0),x([p(),w("design:type",Object)],xa.prototype,"dateFormats",void 0),x([p(),w("design:type",String)],xa.prototype,"font",void 0),x([p(),w("design:type",String)],xa.prototype,"format",void 0),x([p(),w("design:type",Object)],xa.prototype,"margin",void 0),x([p(),w("design:type",Boolean)],xa.prototype,"mirror",void 0),x([p(),w("design:type",Object)],xa.prototype,"padding",void 0),x([p(),w("design:type",String)],xa.prototype,"position",void 0),x([p(),w("design:type",Object)],xa.prototype,"rotation",void 0),x([p(),w("design:type",Number)],xa.prototype,"skip",void 0),x([p(),w("design:type",Number)],xa.prototype,"step",void 0),x([p(),w("design:type",Boolean)],xa.prototype,"visible",void 0),x([p(),w("design:type",Function)],xa.prototype,"visual",void 0);let XS=class extends xa{constructor(t){super(t),this.configurationService=t}};XS.\u0275fac=function(t){return new(t||XS)(g(pe))},XS.\u0275cmp=K({type:XS,selectors:[["kendo-chart-y-axis-item-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),XS=x([w("design:paramtypes",[pe])],XS);class Lm extends fn{constructor(t){super("notes",t),this.configurationService=t}}Lm.\u0275fac=function(t){kt()},Lm.\u0275dir=R({type:Lm,inputs:{data:"data",line:"line",position:"position",visual:"visual",icon:"icon",label:"label"},features:[N]}),x([p(),w("design:type",Array)],Lm.prototype,"data",void 0),x([p(),w("design:type",Object)],Lm.prototype,"line",void 0),x([p(),w("design:type",String)],Lm.prototype,"position",void 0),x([p(),w("design:type",Function)],Lm.prototype,"visual",void 0),x([p(),w("design:type",Object)],Lm.prototype,"icon",void 0),x([p(),w("design:type",Object)],Lm.prototype,"label",void 0);let YS=class extends Lm{constructor(t){super(t),this.configurationService=t}};YS.\u0275fac=function(t){return new(t||YS)(g(pe))},YS.\u0275cmp=K({type:YS,selectors:[["kendo-chart-y-axis-item-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),YS=x([w("design:paramtypes",[pe])],YS);class B_ extends fn{constructor(t){super("notes.icon",t),this.configurationService=t}}B_.\u0275fac=function(t){kt()},B_.\u0275dir=R({type:B_,inputs:{background:"background",border:"border",size:"size",type:"type",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],B_.prototype,"background",void 0),x([p(),w("design:type",Object)],B_.prototype,"border",void 0),x([p(),w("design:type",Number)],B_.prototype,"size",void 0),x([p(),w("design:type",String)],B_.prototype,"type",void 0),x([p(),w("design:type",Boolean)],B_.prototype,"visible",void 0);let KS=class extends B_{constructor(t){super(t),this.configurationService=t}};KS.\u0275fac=function(t){return new(t||KS)(g(pe))},KS.\u0275cmp=K({type:KS,selectors:[["kendo-chart-y-axis-item-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),KS=x([w("design:paramtypes",[pe])],KS);class dh extends fn{constructor(t){super("notes.label",t),this.configurationService=t}}dh.\u0275fac=function(t){kt()},dh.\u0275dir=R({type:dh,inputs:{background:"background",border:"border",color:"color",content:"content",font:"font",format:"format",position:"position",rotation:"rotation",visible:"visible"},features:[N]}),x([p(),w("design:type",String)],dh.prototype,"background",void 0),x([p(),w("design:type",Object)],dh.prototype,"border",void 0),x([p(),w("design:type",String)],dh.prototype,"color",void 0),x([p(),w("design:type",Function)],dh.prototype,"content",void 0),x([p(),w("design:type",String)],dh.prototype,"font",void 0),x([p(),w("design:type",String)],dh.prototype,"format",void 0),x([p(),w("design:type",String)],dh.prototype,"position",void 0),x([p(),w("design:type",Number)],dh.prototype,"rotation",void 0),x([p(),w("design:type",Boolean)],dh.prototype,"visible",void 0);let ZS=class extends dh{constructor(t){super(t),this.configurationService=t}};ZS.\u0275fac=function(t){return new(t||ZS)(g(pe))},ZS.\u0275cmp=K({type:ZS,selectors:[["kendo-chart-y-axis-item-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),ZS=x([w("design:paramtypes",[pe])],ZS);class Td extends fn{constructor(t){super("title",t),this.configurationService=t}}Td.\u0275fac=function(t){kt()},Td.\u0275dir=R({type:Td,inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},features:[N]}),x([p(),w("design:type",String)],Td.prototype,"background",void 0),x([p(),w("design:type",Object)],Td.prototype,"border",void 0),x([p(),w("design:type",String)],Td.prototype,"color",void 0),x([p(),w("design:type",String)],Td.prototype,"font",void 0),x([p(),w("design:type",Object)],Td.prototype,"margin",void 0),x([p(),w("design:type",Object)],Td.prototype,"padding",void 0),x([p(),w("design:type",String)],Td.prototype,"position",void 0),x([p(),w("design:type",Number)],Td.prototype,"rotation",void 0),x([p(),w("design:type",String)],Td.prototype,"text",void 0),x([p(),w("design:type",Boolean)],Td.prototype,"visible",void 0),x([p(),w("design:type",Function)],Td.prototype,"visual",void 0);let QS=class extends Td{constructor(t){super(t),this.configurationService=t}};QS.\u0275fac=function(t){return new(t||QS)(g(pe))},QS.\u0275cmp=K({type:QS,selectors:[["kendo-chart-y-axis-item-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),QS=x([w("design:paramtypes",[pe])],QS);class JM extends fn{constructor(t){super("zoomable",t),this.configurationService=t}}JM.\u0275fac=function(t){kt()},JM.\u0275dir=R({type:JM,inputs:{mousewheel:"mousewheel",selection:"selection"},features:[N]}),x([p(),w("design:type",Object)],JM.prototype,"mousewheel",void 0),x([p(),w("design:type",Object)],JM.prototype,"selection",void 0);let JS=class extends JM{constructor(t){super(t),this.configurationService=t}};JS.\u0275fac=function(t){return new(t||JS)(g(pe))},JS.\u0275cmp=K({type:JS,selectors:[["kendo-chart-zoomable"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),JS=x([w("design:paramtypes",[pe])],JS);let Nm=class extends pe{};Nm.\u0275fac=function(){let n;return function(e){return(n||(n=Ct(Nm)))(e||Nm)}}(),Nm.\u0275prov=ue({token:Nm,factory:function(n){return Nm.\u0275fac(n)}});const INe={navigatorFilter:class extends Yu{constructor(t,e){super(e),this.from=t.from,this.to=t.to}}};let yie=(()=>{class n extends dS{create(e,i,s){return INe[e]?new INe[e](i,s):super.create(e,i,s)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=Ct(n)))(i||n)}}(),n.\u0275prov=ue({token:n,factory:n.\u0275fac}),n})();const Ken={autoBindElements:!0,liveDrag:!1,partialRedraw:!0};let Af=class extends dr{constructor(t,e,i,s,o,r,a,l,c){super(t,e,i,s,o,r,a,l,c),this.configurationService=t,this.themeService=e,this.element=i,this.intl=s,this.localizationService=o,this.ngZone=r,this.instanceEventService=a,this.changeDetector=l,this.renderer=c,this.navigatorFilter=new S,this.redrawSlaves=!1,this.hostClasses=["k-chart","k-stockchart"],Ii(lie)}skipNavigatorRedraw(){this.redrawSlaves=!0}createInstance(t,e){if(this.applyNavigatorDefaults(),this.isDevMode()&&(this.options.zoomable||this.options.pannable))throw new Error("The pannable and zoomable options are not supported by the StockChart component.");this.instance=new kQt(t,this.options,this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})}updateOptions(){this.applyNavigatorDefaults(),this.redrawSlaves?(this.instance.applyOptions(this.options),this.instance.bindCategories(),this.instance.navigator.redrawSlaves()):this.instance.setOptions(this.options),this.redrawSlaves=!1}applyNavigatorDefaults(){this.options.navigator=Object.assign({},this.options.navigator,Ken)}isDevMode(){return En()}};Af.\u0275fac=function(t){return new(t||Af)(g(pe),g(Jd),g($),g(kn),g(J),g(ce),g(yie),g(Be),g(Ie))},Af.\u0275cmp=K({type:Af,selectors:[["kendo-stockchart"]],inputs:{navigator:"navigator",pannable:"pannable",zoomable:"zoomable"},outputs:{navigatorFilter:"navigatorFilter"},exportAs:["kendoStockChart"],features:[we([pe,Ac,{provide:Nm,useExisting:pe},yie,J,{provide:An,useValue:"kendo.chart"}]),N],decls:5,vars:2,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"popupSettings","leave"],[3,"resize"]],template:function(t,e){1&t&&(P(0,"div",0,1),P(2,"kendo-chart-crosshair-tooltips-container",2),y(3,"kendo-chart-tooltip-popup",3),se("leave",function(s){return e.tooltipMouseleave(s)}),_(),y(4,"kendo-resize-sensor",4),se("resize",function(s){return e.onResize(s)}),_()),2&t&&(b(2),v("popupSettings",e.popupSettings),b(1),v("popupSettings",e.popupSettings))},directives:[Zu,ba,Kr],encapsulation:2,changeDetection:0}),x([p(),w("design:type",Object)],Af.prototype,"navigator",void 0),x([p(),w("design:type",Object)],Af.prototype,"pannable",void 0),x([p(),w("design:type",Object)],Af.prototype,"zoomable",void 0),x([Q(),w("design:type",S)],Af.prototype,"navigatorFilter",void 0),Af=x([w("design:paramtypes",[pe,Jd,$,kn,J,ce,yie,Be,Ie])],Af);const gR=new ot("configuration prefix");let Bm=class extends pe{constructor(t,e,i){super(i),this.rootService=t,this.prefix=e}push(t){this.rootService.notify(new cie(this.prefix,t))}notify(t){t.key=this.prefix+(t.key?`.${t.key}`:""),this.rootService.notify(t)}};Bm.\u0275fac=function(t){return new(t||Bm)(V(Nm),V(gR),V(ce))},Bm.\u0275prov=ue({token:Bm,factory:function(n){return Bm.\u0275fac(n)}}),Bm=x([jb(0,Rn(Nm)),jb(1,Rn(gR)),w("design:paramtypes",[Nm,String,ce])],Bm);let uh=class extends fn{constructor(t){super("",t),this.configurationService=t}};uh.\u0275fac=function(t){return new(t||uh)(g(pe))},uh.\u0275cmp=K({type:uh,selectors:[["kendo-chart-navigator"]],inputs:{visible:"visible",categoryAxis:"categoryAxis",hint:"hint",pane:"pane",select:"select",series:"series"},features:[we([{provide:gR,useValue:"navigator"},{provide:pe,useClass:Bm}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([p(),w("design:type",Boolean)],uh.prototype,"visible",void 0),x([p(),w("design:type",Object)],uh.prototype,"categoryAxis",void 0),x([p(),w("design:type",Object)],uh.prototype,"hint",void 0),x([p(),w("design:type",Object)],uh.prototype,"pane",void 0),x([p(),w("design:type",Object)],uh.prototype,"select",void 0),x([p(),w("design:type",Object)],uh.prototype,"series",void 0),uh=x([w("design:paramtypes",[pe])],uh);let e1=class extends ic{constructor(t,e,i){super(t,null,e,i),this.configurationService=t}};e1.\u0275fac=function(t){return new(t||e1)(g(pe),g(kn),g(ra))},e1.\u0275cmp=K({type:e1,selectors:[["kendo-chart-navigator-category-axis"]],features:[we([{provide:gR,useValue:"navigator.categoryAxis"},{provide:pe,useClass:Bm}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),e1=x([jb(2,Rn(ra)),w("design:paramtypes",[pe,kn,String])],e1);let t1=class extends o0{constructor(t){super(t),this.configurationService=t}};t1.\u0275fac=function(t){return new(t||t1)(g(pe))},t1.\u0275cmp=K({type:t1,selectors:[["kendo-chart-navigator-category-axis-crosshair"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t1=x([w("design:paramtypes",[pe])],t1);let n1=class extends r0{constructor(t){super(t),this.configurationService=t}};n1.\u0275fac=function(t){return new(t||n1)(g(pe))},n1.\u0275cmp=K({type:n1,selectors:[["kendo-chart-navigator-category-axis-crosshair-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),n1=x([w("design:paramtypes",[pe])],n1);let i1=class extends Ws{constructor(t){super(t),this.configurationService=t}};i1.\u0275fac=function(t){return new(t||i1)(g(pe))},i1.\u0275cmp=K({type:i1,selectors:[["kendo-chart-navigator-category-axis-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i1=x([w("design:paramtypes",[pe])],i1);let s1=class extends a0{constructor(t){super(t),this.configurationService=t}};s1.\u0275fac=function(t){return new(t||s1)(g(pe))},s1.\u0275cmp=K({type:s1,selectors:[["kendo-chart-navigator-category-axis-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),s1=x([w("design:paramtypes",[pe])],s1);let o1=class extends l0{constructor(t){super(t),this.configurationService=t}};o1.\u0275fac=function(t){return new(t||o1)(g(pe))},o1.\u0275cmp=K({type:o1,selectors:[["kendo-chart-navigator-category-axis-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),o1=x([w("design:paramtypes",[pe])],o1);let r1=class extends c0{constructor(t){super(t),this.configurationService=t}};r1.\u0275fac=function(t){return new(t||r1)(g(pe))},r1.\u0275cmp=K({type:r1,selectors:[["kendo-chart-navigator-category-axis-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),r1=x([w("design:paramtypes",[pe])],r1);let a1=class extends d0{constructor(t){super(t),this.configurationService=t}};a1.\u0275fac=function(t){return new(t||a1)(g(pe))},a1.\u0275cmp=K({type:a1,selectors:[["kendo-chart-navigator-category-axis-select"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),a1=x([w("design:paramtypes",[pe])],a1);let l1=class extends u0{constructor(t){super(t),this.configurationService=t}};l1.\u0275fac=function(t){return new(t||l1)(g(pe))},l1.\u0275cmp=K({type:l1,selectors:[["kendo-chart-navigator-category-axis-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),l1=x([w("design:paramtypes",[pe])],l1);let Vm=class extends fn{constructor(t){super("hint",t),this.configurationService=t}};Vm.\u0275fac=function(t){return new(t||Vm)(g(pe))},Vm.\u0275cmp=K({type:Vm,selectors:[["kendo-chart-navigator-hint"]],inputs:{content:"content",format:"format",visible:"visible"},features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([p(),w("design:type",Function)],Vm.prototype,"content",void 0),x([p(),w("design:type",String)],Vm.prototype,"format",void 0),x([p(),w("design:type",Boolean)],Vm.prototype,"visible",void 0),Vm=x([w("design:paramtypes",[pe])],Vm);let c1=class extends eh{constructor(t){super(t,null),this.configurationService=t}};c1.\u0275fac=function(t){return new(t||c1)(g(pe))},c1.\u0275cmp=K({type:c1,selectors:[["kendo-chart-navigator-pane"]],features:[we([{provide:gR,useValue:"navigator.pane"},{provide:pe,useClass:Bm}]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),c1=x([w("design:paramtypes",[pe])],c1);let d1=class extends h0{constructor(t){super(t),this.configurationService=t}};d1.\u0275fac=function(t){return new(t||d1)(g(pe))},d1.\u0275cmp=K({type:d1,selectors:[["kendo-chart-navigator-pane-title"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),d1=x([w("design:paramtypes",[pe])],d1);let zm=class extends fn{constructor(t){super("select",t),this.configurationService=t}};zm.\u0275fac=function(t){return new(t||zm)(g(pe))},zm.\u0275cmp=K({type:zm,selectors:[["kendo-chart-navigator-select"]],inputs:{from:"from",to:"to",mousewheel:"mousewheel"},features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([p(),w("design:type",Date)],zm.prototype,"from",void 0),x([p(),w("design:type",Date)],zm.prototype,"to",void 0),x([p(),w("design:type",Object)],zm.prototype,"mousewheel",void 0),zm=x([w("design:paramtypes",[pe])],zm);let V_=class extends va{constructor(t,e){super(t,e),this.configurationService=t,this.collectionService=e}};V_.\u0275fac=function(t){return new(t||V_)(g(pe),g($i))},V_.\u0275cmp=K({type:V_,selectors:[["kendo-chart-navigator-series-item"]],features:[we([pe]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),V_=x([w("design:paramtypes",[pe,$i])],V_);let S0=class extends Fc{constructor(t,e,i){super(t,e,i),this.configurationService=t,this.collectionService=e,this.tooltipTemplateService=i}readTooltipTemplates(){}};S0.\u0275fac=function(t){return new(t||S0)(g(pe),g($i),g(Ac))},S0.\u0275cmp=K({type:S0,selectors:[["kendo-chart-navigator-series"]],contentQueries:function(t,e,i){if(1&t&&Ce(i,V_,4),2&t){let s;U(s=W())&&(e.children=s)}},features:[we([$i]),N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x([fi(V_),w("design:type",wt)],S0.prototype,"children",void 0),S0=x([w("design:paramtypes",[pe,$i,Ac])],S0);let u1=class extends f0{constructor(t){super(t),this.configurationService=t}};u1.\u0275fac=function(t){return new(t||u1)(g(pe))},u1.\u0275cmp=K({type:u1,selectors:[["kendo-chart-navigator-series-item-error-bars"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),u1=x([w("design:paramtypes",[pe])],u1);let h1=class extends g0{constructor(t){super(t),this.configurationService=t}};h1.\u0275fac=function(t){return new(t||h1)(g(pe))},h1.\u0275cmp=K({type:h1,selectors:[["kendo-chart-navigator-series-item-extremes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),h1=x([w("design:paramtypes",[pe])],h1);let p1=class extends m0{constructor(t){super(t),this.configurationService=t}};p1.\u0275fac=function(t){return new(t||p1)(g(pe))},p1.\u0275cmp=K({type:p1,selectors:[["kendo-chart-navigator-series-item-highlight"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),p1=x([w("design:paramtypes",[pe])],p1);let f1=class extends Om{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};f1.\u0275fac=function(t){return new(t||f1)(g(pe))},f1.\u0275cmp=K({type:f1,selectors:[["kendo-chart-navigator-series-item-labels"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),f1=x([w("design:paramtypes",[pe])],f1);let g1=class extends y0{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};g1.\u0275fac=function(t){return new(t||g1)(g(pe))},g1.\u0275cmp=K({type:g1,selectors:[["kendo-chart-navigator-series-item-labels-from"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),g1=x([w("design:paramtypes",[pe])],g1);let m1=class extends _0{constructor(t){super(t),this.configurationService=t,this.markAsVisible()}};m1.\u0275fac=function(t){return new(t||m1)(g(pe))},m1.\u0275cmp=K({type:m1,selectors:[["kendo-chart-navigator-series-item-labels-to"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),m1=x([w("design:paramtypes",[pe])],m1);let y1=class extends v0{constructor(t){super(t),this.configurationService=t}};y1.\u0275fac=function(t){return new(t||y1)(g(pe))},y1.\u0275cmp=K({type:y1,selectors:[["kendo-chart-navigator-series-item-markers"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),y1=x([w("design:paramtypes",[pe])],y1);let _1=class extends b0{constructor(t){super(t),this.configurationService=t}};_1.\u0275fac=function(t){return new(t||_1)(g(pe))},_1.\u0275cmp=K({type:_1,selectors:[["kendo-chart-navigator-series-item-notes"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),_1=x([w("design:paramtypes",[pe])],_1);let v1=class extends C0{constructor(t){super(t),this.configurationService=t}};v1.\u0275fac=function(t){return new(t||v1)(g(pe))},v1.\u0275cmp=K({type:v1,selectors:[["kendo-chart-navigator-series-item-notes-icon"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),v1=x([w("design:paramtypes",[pe])],v1);let b1=class extends x0{constructor(t){super(t),this.configurationService=t}};b1.\u0275fac=function(t){return new(t||b1)(g(pe))},b1.\u0275cmp=K({type:b1,selectors:[["kendo-chart-navigator-series-item-notes-label"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),b1=x([w("design:paramtypes",[pe])],b1);let C1=class extends w0{constructor(t){super(t),this.configurationService=t}};C1.\u0275fac=function(t){return new(t||C1)(g(pe))},C1.\u0275cmp=K({type:C1,selectors:[["kendo-chart-navigator-series-item-outliers"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),C1=x([w("design:paramtypes",[pe])],C1);let x1=class extends Qd{constructor(t){super(t),this.configurationService=t}};x1.\u0275fac=function(t){return new(t||x1)(g(pe))},x1.\u0275cmp=K({type:x1,selectors:[["kendo-chart-navigator-series-item-tooltip"]],features:[N],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),x1=x([w("design:paramtypes",[pe])],x1);let z_=class extends dr{constructor(t,e,i,s,o,r,a,l,c){super(t,e,i,s,o,r,a,l,c),this.configurationService=t,this.themeService=e,this.element=i,this.intl=s,this.localizationService=o,this.ngZone=r,this.instanceEventService=a,this.changeDetector=l,this.renderer=c,this.tooltipWrapperClass="k-sparkline-tooltip-wrapper",this.tooltipContentClasses={"k-sparkline-tooltip":!0},this.hostClasses=["k-sparkline","k-widget"],Ii(lie)}createInstance(t,e){this.instance=new qne(t,qne.normalizeOptions(this.options),this.theme,{intlService:this.intl,observer:e,rtl:this.rtl,sender:this})}updateOptions(){this.instance.setOptions(qne.normalizeOptions(this.options))}};z_.\u0275fac=function(t){return new(t||z_)(g(pe),g(Jd),g($),g(kn),g(J),g(ce),g(dS),g(Be),g(Ie))},z_.\u0275cmp=K({type:z_,selectors:[["kendo-sparkline"]],inputs:{type:"type",data:"data"},exportAs:["kendoSparkline"],features:[we([pe,Ac,dS,J,{provide:An,useValue:"kendo.chart"}]),N],decls:5,vars:5,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"animate","wrapperClass","classNames","popupSettings","leave"],[3,"resize"]],template:function(t,e){1&t&&(P(0,"span",0,1),P(2,"kendo-chart-crosshair-tooltips-container",2),y(3,"kendo-chart-tooltip-popup",3),se("leave",function(s){return e.tooltipMouseleave(s)}),_(),y(4,"kendo-resize-sensor",4),se("resize",function(s){return e.onResize(s)}),_()),2&t&&(b(2),v("popupSettings",e.popupSettings),b(1),v("animate",!1)("wrapperClass",e.tooltipWrapperClass)("classNames",e.tooltipContentClasses)("popupSettings",e.popupSettings))},directives:[Zu,ba,Kr],encapsulation:2,changeDetection:0}),x([p(),w("design:type",String)],z_.prototype,"type",void 0),x([p(),w("design:type",Array)],z_.prototype,"data",void 0),z_=x([w("design:paramtypes",[pe,Jd,$,kn,J,ce,dS,Be,Ie])],z_);let Hm=class{};Hm.\u0275fac=function(t){return new(t||Hm)},Hm.\u0275mod=We({type:Hm}),Hm.\u0275inj=Ve({providers:[Jd],imports:[[Ut,ql,Du]]});let eE=class{};eE.\u0275fac=function(t){return new(t||eE)},eE.\u0275mod=We({type:eE}),eE.\u0275inj=Ve({imports:[[Hm,Ut,ql,Du],Hm]});let tE=class{};tE.\u0275fac=function(t){return new(t||tE)},tE.\u0275mod=We({type:tE}),tE.\u0275inj=Ve({imports:[[Hm,Ut,ql,Du],Hm]});let nE=class{};function Zen(n,t){1&n&&P(0,"kendo-chart-title",8),2&n&&v("text","Region")}nE.\u0275fac=function(t){return new(t||nE)},nE.\u0275mod=We({type:nE}),nE.\u0275inj=Ve({imports:[Hm,tE,eE]});class iE{constructor(t,e){this.store=t,this.heatriskService=e,this.getColor=i=>i.index===this.selectedChartItemIndex?"#00ff00":this.chartColor,this.destroyed$=new Z,this.selectedChartItemIndex=-1,this.seriesLabels={visible:!1,font:"bold 16px Arial, sans-serif"},this.markers={background:"#00ff00",border:{color:"black",width:2},type:"circle"},this.legendTitle={text:"Indicator: "},this.analysisResult$.pipe(lt(i=>{try{if(i.sa2FilterResult&&i.sa2AnalysisIndicator)try{if(this.heatriskService.doesSA2ChartNeedToLoad(this.chartRenderBasedFilter,this.analysisIndicator)){this.chartRenderBasedFilter=this.store.selectSnapshot(r=>r.heatriskassessment.analysisFilter);let o=i.sa2AnalysisIndicator;this.chartfilterData=[],i.sa2FilterResult.forEach(r=>{let a=Object.assign({},r);this.chartfilterData.push(a)}),this.analysisIndicator=o,this.analysisIndicatorDisplay=_k.filter(r=>r.key===this.analysisIndicator)[0].value,this.legendTitle.text="Indicator: "+this.analysisIndicatorDisplay,this.updateColorByIndicator(),this.chartfilterData.sort((r,a)=>r[o]>a[o]?1:-1),this.selectedChartItemIndex=-1}if(i.selectedSA2Code16&&i.selectedSA2Code16.length>0){let o=i.selectedSA2Code16[0];this.selectedData=[];for(var s=0;s-1?"#ff0000":"#0000ff"}onSeriesClick(t){var e=this;return Xe(function*(){try{let i=[t.dataItem.sa2_main16];yield e.store.dispatch(new Gn.SetSelectedSA2Code16(i)).toPromise()}catch(i){}})()}ngOnInit(){this.chartRenderBasedFilter=this.store.selectSnapshot(t=>t.heatriskassessment.analysisFilter),this.chartfilterData=[],this.selectedData=[],this.chartColor="#ff0000"}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}function Qen(n,t){if(1&n&&P(0,"kendo-chart-title",6),2&n){const e=I();v("text","Region name: "+e.sa2Name+" , Indicator: "+e.analysisIndicatorDisplay)}}function Jen(n,t){if(1&n&&(y(0,"kendo-chart-series"),P(1,"kendo-chart-series-item",7),_()),2&n){const e=I();b(1),v("type",e.chartType)("data",e.selectedTemporal)("field",e.analysisIndicator)("color",e.chartColor)}}function etn(n,t){if(1&n&&P(0,"kendo-chart-series-item",9),2&n){const e=t.$implicit,i=I(2);v("type",i.chartType)("name",e.name)("visible",1==e.id)("data",e.selectedTemporal)("field",i.analysisIndicator)}}function ttn(n,t){if(1&n&&(y(0,"kendo-chart-series"),A(1,etn,1,5,"kendo-chart-series-item",8),_()),2&n){const e=I();b(1),v("ngForOf",e.temporalSeries)}}iE.\u0275fac=function(t){return new(t||iE)(g(zi),g(Hv))},iE.\u0275cmp=K({type:iE,selectors:[["app-heat-risk-sa2-benchmark"]],decls:13,vars:14,consts:[["fxFlexFill","",2,"height","100%",3,"seriesClick"],[3,"min","max"],["position","bottom","font","9pt sans-serif",3,"text",4,"ngIf"],[3,"visible"],["position","left","orientation","vertical",1,"verticalcss",3,"title"],["type","line","color","#00ff00","categoryField","sa2_main16",3,"data","field","gap","markers"],["type","column","categoryField","sa2_main16",3,"data","field","gap","color"],["format","{0}"],["position","bottom","font","9pt sans-serif",3,"text"]],template:function(t,e){1&t&&(y(0,"kendo-chart",0),se("seriesClick",function(s){return e.onSeriesClick(s)}),y(1,"kendo-chart-value-axis"),P(2,"kendo-chart-value-axis-item",1),_(),A(3,Zen,1,1,"kendo-chart-title",2),y(4,"kendo-chart-category-axis"),y(5,"kendo-chart-category-axis-item"),P(6,"kendo-chart-category-axis-item-labels",3),_(),_(),P(7,"kendo-chart-legend",4),y(8,"kendo-chart-series"),P(9,"kendo-chart-series-item",5),y(10,"kendo-chart-series-item",6),P(11,"kendo-chart-series-item-labels",3),P(12,"kendo-chart-series-item-tooltip",7),_(),_(),_()),2&t&&(b(2),v("min",0)("max",100),b(1),v("ngIf",e.analysisIndicatorDisplay),b(3),v("visible",!1),b(1),v("title",e.legendTitle),b(2),v("data",e.selectedData)("field",e.analysisIndicator)("gap",0)("markers",e.markers),b(1),v("data",e.chartfilterData)("field",e.analysisIndicator)("gap",0)("color",e.getColor),b(1),v("visible",!1))},directives:[dr,wo,xd,sc,pt,Qu,ic,Ws,yd,Fc,va,Om,Qd,bd],styles:[""]}),nt([rn(n=>n.heatriskassessment.analysisResult)],iE.prototype,"analysisResult$",void 0);class w1{constructor(t,e){var i=this;this.store=t,this.heatriskService=e,this.destroyed$=new Z,this.sa2Name="",this.chartType="line",this.monthAbbrev=aA,this.analysisResult$.pipe(lt(function(){var s=Xe(function*(o){try{const r=i.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.selectedSA2Code16);if(o.sa2FilterResult&&o.sa2AnalysisIndicator&&r&&r.length>0)try{let a=r[0];const l=i.store.selectSnapshot(c=>c.heatriskassessment.analysisFilter);i.analysisIndicator=i.store.selectSnapshot(c=>c.heatriskassessment.analysisResult.sa2AnalysisIndicator),i.analysisIndicatorDisplay=_k.filter(c=>c.key===i.analysisIndicator)[0].value,i.selectedTemporal=yield i.heatriskService.filterSA2TemperatureAnalysisBySA2(l,a),i.selectedTemporal&&i.selectedTemporal.length>0&&(i.sa2Name=i.selectedTemporal[0].name,i.selectedTemporal.sort((c,d)=>c.year>d.year?1:-1)),i.selectedTemporal=i.selectedTemporal.filter(c=>null!=c[i.analysisIndicator]),i.updateColorByIndicator(),i.GenerateTemporalSeries()}catch(a){}else i.selectedTemporal=[],i.temporalSeries=[]}catch(r){}});return function(o){return s.apply(this,arguments)}}()),et(this.destroyed$)).subscribe()}GenerateTemporalSeries(){this.temporalSeries=[],this.selectedTemporal.forEach(t=>{let e=this.temporalSeries.findIndex(i=>i.id==t.month);e>-1?this.temporalSeries[e].selectedTemporal.push(t):this.temporalSeries.push({id:t.month,name:aA[t.month],selectedTemporal:[t]})}),this.temporalSeries.sort((t,e)=>t.id>e.id?1:-1)}updateColorByIndicator(){this.chartColor=this.analysisIndicator.indexOf("heat")>-1?"#ff0000":"#0000ff"}ngOnInit(){this.chartColor="#ff0000",this.temporalSeries=[]}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}w1.\u0275fac=function(t){return new(t||w1)(g(zi),g(Hv))},w1.\u0275cmp=K({type:w1,selectors:[["app-heat-risk-sa2-temporal"]],decls:10,vars:9,consts:[["fxFlexFill","",2,"height","100%"],[3,"min","max"],["position","bottom","font","9pt sans-serif",3,"text",4,"ngIf"],["position","bottom","orientation","horizontal"],["format","{0}"],[4,"ngIf"],["position","bottom","font","9pt sans-serif",3,"text"],["categoryField","timestamp",3,"type","data","field","color"],["categoryField","year",3,"type","name","visible","data","field",4,"ngFor","ngForOf"],["categoryField","year",3,"type","name","visible","data","field"]],template:function(t,e){1&t&&(y(0,"kendo-chart",0),y(1,"kendo-chart-value-axis"),P(2,"kendo-chart-value-axis-item",1),_(),A(3,Qen,1,1,"kendo-chart-title",2),P(4,"kendo-chart-legend",3),P(5,"kendo-chart-tooltip",4),A(6,Jen,2,4,"kendo-chart-series",5),gi(7,"async"),A(8,ttn,2,1,"kendo-chart-series",5),gi(9,"async"),_()),2&t&&(b(2),v("min",0)("max",100),b(1),v("ngIf",e.analysisIndicatorDisplay),b(3),v("ngIf","yearly"===Mi(7,5,e.filterType$)),b(2),v("ngIf","monthly"===Mi(9,7,e.filterType$)))},directives:[dr,wo,xd,sc,pt,yd,Cd,bd,Fc,va,Wn],pipes:[Hl],styles:[".charttypelocation[_ngcontent-%COMP%]{position:absolute;bottom:-20px;z-index:2000}"]}),nt([rn(n=>n.heatriskassessment.analysisResult)],w1.prototype,"analysisResult$",void 0),nt([rn(n=>n.heatriskassessment.analysisFilter.filterType)],w1.prototype,"filterType$",void 0);const ntn=["primaryValueBar"],itn=gy(class{constructor(n){this._elementRef=n}},"primary"),stn=new ot("mat-progress-bar-location",{providedIn:"root",factory:function(){const n=iT($t),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}});let rtn=0,S1=(()=>{class n extends itn{constructor(e,i,s,o){super(e),this._ngZone=i,this._animationMode=s,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new S,this._animationEndSubscription=Je.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+rtn++;const r=o?o.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${r}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===s}get value(){return this._value}set value(e){this._value=ANe(Uo(e)||0)}get bufferValue(){return this._bufferValue}set bufferValue(e){this._bufferValue=ANe(e||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Hi(e,"transitionend").pipe(dt(i=>i.target===e)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(jo,8),g(stn,8))},n.\u0275cmp=K({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&Ae(ntn,5),2&e){let s;U(s=W())&&(i._primaryValueBar=s.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(fe("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),he("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[N],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(y(0,"div",0),zc(),y(1,"svg",1),y(2,"defs"),y(3,"pattern",2),P(4,"circle",3),_(),_(),P(5,"rect",4),_(),UR(),P(6,"div",5),P(7,"div",6,7),P(9,"div",8),_()),2&e&&(b(3),v("id",i.progressbarId),b(2),fe("fill",i._rectangleFillValue),b(1),v("ngStyle",i._bufferTransform()),b(1),v("ngStyle",i._primaryTransform()))},directives:[zo],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),n})();function ANe(n,t=0,e=100){return Math.max(t,Math.min(e,n))}let atn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,vi],vi]}),n})();const ltn=["hfgrid"],ctn=["cfgrid"];function dtn(n,t){1&n&&P(0,"mat-progress-bar",28),2&n&&v("color","primary")}function utn(n,t){if(1&n&&(y(0,"mat-option",32),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function htn(n,t){if(1&n&&(y(0,"mat-option",32),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function ptn(n,t){if(1&n){const e=ht();y(0,"mat-form-field",8),y(1,"mat-label"),H(2,"Month"),_(),y(3,"mat-select",9),se("ngModelChange",function(s){return Le(e),I(2).filterMonth=s}),A(4,htn,2,2,"mat-option",30),_(),_()}if(2&n){const e=I(2);b(3),v("formControl",e.monthControl)("ngModel",e.filterMonth),b(1),v("ngForOf",e.MonthList)}}function ftn(n,t){if(1&n){const e=ht();y(0,"div",29),y(1,"mat-form-field",8),y(2,"mat-label"),H(3,"Year"),_(),y(4,"mat-select",9),se("ngModelChange",function(s){return Le(e),I().filterYear=s}),A(5,utn,2,2,"mat-option",30),_(),_(),A(6,ptn,5,3,"mat-form-field",31),_()}if(2&n){const e=I();b(4),v("formControl",e.yearControl)("ngModel",e.filterYear),b(1),v("ngForOf",e.YearList),b(1),v("ngIf","monthly"===e.chosenType)}}function gtn(n,t){if(1&n){const e=ht();y(0,"button",1),se("click",function(){return Le(e),I().onClearSelection()}),H(1," Clear Selection "),_()}}class T0{constructor(t,e,i,s,o,r){this.drawingMgrSvc=t,this.store=e,this.actions$=i,this.router=s,this.overlayLayerService=o,this.heatRiskAssessmentService=r,this.filterTypeControl=new gc("",Vp.required),this.yearControl=new gc("",Vp.required),this.monthControl=new gc("",Vp.required),this.YearList=[],this.MonthList=[],this.dataPanelState={expandFilterPanel:!0,expandHFPanel:!1,expandCFPanel:!1},this.filterForm=new yy({FilterType:this.filterTypeControl,Year:this.yearControl,Month:this.monthControl}),this.selectedTabIndex=0,this.selectedGridTabIndex=0,this.destroyed$=new Z,this.isIndicatorDriveTabChange=!1,this.overlayLayerService.pingService(),this.YearList=this.heatRiskAssessmentService.getAnalysisYears(),this.MonthList=this.heatRiskAssessmentService.getAnalysisMonths(),this.chosenType="yearly",this.filterYear="2020",this.onFilterData(),this.actions$.pipe(dv(hn.SetSearchLocationOnMap),lt(a=>{console.log("set location",a.payload),this.heatRiskAssessmentService.manageSelectedSearchSA2Location(a.payload)}),et(this.destroyed$)).subscribe(),this.analysisIndicator$.pipe(lt(a=>{a.indexOf("heat")>-1&&1==this.selectedGridTabIndex?(this.selectedGridTabIndex=0,console.log("Tab selection update")):a.indexOf("cold")>-1&&0==this.selectedGridTabIndex&&(this.selectedGridTabIndex=1,console.log("Tab selection update"))}),et(this.destroyed$)).subscribe()}onClearSelection(){var t=this;return Xe(function*(){yield t.heatRiskAssessmentService.clearSA2Selection()})()}onFilterData(){var t=this;return Xe(function*(){t.dataPanelState.expandCFPanel=!0,t.dataPanelState.expandHFPanel=!0,t.dataPanelState.expandFilterPanel=!1,t.selectedTabIndex=0;let e={filterType:t.chosenType,filterYear:parseInt(t.filterYear),filterMonth:parseInt(t.filterMonth)};yield t.heatRiskAssessmentService.manageSA2FilterUpdate(e)})()}searchWithPoint(){this.drawingMgrSvc.setDrawingMode(google.maps.drawing.OverlayType.MARKER,"Point")}onGridTabChanged(t){var e=this;return Xe(function*(){console.log("grid tab change -",t);let i=e.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.sa2AnalysisIndicator),s=i;e.selectedGridTabIndex=t.index;let o=!1;0===e.selectedGridTabIndex&&i.indexOf("cold")>-1?(s=u3.filter(a=>a.coldIndicator===i)[0].heatIndicator,o=!0):1===e.selectedGridTabIndex&&i.indexOf("heat")>-1&&(s=u3.filter(a=>a.heatIndicator===i)[0].coldIndicator,o=!0),o&&e.heatRiskAssessmentService.manageSA2AnalysisIndicatorUpdate(s);let r=e.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.selectedSA2Code16);r&&r.length>0&&(0==t.index?e.heatfactorGrid.scrollToSelection():e.coldfactorGrid.scrollToSelection())})()}ngOnDestroy(){var t=this;return Xe(function*(){yield t.store.dispatch(new Gn.SetDefaultState).toPromise(),yield t.store.dispatch(new hn.SetActiveModule(da.default)).toPromise(),t.destroyed$.next(),t.destroyed$.complete()})()}ngOnInit(){var t=this;return Xe(function*(){yield t.store.dispatch(new hn.SetActiveModule(da.HeatRiskSA2)).toPromise()})()}toSA3Level(){this.router.navigate(["heatriskassessment"])}}var Ff;T0.\u0275fac=function(t){return new(t||T0)(g(Fme),g(zi),g(sg),g(pr),g(Oy),g(Hv))},T0.\u0275cmp=K({type:T0,selectors:[["app-heat-risk-assessment-sa2"]],viewQuery:function(t,e){if(1&t&&(Ae(ltn,5),Ae(ctn,5)),2&t){let i;U(i=W())&&(e.heatfactorGrid=i.first),U(i=W())&&(e.coldfactorGrid=i.first)}},decls:48,vars:14,consts:[["color","primary","fxLayout","row","fxLayoutAlign","space-between center",1,"secondaryToolBar"],["mat-raised-button","","color","third",3,"click"],["mode","indeterminate",3,"color",4,"ngIf"],["orientation","vertical",2,"height","85%"],["size","30%",3,"collapsible"],["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"filterForm",3,"formGroup"],["fxLayout","column","fxLayoutAlign","space-between start"],["fxFlex","","appearance","outline"],[3,"formControl","ngModel","ngModelChange"],["value","yearly"],["value","monthly"],["fxLayout","row","fxLayoutAlign","space-around start",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-around start","fxLayoutGap","15px"],["mat-raised-button","","color","third",3,"click",4,"ngIf"],["href","https://ausenhealth.s3.ap-southeast-2.amazonaws.com/public/Data/Exposure/climate.zip","target","_blank","mat-raised-button","","color","third"],["fxFlex","1 1 auto",3,"selectedIndex","selectedTabChange"],["label","Heat Factor","fxFlexFill",""],["hfgrid",""],["label","Cold Factor","fxFlexFill",""],["cfgrid",""],["orientation","vertical",2,"height","100%"],[2,"min-height","60%","overflow","hidden"],[1,"map-area"],[3,"collapsible"],["color","primary","fxFlexFill","",3,"selectedIndex"],["label","Benchmark","fxFlexFill",""],["label","Temporal","fxFlexFill",""],["mode","indeterminate",3,"color"],["fxLayout","row","fxLayoutAlign","space-around start"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","","appearance","outline",4,"ngIf"],[3,"value"]],template:function(t,e){if(1&t&&(y(0,"mat-toolbar",0),y(1,"span"),H(2,"Heat Risk Assessment SA2 "),y(3,"button",1),se("click",function(){return e.toSA3Level()}),H(4,"Go to SA3 Level"),_(),_(),P(5,"app-map-location-search"),_(),A(6,dtn,1,1,"mat-progress-bar",2),gi(7,"async"),y(8,"kendo-splitter",3),y(9,"kendo-splitter-pane"),y(10,"kendo-splitter"),y(11,"kendo-splitter-pane",4),y(12,"div",5),y(13,"form",6),y(14,"div",7),y(15,"mat-form-field",8),y(16,"mat-label"),H(17,"Filter By"),_(),y(18,"mat-select",9),se("ngModelChange",function(s){return e.chosenType=s}),y(19,"mat-option",10),H(20,"Year"),_(),y(21,"mat-option",11),H(22,"Month"),_(),_(),_(),A(23,ftn,7,4,"div",12),y(24,"div",13),y(25,"button",1),se("click",function(){return e.onFilterData()}),H(26," Filter "),_(),A(27,gtn,2,0,"button",14),gi(28,"async"),y(29,"a",15),H(30,"Download Data"),_(),_(),_(),_(),y(31,"mat-tab-group",16),se("selectedTabChange",function(s){return e.onGridTabChanged(s)}),y(32,"mat-tab",17),P(33,"app-heatrisk-sa2-hf",null,18),_(),y(35,"mat-tab",19),P(36,"app-heatrisk-sa2-cf",null,20),_(),_(),_(),_(),y(38,"kendo-splitter-pane"),y(39,"kendo-splitter",21),y(40,"kendo-splitter-pane",22),P(41,"app-map",23),_(),y(42,"kendo-splitter-pane",24),y(43,"mat-tab-group",25),y(44,"mat-tab",26),P(45,"app-heat-risk-sa2-benchmark"),_(),y(46,"mat-tab",27),P(47,"app-heat-risk-sa2-temporal"),_(),_(),_(),_(),_(),_(),_(),_()),2&t){let i;b(6),v("ngIf",Mi(7,10,e.processing$)),b(5),v("collapsible",!0),b(2),v("formGroup",e.filterForm),b(5),v("formControl",e.filterTypeControl)("ngModel",e.chosenType),b(5),v("ngIf",e.chosenType),b(4),v("ngIf",(null==(i=Mi(28,12,e.selectedSA2Code16$))?null:i.length)>0),b(4),v("selectedIndex",e.selectedGridTabIndex),b(11),v("collapsible",!0),b(1),v("selectedIndex",e.selectedTabIndex)}},directives:[Np,po,fo,Bd,Mq,pt,$C,Vh,wo,gk,pk,_y,kg,ja,Tg,iD,Xc,RC,DC,_u,bB,aX,qB,Ob,Rb,Ic,iE,w1,S1,Wn],pipes:[Hl],styles:["body{height:100%} .mat-tab-body-wrapper{height:100%} .gridcontainerheader{font-size:12px;margin-right:-15px}.filterForm[_ngcontent-%COMP%]{padding:10px}.small-mat-icon[_ngcontent-%COMP%]{font-size:12px}.main-content[_ngcontent-%COMP%]{height:100%;width:100%}.data-area[_ngcontent-%COMP%]{width:25%;height:100vh;background-color:#00008b} .map-group-area{width:75%;height:100vh} .map-group-area .map-area{width:100%;height:60vh} .map-group-area .chart-area{width:100%;height:40vh;background-color:pink} .heatriskgrid .k-grid tr.normal{background-color:#fff} .heatriskgrid .k-grid tr.hrank1{background-color:#a50f15;color:#fff} .heatriskgrid .k-grid tr.hrank2{background-color:#de2d26;color:#fff} .heatriskgrid .k-grid tr.hrank3{background-color:#fb6a4a} .heatriskgrid .k-grid tr.hrank4{background-color:#fcae91} .heatriskgrid .k-grid tr.hrank5{background-color:#fee5d9} .heatriskgrid .k-grid tr.crank1{background-color:#08519c;color:#fff} .heatriskgrid .k-grid tr.crank2{background-color:#3182bd;color:#fff} .heatriskgrid .k-grid tr.crank3{background-color:#6baed6} .heatriskgrid .k-grid tr.crank4{background-color:#bdd7e7} .heatriskgrid .k-grid tr.crank5{background-color:#eff3ff} .heatriskgrid .k-grid tr.k-state-selected{border:3px solid cyan;border-color:#0ff} .heatriskgrid .k-grid tr.k-state-selected td{border-color:#0ff;border-top:inherit;border-bottom:inherit;border-left-width:0px;border-right-width:0px}"]}),nt([rn(n=>n.heatriskassessment.isProcessing)],T0.prototype,"processing$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA2Code16)],T0.prototype,"selectedSA2Code16$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.sa2AnalysisIndicator)],T0.prototype,"analysisIndicator$",void 0),function(n){n.SetBusyState=(()=>{class i{constructor(o){this.payload=o}}return i.type="[MultiCloud] Set Busy State",i})(),n.SetDefaultState=(()=>{class i{constructor(){}}return i.type="[MultiCloud] Set Default State",i})()}(Ff||(Ff={}));let mtn=(()=>{class n{constructor(e){this.httpWrapper=e,this.publicDatasetPrefix="/api/bigquery-data/publicdataset",this.projectDatasetPrefix="/api/bigquery-data/dataset"}listAll(){return this.httpWrapper.get(`${this.projectDatasetPrefix}/list`)}listAllTables(e){return this.httpWrapper.get(`${this.projectDatasetPrefix}/${e}/list`)}getDatasetInfo(e){return this.httpWrapper.get(`${this.projectDatasetPrefix}/${e}/info`)}getTableInfo(e,i){return this.httpWrapper.get(`${this.projectDatasetPrefix}/${e}/${i}/fields`)}listAllPublic(){return this.httpWrapper.get(`${this.publicDatasetPrefix}/list`)}listAllPublicTables(e){return this.httpWrapper.get(`${this.publicDatasetPrefix}/${e}/list`)}getPublicDatasetInfo(e){return this.httpWrapper.get(`${this.publicDatasetPrefix}/${e}/info`)}getPublicTableInfo(e,i){return this.httpWrapper.get(`${this.publicDatasetPrefix}/${e}/${i}/fields`)}runQuery(e){return this.httpWrapper.post(`${this.projectDatasetPrefix}/runquery`,e)}}return n.\u0275fac=function(e){return new(e||n)(V(qA))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ytn=(()=>{class n{constructor(e){this.bigqueryApi=e}getQueryResult(e){var i=this;return Xe(function*(){let s=yield i.bigqueryApi.runQuery({query_string:e}).toPromise();return s&&s.length>0?s[0]:[]})()}getAllDataset(e){var i=this;return Xe(function*(){return e?yield i.bigqueryApi.listAllPublic().toPromise():yield i.bigqueryApi.listAll().toPromise()})()}getAllTables(e,i){var s=this;return Xe(function*(){return e?yield s.bigqueryApi.listAllPublicTables(i).toPromise():yield s.bigqueryApi.listAllTables(i).toPromise()})()}getDatasetInfo(e,i){var s=this;return Xe(function*(){let o=[];return o=e?yield s.bigqueryApi.getPublicDatasetInfo(i).toPromise():yield s.bigqueryApi.getDatasetInfo(i).toPromise(),o&&o.length>0&&o[0]?o[0]:`No dataset information stated for this dataset ${i}`})()}getTableInfo(e,i,s){var o=this;return Xe(function*(){return e?yield o.bigqueryApi.getPublicTableInfo(i,s).toPromise():yield o.bigqueryApi.getTableInfo(i,s).toPromise()})()}findAndFlatOutDataStructure(e,i,s){let o=Object.keys(e[0]).map(a=>a),r=[];if(i&&i.length>0&&(r=i.filter(a=>"DATE"===a.type&&o.indexOf(a.name)>-1||"GEOMETRY"===a.type&&o.indexOf(a.name)>-1||"GEOGRAPHY"===a.type&&o.indexOf(a.name)>-1)),s&&s.length>0&&r.push(s[0]),r&&r.length>0){let a=r.map(c=>c.name),l=[];return e.forEach(c=>{let d={};o.forEach(u=>{d[u]=a.indexOf(u)>-1?c[u].value:c[u]}),l.push(d)}),l}return e}}return n.\u0275fac=function(e){return new(e||n)(V(mtn))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _tn=["thumbContainer"],vtn=["toggleBar"],btn=["input"],Ctn=function(n){return{enterDuration:n}},xtn=["*"],wtn=new ot("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let Stn=0;const Ttn={provide:es,useExisting:He(()=>FNe),multi:!0};class ktn{constructor(t,e){this.source=t,this.checked=e}}const Dtn=XI(gy(hg(ug(class{constructor(n){this._elementRef=n}}))));let FNe=(()=>{class n extends Dtn{constructor(e,i,s,o,r,a){super(e),this._focusMonitor=i,this._changeDetectorRef=s,this.defaults=r,this._onChange=l=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++Stn,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new S,this.toggleChange=new S,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===a}get required(){return this._required}set required(e){this._required=Tn(e)}get checked(){return this._checked}set checked(e){this._checked=Tn(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._inputElement.nativeElement.focus():e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new ktn(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Wc),g(Be),Hc("tabindex"),g(wtn),g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,i){if(1&e&&(Ae(_tn,5),Ae(vtn,5),Ae(btn,5)),2&e){let s;U(s=W())&&(i._thumbEl=s.first),U(s=W())&&(i._thumbBarEl=s.first),U(s=W())&&(i._inputElement=s.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,i){2&e&&(Kf("id",i.id),fe("tabindex",i.disabled?null:-1)("aria-label",null)("aria-labelledby",null),he("mat-checked",i.checked)("mat-disabled",i.disabled)("mat-slide-toggle-label-before","before"==i.labelPosition)("_mat-animation-noopable",i._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[we([Ttn]),N],ngContentSelectors:xtn,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Xt(),y(0,"label",0,1),y(2,"div",2,3),y(4,"input",4,5),se("change",function(o){return i._onChangeEvent(o)})("click",function(o){return i._onInputClick(o)}),_(),y(6,"div",6,7),P(8,"div",8),y(9,"div",9),P(10,"div",10),_(),_(),_(),y(11,"span",11,12),se("cdkObserveContent",function(){return i._onLabelTextChange()}),y(13,"span",13),H(14,"\xa0"),_(),mt(15),_(),_()),2&e){const s=ki(1),o=ki(12);fe("for",i.inputId),b(2),he("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),b(2),v("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex)("checked",i.checked)("disabled",i.disabled),fe("name",i.name)("aria-checked",i.checked.toString())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),b(5),v("matRippleTrigger",s)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Yt(18,Ctn,i._noopAnimations?0:150))}},directives:[Lp,EN],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),n})(),ONe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({}),n})(),Itn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[ONe,dk,vi,IN],ONe,vi]}),n})();function ho(n,t,e,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function vie(n,t){return function(e,i){t(e,i,n)}}function Rs(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function Ftn(n,t){}const LNe=function(n,t){return{$implicit:n,anchor:t}};function Otn(n,t){if(1&n&&(y(0,"div",7),A(1,Ftn,0,0,"ng-template",3),_()),2&n){const e=I();b(1),v("ngIf",e.titleTemplate)("ngTemplateOutlet",e.titleTemplate)("ngTemplateOutletContext",di(3,LNe,e.anchor,e.anchor))}}function Rtn(n,t){}function Ptn(n,t){1&n&&H(0),2&n&&_t(" ",I().templateString," ")}function Ltn(n,t){if(1&n){const e=ht();y(0,"div",8),se("click",function(s){return Le(e),I().onCloseClick(s)}),P(1,"a",9),_()}if(2&n){const e=I();b(1),fe("title",e.closeButtonTitle)}}function Ntn(n,t){1&n&&P(0,"div",10),2&n&&v("ngClass",I().calloutPositionClass())}const Btn={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620825175,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"},NNe=new ot("kendo-ui-tooltip-settings");let bie=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ue({token:n,factory:function(t){return n.\u0275fac(t)}}),n})();function ztn(n,t){return n||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})}function BNe(n){return 9===n.nodeType}function Cie(n,t){if(n.closest)return n.closest(t);const e=Element.prototype.matches?(s,o)=>s.matches(o):(s,o)=>s.msMatchesSelector(o);let i=n;for(;i&&!BNe(i);){if(e(i,t))return i;i=i.parentNode}}function VNe(n,t){return!(!n||BNe(n))&&(n.contains?n.contains(t):n.compareDocumentPosition?!!(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0)}function zNe(n,t,e){const i=n.getBoundingClientRect();return i[t]+i[e]/2}function HNe(n,t){return-1!==n.indexOf(t)}let GNe=(()=>{let n=class{constructor(e,i){this.content=e,this.localizationService=i,this.close=new S,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=(s,o,r)=>{const a={},l="top"===s||"bottom"===s,c="180deg";return r?("top"===s?a.bottom="unset":"bottom"===s?a.top="unset":"left"===s?a.right="unset":"right"===s&&(a.left="unset"),a[s]=-o+"px",a.transform=l?`rotateX(${c})`:`rotateY(${c})`,a):(a.transform=l?"rotateX(0deg)":"rotateY(0deg)",a)},this.direction=i.rtl?"rtl":"ltr"}get cssClasses(){return"k-widget k-tooltip"}get className(){return this.closable}get cssPosition(){return"relative"}ngOnInit(){this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:e})=>this.direction=e?"rtl":"ltr")}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}get closeButtonTitle(){return this.closeTitle||this.localizationService.get("closeTitle")}calloutPositionClass(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]}onCloseClick(e){e.preventDefault(),this.close.emit()}updateCalloutPosition(e,i){if(!this.callout)return;const s=this.content.nativeElement.querySelector(".k-callout"),o="top"===e||"bottom"===e,r=o?"width":"height",a=o?"left":"top",l=o?"marginLeft":"marginTop",c=s.getBoundingClientRect()[r],d=zNe(this.anchor.nativeElement,a,r),u=zNe(this.content.nativeElement,a,r),h=Math.abs(u-d);(h>1||0===h||0===Math.round(h))&&(s.style[l]=-(u-d+c/2)+"px");const f=this.calloutStyles(e,c,i);Object.keys(f).forEach(m=>{s.style[m]=f[m]})}};return n.\u0275fac=function(e){return new(e||n)(g($),g(J))},n.\u0275cmp=K({type:n,selectors:[["kendo-tooltip"]],hostVars:11,hostBindings:function(e,i){2&e&&(fe("dir",i.direction),ov(i.cssClasses),yt("width",i.tooltipWidth,"px")("height",i.tooltipHeight,"px")("position",i.cssPosition),he("k-tooltip-closable",i.className))},inputs:{tooltipWidth:"tooltipWidth",tooltipHeight:"tooltipHeight",titleTemplate:"titleTemplate",anchor:"anchor",closable:"closable",templateRef:"templateRef",templateString:"templateString"},outputs:{close:"close"},features:[we([J,{provide:An,useValue:"kendo.tooltip"}])],decls:7,vars:10,consts:function(){let t;return t=$localize`:kendo.tooltip.closeTitle|The title of the close button␟de53b3f74f2d4a81b5c3f54c0ac1269cb017bd4f␟1245147641110884896:Close`,[["kendoTooltipLocalizedMessages","","closeTitle",t],[1,"k-tooltip-content"],["class","k-tooltip-title",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngIf"],["class","k-tooltip-button",3,"click",4,"ngIf"],["class","k-callout",3,"ngClass",4,"ngIf"],[1,"k-tooltip-title"],[1,"k-tooltip-button",3,"click"],["href","#",1,"k-icon","k-i-close"],[1,"k-callout",3,"ngClass"]]},template:function(e,i){1&e&&(wn(0,0),y(1,"div",1),A(2,Otn,2,6,"div",2),A(3,Rtn,0,0,"ng-template",3),A(4,Ptn,1,1,"ng-template",4),_(),A(5,Ltn,2,1,"div",5),A(6,Ntn,1,1,"div",6)),2&e&&(b(2),v("ngIf",i.titleTemplate),b(1),v("ngIf",i.templateRef)("ngTemplateOutlet",i.templateRef)("ngTemplateOutletContext",di(7,LNe,i.anchor,i.anchor)),b(1),v("ngIf",i.templateString),b(1),v("ngIf",i.closable),b(1),v("ngIf",i.callout))},directives:function(){return[H_,pt,zs,Un]},encapsulation:2}),ho([G("attr.dir"),Rs("design:type",String)],n.prototype,"direction",void 0),ho([Q(),Rs("design:type",S)],n.prototype,"close",void 0),ho([G("class"),Rs("design:type",String),Rs("design:paramtypes",[])],n.prototype,"cssClasses",null),ho([G("class.k-tooltip-closable"),Rs("design:type",Boolean),Rs("design:paramtypes",[])],n.prototype,"className",null),ho([G("style.position"),Rs("design:type",String),Rs("design:paramtypes",[])],n.prototype,"cssPosition",null),ho([G("style.width.px"),p(),Rs("design:type",Number)],n.prototype,"tooltipWidth",void 0),ho([G("style.height.px"),p(),Rs("design:type",Number)],n.prototype,"tooltipHeight",void 0),ho([p(),Rs("design:type",ve)],n.prototype,"titleTemplate",void 0),ho([p(),Rs("design:type",$)],n.prototype,"anchor",void 0),ho([p(),Rs("design:type",Boolean)],n.prototype,"closable",void 0),ho([p(),Rs("design:type",ve)],n.prototype,"templateRef",void 0),ho([p(),Rs("design:type",String)],n.prototype,"templateString",void 0),n=ho([Rs("design:paramtypes",[$,J])],n),n})(),jNe=(()=>{let n=class{constructor(e,i,s,o,r,a){this.tooltipWrapper=e,this.ngZone=i,this.renderer=s,this.popupService=o,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],Ii(Btn),Object.assign(this,r,a),this.ngZone.runOutsideAngular(()=>{const l=this.tooltipWrapper.nativeElement;this.anchorTitleSubscription=Hi(l,"mouseover").pipe(dt(()=>""!==this.filter)).subscribe(c=>{const d=Cie(c.target,this.filter);d&&this.hideElementTitle({nativeElement:d})}),this.mouseOverSubscription=Hi(l,"mouseover").pipe(cg(100),dt(()=>""!==this.filter)).subscribe(c=>this.onMouseOver(c)),this.mouseOutSubscription=Hi(l,"mouseout").pipe(cg(100)).subscribe(c=>this.onMouseOut(c))})}set tooltipTemplate(e){this.template=e}get tooltipTemplate(){return this.template}show(e){if(!this.popupRef)if(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout(()=>this.showContent(this.anchor),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)}hide(){clearTimeout(this.showTimeout);const e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()}toggle(e,i){const s=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),s!==e.nativeElement&&this.hide(),s===e.nativeElement&&"click"===this.showOn&&this.hide(),void 0===i&&(i=!this.popupRef),i?this.show(e):this.hide()}ngOnInit(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()}ngOnChanges(e){e.showOn&&this.subscribeClick()}ngAfterViewChecked(){!this.popupRef||this.anchor&&!((n,t)=>{for(;n&&n!==t;)n=n.parentNode;return n})(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())}ngOnDestroy(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()}showContent(e){!e.nativeElement.getAttribute("data-title")&&!this.template||(this.ngZone.run(()=>{this.openPopup(e),this.bindContent(this.popupRef.content,e)}),this.popupRef.popupAnchorViewportLeave.pipe(jn(1)).subscribe(()=>this.hide()))}bindContent(e,i){const s=e.instance;this.closeClickSubscription=s.close.subscribe(()=>{this.hide()}),this.template?s.templateRef=this.template:s.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(s.titleTemplate=this.titleTemplate),s.closeTitle=this.closeTitle,s.anchor=i,s.callout=this.callout,s.closable=this.closable,s.position=this.position,s.tooltipWidth=this.tooltipWidth,s.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()}hideElementTitle(e){const i=e.nativeElement;i.getAttribute("title")&&(i.setAttribute("data-title",i.getAttribute("title")),i.setAttribute("title",""))}openPopup(e){const i=function(n,t){let e={},i={},s={};switch(n){case"top":e={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},s={horizontal:0,vertical:t};break;case"bottom":e={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},s={horizontal:0,vertical:t};break;case"right":e={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},s={horizontal:t,vertical:0};break;case"left":e={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},s={horizontal:t,vertical:0}}return{anchorAlign:e,popupAlign:i,popupMargin:s}}(this.position,this.offset),o=i.popupAlign,r=i.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:i.anchorAlign,animate:!1,content:GNe,collision:ztn(this.collision,this.position),margin:r,popupAlign:o,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);const a=this.popupRef.content.instance;a.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe(({flip:l})=>{a.updateCalloutPosition(this.position,!0===l.horizontal||!0===l.vertical)})),"hover"===this.showOn&&this.ngZone.runOutsideAngular(()=>{this.popupMouseOutSubscription=Hi(this.popupRef.popupElement,"mouseout").subscribe(c=>this.onMouseOut(c))})}closePopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()}subscribeClick(){this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=Hi(document,"click").pipe(dt(()=>""!==this.filter)).subscribe(e=>this.onMouseClick(e,this.tooltipWrapper.nativeElement)))}onMouseClick(e,i){const s=e.target,o=Cie(s,this.filter),r=this.popupRef&&this.popupRef.popupElement;r&&(r.contains(s)||this.closable)||(i.contains(s)&&o?this.toggle(o,!0):r&&this.hide())}onMouseOver(e){const i=Cie(e.target,this.filter);"hover"===this.showOn&&i&&this.toggle(i,!0)}onMouseOut(e){if("hover"!==this.showOn||this.closable)return;const i=this.popupRef&&this.popupRef.popupElement,s=e.relatedTarget;s&&this.anchor&&VNe(this.anchor.nativeElement,s)||s&&VNe(i,s)||this.hide()}verifyProperties(){if(En()){if(!HNe(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!HNe(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}}};return n.\u0275fac=function(e){return new(e||n)(g($),g(ce),g(Ie),g(Oi),g(bie,8),g(NNe,8))},n.\u0275dir=R({type:n,selectors:[["","kendoTooltip",""]],inputs:{filter:"filter",position:"position",showAfter:"showAfter",callout:"callout",closable:"closable",offset:"offset",tooltipTemplate:"tooltipTemplate",showOn:"showOn",titleTemplate:"titleTemplate",tooltipWidth:"tooltipWidth",tooltipHeight:"tooltipHeight",tooltipClass:"tooltipClass",collision:"collision",closeTitle:"closeTitle"},exportAs:["kendoTooltip"],features:[st]}),ho([p(),Rs("design:type",String)],n.prototype,"filter",void 0),ho([p(),Rs("design:type",String)],n.prototype,"position",void 0),ho([p(),Rs("design:type",ve)],n.prototype,"titleTemplate",void 0),ho([p(),Rs("design:type",String)],n.prototype,"showOn",void 0),ho([p(),Rs("design:type",Number)],n.prototype,"showAfter",void 0),ho([p(),Rs("design:type",Boolean)],n.prototype,"callout",void 0),ho([p(),Rs("design:type",Boolean)],n.prototype,"closable",void 0),ho([p(),Rs("design:type",Number)],n.prototype,"offset",void 0),ho([p(),Rs("design:type",Number)],n.prototype,"tooltipWidth",void 0),ho([p(),Rs("design:type",Number)],n.prototype,"tooltipHeight",void 0),ho([p(),Rs("design:type",String)],n.prototype,"tooltipClass",void 0),ho([p(),Rs("design:type",Object)],n.prototype,"collision",void 0),ho([p(),Rs("design:type",String)],n.prototype,"closeTitle",void 0),ho([p(),Rs("design:type",ve),Rs("design:paramtypes",[ve])],n.prototype,"tooltipTemplate",null),n=ho([vie(4,gt()),vie(5,gt()),vie(5,Rn(NNe)),Rs("design:paramtypes",[$,ce,Ie,Oi,bie,bie])],n),n})();var xie;let H_=xie=class extends yl{constructor(t){super(),this.service=t}};H_.\u0275fac=function(t){return new(t||H_)(g(J))},H_.\u0275dir=R({type:H_,selectors:[["","kendoTooltipLocalizedMessages",""]],inputs:{closeTitle:"closeTitle"},features:[we([{provide:yl,useExisting:He(()=>xie)}]),N]}),ho([p(),Rs("design:type",String)],H_.prototype,"closeTitle",void 0),H_=xie=ho([Rs("design:paramtypes",[J])],H_);const Gtn=[ql];let $Ne=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,...Gtn]]}),n})();const jtn=["kendoResultGrid"];function $tn(n,t){1&n&&P(0,"mat-progress-bar",38),2&n&&v("color","primary")}function Utn(n,t){if(1&n&&P(0,"kendo-grid-string-filter-cell",39),2&n){const e=t.$implicit,i=t.column;v("showOperators",!1)("column",i)("filter",e)}}function Wtn(n,t){1&n&&H(0," Please select a dataset ")}function qtn(n,t){1&n&&H(0," Please select a dataset, a table to populate the table schema here ")}function Xtn(n,t){if(1&n&&(y(0,"span"),H(1),_()),2&n){const e=t.$implicit;b(1),un(e.nativeElement.textContent)}}function Ytn(n,t){if(1&n){const e=ht();y(0,"button",40),se("click",function(){return Le(e),I().plotDataOnMap()}),H(1,"Plot on map"),_()}}function Ktn(n,t){1&n&&H(0),2&n&&_t(" ",t.$implicit.field," ")}function Ztn(n,t){if(1&n&&(y(0,"kendo-grid-column",41),A(1,Ktn,1,1,"ng-template",42),_()),2&n){const e=t.$implicit,i=I();kP("field",e.field),v("hidden",i.QHiddenCol.indexOf(e.field)>-1)}}const wie=function(){return{mode:"single"}},F6=function(){return{allowUnsort:!1,mode:"single"}},Qtn=function(){return{mode:"multiple",checkboxOnly:!0}},Jtn=function(){return{filter:!1}},enn=function(){return{filter:!0}};class sE{constructor(t,e){this.store=t,this.multiCloudAnalyticService=e,this.txtSQLQueryInput=new gc("",Vp.required),this.queryForm=new yy({QueryText:this.txtSQLQueryInput}),this.QHiddenCol=["geometry"],this.qResultColumns=[],this.dataPanelState={expandQueryBuilderPanel:!0,expandQueryPanel:!0,expandResultPanel:!1}}filterChange(t){this.filter=t,this.loadgridDatasetList()}loadgridDatasetList(){this.gridDatasetList=Kp(this.datasetList,this.filter)}datasetSelectionChange(t){var e=this;return Xe(function*(){e.selectedDatasetId=t.selectedRows[0].dataItem.name,e.datasetDescription=yield e.multiCloudAnalyticService.getDatasetInfo(e.publicDatasetPool,e.selectedDatasetId),e.selectedTableSchema=[],e.selectedFields=[],e.datatableList=(yield e.multiCloudAnalyticService.getAllTables(e.publicDatasetPool,e.selectedDatasetId)).map(i=>({name:i}))})()}datatableSelectionChange(t){var e=this;return Xe(function*(){e.selectedDatatableId=t.selectedRows[0].dataItem.name,e.selectedFields=[],e.selectedTableSchema=yield e.multiCloudAnalyticService.getTableInfo(e.publicDatasetPool,e.selectedDatasetId,e.selectedDatatableId)})()}dataFieldsSelectionChange(){if(this.geographyField=[],this.canDisplayOnMap=!1,this.selectedFields.length>0){let e=this.selectedFields.map(s=>s).join(","),i=`${this.selectedDatasetId}.${this.selectedDatatableId}`;this.publicDatasetPool&&(i="bigquery-public-data."+i),this.sqlQuery=`\n select\n ${e}\n FROM\n \`${i}\` \n LIMIT 100\n `;for(var t=0;to.name===this.selectedFields[t])[0];"GEOGRAPHY"===s.type&&(this.geographyField.push(s),this.canDisplayOnMap=!0)}}}plotDataOnMap(){var t=this;return Xe(function*(){yield t.store.dispatch(new Ff.SetBusyState(!0)).toPromise(),yield t.store.dispatch(new hn.DispatchGeojsonData({geojsonData:t.queryResult,geofieldName:t.geographyField[0].name})).toPromise(),yield t.store.dispatch(new Ff.SetBusyState(!1)).toPromise()})()}onQuery(){var t=this;return Xe(function*(){yield t.store.dispatch(new Ff.SetBusyState(!0)).toPromise();try{t.canDisplayOnMap=!1;let e=yield t.multiCloudAnalyticService.getQueryResult(t.sqlQuery);t.queryResult=[],t.qResultColumns=[],e&&e.length>0&&(t.qResultColumns=Object.keys(e[0]).map(i=>{const s=new oi;return s.field=i,s}),t.qResultColumns&&t.qResultColumns.length>0&&t.resultGrid.columns.reset(t.qResultColumns),t.queryResult=t.multiCloudAnalyticService.findAndFlatOutDataStructure(e,t.selectedTableSchema,t.geographyField),t.geographyField.length>0&&(t.canDisplayOnMap=t.queryResult[0].hasOwnProperty(t.geographyField[0].name))),t.dataPanelState.expandQueryBuilderPanel=!1,t.dataPanelState.expandResultPanel=!0}catch(e){console.log(e)}yield t.store.dispatch(new Ff.SetBusyState(!1)).toPromise()})()}publicPoolChange(t){var e=this;return Xe(function*(){e.dataPanelState.expandQueryBuilderPanel=!0,e.publicDatasetPool=t.checked,e.resetDataSetListByDataPool()})()}resetDataSetListByDataPool(){var t=this;return Xe(function*(){yield t.store.dispatch(new Ff.SetBusyState(!0)).toPromise();let e=yield t.multiCloudAnalyticService.getAllDataset(t.publicDatasetPool);t.queryResult=[],t.selectedFields=[],t.datatableList=[],t.geographyField=[],t.datasetList=e.map(i=>({name:i})),t.datasetDescription="",t.selectedDatasetId="",t.selectedDatatableId="",t.canDisplayOnMap=!1,t.loadgridDatasetList(),yield t.store.dispatch(new Ff.SetBusyState(!1)).toPromise()})()}ngOnInit(){var t=this;return Xe(function*(){yield t.store.dispatch(new hn.SetActiveModule(da.MultiCloudHealth)).toPromise(),t.publicDatasetPool=!1,yield t.resetDataSetListByDataPool(),t.sqlQuery="\n select\n Longitude,Latitude,SA4_NAME16,SA4_CODE16,STE_CODE16,geometry\n FROM\n `healthoutcomedata.sa2centerpoints` \n where STE_CODE16=3 \n LIMIT 100\n ",t.geographyField=[],t.geographyField.push({name:"geometry",type:"GEOGRAPHY"})})()}ngOnDestroy(){var t=this;return Xe(function*(){yield t.store.dispatch(new Ff.SetDefaultState).toPromise(),yield t.store.dispatch(new hn.SetActiveModule(da.default)).toPromise()})()}}function tnn(n,t){1&n&&P(0,"kendo-chart-title",8),2&n&&v("text","Indicator: "+I().analysisIndicatorDisplay)}function nnn(n,t){if(1&n&&P(0,"kendo-chart-series-item",9),2&n){const e=t.$implicit,i=I();v("name",e.abbrev)("data",e.climateForecast)("field",i.analysisIndicator)}}sE.\u0275fac=function(t){return new(t||sE)(g(zi),g(ytn))},sE.\u0275cmp=K({type:sE,selectors:[["app-multi-cloud-health-data-analysis"]],viewQuery:function(t,e){if(1&t&&Ae(jtn,5),2&t){let i;U(i=W())&&(e.resultGrid=i.first)}},decls:72,vars:55,consts:[["color","primary",1,"secondaryToolBar"],["mode","indeterminate",3,"color",4,"ngIf"],["orientation","vertical",2,"height","90%"],["size","50%",3,"collapsible"],["multi",""],[3,"expanded"],["panelH",""],[3,"checked","change"],[1,"datasourceselection"],["fxLayout","column","fxLayoutAlign","start start"],["fxLayout","row","fxLayoutAlign","space-around start",1,"selectionContainer"],[1,"datalistContainer",3,"data","height","filter","filterable","selectable","reorderable","resizable","sortable","filterChange","selectionChange"],["kendoDatasetListGrid",""],["field","name","title","Dataset Name"],["kendoGridFilterCellTemplate",""],[1,"datalistContainer",3,"data","height","selectable","reorderable","resizable","sortable","selectionChange"],["field","name","title","Table Name"],["kendoGridNoRecordsTemplate",""],["kendoGridSelectBy","name","kendoTooltip","",1,"datalistContainer",3,"data","height","selectable","reorderable","resizable","selectedKeys","columnMenu","tooltipTemplate","sortable","selectionChange"],["kendoTableGrid",""],[3,"width"],["field","name","title","Name"],["field","type","title","Type",3,"hidden"],["field","description","title","Description"],["tttemplate",""],[3,"formGroup"],["fxLayout","column","fxLayoutAlign","space-between start"],["appearance","fill",1,"sqlinputText"],["matInput","","placeholder","Add query here and run...","spellcheck","false",3,"formControl","ngModel","ngModelChange"],["mat-raised-button","","color","third",3,"click"],[1,"k-indicator-container"],[1,"gridcontainerheader"],[3,"click",4,"ngIf"],[3,"data","height","selectable","columnMenu","reorderable","resizable","sortable"],["kendoResultGrid",""],["ngFor","",3,"ngForOf"],[2,"min-height","60%","overflow","hidden"],[1,"map-area"],["mode","indeterminate",3,"color"],[3,"showOperators","column","filter"],[3,"click"],[3,"field","hidden"],["kendoGridHeaderTemplate",""]],template:function(t,e){if(1&t){const i=ht();y(0,"mat-toolbar",0),H(1,"MultiCloud Heat Health Data Analysis"),_(),A(2,$tn,1,1,"mat-progress-bar",1),gi(3,"async"),y(4,"kendo-splitter",2),y(5,"kendo-splitter-pane"),y(6,"kendo-splitter"),y(7,"kendo-splitter-pane",3),y(8,"mat-accordion",4),y(9,"mat-expansion-panel",5),y(10,"mat-expansion-panel-header",null,6),y(12,"mat-panel-title"),H(13," Data Source (Use public data "),y(14,"mat-slide-toggle",7),se("change",function(o){return Le(i),ki(11)._toggle(),e.publicPoolChange(o)}),_(),H(15,") "),_(),y(16,"mat-panel-description"),H(17," Please select the data source to build the query "),_(),_(),y(18,"form",8),y(19,"mat-card",9),y(20,"div",10),y(21,"kendo-grid",11,12),se("filterChange",function(o){return e.filterChange(o)})("selectionChange",function(o){return e.datasetSelectionChange(o)}),y(23,"kendo-grid-column",13),A(24,Utn,1,3,"ng-template",14),_(),_(),y(25,"kendo-grid",15,12),se("selectionChange",function(o){return e.datatableSelectionChange(o)}),P(27,"kendo-grid-column",16),A(28,Wtn,1,0,"ng-template",17),_(),y(29,"kendo-grid",18,19),se("selectionChange",function(){return e.dataFieldsSelectionChange()}),P(31,"kendo-grid-checkbox-column",20),P(32,"kendo-grid-column",21),P(33,"kendo-grid-column",22),P(34,"kendo-grid-column",23),A(35,qtn,1,0,"ng-template",17),_(),A(36,Xtn,2,1,"ng-template",null,24,Ls),_(),_(),_(),_(),y(38,"mat-expansion-panel",5),y(39,"mat-expansion-panel-header"),y(40,"mat-panel-title"),H(41," Query "),_(),y(42,"mat-panel-description"),H(43," Please enter query and load the data "),_(),_(),y(44,"form",25),y(45,"div",26),y(46,"mat-form-field",27),y(47,"mat-label"),H(48,"Query"),_(),y(49,"textarea",28),se("ngModelChange",function(o){return e.sqlQuery=o}),H(50," "),_(),_(),y(51,"button",29),se("click",function(){return e.onQuery()}),H(52," Run "),_(),_(),_(),_(),y(53,"mat-expansion-panel",5),y(54,"mat-expansion-panel-header"),y(55,"mat-panel-title"),H(56," Result "),_(),y(57,"mat-panel-description"),H(58," analysis information about multi cloud data "),_(),_(),y(59,"div",30),H(60,"Please click "),y(61,"mat-icon",31),H(62,"more_vert"),_(),H(63," on the columns for more functionality "),A(64,Ytn,2,0,"button",32),_(),y(65,"kendo-grid",33,34),A(67,Ztn,2,2,"ng-template",35),_(),_(),_(),_(),y(68,"kendo-splitter-pane"),y(69,"kendo-splitter",2),y(70,"kendo-splitter-pane",36),P(71,"app-map",37),_(),_(),_(),_(),_(),_()}if(2&t){const i=ki(37);b(2),v("ngIf",Mi(3,43,e.processing$)),b(5),v("collapsible",!0),b(2),v("expanded",e.dataPanelState.expandQueryBuilderPanel),b(5),v("checked",e.publicDatasetPool),b(7),v("data",e.gridDatasetList)("height",350)("filter",e.filter)("filterable",!0)("selectable",si(45,wie))("reorderable",!0)("resizable",!0)("sortable",si(46,F6)),b(4),v("data",e.datatableList)("height",350)("selectable",si(47,wie))("reorderable",!0)("resizable",!0)("sortable",si(48,F6)),b(4),v("data",e.selectedTableSchema)("height",350)("selectable",si(49,Qtn))("reorderable",!0)("resizable",!0)("selectedKeys",e.selectedFields)("columnMenu",si(50,Jtn))("tooltipTemplate",i)("sortable",si(51,F6)),b(2),v("width",37),b(2),v("hidden",!0),b(5),v("expanded",e.dataPanelState.expandQueryPanel),b(6),v("formGroup",e.queryForm),b(5),v("formControl",e.txtSQLQueryInput)("ngModel",e.sqlQuery),b(4),v("expanded",e.dataPanelState.expandResultPanel),b(11),v("ngIf",e.canDisplayOnMap),b(1),v("data",e.queryResult)("height",410)("selectable",si(52,wie))("columnMenu",si(53,enn))("reorderable",!0)("resizable",!0)("sortable",si(54,F6)),b(2),v("ngForOf",e.qResultColumns)}},directives:[Np,pt,$C,Vh,g8,Bb,Vb,bO,FNe,IFe,gk,pk,OC,qN,po,fo,ao,oi,dM,gw,fm,jNe,yf,_y,kg,Tg,wB,pg,Xc,RC,Bd,gl,Wn,Ic,S1,mM,jF],pipes:[Hl],styles:[".sqlinputText{box-sizing:border-box;width:100%} .sqlinputText textarea{height:200px} .datasourceselection{font-size:12px} .datasourceselection .selectionContainer{height:350px} .k-checkbox{height:16px;width:16px}.datalistContainer[_ngcontent-%COMP%]{padding:1px}.datalistContainer[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:12px;height:32px;padding:1px 5px}.datalistContainer[_ngcontent-%COMP%] .datalist[_ngcontent-%COMP%]{font-size:10px;height:310px;min-width:150px;max-width:250px;overflow:auto}.datalistContainer[_ngcontent-%COMP%] .datalist[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.datalistContainer[_ngcontent-%COMP%] .datalistinfo[_ngcontent-%COMP%]{overflow:auto;font-size:10px}"]}),nt([rn(n=>n.multicloud.isProcessing)],sE.prototype,"processing$",void 0);class T1{constructor(t){this.store=t,this.destroyed$=new Z,this.minvalue=0,this.maxvalue=0,this.baseUnit="years",this.analysisResult$.pipe(lt(e=>{this.GenerateChartSeries(e)}),et(this.destroyed$)).subscribe(),this.indicator$.pipe(lt(e=>{this.analysisIndicator=e,this.analysisIndicatorDisplay=lA.filter(i=>i.key===this.analysisIndicator)[0].value}),et(this.destroyed$)).subscribe()}GenerateChartSeries(t){switch(t.resultType){case go.State:this.stateSeries=[],t.stateResult.forEach(i=>{let s=this.stateSeries.findIndex(r=>r.id===i.ste_code16),o=Object.assign({},i);s>-1?this.stateSeries[s].climateForecast.push(o):this.stateSeries.push({id:o.ste_code16,name:o.name,abbrev:o.abbrev,climateForecast:[o]})}),this.stateSeries.sort((i,s)=>i.id>s.id?1:-1);let e=this.store.selectSnapshot(i=>i.heatclimatechange.rankingList);this.maxvalue=e[0].max,this.minvalue=e[4].min;break;default:console.log("no result type error: ",t.resultType)}}ngOnInit(){this.analysisIndicator=this.store.selectSnapshot(t=>t.heatclimatechange.indicator),this.analysisIndicatorDisplay=lA.filter(t=>t.key===this.analysisIndicator)[0].value}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}T1.\u0275fac=function(t){return new(t||T1)(g(zi))},T1.\u0275cmp=K({type:T1,selectors:[["app-climate-change-forecast-chart"]],decls:11,vars:5,consts:[["fxFlexFill","",2,"height","100%"],[3,"min","max"],["position","bottom","font","9pt sans-serif",3,"text",4,"ngIf"],["position","bottom","orientation","horizontal"],["format","{0}"],["type","line","categoryField","year",3,"name","data","field",4,"ngFor","ngForOf"],[3,"baseUnit"],["rotation","auto"],["position","bottom","font","9pt sans-serif",3,"text"],["type","line","categoryField","year",3,"name","data","field"]],template:function(t,e){1&t&&(y(0,"kendo-chart",0),y(1,"kendo-chart-value-axis"),P(2,"kendo-chart-value-axis-item",1),_(),A(3,tnn,1,1,"kendo-chart-title",2),P(4,"kendo-chart-legend",3),P(5,"kendo-chart-tooltip",4),y(6,"kendo-chart-series"),A(7,nnn,1,3,"kendo-chart-series-item",5),_(),y(8,"kendo-chart-category-axis"),y(9,"kendo-chart-category-axis-item",6),P(10,"kendo-chart-category-axis-item-labels",7),_(),_(),_()),2&t&&(b(2),v("min",e.minvalue)("max",e.maxvalue),b(1),v("ngIf",e.analysisIndicatorDisplay),b(4),v("ngForOf",e.stateSeries),b(2),v("baseUnit",e.baseUnit))},directives:[dr,wo,xd,sc,pt,yd,Cd,Fc,Wn,Qu,ic,Ws,bd,va],styles:[""]}),nt([rn(n=>n.heatclimatechange.result)],T1.prototype,"analysisResult$",void 0),nt([rn(n=>n.heatclimatechange.indicator)],T1.prototype,"indicator$",void 0);const inn=["kendosummaryGrid"];function snn(n,t){if(1&n){const e=ht();y(0,"button",9),se("click",function(){return Le(e),I().onClearSelection()}),H(1," Clear Selection "),_()}}function onn(n,t){if(1&n&&P(0,"kendo-grid-column",10),2&n){const e=t.$implicit;v("field",e.field)("title",e.title)("hidden",e.hidden)}}const rnn=function(){return{filter:!0}},ann=function(){return{mode:"single"}},lnn=function(){return{allowUnsort:!1,mode:"single"}};class k0{constructor(t,e,i){this.store=t,this.router=e,this.climateChangeAssessmentSvc=i,this.isSA3=!1,this.gvSort=[{field:"year",dir:"asc"}],this.gridColumns=Dtt,this.destroyed$=new Z,this.selectbyColumn="ste_code16",this.analysisResult$.pipe(lt(()=>{this.loadGridData()}),et(this.destroyed$)).subscribe(),this.selectedSA3Code$.pipe(lt(s=>{switch(this.store.selectSnapshot(r=>r.heatclimatechange.timeslidingresult).resultType){case go.SA3:this.climateChangeAssessmentSvc.manageSelectedSA3Code(s),s?(this.selectedCode.length>0&&this.selectedCode[0]!==s&&(this.selectedCode=[s],this.scrollToSelection()),0===this.selectedCode.length&&(this.selectedCode=[s],this.scrollToSelection())):this.selectedCode=[]}}),et(this.destroyed$)).subscribe()}gvSortChange(t){this.gvSort=t,this.loadGridData()}loadGridData(){let t=this.store.selectSnapshot(e=>e.heatclimatechange.timeslidingresult);try{switch(t.resultType){case go.State:let e=Kp(t.stateResult,this.filter);this.gvDataBinder={data:zh(e,this.gvSort),total:e.length};break;case go.SA3:this.gridColumns=Mtt,this.selectbyColumn="sa3_code16",this.isSA3=!0;let i=Kp(t.sa3Result,this.filter);this.gvDataBinder={data:zh(i,this.gvSort),total:i.length};break;default:console.log("no result type error: ",t.resultType)}}catch(e){console.log("load grid data"),console.log(e)}}scrollToSelection(){setTimeout(()=>{let e=this.resultGrid.nativeElement.querySelector(".k-state-selected");e&&e.scrollIntoView()},200)}getRowClass(t){let e={};return e[t.dataItem.cssclass]=!0,e}filterChange(t){this.filter=t,this.loadGridData()}selectionChange(t){var e=this;return Xe(function*(){if(console.log("Data item = "+t.selectedRows[0]+" and selectbycolumn is "+e.selectbyColumn),"sa3_code16"===e.selectbyColumn){let i=t.selectedRows[0].dataItem.sa3_code16;yield e.store.dispatch(new ds.SetSelectedSA3Code(i)).toPromise()}else if("ste_code16"==e.selectbyColumn){let i=t.selectedRows[0].dataItem.ste_code16,s=i,o=t.selectedRows[0].dataItem.abbrev;e.router.url.indexOf("climatechange/sa3")>-1&&(e.climateChangeAssessmentSvc.performSa3LevelForAState(s),e.climateChangeAssessmentSvc.loadYearlyTimeslidingData(2e3),e.climateChangeAssessmentSvc.zoomToSelectState(s)),yield e.store.dispatch(new ds.SetSelectedSA3Code(null)).toPromise(),e.router.navigate(["climatechange/sa3"],{queryParams:{state:o,code:s}}),console.log(i)}})()}onClearSelection(){var t=this;return Xe(function*(){t.selectedCode=[],yield t.store.dispatch(new ds.SetSelectedSA3Code(null)).toPromise()})()}ngOnInit(){this.selectedCode=[]}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}k0.\u0275fac=function(t){return new(t||k0)(g(zi),g(pr),g(jw))},k0.\u0275cmp=K({type:k0,selectors:[["app-climatechange-summary"]],viewQuery:function(t,e){if(1&t&&Ae(inn,5,$),2&t){let i;U(i=W())&&(e.resultGrid=i.first)}},decls:13,vars:19,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill","",1,"climateChangeGrid"],[1,"k-indicator-container","gridtophead"],[1,"gridcontainerheader"],["mat-raised-button","","color","third",3,"click",4,"ngIf"],["href","https://ausenhealth.s3.ap-southeast-2.amazonaws.com/public/Data/Forecast/climateforecast.zip","target","_blank","mat-raised-button","","color","third"],["fxFlex","1 1 auto",2,"height","300px"],[3,"data","loading","sort","filter","columnMenu","selectedKeys","selectable","kendoGridSelectBy","reorderable","rowClass","resizable","sortable","filterChange","sortChange","selectionChange"],["kendosummaryGrid",""],["filter","numeric",3,"field","title","hidden",4,"ngFor","ngForOf"],["mat-raised-button","","color","third",3,"click"],["filter","numeric",3,"field","title","hidden"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"div",1),H(2,"Please click "),y(3,"mat-icon",2),H(4,"more_vert"),_(),H(5," on the columns for more functionality "),A(6,snn,2,0,"button",3),y(7,"a",4),H(8,"Download Data"),_(),_(),y(9,"div",5),y(10,"kendo-grid",6,7),se("filterChange",function(s){return e.filterChange(s)})("sortChange",function(s){return e.gvSortChange(s)})("selectionChange",function(s){return e.selectionChange(s)}),A(12,onn,1,3,"kendo-grid-column",8),_(),_(),_()),2&t&&(b(6),v("ngIf",e.isSA3),b(4),yt("height",100,"%"),v("data",e.gvDataBinder)("loading",e.loading)("sort",e.gvSort)("filter",e.filter)("columnMenu",si(16,rnn))("selectedKeys",e.selectedCode)("selectable",si(17,ann))("kendoGridSelectBy",e.selectbyColumn)("reorderable",!0)("rowClass",e.getRowClass)("resizable",!0)("sortable",si(18,lnn)),b(2),v("ngForOf",e.gridColumns))},directives:[po,fo,wo,gl,pt,bB,ja,ao,fm,Wn,Bd,oi],styles:[".climateChangeGrid .k-grid tr.normal{background-color:#fff} .climateChangeGrid .k-grid tr.hrank1{background-color:#a50f15;color:#fff} .climateChangeGrid .k-grid tr.hrank2{background-color:#de2d26;color:#fff} .climateChangeGrid .k-grid tr.hrank3{background-color:#fb6a4a} .climateChangeGrid .k-grid tr.hrank4{background-color:#fcae91} .climateChangeGrid .k-grid tr.hrank5{background-color:#fee5d9} .climateChangeGrid .k-grid tr.crank1{background-color:#08519c;color:#fff} .climateChangeGrid .k-grid tr.crank2{background-color:#3182bd;color:#fff} .climateChangeGrid .k-grid tr.crank3{background-color:#6baed6} .climateChangeGrid .k-grid tr.crank4{background-color:#bdd7e7} .climateChangeGrid .k-grid tr.crank5{background-color:#eff3ff} .climateChangeGrid .k-grid tr.k-state-selected{border:3px solid cyan;border-color:#0ff} .climateChangeGrid .k-grid tr.k-state-selected td{border-color:#0ff;border-top:inherit;border-bottom:inherit;border-left-width:0px;border-right-width:0px}"]}),nt([rn(n=>n.heatclimatechange.timeslidingresult)],k0.prototype,"analysisResult$",void 0),nt([rn(n=>n.heatclimatechange.selectedSA3Code)],k0.prototype,"selectedSA3Code$",void 0);const cnn=["timeslider"];function dnn(n,t){if(1&n){const e=ht();y(0,"button",5),se("click",function(){return Le(e),I().onPlay()}),y(1,"mat-icon"),H(2,"play_arrow"),_(),_()}}function unn(n,t){if(1&n){const e=ht();y(0,"button",6),se("click",function(){return Le(e),I().onPause()}),y(1,"mat-icon"),H(2,"pause"),_(),_()}}class k1{constructor(t){this.climateChangeAssessmentSvc=t,this.minYear=1,this.maxYear=6,this.selectedYear=1,this.destroyed$=new Z,this.minYear=1,this.maxYear=6,this.selectedYear=1,this.analysisResult$.pipe(lt(()=>{this.dynamicloadYearRangeFromResult()}),et(this.destroyed$)).subscribe()}onChange(t){let e=this.yearKayValue.find(i=>parseInt(i.key)===parseInt(t)).value;this.climateChangeAssessmentSvc.loadYearlyTimeslidingData(parseInt(e))}onPlay(){this.isplay=!0,this.PlayNext(),this.timerHandle=setInterval(()=>this.PlayNext(),5e3)}onPause(){this.isplay=!1,clearInterval(this.timerHandle)}PlayNext(){this.selectedYear=this.selectedYear==this.maxYear?this.minYear:this.selectedYear+1;let t=this.yearKayValue.find(e=>parseInt(e.key)===this.selectedYear).value;this.climateChangeAssessmentSvc.loadYearlyTimeslidingData(parseInt(t))}loadYearRangeFromResult(){this.yearKayValue=kq_yearKeyValue,this.minYear=parseInt(this.yearKayValue[0].key),this.maxYear=parseInt(this.yearKayValue[this.yearKayValue.length-1].key),this.selectedYear=this.minYear,this.climateChangeAssessmentSvc.loadYearlyTimeslidingData(parseInt(this.yearKayValue[0].value))}dynamicloadYearRangeFromResult(){var t=this;return Xe(function*(){let e=yield t.climateChangeAssessmentSvc.getAvailableForecastYears();if(e&&e.length>0){t.yearKayValue=[];for(var i=0;i{console.log("Set timeout and trying to change the label");let s=t.timeSlider.nativeElement;for(var o=0;on.heatclimatechange.result)],k1.prototype,"analysisResult$",void 0);class oE{constructor(t,e){this.store=t,this.climateChange=e,this.selectedYear=1,this.climateChange.preloadYearlyStatedata(),console.log("climate change main - constructor")}ngOnDestroy(){var t=this;return Xe(function*(){yield t.store.dispatch(new ds.SetDefaultState).toPromise(),yield t.store.dispatch(new hn.SetActiveModule(da.default)).toPromise()})()}ngOnInit(){var t=this;return Xe(function*(){yield t.store.dispatch(new hn.SetActiveModule(da.ClimateChange)).toPromise(),console.log("climate change main on init")})()}}function pnn(n,t){1&n&&P(0,"kendo-chart-title",8),2&n&&v("text","Indicator: "+I().analysisIndicatorDisplay)}function fnn(n,t){if(1&n&&P(0,"kendo-chart-series-item",9),2&n){const e=t.$implicit,i=I();v("name",e.name)("visible",1==e.id)("data",e.climateForecast)("field",i.analysisIndicator)}}oE.\u0275fac=function(t){return new(t||oE)(g(zi),g(jw))},oE.\u0275cmp=K({type:oE,selectors:[["app-climate-change-assessment"]],decls:16,vars:5,consts:[["color","primary",1,"secondaryToolBar"],["mode","indeterminate",3,"color",4,"ngIf"],["orientation","vertical",2,"height","85%"],["size","40%",3,"collapsible"],["orientation","vertical",2,"height","100%"],[2,"min-height","40%"],[3,"collapsible"],[1,"map-area"],[1,"maptimeslider"],["mode","indeterminate",3,"color"]],template:function(t,e){1&t&&(y(0,"mat-toolbar",0),H(1,"Heat Climate Change Assessment"),_(),A(2,hnn,1,1,"mat-progress-bar",1),gi(3,"async"),y(4,"kendo-splitter",2),y(5,"kendo-splitter-pane"),y(6,"kendo-splitter"),y(7,"kendo-splitter-pane",3),y(8,"kendo-splitter",4),y(9,"kendo-splitter-pane",5),P(10,"app-climate-change-forecast-chart"),_(),y(11,"kendo-splitter-pane",6),P(12,"app-climatechange-summary"),_(),_(),_(),y(13,"kendo-splitter-pane"),P(14,"app-map",7),P(15,"app-climate-change-timeslider",8),_(),_(),_(),_()),2&t&&(b(2),v("ngIf",Mi(3,3,e.processing$)),b(5),v("collapsible",!0),b(4),v("collapsible",!0))},directives:[Np,pt,$C,Vh,T1,k0,Ic,k1,S1],pipes:[Hl],styles:["body{height:100%;overflow:auto} .mat-tab-body-wrapper{height:100%}.small-mat-icon[_ngcontent-%COMP%]{font-size:12px}.main-content[_ngcontent-%COMP%]{height:100%;width:100%}.data-area[_ngcontent-%COMP%]{width:25%;height:100vh;background-color:#00008b} .map-group-area{width:75%;height:100vh} .map-group-area .map-area{width:100%;height:60vh} .map-group-area .chart-area{width:100%;height:40vh;background-color:pink}.maptimeslider[_ngcontent-%COMP%]{position:absolute;bottom:35px;left:30px;width:100%}"]}),nt([rn(n=>n.heatclimatechange.isProcessing)],oE.prototype,"processing$",void 0);class D1{constructor(t,e){var i=this;this.store=t,this.climateChangeAssessmentSvc=e,this.destroyed$=new Z,this.minvalue=0,this.maxvalue=0,this.baseUnit="years",this.indicator$.pipe(lt(function(){var s=Xe(function*(o){i.analysisIndicator=o,i.analysisIndicatorDisplay=lA.filter(r=>r.key===i.analysisIndicator)[0].value,yield i.tryAndLoadSA3MonthlySeries()});return function(o){return s.apply(this,arguments)}}()),et(this.destroyed$)).subscribe(),this.selectedSA3Code$.pipe(lt(function(){var s=Xe(function*(o){o?yield i.tryAndLoadSA3MonthlySeries():i.sa3ByMonthSeries=[]});return function(o){return s.apply(this,arguments)}}()),et(this.destroyed$)).subscribe()}tryAndLoadSA3MonthlySeries(){var t=this;return Xe(function*(){let e=yield t.climateChangeAssessmentSvc.getSelectedSA3Monthly();e=e.filter(i=>null!=i[t.analysisIndicator]),t.GenerateTemporalSeries(e)})()}GenerateTemporalSeries(t){this.sa3ByMonthSeries=[],t.forEach(i=>{let s=this.sa3ByMonthSeries.findIndex(o=>o.id==i.month);s>-1?this.sa3ByMonthSeries[s].climateForecast.push(i):this.sa3ByMonthSeries.push({id:i.month,name:aA[i.month],climateForecast:[i]})}),this.sa3ByMonthSeries.sort((i,s)=>i.id>s.id?1:-1);let e=this.store.selectSnapshot(i=>i.heatclimatechange.rankingList);this.maxvalue=e[0].max,this.minvalue=e[4].min}ngOnInit(){this.analysisIndicator=this.store.selectSnapshot(t=>t.heatclimatechange.indicator),this.analysisIndicatorDisplay=lA.filter(t=>t.key===this.analysisIndicator)[0].value}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}function gnn(n,t){1&n&&P(0,"mat-progress-bar",12),2&n&&v("color","primary")}function mnn(n,t){1&n&&P(0,"app-climate-change-forecast-sa3")}function ynn(n,t){if(1&n&&(y(0,"div",13),A(1,mnn,1,0,"app-climate-change-forecast-sa3",14),gi(2,"async"),_()),2&n){const e=I();b(1),v("ngIf",Mi(2,1,e.selectedSA3Code$))}}D1.\u0275fac=function(t){return new(t||D1)(g(zi),g(jw))},D1.\u0275cmp=K({type:D1,selectors:[["app-climate-change-forecast-sa3"]],decls:11,vars:5,consts:[["fxFlexFill","",2,"height","100%"],[3,"min","max"],["position","bottom","font","9pt sans-serif",3,"text",4,"ngIf"],["position","bottom","orientation","horizontal"],["format","{0}"],["type","line","categoryField","year",3,"name","visible","data","field",4,"ngFor","ngForOf"],[3,"baseUnit"],["rotation","auto"],["position","bottom","font","9pt sans-serif",3,"text"],["type","line","categoryField","year",3,"name","visible","data","field"]],template:function(t,e){1&t&&(y(0,"kendo-chart",0),y(1,"kendo-chart-value-axis"),P(2,"kendo-chart-value-axis-item",1),_(),A(3,pnn,1,1,"kendo-chart-title",2),P(4,"kendo-chart-legend",3),P(5,"kendo-chart-tooltip",4),y(6,"kendo-chart-series"),A(7,fnn,1,4,"kendo-chart-series-item",5),_(),y(8,"kendo-chart-category-axis"),y(9,"kendo-chart-category-axis-item",6),P(10,"kendo-chart-category-axis-item-labels",7),_(),_(),_()),2&t&&(b(2),v("min",e.minvalue)("max",e.maxvalue),b(1),v("ngIf",e.analysisIndicatorDisplay),b(4),v("ngForOf",e.sa3ByMonthSeries),b(2),v("baseUnit",e.baseUnit))},directives:[dr,wo,xd,sc,pt,yd,Cd,Fc,Wn,Qu,ic,Ws,bd,va],styles:[""]}),nt([rn(n=>n.heatclimatechange.indicator)],D1.prototype,"indicator$",void 0),nt([rn(n=>n.heatclimatechange.selectedSA3Code)],D1.prototype,"selectedSA3Code$",void 0);class M1{constructor(t,e,i,s,o){this.store=t,this.router=e,this.route=i,this.actions$=s,this.climateChangeSvc=o,this.loadSA3ClimateInfo(),console.log("climate change sa3 constructor")}backToState(){this.router.navigate(["climatechange"])}ngOnDestroy(){var t=this;return Xe(function*(){yield t.store.dispatch(new ds.SetDefaultState).toPromise(),yield t.store.dispatch(new hn.SetActiveModule(da.default)).toPromise()})()}ngOnInit(){return Xe(function*(){console.log("climate change sa3 on init")})()}loadSA3ClimateInfo(){var t=this;return Xe(function*(){t.route.queryParams.subscribe(function(){var e=Xe(function*(i){console.log(i),t.statename=i.state,t.climateChangeSvc.performSa3LevelForAState(i.code),yield t.store.dispatch(new hn.SetActiveModule(da.ClimateChange)).toPromise(),t.actions$.pipe(Fd(hn.MapReady),lt(()=>{t.climateChangeSvc.zoomToSelectState(i.code)}),fC()).subscribe()});return function(i){return e.apply(this,arguments)}}())})()}}M1.\u0275fac=function(t){return new(t||M1)(g(zi),g(pr),g(yC),g(sg),g(jw))},M1.\u0275cmp=K({type:M1,selectors:[["app-climate-change-sa3"]],decls:22,vars:13,consts:[["color","primary",1,"secondaryToolBar"],["mat-button","",3,"click"],["mode","indeterminate",3,"color",4,"ngIf"],["orientation","vertical",2,"height","85%"],["size","40%",3,"collapsible"],["orientation","vertical",2,"height","100%"],[2,"height","60%"],[3,"collapsible"],["fxFlexFill","",4,"ngIf"],[2,"overflow","hidden"],[1,"map-area"],[1,"maptimeslider"],["mode","indeterminate",3,"color"],["fxFlexFill",""],[4,"ngIf"]],template:function(t,e){1&t&&(y(0,"mat-toolbar",0),H(1),y(2,"button",1),se("click",function(){return e.backToState()}),H(3,"Back to State Level"),_(),_(),A(4,gnn,1,1,"mat-progress-bar",2),gi(5,"async"),y(6,"kendo-splitter",3),y(7,"kendo-splitter-pane"),y(8,"kendo-splitter"),y(9,"kendo-splitter-pane",4),y(10,"kendo-splitter",5),y(11,"kendo-splitter-pane"),gi(12,"async"),y(13,"span"),H(14,"Please select a region from the list to generate the monthly analysis chart"),_(),P(15,"app-climatechange-summary",6),_(),y(16,"kendo-splitter-pane",7),A(17,ynn,3,3,"div",8),gi(18,"async"),_(),_(),_(),y(19,"kendo-splitter-pane",9),P(20,"app-map",10),P(21,"app-climate-change-timeslider",11),_(),_(),_(),_()),2&t&&(b(1),_t("Heat Climate Change Assessment ",e.statename," "),b(3),v("ngIf",Mi(5,7,e.processing$)),b(5),v("collapsible",!0),b(2),yt("min-height",Mi(12,9,e.selectedSA3Code$)?40:99,"%"),b(5),v("collapsible",!0),b(1),v("ngIf",Mi(18,11,e.selectedSA3Code$)))},directives:[Np,Bd,pt,$C,Vh,k0,Ic,k1,S1,wo,D1],pipes:[Hl],styles:["body{height:100%;overflow:auto} .mat-tab-body-wrapper{height:100%}.small-mat-icon[_ngcontent-%COMP%]{font-size:12px}.main-content[_ngcontent-%COMP%]{height:100%;width:100%}.data-area[_ngcontent-%COMP%]{width:25%;height:100vh;background-color:#00008b} .map-group-area{width:75%;height:100vh} .map-group-area .map-area{width:100%;height:60vh} .map-group-area .chart-area{width:100%;height:40vh;background-color:pink}.maptimeslider[_ngcontent-%COMP%]{position:absolute;bottom:35px;left:30px;width:100%}"]}),nt([rn(n=>n.heatclimatechange.isProcessing)],M1.prototype,"processing$",void 0),nt([rn(n=>n.heatclimatechange.selectedSA3Code)],M1.prototype,"selectedSA3Code$",void 0);let _nn=(()=>{class n{constructor(e,i){this.store=e,this.airqualityApiSvc=i}manageSelectedSearchLocation(e){var i=this;return Xe(function*(){let s=yield i.airqualityApiSvc.getSA2ByGeometry(e).toPromise();s&&s.length>0&&(yield i.store.dispatch(new Mh.SetLocationFilter(s[0])).toPromise(),console.log("Location filter working",s))})()}initializeStatisticData(){var e=this;return Xe(function*(){let i=yield e.airqualityApiSvc.getLatestSa2Statistic().toPromise(),s=yield e.airqualityApiSvc.getLatestStateStatistic().toPromise();i&&i.length>0&&s&&s.length>0&&(yield e.store.dispatch(new Mh.SetStatisticInfo({sa2statistic:i[0],stateStatistic:s[0]})).toPromise())})()}cleartSelectedSearchLocation(){var e=this;return Xe(function*(){yield e.store.dispatch(new Mh.SetLocationFilter(null)).toPromise()})()}getSA2Yearly(e){var i=this;return Xe(function*(){try{return yield i.airqualityApiSvc.filterSA2Yearly(e).toPromise()}catch(s){console.log(s)}return[]})()}}return n.\u0275fac=function(e){return new(e||n)(V(zi),V(HFe))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function UNe(n){return t=>t.lift(new vnn(n))}class vnn{constructor(t){this.value=t}call(t,e){return e.subscribe(new bnn(t,this.value))}}class bnn extends In{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const O6=["*"];function Cnn(n,t){if(1&n){const e=ht();y(0,"div",2),se("click",function(){return Le(e),I()._onBackdropClicked()}),_()}2&n&&he("mat-drawer-shown",I()._isShowingBackdrop())}function xnn(n,t){1&n&&(y(0,"mat-drawer-content"),mt(1,2),_())}const wnn=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Snn=["mat-drawer","mat-drawer-content","*"],qNe={transformDrawer:fc("transform",[Tr("open, open-instant",zt({transform:"none",visibility:"visible"})),Tr("void",zt({"box-shadow":"none",visibility:"hidden"})),Go("void => open-instant",Xi("0ms")),Go("void <=> open, open-instant => void",Xi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Enn=new ot("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Sie=new ot("MAT_DRAWER_CONTAINER");let mR=(()=>{class n extends uk{constructor(e,i,s,o,r){super(s,o,r),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(g(Be),g(He(()=>kie)),g($),g(bv),g(ce))},n.\u0275cmp=K({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&yt("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[N],ngContentSelectors:O6,decls:1,vars:0,template:function(e,i){1&e&&(Xt(),mt(0))},encapsulation:2,changeDetection:0}),n})(),Tie=(()=>{class n{constructor(e,i,s,o,r,a,l){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=s,this._platform=o,this._ngZone=r,this._doc=a,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Z,this._animationEnd=new Z,this._animationState="void",this.openedChange=new S(!0),this._openedStream=this.openedChange.pipe(dt(c=>c),xe(()=>{})),this.openedStart=this._animationStarted.pipe(dt(c=>c.fromState!==c.toState&&0===c.toState.indexOf("open")),UNe(void 0)),this._closedStream=this.openedChange.pipe(dt(c=>!c),xe(()=>{})),this.closedStart=this._animationStarted.pipe(dt(c=>c.fromState!==c.toState&&"void"===c.toState),UNe(void 0)),this._destroyed=new Z,this.onPositionChanged=new S,this._modeChanged=new Z,this.openedChange.subscribe(c=>{c?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Hi(this._elementRef.nativeElement,"keydown").pipe(dt(c=>27===c.keyCode&&!this.disableClose&&!Rd(c)),et(this._destroyed)).subscribe(c=>this._ngZone.run(()=>{this.close(),c.stopPropagation(),c.preventDefault()}))}),this._animationEnd.pipe(ry((c,d)=>c.fromState===d.fromState&&c.toState===d.toState)).subscribe(c=>{const{fromState:d,toState:u}=c;(0===u.indexOf("open")&&"void"===d||"void"===u&&0===d.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Tn(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"!==this.mode:e}set autoFocus(e){this._autoFocus=Tn(e)}get opened(){return this._opened}set opened(e){this.toggle(Tn(e))}_takeFocus(){!this.autoFocus||!this._focusTrap||this._focusTrap.focusInitialElementWhenReady().then(e=>{!e&&"function"==typeof this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()})}_restoreFocus(){!this.autoFocus||(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var e;const i=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!i&&this._elementRef.nativeElement.contains(i)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(e=!this.opened,i){return this._setOpen(e,!e&&this._isFocusWithinDrawer(),i)}_setOpen(e,i,s="program"){return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=s):(this._animationState="void",i&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(jn(1)).subscribe(r=>o(r?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(e){this._animationStarted.next(e)}_animationDoneListener(e){this._animationEnd.next(e)}}return n.\u0275fac=function(e){return new(e||n)(g($),g(X$),g(Wc),g(Qi),g(ce),g($t,8),g(Sie,8))},n.\u0275cmp=K({type:n,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&TP("@transform.start",function(o){return i._animationStartListener(o)})("@transform.done",function(o){return i._animationDoneListener(o)}),2&e&&(fe("align",null),XE("@transform",i._animationState),he("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:O6,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,i){1&e&&(Xt(),y(0,"div",0),mt(1),_())},directives:[uk],encapsulation:2,data:{animation:[qNe.transformDrawer]},changeDetection:0}),n})(),kie=(()=>{class n{constructor(e,i,s,o,r,a=!1,l){this._dir=e,this._element=i,this._ngZone=s,this._changeDetectorRef=o,this._animationMode=l,this._drawers=new wt,this.backdropClick=new S,this._destroyed=new Z,this._doCheckSubject=new Z,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Z,e&&e.change.pipe(et(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe(et(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Tn(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:Tn(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe($o(this._allDrawers),et(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe($o(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(cg(10),et(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const s=this._left._getWidth();e+=s,i-=s}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const s=this._right._getWidth();i+=s,e-=s}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(dt(i=>i.fromState!==i.toState),et(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(et(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(et(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(jn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(et(ii(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,s="mat-drawer-container-has-open";e?i.add(s):i.remove(s)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(g(nr,8),g($),g(ce),g(Be),g(vu),g(Enn),g(jo,8))},n.\u0275cmp=K({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,s){if(1&e&&(Ce(s,mR,5),Ce(s,Tie,5)),2&e){let o;U(o=W())&&(i._content=o.first),U(o=W())&&(i._allDrawers=o)}},viewQuery:function(e,i){if(1&e&&Ae(mR,5),2&e){let s;U(s=W())&&(i._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&he("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[we([{provide:Sie,useExisting:n}])],ngContentSelectors:Snn,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(Xt(wnn),A(0,Cnn,1,2,"div",0),mt(1),mt(2,1),A(3,xnn,2,0,"mat-drawer-content",1)),2&e&&(v("ngIf",i.hasBackdrop),b(3),v("ngIf",!i._content))},directives:[pt,mR],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),Onn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,vi,rk,EC],EC,vi]}),n})();const Rnn=["search"];function Pnn(n,t){1&n&&P(0,"mat-progress-bar",12),2&n&&v("color","primary")}function Lnn(n,t){if(1&n&&(H(0),P(1,"br"),H(2),P(3,"br"),H(4)),2&n){const e=I(2);_t(" Maximum: ",e.ozoneMax,""),b(2),_t(" Average: ",e.ozoneAvg,""),b(2),_t(" Current: ",e.ozoneCurrent," ")}}function Nnn(n,t){if(1&n&&(H(0),P(1,"br"),H(2),P(3,"br"),H(4)),2&n){const e=I(2);_t(" Maximum: ",e.no2Max,""),b(2),_t(" Average: ",e.no2Avg,""),b(2),_t(" Current: ",e.no2Current," ")}}function Bnn(n,t){if(1&n&&(H(0),P(1,"br"),H(2),P(3,"br"),H(4)),2&n){const e=I(2);_t(" Maximum: ",e.noMax,""),b(2),_t(" Average: ",e.noAvg,""),b(2),_t(" Current: ",e.noCurrent," ")}}function Vnn(n,t){if(1&n&&(H(0),P(1,"br"),H(2),P(3,"br"),H(4)),2&n){const e=I(2);_t(" Maximum: ",e.pm25Max,""),b(2),_t(" Average: ",e.pm25Avg,""),b(2),_t(" Current: ",e.pm25Current," ")}}function znn(n,t){if(1&n&&(y(0,"kendo-chart",32),P(1,"kendo-chart-title",33),P(2,"kendo-chart-legend",34),P(3,"kendo-chart-tooltip",35),y(4,"kendo-chart-series"),P(5,"kendo-chart-series-item",36),P(6,"kendo-chart-series-item",37),P(7,"kendo-chart-series-item",38),P(8,"kendo-chart-series-item",39),_(),y(9,"kendo-chart-category-axis"),y(10,"kendo-chart-category-axis-item"),P(11,"kendo-chart-category-axis-item-labels",40),_(),_(),_()),2&n){const e=I(3);b(1),v("text","AirQuality : "+e.regionname),b(4),v("data",e.timeSeries),b(1),v("data",e.timeSeries),b(1),v("data",e.timeSeries),b(1),v("data",e.timeSeries)}}function Hnn(n,t){if(1&n&&(y(0,"mat-expansion-panel",30),y(1,"mat-expansion-panel-header"),y(2,"mat-panel-title"),H(3," Time series "),_(),P(4,"mat-panel-description"),_(),A(5,znn,12,5,"kendo-chart",31),_()),2&n){const e=I(2);b(5),v("ngIf",e.transformData.length>1)}}function Gnn(n,t){if(1&n){const e=ht();y(0,"mat-card",13),y(1,"button",14),se("click",function(){return Le(e),I().refreshPublicAwareness()}),y(2,"mat-icon"),H(3,"arrow_back"),_(),_(),y(4,"kendo-chart"),P(5,"kendo-chart-title",15),y(6,"kendo-chart-series"),P(7,"kendo-chart-series-item",16),P(8,"kendo-chart-series-item",17),_(),P(9,"kendo-chart-legend",18),_(),y(10,"kendo-chart",19),P(11,"kendo-chart-title",20),y(12,"kendo-chart-series"),P(13,"kendo-chart-series-item",21),y(14,"kendo-chart-category-axis"),P(15,"kendo-chart-category-axis-item",22),_(),y(16,"kendo-chart-value-axis"),P(17,"kendo-chart-value-axis-item",23),_(),_(),y(18,"kendo-chart-tooltip"),A(19,Lnn,5,3,"ng-template",24),_(),_(),y(20,"kendo-chart",19),P(21,"kendo-chart-title",25),y(22,"kendo-chart-series"),P(23,"kendo-chart-series-item",21),y(24,"kendo-chart-category-axis"),P(25,"kendo-chart-category-axis-item",22),_(),y(26,"kendo-chart-value-axis"),P(27,"kendo-chart-value-axis-item",23),_(),_(),y(28,"kendo-chart-tooltip"),A(29,Nnn,5,3,"ng-template",24),_(),_(),y(30,"kendo-chart",19),P(31,"kendo-chart-title",26),y(32,"kendo-chart-series"),P(33,"kendo-chart-series-item",21),y(34,"kendo-chart-category-axis"),P(35,"kendo-chart-category-axis-item",22),_(),y(36,"kendo-chart-value-axis"),P(37,"kendo-chart-value-axis-item",23),_(),_(),y(38,"kendo-chart-tooltip"),A(39,Bnn,5,3,"ng-template",24),_(),_(),y(40,"kendo-chart",19),P(41,"kendo-chart-title",27),y(42,"kendo-chart-series"),P(43,"kendo-chart-series-item",21),y(44,"kendo-chart-category-axis"),P(45,"kendo-chart-category-axis-item",22),_(),y(46,"kendo-chart-value-axis"),P(47,"kendo-chart-value-axis-item",23),_(),_(),y(48,"kendo-chart-tooltip"),A(49,Vnn,5,3,"ng-template",24),_(),_(),y(50,"mat-accordion",28),A(51,Hnn,6,1,"mat-expansion-panel",29),_(),_()}if(2&n){const e=I();b(5),v("text","AirQuality : "+e.regionname),b(2),v("data",e.transformData),b(1),v("data",e.transformData),b(5),v("data",e.ozoneRange),b(2),v("majorGridLines",e.hidden)("minorGridLines",e.hidden),b(2),v("majorGridLines",e.hidden)("minorTicks",e.hidden)("min",0)("max",e.ozoneMax)("plotBands",e.ozonePlotBand),b(6),v("data",e.no2Range),b(2),v("majorGridLines",e.hidden)("minorGridLines",e.hidden),b(2),v("majorGridLines",e.hidden)("minorTicks",e.hidden)("min",0)("max",e.no2Max)("plotBands",e.no2PlotBand),b(6),v("data",e.noRange),b(2),v("majorGridLines",e.hidden)("minorGridLines",e.hidden),b(2),v("majorGridLines",e.hidden)("minorTicks",e.hidden)("min",0)("max",e.noMax)("plotBands",e.noPlotBand),b(6),v("data",e.pm25Range),b(2),v("majorGridLines",e.hidden)("minorGridLines",e.hidden),b(2),v("majorGridLines",e.hidden)("minorTicks",e.hidden)("min",0)("max",e.pm25Max)("plotBands",e.pm25PlotBand),b(4),v("ngIf",e.transformData.length>1)}}class E1{constructor(t,e,i,s,o){var r=this;this.store=t,this.actions$=e,this.ngZone=i,this.router=s,this.airqualityPublicSvc=o,this.autoCompleteOptions={bounds:{north:-11,south:-43,east:154,west:113},strictBounds:!0},this.destroyed$=new Z,this.hidden={visible:!1},this.ozonePlotBand=[],this.ozoneMax=0,this.ozoneAvg=0,this.ozoneCurrent=0,this.no2PlotBand=[],this.no2Max=0,this.no2Avg=0,this.no2Current=0,this.noPlotBand=[],this.noMax=0,this.noAvg=0,this.noCurrent=0,this.pm25PlotBand=[],this.pm25Max=0,this.pm25Avg=0,this.pm25Current=0,this.ozoneRange=[],this.no2Range=[],this.noRange=[],this.pm25Range=[],this.timeSeries=[],this.actions$.pipe(dv(hn.MapReady),lt(a=>{console.log("map ready ",a.payload.map),this.map=a.payload.map,this.setupLocationSearchBox()}),et(this.destroyed$)).subscribe(),this.actions$.pipe(dv(hn.SetSearchLocationOnMap),lt(a=>{console.log("set location",a.payload),this.airqualityPublicSvc.manageSelectedSearchLocation(a.payload)}),et(this.destroyed$)).subscribe(),this.locationFilter$.pipe(lt(function(){var a=Xe(function*(l){console.log("location filter chage"),l?yield r.loadChartData(l):console.log("no location filter data")});return function(l){return a.apply(this,arguments)}}()),et(this.destroyed$)).subscribe()}setupLocationSearchBox(){this.geoCoder=new google.maps.Geocoder;let t=new google.maps.places.Autocomplete(this.searchElementRef.nativeElement,this.autoCompleteOptions);t.addListener("place_changed",()=>{this.ngZone.run(()=>{let e=t.getPlace();null==e.geometry||(this.map.setCenter(e.geometry.location),this.map.setZoom(11),this.store.dispatch(new hn.SetSearchLocationOnMap(e.geometry.location)))})})}loadChartData(t){var e=this;return Xe(function*(){try{yield e.store.dispatch(new Mh.SetBusyState(!0)).toPromise(),e.transformData=[],e.timeSeries=[],e.regionname=t.name,null!=t&&(e.ozoneCurrent=t.not1_avgo3,e.ozoneRange=[[e.ozoneCurrent,0]],e.no2Current=t.not1_avgno2,e.no2Range=[[e.no2Current,0]],e.noCurrent=t.not1_avgno,e.noRange=[[e.noCurrent,0]],e.pm25Range[0]=t.not1_avgpm25,e.pm25Current=t.not1_avgpm25,e.pm25Range=[[e.pm25Current,0]],e.transformData.push({name:"Ozone",first:t.not1_avgo3.toFixed(2),second:t.not2_avgo3.toFixed(2)}),e.transformData.push({name:"NO2",first:t.not1_avgno2.toFixed(2),second:t.not2_avgno2.toFixed(2)}),e.transformData.push({name:"NO",first:t.not1_avgno.toFixed(2),second:t.not2_avgno.toFixed(2)}),e.transformData.push({name:"PM 2.5",first:t.not1_avgpm25.toFixed(2),second:t.not2_avgpm25.toFixed(2)}),e.timeSeries=yield e.airqualityPublicSvc.getSA2Yearly(t.sa2_main16),console.log("Transform data upon location changes",e.transformData))}catch(i){console.log(i)}yield e.store.dispatch(new Mh.SetBusyState(!1)).toPromise()})()}ngOnInit(){var t=this;return Xe(function*(){t.geoCoder=null,t.transformData=[],yield t.airqualityPublicSvc.initializeStatisticData(),t.sa2Statistic=t.store.selectSnapshot(e=>e.airpublic.sa2Statistic),t.stateStatistic=t.store.selectSnapshot(e=>e.airpublic.stateStatistic),t.ozoneRange=[[t.ozoneCurrent,0]],t.ozoneMax=t.sa2Statistic.max_not1_avgo3,t.ozoneAvg=parseFloat(t.sa2Statistic.avg_not1_avgo3.toFixed(2)),t.ozonePlotBand=[{from:0,to:t.sa2Statistic.avg_not1_avgo3,color:"#ccc",opacity:.8}],t.no2Max=t.sa2Statistic.max_not1_avgno2,t.no2Avg=parseFloat(t.sa2Statistic.avg_not1_avgno2.toFixed(2)),t.no2Range=[[t.no2Current,0]],t.no2PlotBand=[{from:0,to:t.sa2Statistic.avg_not1_avgno2,color:"#ccc",opacity:.8}],t.noRange=[[t.sa2Statistic.avg_not1_avgno2,0]],t.noMax=t.sa2Statistic.max_not1_avgno,t.noAvg=parseFloat(t.sa2Statistic.avg_not1_avgno.toFixed(2)),t.noCurrent=t.sa2Statistic.avg_not1_avgno,t.noPlotBand=[{from:0,to:t.sa2Statistic.avg_not1_avgno,color:"#ccc",opacity:.8}],t.pm25Range=[[t.sa2Statistic.avg_not1_avgpm25,0]],t.pm25Max=t.sa2Statistic.max_not1_avgpm25,t.pm25Avg=parseFloat(t.sa2Statistic.avg_not1_avgpm25.toFixed(2)),t.pm25Current=t.sa2Statistic.avg_not1_avgpm25,t.pm25PlotBand=[{from:0,to:t.sa2Statistic.avg_not1_avgpm25,color:"#ccc",opacity:.8}],yield t.store.dispatch(new hn.SetActiveModule(da.AirPublicAwareness)).toPromise()})()}refreshPublicAwareness(){let t=this.router.url;this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate([t])}ngOnDestroy(){var t=this;return Xe(function*(){yield t.store.dispatch(new Mh.SetDefaultState).toPromise(),yield t.store.dispatch(new hn.SetActiveModule(da.default)).toPromise(),t.destroyed$.next(),t.destroyed$.complete()})()}}E1.\u0275fac=function(t){return new(t||E1)(g(zi),g(sg),g(ce),g(pr),g(_nn))},E1.\u0275cmp=K({type:E1,selectors:[["app-public-awareness"]],viewQuery:function(t,e){if(1&t&&Ae(Rnn,5),2&t){let i;U(i=W())&&(e.searchElementRef=i.first)}},decls:16,vars:5,consts:[["color","primary","fxLayout","row","fxLayoutAlign","space-between center",1,"secondaryToolBar"],["mode","indeterminate",3,"color",4,"ngIf"],["flex","",1,"mainContent",3,"hasBackdrop"],["mode","over","disableClose","true","opened","",1,"leftdrawer"],[1,"drawerpanel"],["appearance","outline",1,"drawersearch"],["type","text","matInput","","placeholder","Search in the map","autocorrect","off","autocapitalize","off","spellcheck","off","type","text",1,"form-control",3,"keydown.enter"],["search",""],["matPrefix",""],["style","margin-top:-19px;",4,"ngIf"],[2,"overflow","hidden"],[1,"map-area",2,"overflow","hidden"],["mode","indeterminate",3,"color"],[2,"margin-top","-19px"],["mat-mini","","aria-label","Clear Map Search Data",3,"click"],["font","9pt sans-serif",3,"text"],["type","radarLine","name","No of days over first threshold","color","#0000ff","field","first","categoryField","name","font","9pt sans-serif",3,"data"],["type","radarLine","name","No of days over second threshold","field","second","categoryField","name","font","9pt sans-serif",3,"data"],["position","bottom"],[2,"height","80px"],["text","Ozone","font","9pt sans-serif"],["type","bullet","color","#0058e9",3,"data"],[3,"majorGridLines","minorGridLines"],[3,"majorGridLines","minorTicks","min","max","plotBands"],["kendoChartSeriesTooltipTemplate",""],["text","Nitrogen Dioxide","font","9pt sans-serif"],["text","Nitrogen Monoxide","font","9pt sans-serif"],["text","Particulate matter (<2.5\xb5m)","font","9pt sans-serif"],["multi",""],["expanded","false",4,"ngIf"],["expanded","false"],["style","height:300px;",4,"ngIf"],[2,"height","300px"],["position","bottom","font","9pt sans-serif",3,"text"],["position","bottom","orientation","horizontal"],["format","{0}"],["type","line","name","Ozone","categoryField","year","field","not1_avgo3",3,"data"],["type","line","name","Nitrogen Dioxide","categoryField","year","field","not1_avgno2",3,"data"],["type","line","name","Nitrogen Oxide","categoryField","year","field","not1_avgno",3,"data"],["type","line","name","Particulate Matter(PM25)","categoryField","year","field","not1_avgpm25",3,"data"],["rotation","auto"]],template:function(t,e){1&t&&(y(0,"mat-toolbar",0),y(1,"span"),H(2,"Air Quality: Public Awareness"),_(),_(),A(3,Pnn,1,1,"mat-progress-bar",1),gi(4,"async"),y(5,"mat-drawer-container",2),y(6,"mat-drawer",3),y(7,"div",4),y(8,"mat-form-field",5),y(9,"input",6,7),se("keydown.enter",function(s){return s.preventDefault()}),_(),y(11,"mat-icon",8),H(12,"search"),_(),_(),A(13,Gnn,52,36,"mat-card",9),_(),_(),y(14,"mat-drawer-content",10),P(15,"app-map",11),_(),_()),2&t&&(b(3),v("ngIf",Mi(4,3,e.processing$)),b(2),v("hasBackdrop",!1),b(8),v("ngIf",e.transformData.length>1))},directives:[Np,po,fo,pt,kie,Tie,kg,wB,gl,tmt,mR,Ic,S1,qN,dr,bd,Fc,va,yd,Qu,ic,xd,sc,Cd,pd,g8,Bb,Vb,bO,IFe,Ws],pipes:[Hl],styles:[".chartPanel[_ngcontent-%COMP%]{position:absolute;top:120px;left:15px;padding:1em;pointer-events:none;z-index:11000;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:calc(100% - 80px);overflow:auto}.chartPanel[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:visible}.drawerpanel[_ngcontent-%COMP%]{padding:10px 0 0 10px} .mat-form-field-appearance-outline .mat-form-field-infix{padding:5%} .mat-form-field-infix{top:-3px} .mat-form-field-appearance-outline .mat-form-field-outline{background-color:#fff;border-radius:5px}"]}),nt([rn(n=>n.airpublic.isProcessing)],E1.prototype,"processing$",void 0),nt([rn(n=>n.airpublic.locationFilter)],E1.prototype,"locationFilter$",void 0);const jnn=["kendochart"];function $nn(n,t){1&n&&P(0,"kendo-chart-title",13),2&n&&v("text",I().analysisIndicatorDisplay)}const Unn=function(){return{text:"Health outcome"}};class G_{constructor(t){var e=this;this.store=t,this.destroyed$=new Z,this.sa4IndexFieldName="index",this.getColor=i=>i.index===this.chartActionIndex?"#00ff00":this.chartColor,this.selectedChartItemIndex=-1,this.chartActionIndex=-1,this.seriesLabels={visible:!1,font:"bold 16px Arial, sans-serif"},this.style="smooth",this.markers={background:"#00ff00",border:{color:"black",width:2},type:"circle"},this.analysisResult$.pipe(lt(Xe(function*(){try{const i=e.store.selectSnapshot(s=>s.airimpact.analysisResult);if(i.sa3FilterResult&&i.sa3AnalysisIndicator&&i.sa4HealthIndicator&&i.sa4Healtoutcome)try{let s=i.sa3AnalysisIndicator;e.analysisHealthIndicator=i.sa4HealthIndicator,e.chartfilterData=[];let o=1;e.sa4Index={},i.sa3FilterResult.forEach(r=>{let a=Object.assign({},r);a[e.sa4IndexFieldName]=o;let l=i.sa4Healtoutcome.find(c=>c.sa4_code16===r.sa4_code16);l?(a.asrresp=l.asrresp?l.asrresp:0,a.asrast=l.asrast?l.asrast:0,a.asrcvd=l.asrcvd?l.asrcvd:0,a.ndeaths=l.ndeaths?l.ndeaths:0):a[e.analysisHealthIndicator]=0,e.chartfilterData.push(a),e.sa4Index[o]=r.sa4_code16,o++}),e.analysisIndicator=s,e.analysisIndicatorDisplay=wO.filter(r=>r.key===e.analysisIndicator)[0].value,e.analysisHealthIndicatorDisplay=WWt.filter(r=>r.key===e.analysisHealthIndicator)[0].value,e.chartfilterData.sort((r,a)=>r[e.analysisIndicator]>a[e.analysisIndicator]?1:-1),e.selectedChartItemIndex=-1}catch(s){console.log(s)}}catch(i){console.log("Error in chart component ",i)}})),et(this.destroyed$)).subscribe()}onSeriesClick(t){var e=this;return Xe(function*(){try{let i=t.dataItem.sa3_code16;yield e.store.dispatch(new Kn.SetSelectedSA3Code16([i])).toPromise()}catch(i){}})()}ngOnInit(){this.chartColor="#ff0000"}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}G_.\u0275fac=function(t){return new(t||G_)(g(zi))},G_.\u0275cmp=K({type:G_,selectors:[["app-air-quality-impact-and-healthoutcome"]],viewQuery:function(t,e){if(1&t&&Ae(jnn,5,$),2&t){let i;U(i=W())&&(e.kendochart=i.first)}},decls:17,vars:17,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],["renderAs","canvas",3,"pannable","zoomable","seriesClick"],["kendochart",""],["font","9pt sans-serif",3,"min","max","title"],["position","bottom","font","9pt sans-serif",3,"text",4,"ngIf"],["rotation","auto",3,"visible"],["rotation","auto"],["position","left","orientation","vertical",3,"visible"],["type","scatter","yField","asrresp","name","Respiratory",3,"data","xField"],["type","scatter","name","Asthma","yField","asrast",3,"data","xField"],["type","scatter","name","CVD","yField","asrcvd",3,"data","xField"],["type","scatter","name","All Causes","yField","ndeaths",3,"data","xField"],["format","{1}% in {0}"],["position","bottom","font","9pt sans-serif",3,"text"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"kendo-chart",1,2),se("seriesClick",function(s){return e.onSeriesClick(s)}),y(3,"kendo-chart-value-axis"),P(4,"kendo-chart-value-axis-item",3),_(),A(5,$nn,1,1,"kendo-chart-title",4),y(6,"kendo-chart-category-axis"),y(7,"kendo-chart-category-axis-item"),P(8,"kendo-chart-category-axis-item-labels",5),_(),P(9,"kendo-chart-category-axis-item-labels",6),_(),P(10,"kendo-chart-legend",7),y(11,"kendo-chart-series"),P(12,"kendo-chart-series-item",8),P(13,"kendo-chart-series-item",9),P(14,"kendo-chart-series-item",10),P(15,"kendo-chart-series-item",11),_(),P(16,"kendo-chart-tooltip",12),_(),_()),2&t&&(b(1),v("pannable",!0)("zoomable",!0),b(3),v("min",0)("max",100)("title",si(16,Unn)),b(1),v("ngIf",e.analysisIndicatorDisplay),b(3),v("visible",!0),b(2),v("visible",!0),b(2),v("data",e.chartfilterData)("xField",e.analysisIndicator),b(1),v("data",e.chartfilterData)("xField",e.analysisIndicator),b(1),v("data",e.chartfilterData)("xField",e.analysisIndicator),b(1),v("data",e.chartfilterData)("xField",e.analysisIndicator))},directives:[po,fo,wo,dr,xd,sc,pt,Qu,ic,Ws,yd,Fc,va,Cd,bd],styles:[""]}),nt([rn(n=>n.airimpact.analysisResult)],G_.prototype,"analysisResult$",void 0),nt([rn(n=>n.airimpact.analysisResult.sa4FilterResult)],G_.prototype,"sa4FilterResult$",void 0),nt([rn(n=>n.airimpact.analysisResult.selectedSA4Code16)],G_.prototype,"selectedSA4Code16$",void 0),nt([rn(n=>n.airimpact.analysisFilter.filterType)],G_.prototype,"filterType$",void 0);const Wnn=["kendoairGrid"];function qnn(n,t){if(1&n&&P(0,"kendo-grid-column",7),2&n){const e=t.$implicit;v("field",e.field)("title",e.title)("hidden",e.hidden)}}const Xnn=function(){return{mode:"single"}},Ynn=function(){return{filter:!0}},Knn=function(){return{allowUnsort:!1,mode:"single"}};class D0{constructor(t){this.store=t,this.gridSort=[{field:"sa3_code16",dir:"asc"}],this.gridColumns=$Wt,this.destroyed$=new Z,this.sa3FilterResult$.pipe(lt(()=>{this.loadGridData()}),et(this.destroyed$)).subscribe(),this.rankingList$.pipe(lt(()=>{this.loadGridData()}),et(this.destroyed$)).subscribe(),this.selectedSA3Code16$.pipe(lt(e=>{e&&e.length>0?(this.selectedSA3Code16[0]!=e[0]&&(this.selectedSA3Code16=[e[0]]),this.scrollToSelection()):this.selectedSA3Code16=[]}),et(this.destroyed$)).subscribe()}scrollToSelection(){setTimeout(()=>{let t=this.kendoGrid.nativeElement;try{let e=t.querySelector(".k-state-selected");e&&e.scrollIntoView()}catch(e){console.log(e)}},200)}loadGridData(){let t=this.store.selectSnapshot(i=>i.airimpact.analysisResult.sa3FilterResult),e=Kp(t,this.filter);this.gvBinder={data:zh(e,this.gridSort),total:e.length}}gridSortChange(t){this.gridSort=t,this.loadGridData()}filterChange(t){this.filter=t,this.loadGridData()}selectionChange(t){var e=this;return Xe(function*(){let i=t.selectedRows[0].dataItem.sa3_code16;yield e.store.dispatch(new Kn.SetSelectedSA3Code16([i])).toPromise()})()}getRowClass(t){let e={};return e[t.dataItem.cssclass]=!0,e}ngOnInit(){this.selectedSA3Code16=[]}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}D0.\u0275fac=function(t){return new(t||D0)(g(zi))},D0.\u0275cmp=K({type:D0,selectors:[["app-air-quality-impact-summary"]],viewQuery:function(t,e){if(1&t&&Ae(Wnn,5,$),2&t){let i;U(i=W())&&(e.kendoGrid=i.first)}},decls:10,vars:17,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"k-indicator-container","gridtophead"],[1,"gridcontainerheader"],["fxFlex","1 1 auto",1,"airqualitygrid",2,"height","300px"],["kendoGridSelectBy","sa3_code16",3,"data","loading","sort","selectable","filter","columnMenu","reorderable","resizable","selectedKeys","rowClass","sortable","sortChange","selectionChange","filterChange"],["kendoairGrid",""],["filter","numeric",3,"field","title","hidden",4,"ngFor","ngForOf"],["filter","numeric",3,"field","title","hidden"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"div",1),H(2,"Please click "),y(3,"mat-icon",2),H(4,"more_vert"),_(),H(5," on the columns for more functionality"),_(),y(6,"div",3),y(7,"kendo-grid",4,5),se("sortChange",function(s){return e.gridSortChange(s)})("selectionChange",function(s){return e.selectionChange(s)})("filterChange",function(s){return e.filterChange(s)}),A(9,qnn,1,3,"kendo-grid-column",6),_(),_(),_()),2&t&&(b(7),yt("height",100,"%"),v("data",e.gvBinder)("loading",e.loading)("sort",e.gridSort)("selectable",si(14,Xnn))("filter",e.filter)("columnMenu",si(15,Ynn))("reorderable",!0)("resizable",!0)("selectedKeys",e.selectedSA3Code16)("rowClass",e.getRowClass)("sortable",si(16,Knn)),b(2),v("ngForOf",e.gridColumns))},directives:[po,fo,wo,gl,ja,ao,fm,Wn,oi],styles:[""]}),nt([rn(n=>n.airimpact.analysisResult.sa3FilterResult)],D0.prototype,"sa3FilterResult$",void 0),nt([rn(n=>n.airimpact.rankingList)],D0.prototype,"rankingList$",void 0),nt([rn(n=>n.airimpact.analysisResult.selectedSA3Code16)],D0.prototype,"selectedSA3Code16$",void 0);const Znn=["kendoHealthGrid"];function Qnn(n,t){if(1&n&&P(0,"kendo-grid-column",7),2&n){const e=t.$implicit;v("field",e.field)("title",e.title)("hidden",e.hidden)}}const Jnn=function(){return{mode:"single"}},ein=function(){return{filter:!0}},tin=function(){return{allowUnsort:!1,mode:"single"}};class M0{constructor(t){this.store=t,this.gridSort=[{field:"sa4_code16",dir:"asc"}],this.gridColumns=UWt,this.destroyed$=new Z,this.sa4Healthoutcome$.pipe(lt(()=>{this.loadGridData()}),et(this.destroyed$)).subscribe(),this.rankingList$.pipe(lt(()=>{this.loadGridData()}),et(this.destroyed$)).subscribe(),this.selectedSA4Code16$.pipe(lt(e=>{e&&e.length>0?(this.selectedSA4Code16[0]!=e[0]&&(this.selectedSA4Code16=[e[0]]),this.scrollToSelection()):this.selectedSA4Code16=[]}),et(this.destroyed$)).subscribe()}scrollToSelection(){setTimeout(()=>{let e=this.kendoGrid.nativeElement.querySelector(".k-state-selected");e&&e.scrollIntoView()},200)}loadGridData(){let t=this.store.selectSnapshot(i=>i.airimpact.analysisResult.sa4Healtoutcome),e=Kp(t,this.filter);this.gvBinder={data:zh(e,this.gridSort),total:e.length}}gridSortChange(t){this.gridSort=t,this.loadGridData()}filterChange(t){this.filter=t,this.loadGridData()}selectionChange(t){var e=this;return Xe(function*(){let i=t.selectedRows[0].dataItem.sa4_code16;yield e.store.dispatch(new Kn.SetSelectedSA4Code16([i])).toPromise()})()}getRowClass(t){let e={};return e[t.dataItem.cssclass]=!0,e}ngOnInit(){this.selectedSA4Code16=[]}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}function nin(n,t){1&n&&P(0,"mat-progress-bar",25),2&n&&v("color","primary")}function iin(n,t){if(1&n&&(y(0,"mat-option",26),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function sin(n,t){if(1&n&&(y(0,"mat-option",26),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function oin(n,t){if(1&n){const e=ht();y(0,"div",8),y(1,"mat-form-field",9),y(2,"mat-label"),H(3,"Year"),_(),y(4,"mat-select",10),se("ngModelChange",function(s){return Le(e),I().filterYear=s}),A(5,iin,2,2,"mat-option",11),_(),_(),y(6,"mat-form-field",9),y(7,"mat-label"),H(8,"Month"),_(),y(9,"mat-select",10),se("ngModelChange",function(s){return Le(e),I().filterMonth=s}),A(10,sin,2,2,"mat-option",11),_(),_(),_()}if(2&n){const e=I();b(4),v("formControl",e.yearControl)("ngModel",e.filterYear),b(1),v("ngForOf",e.YearList),b(4),v("formControl",e.monthControl)("ngModel",e.filterMonth),b(1),v("ngForOf",e.MonthList)}}function rin(n,t){if(1&n&&(y(0,"mat-option",26),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function ain(n,t){if(1&n){const e=ht();y(0,"button",13),se("click",function(){return Le(e),I().onClearSelection()}),H(1," Clear Selection "),_()}}M0.\u0275fac=function(t){return new(t||M0)(g(zi))},M0.\u0275cmp=K({type:M0,selectors:[["app-healthoutcome-grid"]],viewQuery:function(t,e){if(1&t&&Ae(Znn,5,$),2&t){let i;U(i=W())&&(e.kendoGrid=i.first)}},decls:10,vars:17,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"k-indicator-container","gridtophead"],[1,"gridcontainerheader"],["fxFlex","1 1 auto",1,"airqualitygrid",2,"height","300px"],["kendoGridSelectBy","sa4_code16",3,"data","loading","sort","selectable","filter","columnMenu","reorderable","resizable","selectedKeys","rowClass","sortable","sortChange","selectionChange","filterChange"],["kendoHealthGrid",""],["filter","numeric",3,"field","title","hidden",4,"ngFor","ngForOf"],["filter","numeric",3,"field","title","hidden"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"div",1),H(2,"Please click "),y(3,"mat-icon",2),H(4,"more_vert"),_(),H(5," on the columns for more functionality"),_(),y(6,"div",3),y(7,"kendo-grid",4,5),se("sortChange",function(s){return e.gridSortChange(s)})("selectionChange",function(s){return e.selectionChange(s)})("filterChange",function(s){return e.filterChange(s)}),A(9,Qnn,1,3,"kendo-grid-column",6),_(),_(),_()),2&t&&(b(7),yt("height",100,"%"),v("data",e.gvBinder)("loading",e.loading)("sort",e.gridSort)("selectable",si(14,Jnn))("filter",e.filter)("columnMenu",si(15,ein))("reorderable",!0)("resizable",!0)("selectedKeys",e.selectedSA4Code16)("rowClass",e.getRowClass)("sortable",si(16,tin)),b(2),v("ngForOf",e.gridColumns))},directives:[po,fo,wo,gl,ja,ao,fm,Wn,oi],styles:[""]}),nt([rn(n=>n.airimpact.analysisResult.sa4Healtoutcome)],M0.prototype,"sa4Healthoutcome$",void 0),nt([rn(n=>n.airimpact.rankingList)],M0.prototype,"rankingList$",void 0),nt([rn(n=>n.airimpact.analysisResult.selectedSA4Code16)],M0.prototype,"selectedSA4Code16$",void 0);class j_{constructor(t,e,i){this.store=t,this.actions$=e,this.airQualityService=i,this.yearControl=new gc("",Vp.required),this.monthControl=new gc("",Vp.required),this.indicatorControl=new gc("",Vp.required),this.healthIndicatorControl=new gc("",Vp.required),this.YearList=[],this.MonthList=[],this.filterForm=new yy({Year:this.yearControl,Month:this.monthControl,Indicator:this.indicatorControl}),this.chosenType="monthly",this.selectedTabIndex=0,this.selectedGridTabIndex=0,this.destroyed$=new Z,this.isIndicatorDriveTabChange=!1,this.indicatorList=wO,this.actions$.pipe(dv(hn.SetSearchLocationOnMap),lt(s=>{console.log("set location",s.payload),this.airQualityService.manageSelectedSearchLocation(s.payload)}),et(this.destroyed$)).subscribe()}onClearSelection(){var t=this;return Xe(function*(){yield t.airQualityService.clearSelection()})()}onFilterData(){var t=this;return Xe(function*(){t.selectedTabIndex=0;let e={filterType:t.chosenType,filterYear:parseInt(t.filterYear),filterMonth:parseInt(t.filterMonth)};yield t.airQualityService.manageSA3FilterUpdate(e,t.selectedIndicatorType),yield t.store.dispatch(new Kn.SetSa4AnalysisIndicator(t.selectedIndicatorType)).toPromise()})()}ngOnDestroy(){var t=this;return Xe(function*(){yield t.store.dispatch(new Kn.SetDefaultState).toPromise(),yield t.store.dispatch(new hn.SetActiveModule(da.default)).toPromise(),t.destroyed$.next(),t.destroyed$.complete()})()}ngOnInit(){var t=this;return Xe(function*(){yield t.store.dispatch(new hn.SetActiveModule(da.AirImpact)).toPromise(),t.selectedIndicatorType=t.store.selectSnapshot(e=>e.airimpact.analysisResult.sa4AnalysisIndicator),t.YearList=yield t.airQualityService.getsa3AnalysisYears(),t.MonthList=t.airQualityService.getAnalysisMonths(),t.chosenType="monthly",t.filterYear="2020",t.filterMonth="1",t.onFilterData()})()}}j_.\u0275fac=function(t){return new(t||j_)(g(zi),g(sg),g(GFe))},j_.\u0275cmp=K({type:j_,selectors:[["app-impact-analysis"]],decls:40,vars:13,consts:[["color","primary","fxLayout","row","fxLayoutAlign","space-between center",1,"secondaryToolBar"],["mode","indeterminate",3,"color",4,"ngIf"],["orientation","vertical",2,"height","85%"],["size","50%",3,"collapsible"],["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"filterForm",3,"formGroup"],["fxLayout","column","fxLayoutAlign","space-between start"],["fxLayout","row","fxLayoutAlign","space-around start",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-around start"],["fxFlex","","appearance","outline"],[3,"formControl","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-around start","fxLayoutGap","15px"],["mat-raised-button","","color","third",3,"click"],["mat-raised-button","","color","third",3,"click",4,"ngIf"],["href","https://ausenhealth.s3.ap-southeast-2.amazonaws.com/public/Data/Exposure/airquality.zip","target","_blank","mat-raised-button","","color","third"],["mat-stretch-tabs","","fxFlex","1 1 auto"],["label","Chart"],["label","Table","fxFlexFill",""],["fxFlex","1 1 auto",3,"selectedIndex"],["label","Air Quality","fxFlexFill",""],["label","Health Outcome Info","fxFlexFill",""],["orientation","vertical",2,"height","100%"],[2,"min-height","90%","overflow","hidden"],[1,"map-area"],["mode","indeterminate",3,"color"],[3,"value"]],template:function(t,e){if(1&t&&(y(0,"mat-toolbar",0),y(1,"span"),H(2,"Air Quality Impact Analysis"),_(),P(3,"app-map-location-search"),_(),A(4,nin,1,1,"mat-progress-bar",1),gi(5,"async"),y(6,"kendo-splitter",2),y(7,"kendo-splitter-pane"),y(8,"kendo-splitter"),y(9,"kendo-splitter-pane",3),y(10,"div",4),y(11,"form",5),y(12,"div",6),A(13,oin,11,6,"div",7),y(14,"div",8),y(15,"mat-form-field",9),y(16,"mat-label"),H(17,"Filter Indicator"),_(),y(18,"mat-select",10),se("ngModelChange",function(s){return e.selectedIndicatorType=s}),A(19,rin,2,2,"mat-option",11),_(),_(),_(),y(20,"div",12),y(21,"button",13),se("click",function(){return e.onFilterData()}),H(22," Filter "),_(),A(23,ain,2,0,"button",14),gi(24,"async"),y(25,"a",15),H(26,"Download Data"),_(),_(),_(),_(),y(27,"mat-tab-group",16),y(28,"mat-tab",17),P(29,"app-air-quality-impact-and-healthoutcome"),_(),y(30,"mat-tab",18),y(31,"mat-tab-group",19),y(32,"mat-tab",20),P(33,"app-air-quality-impact-summary"),_(),y(34,"mat-tab",21),P(35,"app-healthoutcome-grid"),_(),_(),_(),_(),_(),_(),y(36,"kendo-splitter-pane"),y(37,"kendo-splitter",22),y(38,"kendo-splitter-pane",23),P(39,"app-map",24),_(),_(),_(),_(),_(),_()),2&t){let i;b(4),v("ngIf",Mi(5,9,e.processing$)),b(5),v("collapsible",!0),b(2),v("formGroup",e.filterForm),b(2),v("ngIf",e.chosenType),b(5),v("formControl",e.indicatorControl)("ngModel",e.selectedIndicatorType),b(1),v("ngForOf",e.indicatorList),b(4),v("ngIf",(null==(i=Mi(24,11,e.selectedSA3Code16$))?null:i.length)>0),b(8),v("selectedIndex",e.selectedGridTabIndex)}},directives:[Np,po,fo,Mq,pt,$C,Vh,wo,gk,pk,_y,kg,ja,Tg,iD,Xc,RC,Wn,_u,Bd,bB,aX,qB,G_,D0,M0,Ic,S1,DC],pipes:[Hl],styles:["body{height:100%} .mat-tab-body-wrapper{height:100%} .gridcontainerheader{font-size:12px;margin-right:-15px}.filterForm[_ngcontent-%COMP%]{padding:10px}.small-mat-icon[_ngcontent-%COMP%]{font-size:12px}.main-content[_ngcontent-%COMP%]{height:100%;width:100%}.data-area[_ngcontent-%COMP%]{width:25%;height:100vh;background-color:#00008b} .map-group-area{width:75%;height:100vh} .map-group-area .map-area{width:100%;height:60vh} .map-group-area .chart-area{width:100%;height:40vh;background-color:pink} .airqualitygrid .k-grid tr.normal{background-color:#fff} .airqualitygrid .k-grid tr.hrank1{background-color:#a50f15;color:#fff} .airqualitygrid .k-grid tr.hrank2{background-color:#de2d26;color:#fff} .airqualitygrid .k-grid tr.hrank3{background-color:#fb6a4a} .airqualitygrid .k-grid tr.hrank4{background-color:#fcae91} .airqualitygrid .k-grid tr.hrank5{background-color:#fee5d9} .airqualitygrid .k-grid tr.crank1{background-color:#08519c;color:#fff} .airqualitygrid .k-grid tr.crank2{background-color:#3182bd;color:#fff} .airqualitygrid .k-grid tr.crank3{background-color:#6baed6} .airqualitygrid .k-grid tr.crank4{background-color:#bdd7e7} .airqualitygrid .k-grid tr.crank5{background-color:#eff3ff} .airqualitygrid .k-grid tr.k-state-selected{border:3px solid cyan;border-color:#0ff} .airqualitygrid .k-grid tr.k-state-selected td{border-color:#0ff;border-top:inherit;border-bottom:inherit;border-left-width:0px;border-right-width:0px}.mat-tab-group[_ngcontent-%COMP%]{height:100%;width:100%}.mat-tab-body-wrapper[_ngcontent-%COMP%]{flex-grow:1}.mat-tab-body[_ngcontent-%COMP%]{display:flex!important;flex-direction:column}.mat-tab-body-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1}"]}),nt([rn(n=>n.airimpact.isProcessing)],j_.prototype,"processing$",void 0),nt([rn(n=>n.airimpact.analysisResult.selectedSA3Code16)],j_.prototype,"selectedSA3Code16$",void 0),nt([rn(n=>n.airimpact.analysisResult.sa3AnalysisIndicator)],j_.prototype,"analysisIndicator$",void 0),nt([rn(n=>n.airimpact.analysisResult.sa4HealthIndicator)],j_.prototype,"healthIndicator$",void 0);let lin=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["app-campaign-awareness"]],decls:2,vars:0,consts:[["color","primary",1,"secondaryToolBar"]],template:function(e,i){1&e&&(y(0,"mat-toolbar",0),H(1,"Air Quality: Campaign Awareness"),_())},directives:[Np],styles:[""]}),n})();const cin=["kendohfGrid"];function din(n,t){if(1&n&&P(0,"kendo-grid-column",7),2&n){const e=t.$implicit;v("field",e.field)("title",e.title)("hidden",e.hidden)}}const uin=function(){return{mode:"single"}},hin=function(){return{filter:!0}},pin=function(){return{allowUnsort:!1,mode:"single"}};class E0{constructor(t){this.store=t,this.hfSort=[{field:"sa3_code16",dir:"asc"}],this.hfColumns=Ime,this.destroyed$=new Z,this.sa3FilterResult$.pipe(lt(()=>{this.loadHeadFactorGridData()}),et(this.destroyed$)).subscribe(),this.rankingList$.pipe(lt(()=>{this.loadHeadFactorGridData()}),et(this.destroyed$)).subscribe(),this.selectedSA3Code16$.pipe(lt(e=>{e&&e.length>0?(this.selectedSA3Code16[0]!=e[0]&&(this.selectedSA3Code16=[e[0]]),this.scrollToSelection()):this.selectedSA3Code16=[]}),et(this.destroyed$)).subscribe()}scrollToSelection(){setTimeout(()=>{let e=this.kendoGrid.nativeElement.querySelector(".k-state-selected");e&&e.scrollIntoView()},200)}loadHeadFactorGridData(){let t=this.store.selectSnapshot(i=>i.heatriskassessment.analysisResult.sa3FilterResult),e=Kp(t,this.filter);this.gvHeatFactorBinder={data:zh(e,this.hfSort),total:e.length}}hfSortChange(t){this.hfSort=t,this.loadHeadFactorGridData()}filterChange(t){this.filter=t,this.loadHeadFactorGridData()}selectionChange(t){var e=this;return Xe(function*(){let i=t.selectedRows[0].dataItem.sa3_code16;yield e.store.dispatch(new Gn.SetSelectedSA3Code16([i])).toPromise()})()}getRowClass(t){let e={};return e[t.dataItem.cssclass]=!0,e}ngOnInit(){this.selectedSA3Code16=[]}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}E0.\u0275fac=function(t){return new(t||E0)(g(zi))},E0.\u0275cmp=K({type:E0,selectors:[["app-heatrisk-hf-grid"]],viewQuery:function(t,e){if(1&t&&Ae(cin,5,$),2&t){let i;U(i=W())&&(e.kendoGrid=i.first)}},decls:10,vars:17,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"k-indicator-container","gridtophead"],[1,"gridcontainerheader"],["fxFlex","1 1 auto",1,"heatriskgrid",2,"height","300px"],["kendoGridSelectBy","sa3_code16",3,"data","loading","sort","selectable","filter","columnMenu","reorderable","resizable","selectedKeys","rowClass","sortable","sortChange","selectionChange","filterChange"],["kendohfGrid",""],["filter","numeric",3,"field","title","hidden",4,"ngFor","ngForOf"],["filter","numeric",3,"field","title","hidden"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"div",1),H(2,"Please click "),y(3,"mat-icon",2),H(4,"more_vert"),_(),H(5," on the columns for more functionality"),_(),y(6,"div",3),y(7,"kendo-grid",4,5),se("sortChange",function(s){return e.hfSortChange(s)})("selectionChange",function(s){return e.selectionChange(s)})("filterChange",function(s){return e.filterChange(s)}),A(9,din,1,3,"kendo-grid-column",6),_(),_(),_()),2&t&&(b(7),yt("height",100,"%"),v("data",e.gvHeatFactorBinder)("loading",e.loading)("sort",e.hfSort)("selectable",si(14,uin))("filter",e.filter)("columnMenu",si(15,hin))("reorderable",!0)("resizable",!0)("selectedKeys",e.selectedSA3Code16)("rowClass",e.getRowClass)("sortable",si(16,pin)),b(2),v("ngForOf",e.hfColumns))},directives:[po,fo,wo,gl,ja,ao,fm,Wn,oi],styles:[""]}),nt([rn(n=>n.heatriskassessment.analysisResult.sa3FilterResult)],E0.prototype,"sa3FilterResult$",void 0),nt([rn(n=>n.heatriskassessment.rankingList)],E0.prototype,"rankingList$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA3Code16)],E0.prototype,"selectedSA3Code16$",void 0);const fin=["kendocfGrid"];function gin(n,t){if(1&n&&P(0,"kendo-grid-column",7),2&n){const e=t.$implicit;v("field",e.field)("title",e.title)("hidden",e.hidden)}}const min=function(){return{filter:!0}},yin=function(){return{mode:"single"}},_in=function(){return{allowUnsort:!1,mode:"single"}};class I0{constructor(t){this.store=t,this.cfSort=[{field:"sa3_code16",dir:"asc"}],this.cfColumns=Ame,this.destroyed$=new Z,this.sa3FilterResult$.pipe(lt(()=>{this.loadColdFactorGridData()}),et(this.destroyed$)).subscribe(),this.rankingList$.pipe(lt(()=>{this.loadColdFactorGridData()}),et(this.destroyed$)).subscribe(),this.selectedSA3Code16$.pipe(lt(e=>{e&&e.length>0?(this.selectedSA3Code16[0]!=e[0]&&(this.selectedSA3Code16=[e[0]]),this.scrollToSelection()):this.selectedSA3Code16=[]}),et(this.destroyed$)).subscribe()}scrollToSelection(){setTimeout(()=>{let e=this.kendoGrid.nativeElement.querySelector(".k-state-selected");e&&e.scrollIntoView()},200)}loadColdFactorGridData(){let t=this.store.selectSnapshot(i=>i.heatriskassessment.analysisResult.sa3FilterResult),e=Kp(t,this.filter);this.gvColdFactorBinder={data:zh(e,this.cfSort),total:e.length}}getRowClass(t){let e={};return e[t.dataItem.cssclass]=!0,e}filterChange(t){this.filter=t,this.loadColdFactorGridData()}cfSortChange(t){this.cfSort=t,this.loadColdFactorGridData()}selectionChange(t){var e=this;return Xe(function*(){let i=t.selectedRows[0].dataItem.sa3_code16;yield e.store.dispatch(new Gn.SetSelectedSA3Code16([i])).toPromise()})()}ngOnInit(){this.selectedSA3Code16=[],console.log("on cf grid init")}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}function vin(n,t){1&n&&P(0,"kendo-chart-title",8),2&n&&v("text","Region")}I0.\u0275fac=function(t){return new(t||I0)(g(zi))},I0.\u0275cmp=K({type:I0,selectors:[["app-heatrisk-cf-grid"]],viewQuery:function(t,e){if(1&t&&Ae(fin,5,$),2&t){let i;U(i=W())&&(e.kendoGrid=i.first)}},decls:10,vars:17,consts:[["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"k-indicator-container","gridtophead"],[1,"gridcontainerheader"],["fxFlex","1 1 auto",1,"heatriskgrid",2,"height","300px"],["kendoGridSelectBy","sa3_code16",3,"data","loading","sort","filter","columnMenu","selectable","selectedKeys","rowClass","reorderable","resizable","sortable","filterChange","sortChange","selectionChange"],["kendocfGrid",""],["filter","numeric",3,"field","title","hidden",4,"ngFor","ngForOf"],["filter","numeric",3,"field","title","hidden"]],template:function(t,e){1&t&&(y(0,"div",0),y(1,"div",1),H(2,"Please click "),y(3,"mat-icon",2),H(4,"more_vert"),_(),H(5," on the columns for more functionality"),_(),y(6,"div",3),y(7,"kendo-grid",4,5),se("filterChange",function(s){return e.filterChange(s)})("sortChange",function(s){return e.cfSortChange(s)})("selectionChange",function(s){return e.selectionChange(s)}),A(9,gin,1,3,"kendo-grid-column",6),_(),_(),_()),2&t&&(b(7),yt("height",100,"%"),v("data",e.gvColdFactorBinder)("loading",e.loading)("sort",e.cfSort)("filter",e.filter)("columnMenu",si(14,min))("selectable",si(15,yin))("selectedKeys",e.selectedSA3Code16)("rowClass",e.getRowClass)("reorderable",!0)("resizable",!0)("sortable",si(16,_in)),b(2),v("ngForOf",e.cfColumns))},directives:[po,fo,wo,gl,ja,ao,fm,Wn,oi],styles:[""]}),nt([rn(n=>n.heatriskassessment.analysisResult.sa3FilterResult)],I0.prototype,"sa3FilterResult$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA3Code16)],I0.prototype,"selectedSA3Code16$",void 0),nt([rn(n=>n.heatriskassessment.rankingList)],I0.prototype,"rankingList$",void 0);class rE{constructor(t,e){this.store=t,this.heatriskService=e,this.legendTitle={text:"Indicator: "},this.legendOrientation="vertical",this.getColor=i=>i.index===this.selectedChartItemIndex?"#00ff00":this.chartColor,this.destroyed$=new Z,this.selectedChartItemIndex=-1,this.seriesLabels={visible:!1,font:"bold 16px Arial, sans-serif"},this.markers={background:"#00ff00",border:{color:"black",width:2},type:"circle"},this.analysisResult$.pipe(lt(i=>{try{if(i.sa3FilterResult&&i.sa3AnalysisIndicator)try{if(this.heatriskService.doesChartNeedToLoad(this.chartRenderBasedFilter,this.analysisIndicator)){this.chartRenderBasedFilter=this.store.selectSnapshot(r=>r.heatriskassessment.analysisFilter);let o=i.sa3AnalysisIndicator;this.chartfilterData=[],i.sa3FilterResult.forEach(r=>{let a=Object.assign({},r);this.chartfilterData.push(a)}),this.analysisIndicator=o,this.analysisIndicatorDisplay=_k.filter(r=>r.key===this.analysisIndicator)[0].value,this.legendTitle.text="Indicator: "+this.analysisIndicatorDisplay,this.updateColorByIndicator(),this.chartfilterData.sort((r,a)=>r[o]>a[o]?1:-1),this.selectedChartItemIndex=-1}if(i.selectedSA3Code16&&i.selectedSA3Code16.length>0){let o=i.selectedSA3Code16[0];this.selectedData=[];for(var s=0;s-1?"#ff0000":"#0000ff"}onSeriesClick(t){var e=this;return Xe(function*(){try{let i=[t.dataItem.sa3_code16];yield e.store.dispatch(new Gn.SetSelectedSA3Code16(i)).toPromise()}catch(i){}})()}ngOnInit(){this.chartRenderBasedFilter=this.store.selectSnapshot(t=>t.heatriskassessment.analysisFilter),this.chartfilterData=[],this.selectedData=[],this.chartColor="#ff0000"}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}function bin(n,t){if(1&n&&P(0,"kendo-chart-title",6),2&n){const e=I();v("text","Region name: "+e.sa3Name+" , Indicator: "+e.analysisIndicatorDisplay)}}function Cin(n,t){if(1&n&&(y(0,"kendo-chart-series"),P(1,"kendo-chart-series-item",7),_()),2&n){const e=I();b(1),v("type",e.chartType)("data",e.selectedTemporal)("field",e.analysisIndicator)("color",e.chartColor)}}function xin(n,t){if(1&n&&P(0,"kendo-chart-series-item",9),2&n){const e=t.$implicit,i=I(2);v("type",i.chartType)("name",e.name)("visible",1==e.id)("data",e.selectedTemporal)("field",i.analysisIndicator)}}function win(n,t){if(1&n&&(y(0,"kendo-chart-series"),A(1,xin,1,5,"kendo-chart-series-item",8),_()),2&n){const e=I();b(1),v("ngForOf",e.temporalSeries)}}rE.\u0275fac=function(t){return new(t||rE)(g(zi),g(Hv))},rE.\u0275cmp=K({type:rE,selectors:[["app-heatrisk-benchmark-chart"]],decls:13,vars:14,consts:[["fxFlexFill","",2,"height","100%",3,"seriesClick"],[3,"min","max"],["position","bottom","font","9pt sans-serif",3,"text",4,"ngIf"],[3,"visible"],["position","left","orientation","vertical",1,"verticalcss",3,"title"],["type","line","color","#00ff00","categoryField","sa3_code16",3,"data","field","gap","markers"],["type","column","categoryField","sa3_code16",3,"data","field","gap","color"],["format","{0}"],["position","bottom","font","9pt sans-serif",3,"text"]],template:function(t,e){1&t&&(y(0,"kendo-chart",0),se("seriesClick",function(s){return e.onSeriesClick(s)}),y(1,"kendo-chart-value-axis"),P(2,"kendo-chart-value-axis-item",1),_(),A(3,vin,1,1,"kendo-chart-title",2),y(4,"kendo-chart-category-axis"),y(5,"kendo-chart-category-axis-item"),P(6,"kendo-chart-category-axis-item-labels",3),_(),_(),P(7,"kendo-chart-legend",4),y(8,"kendo-chart-series"),P(9,"kendo-chart-series-item",5),y(10,"kendo-chart-series-item",6),P(11,"kendo-chart-series-item-labels",3),P(12,"kendo-chart-series-item-tooltip",7),_(),_(),_()),2&t&&(b(2),v("min",0)("max",100),b(1),v("ngIf",e.analysisIndicatorDisplay),b(3),v("visible",!1),b(1),v("title",e.legendTitle),b(2),v("data",e.selectedData)("field",e.analysisIndicator)("gap",0)("markers",e.markers),b(1),v("data",e.chartfilterData)("field",e.analysisIndicator)("gap",0)("color",e.getColor),b(1),v("visible",!1))},directives:[dr,wo,xd,sc,pt,Qu,ic,Ws,yd,Fc,va,Om,Qd,bd],styles:[".verticalcss[_ngcontent-%COMP%]{writing-mode:tb-rl;transform:rotate(90deg);white-space:nowrap;display:block;bottom:0;width:20px;height:20px}"]}),nt([rn(n=>n.heatriskassessment.analysisResult)],rE.prototype,"analysisResult$",void 0);class I1{constructor(t,e){var i=this;this.store=t,this.heatriskService=e,this.destroyed$=new Z,this.sa3Name="",this.chartType="line",this.monthAbbrev=aA,this.analysisResult$.pipe(lt(function(){var s=Xe(function*(o){try{const r=i.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.selectedSA3Code16);if(o.sa3FilterResult&&o.sa3AnalysisIndicator&&r&&r.length>0)try{let a=r[0];const l=i.store.selectSnapshot(c=>c.heatriskassessment.analysisFilter);i.analysisIndicator=i.store.selectSnapshot(c=>c.heatriskassessment.analysisResult.sa3AnalysisIndicator),i.analysisIndicatorDisplay=_k.filter(c=>c.key===i.analysisIndicator)[0].value,i.selectedTemporal=yield i.heatriskService.filterSA3TemperatureAnalysisBySA3(l,a),i.selectedTemporal&&i.selectedTemporal.length>0&&(i.sa3Name=i.selectedTemporal[0].name,i.selectedTemporal.sort((c,d)=>c.year>d.year?1:-1)),i.selectedTemporal=i.selectedTemporal.filter(c=>null!=c[i.analysisIndicator]),i.updateColorByIndicator(),i.GenerateTemporalSeries()}catch(a){}else i.selectedTemporal=[],i.temporalSeries=[]}catch(r){}});return function(o){return s.apply(this,arguments)}}()),et(this.destroyed$)).subscribe()}GenerateTemporalSeries(){this.temporalSeries=[],this.selectedTemporal.forEach(t=>{let e=this.temporalSeries.findIndex(i=>i.id==t.month);e>-1?this.temporalSeries[e].selectedTemporal.push(t):this.temporalSeries.push({id:t.month,name:aA[t.month],selectedTemporal:[t]})}),this.temporalSeries.sort((t,e)=>t.id>e.id?1:-1)}updateColorByIndicator(){this.chartColor=this.analysisIndicator.indexOf("heat")>-1?"#ff0000":"#0000ff"}ngOnInit(){this.chartColor="#ff0000",this.temporalSeries=[]}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}I1.\u0275fac=function(t){return new(t||I1)(g(zi),g(Hv))},I1.\u0275cmp=K({type:I1,selectors:[["app-heatrisk-temporal-chart"]],decls:10,vars:9,consts:[["fxFlexFill","",2,"height","100%"],[3,"min","max"],["position","bottom","font","9pt sans-serif",3,"text",4,"ngIf"],["position","bottom","orientation","horizontal"],["format","{0}"],[4,"ngIf"],["position","bottom","font","9pt sans-serif",3,"text"],["categoryField","timestamp",3,"type","data","field","color"],["categoryField","year",3,"type","name","visible","data","field",4,"ngFor","ngForOf"],["categoryField","year",3,"type","name","visible","data","field"]],template:function(t,e){1&t&&(y(0,"kendo-chart",0),y(1,"kendo-chart-value-axis"),P(2,"kendo-chart-value-axis-item",1),_(),A(3,bin,1,1,"kendo-chart-title",2),P(4,"kendo-chart-legend",3),P(5,"kendo-chart-tooltip",4),A(6,Cin,2,4,"kendo-chart-series",5),gi(7,"async"),A(8,win,2,1,"kendo-chart-series",5),gi(9,"async"),_()),2&t&&(b(2),v("min",0)("max",100),b(1),v("ngIf",e.analysisIndicatorDisplay),b(3),v("ngIf","yearly"===Mi(7,5,e.filterType$)),b(2),v("ngIf","monthly"===Mi(9,7,e.filterType$)))},directives:[dr,wo,xd,sc,pt,yd,Cd,bd,Fc,va,Wn],pipes:[Hl],styles:[".charttypelocation[_ngcontent-%COMP%]{position:absolute;bottom:-20px;z-index:2000}"]}),nt([rn(n=>n.heatriskassessment.analysisResult)],I1.prototype,"analysisResult$",void 0),nt([rn(n=>n.heatriskassessment.analysisFilter.filterType)],I1.prototype,"filterType$",void 0);const Sin=["hfgrid"],Tin=["cfgrid"];function kin(n,t){1&n&&P(0,"mat-progress-bar",28),2&n&&v("color","primary")}function Din(n,t){if(1&n&&(y(0,"mat-option",32),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function Min(n,t){if(1&n&&(y(0,"mat-option",32),H(1),_()),2&n){const e=t.$implicit;v("value",e.key),b(1),_t(" ",e.value," ")}}function Ein(n,t){if(1&n){const e=ht();y(0,"mat-form-field",8),y(1,"mat-label"),H(2,"Month"),_(),y(3,"mat-select",9),se("ngModelChange",function(s){return Le(e),I(2).filterMonth=s}),A(4,Min,2,2,"mat-option",30),_(),_()}if(2&n){const e=I(2);b(3),v("formControl",e.monthControl)("ngModel",e.filterMonth),b(1),v("ngForOf",e.MonthList)}}function Iin(n,t){if(1&n){const e=ht();y(0,"div",29),y(1,"mat-form-field",8),y(2,"mat-label"),H(3,"Year"),_(),y(4,"mat-select",9),se("ngModelChange",function(s){return Le(e),I().filterYear=s}),A(5,Din,2,2,"mat-option",30),_(),_(),A(6,Ein,5,3,"mat-form-field",31),_()}if(2&n){const e=I();b(4),v("formControl",e.yearControl)("ngModel",e.filterYear),b(1),v("ngForOf",e.YearList),b(1),v("ngIf","monthly"===e.chosenType)}}function Ain(n,t){if(1&n){const e=ht();y(0,"button",1),se("click",function(){return Le(e),I().onClearSelection()}),H(1," Clear Selection "),_()}}class A0{constructor(t,e,i,s,o,r){this.drawingMgrSvc=t,this.store=e,this.actions$=i,this.router=s,this.overlayLayerService=o,this.heatRiskAssessmentService=r,this.filterTypeControl=new gc("",Vp.required),this.yearControl=new gc("",Vp.required),this.monthControl=new gc("",Vp.required),this.YearList=[],this.MonthList=[],this.dataPanelState={expandFilterPanel:!0,expandHFPanel:!1,expandCFPanel:!1},this.filterForm=new yy({FilterType:this.filterTypeControl,Year:this.yearControl,Month:this.monthControl}),this.selectedTabIndex=0,this.selectedGridTabIndex=0,this.destroyed$=new Z,this.isIndicatorDriveTabChange=!1,this.overlayLayerService.pingService(),this.YearList=this.heatRiskAssessmentService.getAnalysisYears(),this.MonthList=this.heatRiskAssessmentService.getAnalysisMonths(),this.chosenType="yearly",this.filterYear="2020",this.onFilterData(),this.actions$.pipe(dv(hn.SetSearchLocationOnMap),lt(a=>{console.log("set location",a.payload),this.heatRiskAssessmentService.manageSelectedSearchLocation(a.payload)}),et(this.destroyed$)).subscribe(),this.analysisIndicator$.pipe(lt(a=>{a.indexOf("heat")>-1&&1==this.selectedGridTabIndex?(this.selectedGridTabIndex=0,console.log("Tab selection update")):a.indexOf("cold")>-1&&0==this.selectedGridTabIndex&&(this.selectedGridTabIndex=1,console.log("Tab selection update"))}),et(this.destroyed$)).subscribe()}onClearSelection(){var t=this;return Xe(function*(){yield t.heatRiskAssessmentService.clearSelection()})()}onFilterData(){var t=this;return Xe(function*(){t.dataPanelState.expandCFPanel=!0,t.dataPanelState.expandHFPanel=!0,t.dataPanelState.expandFilterPanel=!1,t.selectedTabIndex=0;let e={filterType:t.chosenType,filterYear:parseInt(t.filterYear),filterMonth:parseInt(t.filterMonth)};yield t.heatRiskAssessmentService.manageSA3FilterUpdate(e)})()}searchWithPoint(){this.drawingMgrSvc.setDrawingMode(google.maps.drawing.OverlayType.MARKER,"Point")}onGridTabChanged(t){var e=this;return Xe(function*(){console.log("grid tab change -",t);let i=e.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.sa3AnalysisIndicator),s=i;e.selectedGridTabIndex=t.index;let o=!1;0===e.selectedGridTabIndex&&i.indexOf("cold")>-1?(s=u3.filter(a=>a.coldIndicator===i)[0].heatIndicator,o=!0):1===e.selectedGridTabIndex&&i.indexOf("heat")>-1&&(s=u3.filter(a=>a.heatIndicator===i)[0].coldIndicator,o=!0),o&&e.heatRiskAssessmentService.manageAnalysisIndicatorUpdate(s);let r=e.store.selectSnapshot(a=>a.heatriskassessment.analysisResult.selectedSA3Code16);r&&r.length>0&&(0==t.index?e.heatfactorGrid.scrollToSelection():e.coldfactorGrid.scrollToSelection())})()}ngOnDestroy(){var t=this;return Xe(function*(){yield t.store.dispatch(new Gn.SetDefaultState).toPromise(),yield t.store.dispatch(new hn.SetActiveModule(da.default)).toPromise(),t.destroyed$.next(),t.destroyed$.complete()})()}ngOnInit(){var t=this;return Xe(function*(){yield t.store.dispatch(new hn.SetActiveModule(da.HeatRisk)).toPromise()})()}toSA2Level(){this.router.navigate(["heatriskassessment/sa2"])}}A0.\u0275fac=function(t){return new(t||A0)(g(Fme),g(zi),g(sg),g(pr),g(Oy),g(Hv))},A0.\u0275cmp=K({type:A0,selectors:[["app-heat-risk-assessment"]],viewQuery:function(t,e){if(1&t&&(Ae(Sin,5),Ae(Tin,5)),2&t){let i;U(i=W())&&(e.heatfactorGrid=i.first),U(i=W())&&(e.coldfactorGrid=i.first)}},decls:48,vars:14,consts:[["color","primary","fxLayout","row","fxLayoutAlign","space-between center",1,"secondaryToolBar"],["mat-raised-button","","color","third",3,"click"],["mode","indeterminate",3,"color",4,"ngIf"],["orientation","vertical",2,"height","85%"],["size","30%",3,"collapsible"],["fxLayout","column","fxLayoutAlign","start start","fxFlexFill",""],[1,"filterForm",3,"formGroup"],["fxLayout","column","fxLayoutAlign","space-between start"],["fxFlex","","appearance","outline"],[3,"formControl","ngModel","ngModelChange"],["value","yearly"],["value","monthly"],["fxLayout","row","fxLayoutAlign","space-around start",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-around start","fxLayoutGap","15px"],["mat-raised-button","","color","third",3,"click",4,"ngIf"],["href","https://ausenhealth.s3.ap-southeast-2.amazonaws.com/public/Data/Exposure/climate.zip","target","_blank","mat-raised-button","","color","third"],["fxFlex","1 1 auto",3,"selectedIndex","selectedTabChange"],["label","Heat Factor","fxFlexFill",""],["hfgrid",""],["label","Cold Factor","fxFlexFill",""],["cfgrid",""],["orientation","vertical",2,"height","100%"],[2,"min-height","60%","overflow","hidden"],[1,"map-area"],[3,"collapsible"],["color","primary","fxFlexFill","",3,"selectedIndex"],["label","Benchmark","fxFlexFill",""],["label","Temporal","fxFlexFill",""],["mode","indeterminate",3,"color"],["fxLayout","row","fxLayoutAlign","space-around start"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","","appearance","outline",4,"ngIf"],[3,"value"]],template:function(t,e){if(1&t&&(y(0,"mat-toolbar",0),y(1,"span"),H(2,"Heat Risk Assessment SA3 level "),y(3,"button",1),se("click",function(){return e.toSA2Level()}),H(4,"Go to SA2 Level"),_(),_(),P(5,"app-map-location-search"),_(),A(6,kin,1,1,"mat-progress-bar",2),gi(7,"async"),y(8,"kendo-splitter",3),y(9,"kendo-splitter-pane"),y(10,"kendo-splitter"),y(11,"kendo-splitter-pane",4),y(12,"div",5),y(13,"form",6),y(14,"div",7),y(15,"mat-form-field",8),y(16,"mat-label"),H(17,"Filter By"),_(),y(18,"mat-select",9),se("ngModelChange",function(s){return e.chosenType=s}),y(19,"mat-option",10),H(20,"Year"),_(),y(21,"mat-option",11),H(22,"Month"),_(),_(),_(),A(23,Iin,7,4,"div",12),y(24,"div",13),y(25,"button",1),se("click",function(){return e.onFilterData()}),H(26," Filter "),_(),A(27,Ain,2,0,"button",14),gi(28,"async"),y(29,"a",15),H(30,"Download Data"),_(),_(),_(),_(),y(31,"mat-tab-group",16),se("selectedTabChange",function(s){return e.onGridTabChanged(s)}),y(32,"mat-tab",17),P(33,"app-heatrisk-hf-grid",null,18),_(),y(35,"mat-tab",19),P(36,"app-heatrisk-cf-grid",null,20),_(),_(),_(),_(),y(38,"kendo-splitter-pane"),y(39,"kendo-splitter",21),y(40,"kendo-splitter-pane",22),P(41,"app-map",23),_(),y(42,"kendo-splitter-pane",24),y(43,"mat-tab-group",25),y(44,"mat-tab",26),P(45,"app-heatrisk-benchmark-chart"),_(),y(46,"mat-tab",27),P(47,"app-heatrisk-temporal-chart"),_(),_(),_(),_(),_(),_(),_(),_()),2&t){let i;b(6),v("ngIf",Mi(7,10,e.processing$)),b(5),v("collapsible",!0),b(2),v("formGroup",e.filterForm),b(5),v("formControl",e.filterTypeControl)("ngModel",e.chosenType),b(5),v("ngIf",e.chosenType),b(4),v("ngIf",(null==(i=Mi(28,12,e.selectedSA3Code16$))?null:i.length)>0),b(4),v("selectedIndex",e.selectedGridTabIndex),b(11),v("collapsible",!0),b(1),v("selectedIndex",e.selectedTabIndex)}},directives:[Np,po,fo,Bd,Mq,pt,$C,Vh,wo,gk,pk,_y,kg,ja,Tg,iD,Xc,RC,DC,_u,bB,aX,qB,E0,I0,Ic,rE,I1,S1,Wn],pipes:[Hl],styles:["body{height:100%} .mat-tab-body-wrapper{height:100%} .gridcontainerheader{font-size:12px;margin-right:-15px}.filterForm[_ngcontent-%COMP%]{padding:10px}.small-mat-icon[_ngcontent-%COMP%]{font-size:12px}.main-content[_ngcontent-%COMP%]{height:100%;width:100%}.data-area[_ngcontent-%COMP%]{width:25%;height:100vh;background-color:#00008b} .map-group-area{width:75%;height:100vh} .map-group-area .map-area{width:100%;height:60vh} .map-group-area .chart-area{width:100%;height:40vh;background-color:pink} .heatriskgrid .k-grid tr.normal{background-color:#fff} .heatriskgrid .k-grid tr.hrank1{background-color:#a50f15;color:#fff} .heatriskgrid .k-grid tr.hrank2{background-color:#de2d26;color:#fff} .heatriskgrid .k-grid tr.hrank3{background-color:#fb6a4a} .heatriskgrid .k-grid tr.hrank4{background-color:#fcae91} .heatriskgrid .k-grid tr.hrank5{background-color:#fee5d9} .heatriskgrid .k-grid tr.crank1{background-color:#08519c;color:#fff} .heatriskgrid .k-grid tr.crank2{background-color:#3182bd;color:#fff} .heatriskgrid .k-grid tr.crank3{background-color:#6baed6} .heatriskgrid .k-grid tr.crank4{background-color:#bdd7e7} .heatriskgrid .k-grid tr.crank5{background-color:#eff3ff} .heatriskgrid .k-grid tr.k-state-selected{border:3px solid cyan;border-color:#0ff} .heatriskgrid .k-grid tr.k-state-selected td{border-color:#0ff;border-top:inherit;border-bottom:inherit;border-left-width:0px;border-right-width:0px}"]}),nt([rn(n=>n.heatriskassessment.isProcessing)],A0.prototype,"processing$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.selectedSA3Code16)],A0.prototype,"selectedSA3Code16$",void 0),nt([rn(n=>n.heatriskassessment.analysisResult.sa3AnalysisIndicator)],A0.prototype,"analysisIndicator$",void 0);let Fin=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["app-page-not-found"]],decls:2,vars:0,template:function(e,i){1&e&&(y(0,"p"),H(1,"Page cannot be found"),_())},styles:[""]}),n})(),Oin=(()=>{class n{constructor(){this.step=0}ngOnInit(){}setStep(e){this.step=e}nextStep(){this.step++}prevStep(){this.step--}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["app-faq"]],decls:176,vars:12,consts:[["fxLayout","column","fxLayoutAlign","center center","fxFlex.lt-xl","100",1,"content"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"wrapper"],["fxFlex","7",1,"title"],["fxFlex","93"],["fxFlex","100",1,"FAQs"],["appMaterialElevation","","hideToggle","",3,"expanded","opened"],["mat-button","","color","$ausenhealth-primary",3,"click"],["mat-button","",1,"prev",3,"click"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",1),y(2,"h1",2),H(3,"Frequently Asked Questions"),_(),P(4,"br"),y(5,"div",3),y(6,"mat-accordion",4),y(7,"mat-expansion-panel",5),se("opened",function(){return i.setStep(0)}),y(8,"mat-expansion-panel-header"),y(9,"mat-panel-title"),y(10,"h1"),H(11," What is AusEnHealth?"),_(),_(),y(12,"mat-icon"),H(13,"question_answer"),_(),_(),y(14,"p"),H(15," AusEnHealth is an interactive strategic planning digital twin, designed to enable visualisation and analysis of environmental health data, and provide tools to support adaptation planning, vulnerability assessment, and decision making. The current version of AusEnHealth is the first phase of this project."),_(),y(16,"mat-action-row"),y(17,"button",6),se("click",function(){return i.nextStep()}),H(18,"Next"),_(),_(),_(),y(19,"mat-expansion-panel",5),se("opened",function(){return i.setStep(1)}),y(20,"mat-expansion-panel-header"),y(21,"mat-panel-title"),y(22,"h1"),H(23," Where do the data shown in AusEnHealth come from?"),_(),_(),y(24,"mat-icon"),H(25,"question_answer"),_(),_(),y(26,"p"),H(27,"The maps show data provided by a wide range of data custodians, detailed in the platform\u2019s metadata documentation. Data custodians include the Australian Bureau of Statistics (ABS), the Bureau of Meteorology (BOM), and Copernicus among others. AusEnHealth also shows indicators based on combined data. "),_(),y(28,"mat-action-row"),y(29,"button",7),se("click",function(){return i.prevStep()}),H(30,"Previous"),_(),y(31,"button",6),se("click",function(){return i.nextStep()}),H(32,"Next"),_(),_(),_(),y(33,"mat-expansion-panel",5),se("opened",function(){return i.setStep(2)}),y(34,"mat-expansion-panel-header"),y(35,"mat-panel-title"),y(36,"h1"),H(37," What years of data are used?"),_(),_(),y(38,"mat-icon"),H(39,"question_answer"),_(),_(),y(40,"p"),H(41,"Different datasets have different temporal extents. Temperature data have been collected from 2000-2020. Air quality data have been collected from 2001-2020. Demographics data have been collected (where available) from 2011-2019. For more information, please see the metadata documentation."),_(),y(42,"mat-action-row"),y(43,"button",7),se("click",function(){return i.prevStep()}),H(44,"Previous"),_(),y(45,"button",6),se("click",function(){return i.nextStep()}),H(46,"Next"),_(),_(),_(),y(47,"mat-expansion-panel",5),se("opened",function(){return i.setStep(3)}),y(48,"mat-expansion-panel-header"),y(49,"mat-panel-title"),y(50,"h1"),H(51,"What does the data in my area mean for me specifically?"),_(),_(),y(52,"mat-icon"),H(53,"question_answer"),_(),_(),y(54,"p"),H(55,"The data and indices in AusEnHealth represent the population in a geographical area. This does not reflect the values for any individual in that area."),_(),y(56,"mat-action-row"),y(57,"button",7),se("click",function(){return i.prevStep()}),H(58,"Previous"),_(),y(59,"button",6),se("click",function(){return i.nextStep()}),H(60,"Next"),_(),_(),_(),y(61,"mat-expansion-panel",5),se("opened",function(){return i.setStep(4)}),y(62,"mat-expansion-panel-header"),y(63,"mat-panel-title"),y(64,"h1"),H(65,"How are the vulnerability indices calculated?"),_(),_(),y(66,"mat-icon"),H(67,"question_answer"),_(),_(),y(68,"p"),H(69,"Vulnerability indices presented in AusEnHealth are calculated by combining risk factors related to each specific vulnerability. The risk factors include a wide variety of environmental, demographic, and built environment variables. The combination method is further explained in the metadata documentation, as well as the methods report found in the outputs section of the proof of concept."),_(),y(70,"mat-action-row"),y(71,"button",7),se("click",function(){return i.prevStep()}),H(72,"Previous"),_(),y(73,"button",6),se("click",function(){return i.nextStep()}),H(74,"Next"),_(),_(),_(),y(75,"mat-expansion-panel",5),se("opened",function(){return i.setStep(5)}),y(76,"mat-expansion-panel-header"),y(77,"mat-panel-title"),y(78,"h1"),H(79,"How are the vulnerability indices calculated with missing values?"),_(),_(),y(80,"mat-icon"),H(81,"question_answer"),_(),_(),y(82,"p"),H(83,"When vulnerability indices are calculated for a given area at a given time and there are no observed values for one or more of the underlying risk factors, these factors are left out of the vulnerability index calculation for that area and time."),_(),y(84,"mat-action-row"),y(85,"button",7),se("click",function(){return i.prevStep()}),H(86,"Previous"),_(),y(87,"button",6),se("click",function(){return i.nextStep()}),H(88,"Next"),_(),_(),_(),y(89,"mat-expansion-panel",5),se("opened",function(){return i.setStep(6)}),y(90,"mat-expansion-panel-header"),y(91,"mat-panel-title"),y(92,"h1"),H(93,"Are there important correlations that can be observed in the data?"),_(),_(),y(94,"mat-icon"),H(95,"question_answer"),_(),_(),y(96,"p"),H(97,"While correlations can certainly be displayed between any two parameters presented in this platform, these are not necessarily causal associations. Entire research projects have been devoted to exploring the relationships between parameters in the environmental health domain. The AusEnHealth proof of concept simply enables the visualisation of these data and offers no assessment of the many potential correlations which can be drawn from the large amount of data provided in the platform."),_(),y(98,"mat-action-row"),y(99,"button",7),se("click",function(){return i.prevStep()}),H(100,"Previous"),_(),y(101,"button",6),se("click",function(){return i.nextStep()}),H(102,"Next"),_(),_(),_(),y(103,"mat-expansion-panel",5),se("opened",function(){return i.setStep(7)}),y(104,"mat-expansion-panel-header"),y(105,"mat-panel-title"),y(106,"h1"),H(107,"How can AusEnHealth support management and policy decisions?"),_(),_(),y(108,"mat-icon"),H(109,"question_answer"),_(),_(),y(110,"p"),H(111,"AusEnHealth enables a national comparison of environmental health data and vulnerability indices. These comparisons and insights will support discussion and research, which will support more informed decision making, policy changes, and intervention strategies."),_(),y(112,"mat-action-row"),y(113,"button",7),se("click",function(){return i.prevStep()}),H(114,"Previous"),_(),y(115,"button",6),se("click",function(){return i.nextStep()}),H(116,"Next"),_(),_(),_(),y(117,"mat-expansion-panel",5),se("opened",function(){return i.setStep(8)}),y(118,"mat-expansion-panel-header"),y(119,"mat-panel-title"),y(120,"h1"),H(121," Can I download data presented in AusEnHealth?"),_(),_(),y(122,"mat-icon"),H(123,"question_answer"),_(),_(),y(124,"p"),H(125,"You can download all the data presented in AusEnHealth. This is available in the data downloads section of the platform."),_(),y(126,"mat-action-row"),y(127,"button",7),se("click",function(){return i.prevStep()}),H(128,"Previous"),_(),y(129,"button",6),se("click",function(){return i.nextStep()}),H(130,"Next"),_(),_(),_(),y(131,"mat-expansion-panel",5),se("opened",function(){return i.setStep(9)}),y(132,"mat-expansion-panel-header"),y(133,"mat-panel-title"),y(134,"h1"),H(135,"What does a high vulnerability index mean?"),_(),_(),y(136,"mat-icon"),H(137,"question_answer"),_(),_(),y(138,"p"),H(139,"A high value of a vulnerability index for a geographical area means that the combined risk factors for that area are higher in that area compared to others across Australia. Areas with higher vulnerability values are at greater risk of poor health outcomes."),_(),y(140,"mat-action-row"),y(141,"button",7),se("click",function(){return i.prevStep()}),H(142,"Previous"),_(),y(143,"button",6),se("click",function(){return i.nextStep()}),H(144,"Next"),_(),_(),_(),y(145,"mat-expansion-panel",5),se("opened",function(){return i.setStep(10)}),y(146,"mat-expansion-panel-header"),y(147,"mat-panel-title"),y(148,"h1"),H(149,"Using AusEnHealth, can I visually identify causality?"),_(),_(),y(150,"mat-icon"),H(151,"question_answer"),_(),_(),y(152,"p"),H(153,"In this first phase of AusEnHealth, pairwise relationships between variables in the AusEnHealth database can be displayed visually. A close relationship indicates that the two variables are associated. This does not necessarily indicate a causal relationship."),_(),y(154,"mat-action-row"),y(155,"button",7),se("click",function(){return i.prevStep()}),H(156,"Previous"),_(),y(157,"button",6),se("click",function(){return i.nextStep()}),H(158,"Next"),_(),_(),_(),y(159,"mat-expansion-panel",5),se("opened",function(){return i.setStep(11)}),y(160,"mat-expansion-panel-header"),y(161,"mat-panel-title"),y(162,"h1"),H(163,"What do the variables used in the demonstrator mean? "),P(164,"br"),H(165," Where can I find definitions?"),_(),_(),y(166,"mat-icon"),H(167,"question_answer"),_(),_(),y(168,"p"),H(169,'Definitions can be found for relevant parameters in each demonstrator by clicking the "?" button located in the choropleth map panel. Alternatively, a full data dictionary is provided in the metadata document.'),_(),y(170,"mat-action-row"),y(171,"button",7),se("click",function(){return i.prevStep()}),H(172,"Previous"),_(),y(173,"button",6),se("click",function(){return i.nextStep()}),H(174,"Next"),_(),_(),_(),P(175,"br"),_(),_(),_(),_()),2&e&&(b(7),v("expanded",0===i.step),b(12),v("expanded",1===i.step),b(14),v("expanded",2===i.step),b(14),v("expanded",3===i.step),b(14),v("expanded",4===i.step),b(14),v("expanded",5===i.step),b(14),v("expanded",6===i.step),b(14),v("expanded",7===i.step),b(14),v("expanded",8===i.step),b(14),v("expanded",9===i.step),b(14),v("expanded",10===i.step),b(14),v("expanded",11===i.step))},directives:[po,fo,ja,g8,Bb,vU,Vb,bO,gl,z9t,Bd],styles:[".wrapper[_ngcontent-%COMP%]{padding:20px 48px 0;max-width:850px;font-family:Roboto;text-align:center;margin-top:10px;margin-bottom:30px;border-radius:25px}.title[_ngcontent-%COMP%]{color:#deb423;font-size:xx-large;font-weight:550}.content[_ngcontent-%COMP%]{height:93%;background-color:#c2d6ff}.secondaryToolBar[_ngcontent-%COMP%]{color:#deb423;background-color:#c2d6ff;font-size:xx-large;font-weight:550}h1[_ngcontent-%COMP%]{color:#deb423;margin-bottom:0;text-align:left}p[_ngcontent-%COMP%]{font-size:large;color:#001642;margin-bottom:15px}.mat-subheading-1[_ngcontent-%COMP%]{margin:0;height:2em;color:#deb423}.FAQs[_ngcontent-%COMP%]{margin-bottom:30px}.prev[_ngcontent-%COMP%]{color:#deb423}"]}),n})(),Rin=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Tn(e)}get inset(){return this._inset}set inset(e){this._inset=Tn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(fe("aria-orientation",i.vertical?"vertical":"horizontal"),he("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),n})(),Pin=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi],vi]}),n})(),Lin=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=K({type:n,selectors:[["app-aboutus"]],decls:22,vars:0,consts:[["fxLayout","column","fxLayoutAlign","start center",1,"page"],["fxLayout","column","fxLayoutAlign","center center",1,"wrapper","mat-elevation-z20"],[1,"status"],["id","involvedH"],["id","involved"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",1),y(2,"h1"),H(3,"About Us"),_(),y(4,"div"),y(5,"h2"),H(6,"AusEnHealth Vision"),_(),y(7,"p"),H(8,"To deliver an operational and scalable environmental health online resource making environmental health indicators (current and forecast) and gold standard environmental health models easily accessible, thereby enhancing spatial and analytical capacity for policy decisions and public health planning."),_(),y(9,"h2"),H(10,"Who are we?"),_(),y(11,"p"),H(12,"AusEnHealth is a multi-organization initiative co-led by FrontierSI and Queensland University of Technology. We are welcoming and inclusive and encourage other like-minded organisations to collaborate to help drive the AusEnHealth Initiative."),_(),_(),y(13,"div",2),P(14,"mat-divider"),y(15,"h2",3),H(16,"Current Status & Get Involved"),_(),y(17,"p",4),H(18,"The AusEnHealth platform is currently at a Proof-Of-Concept stage and is being developed through a modular design process."),P(19,"br"),H(20," Four priority use case applications have been developed and are available to demonstrate. Please contact our team to find out more, be part of this initiative or to book a demo session. We would love to hear from you. "),_(),P(21,"mat-divider"),_(),_(),_())},directives:[po,fo,Rin],styles:[".wrapper[_ngcontent-%COMP%]{margin-top:5%;padding:12px 48px 48px;background-color:#fff;max-width:60%;text-align:center;border-radius:25px}.page[_ngcontent-%COMP%]{position:absolute;height:93%;background-color:#c2d6ff;font-family:Roboto}h2[_ngcontent-%COMP%]{padding:10px 48px;color:#deb423;margin-bottom:0}h1[_ngcontent-%COMP%]{color:#deb423;font-size:xx-large;font-weight:550}p[_ngcontent-%COMP%]{line-height:100%;font-size:large;color:#001642}mat-divider[_ngcontent-%COMP%]{border-top-color:#001642}mat-toolbar[_ngcontent-%COMP%]{background-color:#c2d6ff}.status[_ngcontent-%COMP%]{margin-top:30px}#involvedH[_ngcontent-%COMP%]{text-align:center}#involved[_ngcontent-%COMP%]{text-align:center}"]}),n})(),Nin=(()=>{class n{constructor(e,i){this.disclaimerRef=e,this.data=i}onNoClick(){this.disclaimerRef.close()}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(g(y8),g(Yee))},n.\u0275cmp=K({type:n,selectors:[["app-disclaimer-dialogue"]],decls:23,vars:0,consts:[["color","primary"],[2,"overflow","auto","padding","16px"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","16px",2,"padding","16px"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(y(0,"div"),y(1,"mat-toolbar",0),y(2,"span"),H(3,"Disclaimer"),_(),_(),y(4,"div",1),H(5," The datasets available for download through AusEnHealth are provided for general information purposes only. "),P(6,"br"),P(7,"br"),H(8," You are encouraged to review the associated methodology document for information regarding the source and interpretation of the data."),P(9,"br"),P(10,"br"),H(11," The datasets are provided at an aggregated level and do not refer to individual exposures, risk factors or health outcomes. The information should not be used as a substitute for advice from a properly qualified medical professional who can advise you about your own individual health and medical needs. It is not intended to constitute medical advice and is provided for general information purposes only."),P(12,"br"),P(13,"br"),H(14," While care has been taken to obtain the data from reputable sources, the organisations involved in the development of AusEnHealth (we) do not warrant that the information available for download is correct or complete or that it is suitable for any particular purpose. Your use of the information is at your own risk. To the fullest extent permitted by law, we do not accept any liability for any reliance placed on the information. If any warranty or guarantee cannot by law be excluded, then, to the extent permitted by law, the liability for such warranty or guarantee is limited, at our option, to supplying the information or materials again or paying the cost of having the information or materials supplied again."),P(15,"br"),P(16,"br"),H(17," Where there are links from this website to other sites, these are provided for your general information only. We do not control or monitor other sites and these links should not be taken as an endorsement or a recommendation of those other sites or their content."),P(18,"br"),P(19,"br"),_(),y(20,"mat-toolbar",2),y(21,"button",3),se("click",function(){return i.onNoClick()}),H(22,"Close"),_(),_(),_())},directives:[Np,po,fo,_u,Bd],styles:[""]}),n})(),Bin=(()=>{class n{constructor(e){this.http=e}login(e,i){return this.http.post(`${Ry_baseApiUrl}/api/auth/login`,{email:e,password:i})}}return n.\u0275fac=function(e){return new(e||n)(V(XT))},n.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vin(n,t){if(1&n&&(zc(),P(0,"circle",3)),2&n){const e=I();yt("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),fe("r",e._getCircleRadius())}}function zin(n,t){if(1&n&&(zc(),P(0,"circle",3)),2&n){const e=I();yt("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),fe("r",e._getCircleRadius())}}function Hin(n,t){if(1&n&&(zc(),P(0,"circle",3)),2&n){const e=I();yt("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),fe("r",e._getCircleRadius())}}function Gin(n,t){if(1&n&&(zc(),P(0,"circle",3)),2&n){const e=I();yt("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),fe("r",e._getCircleRadius())}}const YNe=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",$in=gy(class{constructor(n){this._elementRef=n}},"primary"),KNe=new ot("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class $_ extends $in{constructor(t,e,i,s,o){super(t),this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=$_._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(i.head)||r.set(i.head,new Set([100])),this._fallbackAnimation=e.EDGE||e.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Uo(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Uo(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Uo(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=lfe(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=$_._diameters;let s=i.get(t);if(!s||!s.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),s||(s=new Set,i.set(t,s)),s.add(e)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}$_.\u0275fac=function(t){return new(t||$_)(g($),g(Qi),g($t,8),g(jo,8),g(KNe))},$_.\u0275cmp=K({type:$_,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(fe("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),yt("width",e.diameter,"px")("height",e.diameter,"px"),he("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[N],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(zc(),y(0,"svg",0),A(1,Vin,1,9,"circle",1),A(2,zin,1,7,"circle",2),_()),2&t&&(yt("width",e.diameter,"px")("height",e.diameter,"px"),v("ngSwitch","indeterminate"===e.mode),fe("viewBox",e._getViewBox()),b(1),v("ngSwitchCase",!0),b(1),v("ngSwitchCase",!1))},directives:[Dh,tg],styles:[YNe],encapsulation:2,changeDetection:0}),$_._diameters=new WeakMap;let qin=(()=>{class n extends $_{constructor(e,i,s,o,r){super(e,i,s,o,r),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(g($),g(Qi),g($t,8),g(jo,8),g(KNe))},n.\u0275cmp=K({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(yt("width",i.diameter,"px")("height",i.diameter,"px"),he("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[N],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(zc(),y(0,"svg",0),A(1,Hin,1,9,"circle",1),A(2,Gin,1,7,"circle",2),_()),2&e&&(yt("width",i.diameter,"px")("height",i.diameter,"px"),v("ngSwitch","indeterminate"===i.mode),fe("viewBox",i._getViewBox()),b(1),v("ngSwitchCase",!0),b(1),v("ngSwitchCase",!1))},directives:[Dh,tg],styles:[YNe],encapsulation:2,changeDetection:0}),n})(),Xin=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[vi,Ut],vi]}),n})();function Yin(n,t){1&n&&P(0,"mat-spinner",12)}let ZNe=[];ZNe=[{path:"login",component:(()=>{class n{constructor(e,i,s,o,r){this.router=e,this.authService=i,this.alertService=s,this.store=o,this.dialog=r,this.signInDisabled=!1}signIn(){var e=this;this.signInDisabled=!0,this.authService.login(this.email,this.password).pipe(lt(function(){var i=Xe(function*(s){yield e.store.dispatch(new fv.LogIn({loginResponse:s})).toPromise(),e.router.navigateByUrl("/home"),e.dialog.open(Nin,{width:"800px"})});return function(s){return i.apply(this,arguments)}}()),fl(i=>{switch(this.signInDisabled=!1,i.status){case 401:this.alertService.showError(`Please check your email address and password and try again - ${i.error.message}`);break;case 500:case 501:this.alertService.showError(`Internal Server Error - ${i.error.message}`);break;case 0:this.alertService.showMessage("Unknown error. Please check your connection to the internet and try again.");break;default:this.alertService.showError(`Unknown error - ${i.error.message}`)}return Vt(null)})).subscribe()}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(g(pr),g(Bin),g(xO),g(zi),g(CO))},n.\u0275cmp=K({type:n,selectors:[["app-login"]],decls:22,vars:4,consts:[["fxFlex","","fxLayout","column","fxLayout.gt-sm","row"],["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"form-container","mat-elevation-z8"],[2,"padding-top","3em","padding-bottom","3em"],["matTooltip","AusEnHealth v1.0.1"],["fxLayout","column"],["appearance","outline"],["name","email","matInput","","required","",3,"ngModel","ngModelChange"],["name","password","matInput","","type","password","required","",3,"ngModel","keyup.enter","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","row","fxLayoutGap","10px"],["mat-flat-button","",3,"disabled","click"],["diameter","35",4,"ngIf"],["diameter","35"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",1),y(2,"div",2),P(3,"div",3),y(4,"h3"),H(5,"Welcome to the AusEnHealth"),_(),y(6,"h2"),H(7,"Sign In"),_(),y(8,"div",4),y(9,"mat-form-field",5),y(10,"mat-label"),H(11,"Email"),_(),y(12,"input",6),se("ngModelChange",function(o){return i.email=o}),_(),_(),y(13,"mat-form-field",5),y(14,"mat-label"),H(15,"Password"),_(),y(16,"input",7),se("keyup.enter",function(){return i.signIn()})("ngModelChange",function(o){return i.password=o}),_(),_(),y(17,"div",8),y(18,"div",9),y(19,"button",10),se("click",function(){return i.signIn()}),H(20,"Sign in"),_(),A(21,Yin,1,0,"mat-spinner",11),_(),_(),_(),_(),_(),_()),2&e&&(b(12),v("ngModel",i.email),b(4),v("ngModel",i.password),b(3),v("disabled",i.signInDisabled),b(2),v("ngIf",i.signInDisabled))},directives:[ja,po,fo,kFe,kg,Tg,wB,pg,t3,Xc,zp,_u,Bd,pt,qin],styles:["button[_ngcontent-%COMP%]{background-color:#deb423}"]}),n})(),data:{animation:"Login"}},{path:"faq",component:Oin,data:{animation:"FAQ"}},{path:"team",component:Tet,data:{animation:"Team"}},{path:"collaborators",component:met,data:{animation:"Collabs"}},{path:"contactus",component:get,data:{animation:"Contacts"}},{path:"aboutus",component:Lin,data:{animation:"About"}},{path:"heatriskassessment/sa2",component:T0,canActivate:[xv]},{path:"heatriskassessment",component:A0,canActivate:[xv]},{path:"climatechange",component:oE,canActivate:[xv]},{path:"climatechange/sa3",component:M1,canActivate:[xv]},{path:"multicloud",component:sE,canActivate:[xv]},{path:"impactanalysis",component:j_,canActivate:[xv]},{path:"publicawareness",component:E1,canActivate:[xv]},{path:"campaignawareness",component:lin,canActivate:[xv]},{path:"",redirectTo:"home",pathMatch:"full"},{path:"**",component:Fin}];let Zin=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[xN.forRoot(ZNe,{relativeLinkResolution:"legacy"})],xN]}),n})(),lsn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[LN,vi],LN,vi]}),n})(),xsn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[mU]]}),n})(),Vsn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[xsn,vi],vi]}),n})(),Jsn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[LN,dk,vi,iU,Ut],LN,vi,iU,Pin]}),n})(),don=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,vi],vi]}),n})(),F1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[qQe,Ogt,het,lsn,wet,eet,Vsn,w9t,j9t,bWt,wbt,atn,Xin,xB,t0t,dmt,Jsn,Itn,Onn,don]}),n})(),k3e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[B$]]}),n})(),j6=(()=>{class n{constructor(e,i){ng(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Pp,useValue:Object.assign(Object.assign({},V$),e)},{provide:z$,useValue:i,multi:!0},{provide:CC,useValue:!0}]:[{provide:Pp,useValue:Object.assign(Object.assign({},V$),e)},{provide:z$,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(V(CC),V(Xr))},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[nfe,BFe,k3e],nfe,BFe,k3e]}),n})();const Arn=function(){return{"background-image":"url(../../../../assets/images/heatrisk.png)"}},Orn=function(){return{"background-image":"url(../../../../assets/images/heatclimatechange.png)"}},Rrn=function(){return{"background-image":"url(../../../../assets/images/heathealth.png)"}},Prn=function(){return{"background-image":"url(../../../../assets/images/airimpact.png)"}},Lrn=function(){return{"background-image":"url(../../../../assets/images/airquality1.png)"}},Nrn=[{path:"home",component:(()=>{class n{constructor(e,i){this.router=i,this.destroyed=new Z,this.cardList=[],this.displayNameMap=new Map([["(max-width: 599.98px)","XSmall"],[_f_Small,"Small"],[_f_Medium,"Medium"],[_f_Large,"Large"],["(min-width: 1920px)","XLarge"]]),e.observe(["(max-width: 599.98px)",_f_Small,_f_Medium,_f_Large,"(min-width: 1920px)"]).pipe(et(this.destroyed)).subscribe(s=>{var o;for(const r of Object.keys(s.breakpoints))s.breakpoints[r]&&(this.currentScreenSize=null!==(o=this.displayNameMap.get(r))&&void 0!==o?o:"Unknown")})}airQualityImpactClick(){this.router.navigateByUrl("/airquality")}ngOnInit(){}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return n.\u0275fac=function(e){return new(e||n)(g(CFe),g(pr))},n.\u0275cmp=K({type:n,selectors:[["app-dashboard"]],decls:87,vars:10,consts:[["fxLayout","column","fxLayoutGap","10px",1,"main-content"],["fxLayout","row wrap","fxLayoutAlign","space-around start","fxFlex","90",1,"main-content"],["fxLayoutAlign","space-around start","fxLayoutGap","10px","fxLayout","column","fxFlex","80",1,"middle-content"],["fxLayout","row","fxLayoutAlign","space-around start","fxFill",""],["fxLayoutAlign","space-around start","fxLayout","column",1,"description"],[1,"blurb"],[1,"logowrap","mat-elevation-z20"],["src","../../../../assets/images/logo_no_text.png",1,"mainlogo"],["fxLayoutAlign","space-between center","fxFlex","90",1,"bottom-content"],["appMaterialElevation","","fxLayout","column","routerLink","/heatriskassessment","fxFlex","",1,"factor-card","mat-elevation-z8"],["fxFlex","",1,"background",3,"ngStyle"],[1,"footer"],["mat-fab","","color","accent","routerLink","/heatriskassessment"],["appMaterialElevation","","fxLayout","column","routerLink","/climatechange","fxFlex","",1,"factor-card","mat-elevation-z8"],["mat-fab","","color","accent","routerLink","/climatechange"],["appMaterialElevation","","fxLayout","column","routerLink","/multicloud","fxFlex","",1,"factor-card","mat-elevation-z8"],["mat-fab","","color","accent","routerLink","/multicloud"],["appMaterialElevation","","fxLayout","column","routerLink","/impactanalysis","fxFlex","",1,"factor-card","mat-elevation-z8"],["mat-fab","","color","accent","routerLink","/impactanalysis"],["appMaterialElevation","","fxLayout","column","routerLink","/publicawareness","fxFlex","",1,"factor-card","mat-elevation-z8"],["mat-fab","","color","accent","routerLink","/publicawareness"],["fxLayout","column","fxFlex","90",1,"stats"],["fxLayout","row","fxLayoutAlign","space-around center","fxFlex","100"],["fxFlex","10",1,"mat-elevation-z0"],["mat-card-image","","src","../../../../assets/images/orgs-chart.png"],[1,"info"],["mat-card-image","","src","../../../../assets/images/leaf.png"],["mat-card-image","","src","../../../../assets/images/people.png"],["fxLayout","row","fxLayoutAlign","space-between center","color","primary",1,"logos"],["src","../assets/images/Collaborators/FSI.png","fxFlex","12",1,"logo"],["src","../assets/images/Collaborators/QUT.jpg","fxFlex","12",1,"logo"],["src","../assets/images/Collaborators/WADOH.gif","fxFlex","12",1,"logo"],["src","../assets/images/Collaborators/EPAVic.jpg","fxFlex","12",1,"logo"],["src","../assets/images/Collaborators/NGIS.png","fxFlex","12",1,"logo"],["src","../assets/images/Collaborators/AIHW.png","fxFlex","12",1,"logo"],["src","../assets/images/Collaborators/AURIN.png","fxFlex","12",1,"logo"],["src","../assets/images/Collaborators/TERN.png","fxFlex","12",1,"logo"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",1),y(2,"div",2),y(3,"div",3),y(4,"div",4),y(5,"h1"),H(6,"AusEnHealth"),_(),P(7,"br"),P(8,"br"),P(9,"br"),y(10,"p",5),H(11,"AusEnHealth is Australia\u2019s first national digital environmental health decision support platform."),_(),y(12,"p",5),H(13,"This open-source resource is designed to enable policy makers, health managers, and researchers identify vulnerable populations, predict future disease burden, and plan for a changing climate in a coordinated, timely manner. "),_(),_(),y(14,"div",6),P(15,"img",7),_(),_(),_(),y(16,"div",8),y(17,"mat-card",9),P(18,"div",10),y(19,"div",11),H(20,"Heat Risk Assessment"),_(),y(21,"button",12),y(22,"mat-icon"),H(23,"grass"),_(),_(),_(),y(24,"mat-card",13),P(25,"div",10),y(26,"div",11),H(27,"Climate Change Assessment"),_(),y(28,"button",14),y(29,"mat-icon"),H(30,"thermostat_auto"),_(),_(),_(),y(31,"mat-card",15),P(32,"div",10),y(33,"div",11),H(34,"Heat Health Data Analytics"),_(),y(35,"button",16),y(36,"mat-icon"),H(37,"thermostat"),_(),_(),_(),y(38,"mat-card",17),P(39,"div",10),y(40,"div",11),H(41,"Air Quality Impact Analysis"),_(),y(42,"button",18),y(43,"mat-icon"),H(44,"storm"),_(),_(),_(),y(45,"mat-card",19),P(46,"div",10),y(47,"div",11),H(48,"Air Quality Public Awareness"),_(),y(49,"button",20),y(50,"mat-icon"),H(51,"supervisor_account"),_(),_(),_(),_(),y(52,"div",21),y(53,"div",22),y(54,"mat-card",23),P(55,"img",24),y(56,"mat-card-content"),P(57,"br"),y(58,"h2"),H(59,"8"),_(),y(60,"p",25),H(61,"Collaborating Organisations"),_(),_(),_(),y(62,"mat-card",23),P(63,"img",26),y(64,"mat-card-content"),P(65,"br"),y(66,"h2"),H(67,"158"),_(),y(68,"p",25),H(69,"Environmental Health Variables"),_(),_(),_(),y(70,"mat-card",23),P(71,"img",27),y(72,"mat-card-content"),P(73,"br"),y(74,"h2"),H(75,"3"),_(),y(76,"p",25),H(77,"Vulnerability Indices"),_(),_(),_(),_(),_(),y(78,"mat-toolbar",28),P(79,"img",29),P(80,"img",30),P(81,"img",31),P(82,"img",32),P(83,"img",33),P(84,"img",34),P(85,"img",35),P(86,"img",36),_(),_(),_()),2&e&&(b(18),v("ngStyle",si(5,Arn)),b(7),v("ngStyle",si(6,Orn)),b(7),v("ngStyle",si(7,Rrn)),b(7),v("ngStyle",si(8,Prn)),b(7),v("ngStyle",si(9,Lrn)))},directives:[po,_u,fo,ja,wo,qN,vU,BI,zo,LFe,Bd,gl,Sge,wge,Np],styles:["body{height:100%}.container[_ngcontent-%COMP%]{height:100vh}.main-content[_ngcontent-%COMP%]{height:93vh;background-color:#c2d6ff;background-size:cover;font-family:Roboto}mat-card[_ngcontent-%COMP%]{min-height:30vh;margin:30px 10px 40px;border-radius:25px}mat-card-content[_ngcontent-%COMP%]{text-align:center}h1[_ngcontent-%COMP%]{font-size:5vh;font-weight:550;color:#deb423}.blurb[_ngcontent-%COMP%]{opacity:.7;max-width:60%;font-size:x-large;line-height:100%}p[_ngcontent-%COMP%]{color:#001642}.mainlogo[_ngcontent-%COMP%]{max-height:30vh}h2[_ngcontent-%COMP%]{font-size:5vh;font-weight:550}.middle-content[_ngcontent-%COMP%]{height:40vh;border-radius:15px;margin-top:20px;margin-bottom:20px;font-family:Roboto}.bottom-content[_ngcontent-%COMP%]{height:35vh;margin-top:40px;margin-bottom:120px;font-family:Roboto}.description[_ngcontent-%COMP%]{padding:20px;font-size:15px;font-family:Roboto}.logowrap[_ngcontent-%COMP%]{padding:30px 65px;background-color:#fff;border-radius:25px}.factor-card[_ngcontent-%COMP%]{min-height:40vh;padding:0;cursor:pointer;max-width:15%}.factor-card[_ngcontent-%COMP%] .background[_ngcontent-%COMP%]{border-radius:10px 10px 0 0;background-size:cover}.factor-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{color:#fff;padding:10px 65px 10px 10px;height:40px;background-color:gray}.factor-card[_ngcontent-%COMP%] button[mat-fab][_ngcontent-%COMP%]{position:absolute;right:10px;bottom:15px}.stats[_ngcontent-%COMP%]{font-family:Roboto}.info[_ngcontent-%COMP%]{text-align:center;font-size:x-large;line-height:100%}.logos[_ngcontent-%COMP%]{background-color:#fff;min-height:100px}.logo[_ngcontent-%COMP%]{margin-top:15px;max-height:100px}"]}),n})(),data:{animation:"Home"}}];let Brn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[xN.forChild(Nrn)],xN]}),n})(),D3e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[]]}),n})(),Vrn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,F1,Brn,j6,D3e]]}),n})(),M3e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[n7t,obt,nE,mTe,$Ne,v2,bY]}),n})(),$6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,PC,nA,kM.forRoot({apiKey:"AIzaSyBKZ-bUKhqN1R1_Ns7pbkH0BWN1LPKSUU4",libraries:["drawing","places"]}),F1,j6,M3e],F1,M3e,j6,PC,nA]}),n})(),zrn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,F1,$6]]}),n})(),Hrn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,j6,F1,$6]]}),n})();const E3e={analysisFilter:{filterType:"",filterYear:-1,filterMonth:-1},analysisResult:{sa3FilterResult:[],sa3AnalysisIndicator:"rhist_theatavg",selectedSA3Code16:[],sa2FilterResult:[],sa2AnalysisIndicator:"rhist_theatavg",selectedSA2Code16:[]},isProcessing:!1,rankingList:[{colorCode:"#a50f15",min:null,max:null,className:"hrank1"},{colorCode:"#de2d26",min:null,max:null,className:"hrank2"},{colorCode:"#fb6a4a",min:null,max:null,className:"hrank3"},{colorCode:"#fcae91",min:null,max:null,className:"hrank4"},{colorCode:"#fee5d9",min:null,max:null,className:"hrank5"}]};let ia=class{SetDefaultState({setState:t},{}){t(E3e)}SetRankingList({patchState:t},{payload:e}){t({rankingList:e})}SetBusyState({patchState:t},{payload:e}){t({isProcessing:e})}SetFilter({patchState:t},{payload:e}){t({analysisFilter:e})}SetSa3AnalysisIndicator({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa3AnalysisIndicator=i}))}SetSa2AnalysisIndicator({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa2AnalysisIndicator=i}))}SetSa3FilterResult({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa3FilterResult=i}))}SetSa2FilterResult({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa2FilterResult=i}))}SetSelectedSA3Code16({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.selectedSA3Code16=i}))}SetSelectedSA2Code16({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.selectedSA2Code16=i}))}SetIndicatorUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa3FilterResult=i.result,o.rankingList=i.ranking,o.analysisResult.sa3AnalysisIndicator=i.indicator}))}SetSa2IndicatorUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa2FilterResult=i.result,o.rankingList=i.ranking,o.analysisResult.sa2AnalysisIndicator=i.indicator}))}SetFilterUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisFilter=i.analysisFilter,o.analysisResult.sa3FilterResult=i.result,o.rankingList=i.ranking}))}SetSa2FilterUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisFilter=i.analysisFilter,o.analysisResult.sa2FilterResult=i.result,o.rankingList=i.ranking}))}};ia.\u0275fac=function(t){return new(t||ia)},ia.\u0275prov=ue({token:ia,factory:ia.\u0275fac}),nt([Pn(Gn.SetDefaultState)],ia.prototype,"SetDefaultState",null),nt([Pn(Gn.SetRankingList)],ia.prototype,"SetRankingList",null),nt([Pn(Gn.SetBusyState)],ia.prototype,"SetBusyState",null),nt([Pn(Gn.SetFilter)],ia.prototype,"SetFilter",null),nt([Pn(Gn.SetSa3AnalysisIndicator)],ia.prototype,"SetSa3AnalysisIndicator",null),nt([Pn(Gn.SetSa2AnalysisIndicator)],ia.prototype,"SetSa2AnalysisIndicator",null),nt([Pn(Gn.SetSa3FilterResult)],ia.prototype,"SetSa3FilterResult",null),nt([Pn(Gn.SetSa2FilterResult)],ia.prototype,"SetSa2FilterResult",null),nt([Pn(Gn.SetSelectedSA3Code16)],ia.prototype,"SetSelectedSA3Code16",null),nt([Pn(Gn.SetSelectedSA2Code16)],ia.prototype,"SetSelectedSA2Code16",null),nt([Pn(Gn.SetIndicatorUpdateData)],ia.prototype,"SetIndicatorUpdateData",null),nt([Pn(Gn.SetSa2IndicatorUpdateData)],ia.prototype,"SetSa2IndicatorUpdateData",null),nt([Pn(Gn.SetFilterUpdateData)],ia.prototype,"SetFilterUpdateData",null),nt([Pn(Gn.SetSa2FilterUpdateData)],ia.prototype,"SetSa2FilterUpdateData",null),ia=nt([cC({name:"heatriskassessment",defaults:E3e})],ia);const I3e={isProcessing:!1};let Gm=class{SetBusyState({patchState:t},{payload:e}){t({isProcessing:e})}SetDefaultState({setState:t},{}){t(I3e)}};Gm.\u0275fac=function(t){return new(t||Gm)},Gm.\u0275prov=ue({token:Gm,factory:Gm.\u0275fac}),nt([Pn(Ff.SetBusyState)],Gm.prototype,"SetBusyState",null),nt([Pn(Ff.SetDefaultState)],Gm.prototype,"SetDefaultState",null),Gm=nt([cC({name:"multicloud",defaults:I3e})],Gm);const A3e={isProcessing:!1,result:{resultType:go.State,stateResult:[],sa3Result:[]},timeslidingresult:{resultType:go.State,stateResult:[],sa3Result:[]},filter:{filterLevelType:go.State,filterType:Xa.Yearly,filterYear:-1,filterMonth:-1},indicator:"natrisk_fcheat",rankingList:[{colorCode:"#a50f15",min:null,max:null,className:"hrank1"},{colorCode:"#de2d26",min:null,max:null,className:"hrank2"},{colorCode:"#fb6a4a",min:null,max:null,className:"hrank3"},{colorCode:"#fcae91",min:null,max:null,className:"hrank4"},{colorCode:"#fee5d9",min:null,max:null,className:"hrank5"}]};let Rc=class{ngxsOnInit(t){console.log("State initialized, now getting climate change state model"),console.log(t.getState())}SetBusyState({patchState:t},{payload:e}){t({isProcessing:e})}SetDefaultState({setState:t},{}){t(A3e)}SetFilter({patchState:t},{payload:e}){t({filter:e})}SetResult({patchState:t},{payload:e}){t({result:e})}SetTimeSlidingResult({patchState:t},{payload:e}){t({timeslidingresult:e})}SetRankingList({patchState:t},{payload:e}){t({rankingList:e})}SetSelectedSA3Code({patchState:t},{payload:e}){t({selectedSA3Code:e})}SetIndicator({patchState:t},{payload:e}){t({indicator:e})}};Rc.\u0275fac=function(t){return new(t||Rc)},Rc.\u0275prov=ue({token:Rc,factory:Rc.\u0275fac}),nt([Pn(ds.SetBusyState)],Rc.prototype,"SetBusyState",null),nt([Pn(ds.SetDefaultState)],Rc.prototype,"SetDefaultState",null),nt([Pn(ds.SetFilter)],Rc.prototype,"SetFilter",null),nt([Pn(ds.SetResult)],Rc.prototype,"SetResult",null),nt([Pn(ds.SetTimeSlidingResult)],Rc.prototype,"SetTimeSlidingResult",null),nt([Pn(ds.SetRankingList)],Rc.prototype,"SetRankingList",null),nt([Pn(ds.SetSelectedSA3Code)],Rc.prototype,"SetSelectedSA3Code",null),nt([Pn(ds.SetIndicator)],Rc.prototype,"SetIndicator",null),Rc=nt([cC({name:"heatclimatechange",defaults:A3e})],Rc);let Grn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n}),n.\u0275inj=Ve({imports:[[Ut,F1,$6]]}),n})(),Of=class{logIn({patchState:t},{payload:e}){t({accessToken:e.loginResponse.accessToken,signedInUser:e.loginResponse.user,accessTokenTimestamp:new Date})}logOut({patchState:t}){t({accessToken:null,signedInUser:{email:null,firstName:null,id:null,isActive:null,lastName:null,roles:null},accessTokenTimestamp:null})}updateSignedInUser({patchState:t},{payload:e}){t({signedInUser:e.signedInUser})}};Of.\u0275fac=function(t){return new(t||Of)},Of.\u0275prov=ue({token:Of,factory:Of.\u0275fac}),nt([Pn(fv.LogIn)],Of.prototype,"logIn",null),nt([Pn(fv.LogOut)],Of.prototype,"logOut",null),nt([Pn(fv.UpdateSignedInUser)],Of.prototype,"updateSignedInUser",null),Of=nt([cC({name:"auth",defaults:{accessToken:null,accessTokenTimestamp:null,signedInUser:{email:null,firstName:null,id:null,isActive:null,lastName:null,roles:null}}})],Of);const F3e={analysisFilter:{filterType:"",filterYear:-1,filterMonth:-1},analysisResult:{sa4AnalysisIndicator:"not1_avgo3",sa3AnalysisIndicator:"not1_avgo3",selectedSA4Code16:[],selectedSA3Code16:[],sa4FilterResult:[],sa3FilterResult:[],sa4Healtoutcome:[],sa4HealthIndicator:"ndeaths"},isProcessing:!1,rankingList:[{colorCode:"#a50f15",min:null,max:null,className:"hrank1"},{colorCode:"#de2d26",min:null,max:null,className:"hrank2"},{colorCode:"#fb6a4a",min:null,max:null,className:"hrank3"},{colorCode:"#fcae91",min:null,max:null,className:"hrank4"},{colorCode:"#fee5d9",min:null,max:null,className:"hrank5"}]};let Hr=class{SetDefaultState({setState:t},{}){t(F3e)}SetRankingList({patchState:t},{payload:e}){t({rankingList:e})}SetBusyState({patchState:t},{payload:e}){t({isProcessing:e})}SetFilter({patchState:t},{payload:e}){t({analysisFilter:e})}SetSa4FilterResult({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa4FilterResult=i}))}SetSa3FilterResult({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa3FilterResult=i}))}SetSelectedSA4Code16({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.selectedSA4Code16=i}))}SetSelectedSA3Code16({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.selectedSA3Code16=i}))}SetSa4AnalysisIndicator({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa4AnalysisIndicator=i}))}SetSa3AnalysisIndicator({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa3AnalysisIndicator=i}))}SetSa4HealthOutcomeIndicator({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa4HealthIndicator=i}))}SetIndicatorUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa4FilterResult=i.result,o.rankingList=i.ranking,o.analysisResult.sa4AnalysisIndicator=i.indicator}))}SetSA3IndicatorUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa3FilterResult=i.result,o.rankingList=i.ranking,o.analysisResult.sa3AnalysisIndicator=i.indicator}))}SetFilterUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa4FilterResult=i.result,o.rankingList=i.ranking,o.analysisFilter=i.analysisFilter,o.analysisResult.sa4Healtoutcome=i.healthoutcome}))}SetSA3FilterUpdateData({getState:t,setState:e},{payload:i}){e(ca(t(),o=>{o.analysisResult.sa3FilterResult=i.result,o.rankingList=i.ranking,o.analysisFilter=i.analysisFilter,o.analysisResult.sa4Healtoutcome=i.healthoutcome}))}};Hr.\u0275fac=function(t){return new(t||Hr)},Hr.\u0275prov=ue({token:Hr,factory:Hr.\u0275fac}),nt([Pn(Kn.SetDefaultState)],Hr.prototype,"SetDefaultState",null),nt([Pn(Kn.SetRankingList)],Hr.prototype,"SetRankingList",null),nt([Pn(Kn.SetBusyState)],Hr.prototype,"SetBusyState",null),nt([Pn(Kn.SetFilter)],Hr.prototype,"SetFilter",null),nt([Pn(Kn.SetSa4FilterResult)],Hr.prototype,"SetSa4FilterResult",null),nt([Pn(Kn.SetSa3FilterResult)],Hr.prototype,"SetSa3FilterResult",null),nt([Pn(Kn.SetSelectedSA4Code16)],Hr.prototype,"SetSelectedSA4Code16",null),nt([Pn(Kn.SetSelectedSA3Code16)],Hr.prototype,"SetSelectedSA3Code16",null),nt([Pn(Kn.SetSa4AnalysisIndicator)],Hr.prototype,"SetSa4AnalysisIndicator",null),nt([Pn(Kn.SetSa3AnalysisIndicator)],Hr.prototype,"SetSa3AnalysisIndicator",null),nt([Pn(Kn.SetSa4HealthOutcomeIndicator)],Hr.prototype,"SetSa4HealthOutcomeIndicator",null),nt([Pn(Kn.SetIndicatorUpdateData)],Hr.prototype,"SetIndicatorUpdateData",null),nt([Pn(Kn.SetSA3IndicatorUpdateData)],Hr.prototype,"SetSA3IndicatorUpdateData",null),nt([Pn(Kn.SetFilterUpdateData)],Hr.prototype,"SetFilterUpdateData",null),nt([Pn(Kn.SetSA3FilterUpdateData)],Hr.prototype,"SetSA3FilterUpdateData",null),Hr=nt([cC({name:"airimpact",defaults:F3e})],Hr);let $rn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=We({type:n,bootstrap:[hk]}),n.\u0275inj=Ve({providers:[],imports:[[f7,Cqe,Y9e,D3e,Od.forRoot([Of,Ea,ia,Rc,Gm,Hr,Eh],{developmentMode:!1}),kqe.forRoot({key:"auth"}),Oqe.forRoot(),$6,Vrn,zrn,Hrn,F1,Zin,$Ne,Grn]]}),n})();(function(){if(Rce)throw new Error("Cannot enable prod mode after platform setup.");Oce=!1})(),_Ue().bootstrapModule($rn).catch(n=>console.error(n))},948:ni=>{ni.exports=function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}},ni.exports.default=ni.exports,ni.exports.__esModule=!0},321:ni=>{function jt(Pt){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(ni.exports=jt=function(At){return typeof At},ni.exports.default=ni.exports,ni.exports.__esModule=!0):(ni.exports=jt=function(At){return At&&"function"==typeof Symbol&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},ni.exports.default=ni.exports,ni.exports.__esModule=!0),jt(Pt)}ni.exports=jt,ni.exports.default=ni.exports,ni.exports.__esModule=!0},540:()=>{},307:()=>{}},ni=>{ni(ni.s=680)}]);