marketplacepos 3.2.1 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +202 -187
- package/Marketplace/chunk-2GOE5RBJ.js +1 -0
- package/Marketplace/chunk-2QO2D23V.js +1 -0
- package/Marketplace/chunk-2XMJ7C47.js +1 -0
- package/Marketplace/chunk-2Y47HNW5.js +1 -0
- package/Marketplace/chunk-32YQ5ZBK.js +1 -0
- package/Marketplace/chunk-353KSOKY.js +1 -0
- package/Marketplace/chunk-3MUYDBXT.js +1 -0
- package/Marketplace/chunk-55NPYZ64.js +2 -0
- package/Marketplace/chunk-5PV4AXUR.js +2 -0
- package/Marketplace/chunk-5UESNVF7.js +3 -0
- package/Marketplace/chunk-5YX57TZJ.js +1 -0
- package/Marketplace/chunk-6FFJWFMY.js +4 -0
- package/Marketplace/chunk-7AS2YI3I.js +2 -0
- package/Marketplace/chunk-AN4U7FVT.js +1 -0
- package/Marketplace/chunk-B6ZV4WVU.js +8 -0
- package/Marketplace/chunk-BBX2DZWF.js +1 -0
- package/Marketplace/chunk-BLRV33OB.js +4 -0
- package/Marketplace/chunk-BTKP3PJH.js +5 -0
- package/Marketplace/chunk-CA4NYL7C.js +1 -0
- package/Marketplace/chunk-CFL3VDAM.js +1 -0
- package/Marketplace/chunk-DE2BZXNA.js +1 -0
- package/Marketplace/chunk-DE6KXPBU.js +1 -0
- package/Marketplace/chunk-FDGOGKXD.js +1 -0
- package/Marketplace/chunk-FDYGWNMG.js +1 -0
- package/Marketplace/chunk-FR67IIWG.js +1 -0
- package/Marketplace/chunk-G6DYB24N.js +1 -0
- package/Marketplace/chunk-GAMNBDJD.js +1 -0
- package/Marketplace/chunk-GUKAWOAK.js +1 -0
- package/Marketplace/chunk-HDWZXE6G.js +1 -0
- package/Marketplace/chunk-HQTUUTDT.js +1 -0
- package/Marketplace/chunk-HTODD7RF.js +1 -0
- package/Marketplace/chunk-I2FTGSXA.js +1 -0
- package/Marketplace/chunk-IFHFFP4S.js +1 -0
- package/Marketplace/chunk-IGSHV4S3.js +1 -0
- package/Marketplace/chunk-IJ3WNDAP.js +6 -0
- package/Marketplace/chunk-J3NU4TSW.js +1 -0
- package/Marketplace/chunk-J55273WG.js +7 -0
- package/Marketplace/chunk-JI67LAJB.js +1 -0
- package/Marketplace/chunk-JJXHYCB6.js +1 -0
- package/Marketplace/chunk-JRZ4OAAZ.js +1 -0
- package/Marketplace/chunk-JT76ON64.js +1 -0
- package/Marketplace/chunk-KKQWPACG.js +1 -0
- package/Marketplace/chunk-LICL6LNZ.js +1 -0
- package/Marketplace/chunk-LWR5YJ24.js +8 -0
- package/Marketplace/chunk-LZR6F2JE.js +1 -0
- package/Marketplace/chunk-MB6PCQRT.js +1 -0
- package/Marketplace/chunk-MYMGFQII.js +1 -0
- package/Marketplace/chunk-NNYMQPRT.js +1 -0
- package/Marketplace/chunk-NV3T3OZB.js +5 -0
- package/Marketplace/chunk-OGJ6YVG4.js +1 -0
- package/Marketplace/chunk-OI7LGMDP.js +1 -0
- package/Marketplace/chunk-Q4Y764AE.js +5 -0
- package/Marketplace/chunk-QJKKB3RG.js +3 -0
- package/Marketplace/chunk-QSO3ASFL.js +1 -0
- package/Marketplace/chunk-QV22VQ5Q.js +1 -0
- package/Marketplace/chunk-R3VPTXDH.js +1 -0
- package/Marketplace/chunk-RHM4GQMX.js +1 -0
- package/Marketplace/chunk-RS52HOKA.js +5 -0
- package/Marketplace/chunk-S7ANPM6L.js +1 -0
- package/Marketplace/chunk-TEEFXPWJ.js +2 -0
- package/Marketplace/chunk-TIXJK5ZY.js +1 -0
- package/Marketplace/chunk-TZ6CWMER.js +1 -0
- package/Marketplace/chunk-UUMW24BF.js +1 -0
- package/Marketplace/chunk-VMRMDMBE.js +1 -0
- package/Marketplace/chunk-XDPBTCKN.js +1 -0
- package/Marketplace/chunk-XQTL4ELH.js +1 -0
- package/Marketplace/chunk-YHWXRXON.js +1 -0
- package/Marketplace/chunk-YIB32JAF.js +1 -0
- package/Marketplace/chunk-YZHBBFDR.js +2 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-KZQ55EQA.js +1 -0
- package/Marketplace/polyfills-OSLX3UYW.js +2 -0
- package/Marketplace/scripts-M46NWPTC.js +5 -0
- package/Marketplace/styles-LDNPEPLO.css +1 -0
- package/package.json +1 -1
- package/Marketplace/103.bc1f4c51ca99f04f.js +0 -1
- package/Marketplace/168.07ef2936896a9f4f.js +0 -1
- package/Marketplace/231.0c7ab993977632a2.js +0 -1
- package/Marketplace/257.d1592e885695ba4b.js +0 -1
- package/Marketplace/278.e89610409641d910.js +0 -1
- package/Marketplace/296.93310f70e5f9d3a9.js +0 -1
- package/Marketplace/311.afcc0c4a03ea0076.js +0 -1
- package/Marketplace/389.02d8fd64069d0119.js +0 -1
- package/Marketplace/394.11ae606578598904.js +0 -1
- package/Marketplace/445.cbf341bc0afe3ffc.js +0 -1
- package/Marketplace/452.58ce3ef12b9b5a47.js +0 -1
- package/Marketplace/476.d08ef7b92327904d.js +0 -1
- package/Marketplace/478.a63c640a3e971a16.js +0 -1
- package/Marketplace/500.c2e6963e4771761e.js +0 -1
- package/Marketplace/527.984c24771dbd0f8e.js +0 -1
- package/Marketplace/556.5d624cfb73f161b2.js +0 -1
- package/Marketplace/56.0432dfcbb3e04e39.js +0 -1
- package/Marketplace/599.8de0c2b4c7af0f9d.js +0 -1
- package/Marketplace/609.0e0a820d30efd4d4.js +0 -1
- package/Marketplace/617.4db1b737553fe58b.js +0 -1
- package/Marketplace/62.4f9a8ca2692bdd97.js +0 -1
- package/Marketplace/687.1fb4b2602d2b185a.js +0 -1
- package/Marketplace/699.d68a917277dbe11a.js +0 -1
- package/Marketplace/700.755c54d915bd281e.js +0 -1
- package/Marketplace/726.40535ee28a35e978.js +0 -1
- package/Marketplace/806.4037f673990a5242.js +0 -1
- package/Marketplace/810.629a800ca97725b7.js +0 -1
- package/Marketplace/877.bbdea3b04cc75780.js +0 -1
- package/Marketplace/900.b7de175b628a8dbe.js +0 -1
- package/Marketplace/967.2b39f548c7f4eb30.js +0 -1
- package/Marketplace/common.2cffc11d42ed963f.js +0 -1
- package/Marketplace/main.7c0e9137308de113.js +0 -1
- package/Marketplace/polyfills.503b3f4bf922d237.js +0 -1
- package/Marketplace/runtime.b0602b888a191d78.js +0 -1
- package/Marketplace/scripts.0d34bffadb54993a.js +0 -1
- package/Marketplace/styles.095460a0131dd2fc.css +0 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as C,Aa as H,Ac as ve,B as ji,Ba as qi,Bc as Pt,Cc as Je,Db as Ot,Ea as ke,Fa as M,Fb as Ji,Gb as es,H as $e,Ha as Hi,I as We,Ia as be,Ib as ts,J as Bi,Ja as j,La as Ce,Ma as Dt,Na as Qe,Nb as is,Ob as ss,Pa as Ge,Q as qe,Qb as Ne,R as Ui,Ta as Mt,Tb as L,U as He,Ua as Ye,W as zi,Ya as kt,Z as E,Za as Ct,_ as w,_a as Ze,a as Ri,aa as x,b as Ve,ba as y,c as q,ca as U,d as Pi,da as It,db as Qi,ea as N,ec as ns,fa as ce,gb as Gi,ha as Ki,ib as Xe,jb as Yi,kb as Nt,kc as rs,mc as os,n as Fi,ob as Zi,pc as Z,q as Me,qb as Xi,r as Li,sa as Vi,ta as $i,tc as as,u as xi,ua as ie,uc as Rt,va as Wi}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-LWR5YJ24.js";import{a as R,b as Oi}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-J3NU4TSW.js";var Lt;try{Lt=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Lt=!1}var $=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?ns(this._platformId):typeof document=="object"&&!!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||Lt)&&typeof CSS<"u"&&!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}};e.\u0275fac=function(s){return new(s||e)(y($i))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ee,ls=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function wa(){if(Ee)return Ee;if(typeof document!="object"||!document)return Ee=new Set(ls),Ee;let n=document.createElement("input");return Ee=new Set(ls.filter(e=>(n.setAttribute("type",e),n.type===e))),Ee}var Oe;function gn(){if(Oe==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oe=!0}))}finally{Oe=Oe||!1}return Oe}function Te(n){return gn()?n:!!n.capture}var de;function Sa(){if(de==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return de=!1,de;if("scrollBehavior"in document.documentElement.style)de=!0;else{let n=Element.prototype.scrollTo;n?de=!/\{\s*\[native code\]\s*\}/.test(n.toString()):de=!1}}return de}var Ft;function _n(){if(Ft==null){let n=typeof document<"u"?document.head:null;Ft=!!(n&&(n.createShadowRoot||n.attachShadow))}return Ft}function cs(n){if(_n()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ds(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function re(n){return n.composedPath?n.composedPath()[0]:n.target}function hs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function et(n,...e){return e.length?e.some(i=>n[i]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function jt(n){return n!=null&&`${n}`!="false"}function us(n,e=0){return yn(n)?Number(n):e}function yn(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Bt(n){return Array.isArray(n)?n:[n]}function Da(n){return n==null?"":typeof n=="string"?n:`${n}px`}function ue(n){return n instanceof H?n.nativeElement:n}function Ma(n,e=/\s+/){let i=[];if(n!=null){let t=Array.isArray(n)?n:`${n}`.split(e);for(let s of t){let r=`${s}`.trim();r&&i.push(r)}}return i}var bn=(()=>{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ms=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[bn]});let n=e;return n})();var fs=new Set,me,vn=(()=>{let e=class e{constructor(t,s){this._platform=t,this._nonce=s,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Tn}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&En(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(s){return new(s||e)(y($),y(Wi,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function En(n,e){if(!fs.has(n))try{me||(me=document.createElement("style"),e&&(me.nonce=e),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${n} {body{ }}`,0),fs.add(n))}catch(i){console.error(i)}}function Tn(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var gs=(()=>{let e=class e{constructor(t,s){this._mediaMatcher=t,this._zone=s,this._queries=new Map,this._destroySubject=new q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ps(Bt(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let r=ps(Bt(t)).map(a=>this._registerQuery(a).observable),o=Li(r);return o=xi(o.pipe(We(1)),o.pipe(qe(1),$e(0))),o.pipe(Me(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let s=this._mediaMatcher.matchMedia(t),o={observable:new Ve(a=>{let l=c=>this._zone.run(()=>a.next(c));return s.addListener(l),()=>{s.removeListener(l)}}).pipe(Ui(s),Me(({matches:a})=>({query:t,matches:a})),He(this._destroySubject)),mql:s};return this._queries.set(t,o),o}};e.\u0275fac=function(s){return new(s||e)(y(vn),y(j))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ps(n){return n.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var ws=" ";function zn(n,e,i){let t=st(n,e);t.some(s=>s.trim()==i.trim())||(t.push(i.trim()),n.setAttribute(e,t.join(ws)))}function Kn(n,e,i){let s=st(n,e).filter(r=>r!=i.trim());s.length?n.setAttribute(e,s.join(ws)):n.removeAttribute(e)}function st(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}var Ss="cdk-describedby-message",tt="cdk-describedby-host",Kt=0,il=(()=>{let e=class e{constructor(t,s){this._platform=s,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${Kt++}`,this._document=t,this._id=U(Vi)+"-"+Kt++}describe(t,s,r){if(!this._canBeDescribed(t,s))return;let o=Ut(s,r);typeof s!="string"?(_s(s,this._id),this._messageRegistry.set(o,{messageElement:s,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(s,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,s,r){if(!s||!this._isElementNode(t))return;let o=Ut(s,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),typeof s=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${tt}="${this._id}"]`);for(let s=0;s<t.length;s++)this._removeCdkDescribedByReferenceIds(t[s]),t[s].removeAttribute(tt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,s){let r=this._document.createElement("div");_s(r,this._id),r.textContent=t,s&&r.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Ut(t,s),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let o=0;o<s.length;o++)s[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(t),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(t){let s=st(t,"aria-describedby").filter(r=>r.indexOf(Ss)!=0);t.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(t,s){let r=this._messageRegistry.get(s);zn(t,"aria-describedby",r.messageElement.id),t.setAttribute(tt,this._id),r.referenceCount++}_removeMessageReference(t,s){let r=this._messageRegistry.get(s);r.referenceCount--,Kn(t,"aria-describedby",r.messageElement.id),t.removeAttribute(tt)}_isElementDescribedByMessage(t,s){let r=st(t,"aria-describedby"),o=this._messageRegistry.get(s),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(t,s){if(!this._isElementNode(t))return!1;if(s&&typeof s=="object")return!0;let r=s==null?"":`${s}`.trim(),o=t.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(s){return new(s||e)(y(L),y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ut(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function _s(n,e){n.id||(n.id=`${Ss}-${e}-${Kt++}`)}var nt=class{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new q,this._typeaheadSubscription=Ri.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new q,this.change=new q,e instanceof Ot&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){let s=i.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zi(i=>this._pressedLetters.push(i)),$e(e),ji(()=>this._pressedLetters.length>0),Me(()=>this._pressedLetters.join(""))).subscribe(i=>{let t=this._getItemsArray();for(let s=1;s<t.length+1;s++){let r=(this._activeItemIndex+s)%t.length,o=t[r];if(!this._skipPredicateFn(o)&&o.getLabel().toUpperCase().trim().indexOf(i)===0){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,i=10){return this._pageUpAndDown={enabled:e,delta:i},this}setActiveItem(e){let i=this._activeItem;this.updateActiveItem(e),this._activeItem!==i&&this.change.next(this._activeItemIndex)}onKeydown(e){let i=e.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(s||et(e,"shiftKey"))&&(e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.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(e){let i=this._getItemsArray(),t=typeof e=="number"?e:i.indexOf(e),s=i[t];this._activeItem=s??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let t=1;t<=i.length;t++){let s=(this._activeItemIndex+e*t+i.length)%i.length,r=i[s];if(!this._skipPredicateFn(r)){this.setActiveItem(s);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=i,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ot?this._items.toArray():this._items}},ys=class extends nt{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},bs=class extends nt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Vn=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Wn(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let s=$n(Jn(t));if(s&&(vs(s)===-1||!this.isVisible(s)))return!1;let r=t.nodeName.toLowerCase(),o=vs(t);return t.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Zn(t)?!1:r==="audio"?t.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,s){return Xn(t)&&!this.isDisabled(t)&&(s?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(s){return new(s||e)(y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $n(n){try{return n.frameElement}catch{return null}}function Wn(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function qn(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Hn(n){return Gn(n)&&n.type=="hidden"}function Qn(n){return Yn(n)&&n.hasAttribute("href")}function Gn(n){return n.nodeName.toLowerCase()=="input"}function Yn(n){return n.nodeName.toLowerCase()=="a"}function As(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function vs(n){if(!As(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Zn(n){let e=n.nodeName.toLowerCase(),i=e==="input"&&n.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function Xn(n){return Hn(n)?!1:qn(n)||Qn(n)||n.hasAttribute("contenteditable")||As(n)}function Jn(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Vt=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,t,s,r=!1){this._element=e,this._checker=i,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let t=this._getFirstTabbableElement(i);return t?.focus(e),!!t}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=0;t<i.length;t++){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(i[t]):null;if(s)return s}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=i.length-1;t>=0;t--){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[t]):null;if(s)return s}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(We(1)).subscribe(e)}},er=(()=>{let e=class e{constructor(t,s,r){this._checker=t,this._ngZone=s,this._document=r}create(t,s=!1){return new Vt(t,this._checker,this._ngZone,this._document,s)}};e.\u0275fac=function(s){return new(s||e)(y(Vn),y(j),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),sl=(()=>{let e=class e{get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=t}constructor(t,s,r){this._elementRef=t,this._focusTrapFactory=s,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){let s=t.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ds(),this.focusTrap.focusInitialElementWhenReady()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(er),M(L))},e.\u0275dir=ce({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled",Ne],autoCapture:["cdkTrapFocusAutoCapture","autoCapture",Ne]},exportAs:["cdkTrapFocus"],features:[Ce,Ki]});let n=e;return n})();function $t(n){return n.buttons===0||n.detail===0}function Wt(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var tr=new x("cdk-input-modality-detector-options"),ir={ignoreKeys:[18,17,224,91,16]},Is=650,we=Te({passive:!0,capture:!0}),sr=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,s,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Pi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=re(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<Is||(this._modality.next($t(a)?"keyboard":"mouse"),this._mostRecentTarget=re(a))},this._onTouchstart=a=>{if(Wt(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=re(a)},this._options=R(R({},ir),o),this.modalityDetected=this._modality.pipe(qe(1)),this.modalityChanged=this.modalityDetected.pipe(Bi()),t.isBrowser&&s.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,we),r.addEventListener("mousedown",this._onMousedown,we),r.addEventListener("touchstart",this._onTouchstart,we)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,we),document.removeEventListener("mousedown",this._onMousedown,we),document.removeEventListener("touchstart",this._onTouchstart,we))}};e.\u0275fac=function(s){return new(s||e)(y($),y(j),y(L),y(tr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),nr=new x("liveAnnouncerElement",{providedIn:"root",factory:rr});function rr(){return null}var or=new x("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),ar=0,nl=(()=>{let e=class e{constructor(t,s,r,o){this._ngZone=s,this._defaultOptions=o,this._document=r,this._liveElement=t||this._createLiveElement()}announce(t,...s){let r=this._defaultOptions,o,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[o,a]=s,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",s=this._document.getElementsByClassName(t),r=this._document.createElement("div");for(let o=0;o<s.length;o++)s[o].remove();return r.classList.add(t),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${ar++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(t){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<s.length;r++){let o=s[r],a=o.getAttribute("aria-owns");a?a.indexOf(t)===-1&&o.setAttribute("aria-owns",a+" "+t):o.setAttribute("aria-owns",t)}}};e.\u0275fac=function(s){return new(s||e)(y(nr,8),y(j),y(L),y(or,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var lr=new x("cdk-focus-monitor-default-options"),it=Te({passive:!0,capture:!0}),cr=(()=>{let e=class e{constructor(t,s,r,o,a){this._ngZone=t,this._platform=s,this._inputModalityDetector=r,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new q,this._rootNodeFocusAndBlurListener=l=>{let c=re(l);for(let d=c;d;d=d.parentElement)l.type==="focus"?this._onFocus(l,d):this._onBlur(l,d)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,s=!1){let r=ue(t);if(!this._platform.isBrowser||r.nodeType!==1)return Fi();let o=cs(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return s&&(a.checkChildren=!0),a.subject;let l={checkChildren:s,subject:new q,rootNode:o};return this._elementInfo.set(r,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let s=ue(t),r=this._elementInfo.get(s);r&&(r.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(r))}focusVia(t,s,r){let o=ue(t),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,s,c)):(this._setOrigin(s),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===1||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,s){t.classList.toggle("cdk-focused",!!s),t.classList.toggle("cdk-touch-focused",s==="touch"),t.classList.toggle("cdk-keyboard-focused",s==="keyboard"),t.classList.toggle("cdk-mouse-focused",s==="mouse"),t.classList.toggle("cdk-program-focused",s==="program")}_setOrigin(t,s=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&s,this._detectionMode===0){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Is:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(t,s){let r=this._elementInfo.get(s),o=re(t);!r||!r.checkChildren&&s!==o||this._originChanged(s,this._getFocusOrigin(o),r)}_onBlur(t,s){let r=this._elementInfo.get(s);!r||r.checkChildren&&t.relatedTarget instanceof Node&&s.contains(t.relatedTarget)||(this._setClasses(s),this._emitOrigin(r,null))}_emitOrigin(t,s){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(s))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let s=t.rootNode,r=this._rootNodeFocusListenerCount.get(s)||0;r||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,it)}),this._rootNodeFocusListenerCount.set(s,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(He(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){let s=t.rootNode;if(this._rootNodeFocusListenerCount.has(s)){let r=this._rootNodeFocusListenerCount.get(s);r>1?this._rootNodeFocusListenerCount.set(s,r-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,it),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,s,r){this._setClasses(t,s),this._emitOrigin(r,s),this._lastFocusOrigin=s}_getClosestElementsInfo(t){let s=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&s.push([o,r])}),s}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:s,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!s||s===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let o=t.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(s))return!0}return!1}};e.\u0275fac=function(s){return new(s||e)(y(j),y($),y(sr),y(L,8),y(lr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),rl=(()=>{let e=class e{constructor(t,s){this._elementRef=t,this._focusMonitor=s,this._focusOrigin=null,this.cdkFocusChange=new be}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(cr))},e.\u0275dir=ce({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});let n=e;return n})(),Es="cdk-high-contrast-black-on-white",Ts="cdk-high-contrast-white-on-black",zt="cdk-high-contrast-active",qt=(()=>{let e=class e{constructor(t,s){this._platform=t,this._document=s,this._breakpointSubscription=U(gs).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let s=this._document.defaultView||window,r=s&&s.getComputedStyle?s.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(zt,Es,Ts),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===1?t.add(zt,Es):s===2&&t.add(zt,Ts)}}};e.\u0275fac=function(s){return new(s||e)(y($),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ol=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(s){return new(s||e)(y(qt))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ms]});let n=e;return n})();var ur=new x("cdk-dir-doc",{providedIn:"root",factory:mr});function mr(){return U(L)}var fr=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function pr(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?fr.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var _l=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new be,t){let s=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=pr(s||r||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(s){return new(s||e)(y(ur,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ht=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({});let n=e;return n})();function Ds(n){return new E(3e3,!1)}function gr(){return new E(3100,!1)}function _r(){return new E(3101,!1)}function yr(n){return new E(3001,!1)}function br(n){return new E(3003,!1)}function vr(n){return new E(3004,!1)}function Er(n,e){return new E(3005,!1)}function Tr(){return new E(3006,!1)}function wr(){return new E(3007,!1)}function Sr(n,e){return new E(3008,!1)}function Ar(n){return new E(3002,!1)}function Ir(n,e,i,t,s){return new E(3010,!1)}function Dr(){return new E(3011,!1)}function Mr(){return new E(3012,!1)}function kr(){return new E(3200,!1)}function Cr(){return new E(3202,!1)}function Nr(){return new E(3013,!1)}function Or(n){return new E(3014,!1)}function Rr(n){return new E(3015,!1)}function Pr(n){return new E(3016,!1)}function Fr(n,e){return new E(3404,!1)}function Lr(n){return new E(3502,!1)}function xr(n){return new E(3503,!1)}function jr(){return new E(3300,!1)}function Br(n){return new E(3504,!1)}function Ur(n){return new E(3301,!1)}function zr(n,e){return new E(3302,!1)}function Kr(n){return new E(3303,!1)}function Vr(n,e){return new E(3400,!1)}function $r(n){return new E(3401,!1)}function Wr(n){return new E(3402,!1)}function qr(n,e){return new E(3505,!1)}function oe(n){switch(n.length){case 0:return new ve;case 1:return n[0];default:return new Pt(n)}}function zs(n,e,i=new Map,t=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,h=d&&a||new Map;l.forEach((b,_)=>{let m=_,f=b;if(_!=="offset")switch(m=n.normalizePropertyName(m,s),f){case Je:f=i.get(_);break;case Z:f=t.get(_);break;default:f=n.normalizeStyleValue(_,m,f,s);break}h.set(m,f)}),d||r.push(h),a=h,o=c}),s.length)throw Lr(s);return r}function pi(n,e,i,t){switch(e){case"start":n.onStart(()=>t(i&&Qt(i,"start",n)));break;case"done":n.onDone(()=>t(i&&Qt(i,"done",n)));break;case"destroy":n.onDestroy(()=>t(i&&Qt(i,"destroy",n)));break}}function Qt(n,e,i){let t=i.totalTime,s=!!i.disabled,r=gi(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function gi(n,e,i,t,s="",r=0,o){return{element:n,triggerName:e,fromState:i,toState:t,phaseName:s,totalTime:r,disabled:!!o}}function K(n,e,i){let t=n.get(e);return t||n.set(e,t=i),t}function Ms(n){let e=n.indexOf(":"),i=n.substring(1,e),t=n.slice(e+1);return[i,t]}var Hr=(()=>typeof document>"u"?null:document.documentElement)();function _i(n){let e=n.parentNode||n.host||null;return e===Hr?null:e}function Qr(n){return n.substring(1,6)=="ebkit"}var fe=null,ks=!1;function Gr(n){fe||(fe=Yr()||{},ks=fe.style?"WebkitAppearance"in fe.style:!1);let e=!0;return fe.style&&!Qr(n)&&(e=n in fe.style,!e&&ks&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in fe.style)),e}function Yr(){return typeof document<"u"?document.body:null}function Ks(n,e){for(;e;){if(e===n)return!0;e=_i(e)}return!1}function Vs(n,e,i){if(i)return Array.from(n.querySelectorAll(e));let t=n.querySelector(e);return t?[t]:[]}var yi=(()=>{let e=class e{validateStyleProperty(t){return Gr(t)}matchesElement(t,s){return!1}containsElement(t,s){return Ks(t,s)}getParentElement(t){return _i(t)}query(t,s,r){return Vs(t,s,r)}computeStyle(t,s,r){return r||""}animate(t,s,r,o,a,l=[],c){return new ve(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Be=(()=>{let e=class e{};e.NOOP=new yi;let n=e;return n})(),_e=class{};var Zr=1e3,$s="{{",Xr="}}",Ws="ng-enter",ei="ng-leave",rt="ng-trigger",dt=".ng-trigger",Cs="ng-animating",ti=".ng-animating";function se(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ii(parseFloat(e[1]),e[2])}function ii(n,e){switch(e){case"s":return n*Zr;default:return n}}function ht(n,e,i){return n.hasOwnProperty("duration")?n:Jr(n,e,i)}function Jr(n,e,i){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(t);if(a===null)return e.push(Ds(n)),{duration:0,delay:0,easing:""};s=ii(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ii(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!i){let a=!1,l=e.length;s<0&&(e.push(gr()),a=!0),r<0&&(e.push(_r()),a=!0),a&&e.splice(l,0,Ds(n))}return{duration:s,delay:r,easing:o}}function Ue(n,e={}){return Object.keys(n).forEach(i=>{e[i]=n[i]}),e}function qs(n){let e=new Map;return Object.keys(n).forEach(i=>{let t=n[i];e.set(i,t)}),e}function eo(n){return n.length?n[0]instanceof Map?n:n.map(e=>qs(e)):[]}function Ae(n,e=new Map,i){if(i)for(let[t,s]of i)e.set(t,s);for(let[t,s]of n)e.set(t,s);return e}function X(n,e,i){e.forEach((t,s)=>{let r=bi(s);i&&!i.has(s)&&i.set(s,n.style[r]),n.style[r]=t})}function ge(n,e){e.forEach((i,t)=>{let s=bi(t);n.style[s]=""})}function Re(n){return Array.isArray(n)?n.length==1?n[0]:as(n):n}function to(n,e,i){let t=e.params||{},s=Hs(n);s.length&&s.forEach(r=>{t.hasOwnProperty(r)||i.push(yr(r))})}var si=new RegExp(`${$s}\\s*(.+?)\\s*${Xr}`,"g");function Hs(n){let e=[];if(typeof n=="string"){let i;for(;i=si.exec(n);)e.push(i[1]);si.lastIndex=0}return e}function Fe(n,e,i){let t=n.toString(),s=t.replace(si,(r,o)=>{let a=e[o];return a==null&&(i.push(br(o)),a=""),a.toString()});return s==t?n:s}function ut(n){let e=[],i=n.next();for(;!i.done;)e.push(i.value),i=n.next();return e}var io=/-+([a-z0-9])/g;function bi(n){return n.replace(io,(...e)=>e[1].toUpperCase())}function so(n,e){return n===0||e===0}function no(n,e,i){if(i.size&&e.length){let t=e[0],s=[];if(i.forEach((r,o)=>{t.has(o)||s.push(o),t.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Qs(n,a)))}}return e}function z(n,e,i){switch(e.type){case 7:return n.visitTrigger(e,i);case 0:return n.visitState(e,i);case 1:return n.visitTransition(e,i);case 2:return n.visitSequence(e,i);case 3:return n.visitGroup(e,i);case 4:return n.visitAnimate(e,i);case 5:return n.visitKeyframes(e,i);case 6:return n.visitStyle(e,i);case 8:return n.visitReference(e,i);case 9:return n.visitAnimateChild(e,i);case 10:return n.visitAnimateRef(e,i);case 11:return n.visitQuery(e,i);case 12:return n.visitStagger(e,i);default:throw vr(e.type)}}function Qs(n,e){return window.getComputedStyle(n)[e]}var ro=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),mt=class extends _e{normalizePropertyName(e,i){return bi(e)}normalizeStyleValue(e,i,t,s){let r="",o=t.toString().trim();if(ro.has(i)&&t!==0&&t!=="0")if(typeof t=="number")r="px";else{let a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(Er(e,t))}return o+r}};var ft="*";function oo(n,e){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>ao(t,i,e)):i.push(n),i}function ao(n,e,i){if(n[0]==":"){let l=lo(n,i);if(typeof l=="function"){e.push(l);return}n=l}let t=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return i.push(Rr(n)),e;let s=t[1],r=t[2],o=t[3];e.push(Ns(s,o));let a=s==ft&&o==ft;r[0]=="<"&&!a&&e.push(Ns(o,s))}function lo(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,t)=>parseFloat(t)>parseFloat(i);case":decrement":return(i,t)=>parseFloat(t)<parseFloat(i);default:return e.push(Pr(n)),"* => *"}}var ot=new Set(["true","1"]),at=new Set(["false","0"]);function Ns(n,e){let i=ot.has(n)||at.has(n),t=ot.has(e)||at.has(e);return(s,r)=>{let o=n==ft||n==s,a=e==ft||e==r;return!o&&i&&typeof s=="boolean"&&(o=s?ot.has(n):at.has(n)),!a&&t&&typeof r=="boolean"&&(a=r?ot.has(e):at.has(e)),o&&a}}var Gs=":self",co=new RegExp(`s*${Gs}s*,?`,"g");function Ys(n,e,i,t){return new ni(n).build(e,i,t)}var Os="",ni=class{constructor(e){this._driver=e}build(e,i,t){let s=new ri(i);return this._resetContextStyleTimingState(s),z(this,Re(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Os,e.collectedStyles=new Map,e.collectedStyles.set(Os,new Map),e.currentTime=0}visitTrigger(e,i){let t=i.queryCount=0,s=i.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(Tr()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==0){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==1){let l=this.visitTransition(a,i);t+=l.queryCount,s+=l.depCount,o.push(l)}else i.errors.push(wr())}),{type:7,name:e.name,states:r,transitions:o,queryCount:t,depCount:s,options:null}}visitState(e,i){let t=this.visitStyle(e.styles,i),s=e.options&&e.options.params||null;if(t.containsDynamicStyles){let r=new Set,o=s||{};if(t.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Hs(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size){let a=ut(r.values());i.errors.push(Sr(e.name,a))}}return{type:0,name:e.name,style:t,options:s?{params:s}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let t=z(this,Re(e.animation),i);return{type:1,matchers:oo(e.expr,i.errors),animation:t,queryCount:i.queryCount,depCount:i.depCount,options:pe(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(t=>z(this,t,i)),options:pe(e.options)}}visitGroup(e,i){let t=i.currentTime,s=0,r=e.steps.map(o=>{i.currentTime=t;let a=z(this,o,i);return s=Math.max(s,i.currentTime),a});return i.currentTime=s,{type:3,steps:r,options:pe(e.options)}}visitAnimate(e,i){let t=fo(e.timings,i.errors);i.currentAnimateTimings=t;let s,r=e.styles?e.styles:Rt({});if(r.type==5)s=this.visitKeyframes(r,i);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};t.easing&&(c.easing=t.easing),o=Rt(c)}i.currentTime+=t.duration+t.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,s=l}return i.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(e,i){let t=this._makeStyleAst(e,i);return this._validateStyleAst(t,i),t}_makeStyleAst(e,i){let t=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?t.push(a):i.errors.push(Ar(a)):t.push(qs(a));let r=!1,o=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf($s)>=0){r=!0;break}}}),{type:6,styles:t,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,i){let t=i.currentAnimateTimings,s=i.currentTime,r=i.currentTime;t&&r>0&&(r-=t.duration+t.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l),h=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(i.errors.push(Ir(l,d.startTime,d.endTime,r,s)),h=!1),r=d.startTime),h&&c.set(l,{startTime:r,endTime:s}),i.options&&to(a,i.options,i.errors)})})}visitKeyframes(e,i){let t={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Dr()),t;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(A=>{let I=this._makeStyleAst(A,i),P=I.offset!=null?I.offset:mo(I.styles),k=0;return P!=null&&(r++,k=I.offset=P),l=l||k<0||k>1,a=a||k<c,c=k,o.push(k),I});l&&i.errors.push(Mr()),a&&i.errors.push(kr());let h=e.steps.length,b=0;r>0&&r<h?i.errors.push(Cr()):r==0&&(b=s/(h-1));let _=h-1,m=i.currentTime,f=i.currentAnimateTimings,T=f.duration;return d.forEach((A,I)=>{let P=b>0?I==_?1:b*I:o[I],k=P*T;i.currentTime=m+f.delay+k,f.duration=k,this._validateStyleAst(A,i),A.offset=P,t.styles.push(A)}),t}visitReference(e,i){return{type:8,animation:z(this,Re(e.animation),i),options:pe(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:pe(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:pe(e.options)}}visitQuery(e,i){let t=i.currentQuerySelector,s=e.options||{};i.queryCount++,i.currentQuery=e;let[r,o]=ho(e.selector);i.currentQuerySelector=t.length?t+" "+r:r,K(i.collectedStyles,i.currentQuerySelector,new Map);let a=z(this,Re(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=t,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:pe(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(Nr());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ht(e.timings,i.errors,!0);return{type:12,animation:z(this,Re(e.animation),i),timings:t,options:null}}};function ho(n){let e=!!n.split(/\s*,\s*/).find(i=>i==Gs);return e&&(n=n.replace(co,"")),n=n.replace(/@\*/g,dt).replace(/@\w+/g,i=>dt+"-"+i.slice(1)).replace(/:animating/g,ti),[n,e]}function uo(n){return n?Ue(n):null}var ri=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function mo(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function fo(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ht(n,e).duration;return Gt(r,0,"")}let i=n;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Gt(0,0,"");return r.dynamic=!0,r.strValue=i,r}let s=ht(i,e);return Gt(s.duration,s.delay,s.easing)}function pe(n){return n?(n=Ue(n),n.params&&(n.params=uo(n.params))):n={},n}function Gt(n,e,i){return{duration:n,delay:e,easing:i}}function vi(n,e,i,t,s,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:i,postStyleProps:t,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var Le=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},po=1,go=":enter",_o=new RegExp(go,"g"),yo=":leave",bo=new RegExp(yo,"g");function Zs(n,e,i,t,s,r=new Map,o=new Map,a,l,c=[]){return new oi().buildKeyframes(n,e,i,t,s,r,o,a,l,c)}var oi=class{buildKeyframes(e,i,t,s,r,o,a,l,c,d=[]){c=c||new Le;let h=new ai(e,i,c,s,r,d,[]);h.options=l;let b=l.delay?se(l.delay):0;h.currentTimeline.delayNextStep(b),h.currentTimeline.setStyles([o],null,h.errors,l),z(this,t,h);let _=h.timelines.filter(m=>m.containsAnimation());if(_.length&&a.size){let m;for(let f=_.length-1;f>=0;f--){let T=_[f];if(T.element===i){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return _.length?_.map(m=>m.buildKeyframes()):[vi(i,[],[],[],0,b,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let t=i.subInstructions.get(i.element);if(t){let s=i.createSubContext(e.options),r=i.currentTimeline.currentTime,o=this._visitSubInstructions(t,s,s.options);r!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let t=i.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,t),this.visitReference(e.animation,t),i.transformIntoNewTimeline(t.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,t){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:se(Fe(r,s?.params??{},i.errors));t.delayNextStep(o)}}}_visitSubInstructions(e,i,t){let r=i.currentTimeline.currentTime,o=t.duration!=null?se(t.duration):null,a=t.delay!=null?se(t.delay):null;return o!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,i){i.updateOptions(e.options,!0),z(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let t=i.subContextCount,s=i,r=e.options;if(r&&(r.params||r.delay)&&(s=i.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==6&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=pt);let o=se(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>z(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let t=[],s=i.currentTimeline.currentTime,r=e.options&&e.options.delay?se(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);r&&a.delayNextStep(r),z(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),t.push(a.currentTimeline)}),t.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(s),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let t=e.strValue,s=i.params?Fe(t,i.params,i.errors):t;return ht(s,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let t=i.currentAnimateTimings=this._visitTiming(e.timings,i),s=i.currentTimeline;t.delay&&(i.incrementTime(t.delay),s.snapshotCurrentStyles());let r=e.style;r.type==5?this.visitKeyframes(r,i):(i.incrementTime(t.duration),this.visitStyle(r,i),s.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let t=i.currentTimeline,s=i.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(r):t.setStyles(e.styles,r,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let t=i.currentAnimateTimings,s=i.currentTimeline.duration,r=t.duration,a=i.createSubContext().currentTimeline;a.easing=t.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(s+r),i.previousNode=e}visitQuery(e,i){let t=i.currentTimeline.currentTime,s=e.options||{},r=s.delay?se(s.delay):0;r&&(i.previousNode.type===6||t==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pt);let o=t,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;let h=i.createSubContext(e.options,c);r&&h.delayNextStep(r),c===i.element&&(l=h.currentTimeline),z(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let b=h.currentTimeline.currentTime;o=Math.max(o,b)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let t=i.parentContext,s=i.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=t.currentStaggerTime;break}let d=i.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;z(this,e.animation,i),i.previousNode=e,t.currentStaggerTime=s.currentTime-h+(s.startTime-t.currentTimeline.startTime)}},pt={},ai=class n{constructor(e,i,t,s,r,o,a,l){this._driver=e,this.element=i,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new gt(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let t=e,s=this.options;t.duration!=null&&(s.duration=se(t.duration)),t.delay!=null&&(s.delay=se(t.delay));let r=t.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=Fe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let t=e.params={};Object.keys(i).forEach(s=>{t[s]=i[s]})}}return e}createSubContext(e=null,i,t){let s=i||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=pt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,t){let s={duration:i??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},r=new li(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,t,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(_o,"."+this._enterClassName),e=e.replace(bo,"."+this._leaveClassName);let l=t!=1,c=this._driver.query(this.element,e,l);t!==0&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),a.push(...c)}return!r&&a.length==0&&o.push(Or(i)),a}},gt=class n{constructor(e,i,t,s){this._driver=e,this.element=i,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=po,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,t]of this._globalTimelineStyles)this._backFill.set(i,t||Z),this._currentKeyframe.set(i,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,t,s){i&&this._previousKeyframe.set("easing",i);let r=s&&s.params||{},o=vo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Fe(l,r,t);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,t)=>{let s=this._styleSummary.get(t);(!s||i.time>s.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,t=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=Ae(a,new Map,this._backFill);c.forEach((d,h)=>{d===Je?e.add(h):d===Z&&i.add(h)}),t||c.set("offset",l/this.duration),s.push(c)});let r=e.size?ut(e.values()):[],o=i.size?ut(i.values()):[];if(t){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return vi(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},li=class extends gt{constructor(e,i,t,s,r,o,a=!1){super(e,i,o.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],o=t+i,a=i/o,l=Ae(e[0]);l.set("offset",0),r.push(l);let c=Ae(e[0]);c.set("offset",Rs(a)),r.push(c);let d=e.length-1;for(let h=1;h<=d;h++){let b=Ae(e[h]),_=b.get("offset"),m=i+_*t;b.set("offset",Rs(m/o)),r.push(b)}t=o,i=0,s="",e=r}return vi(this.element,e,this.preStyleProps,this.postStyleProps,t,i,s,!0)}};function Rs(n,e=3){let i=Math.pow(10,e-1);return Math.round(n*i)/i}function vo(n,e){let i=new Map,t;return n.forEach(s=>{if(s==="*"){t=t||e.keys();for(let r of t)i.set(r,Z)}else Ae(s,i)}),i}function Ps(n,e,i,t,s,r,o,a,l,c,d,h,b){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:t,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:b}}var Yt={},_t=class{constructor(e,i,t){this._triggerName=e,this.ast=i,this._stateStyles=t}match(e,i,t,s){return Eo(this.ast.matchers,e,i,t,s)}buildStyles(e,i,t){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(i,t):new Map}build(e,i,t,s,r,o,a,l,c,d){let h=[],b=this.ast.options&&this.ast.options.params||Yt,_=a&&a.params||Yt,m=this.buildStyles(t,_,h),f=l&&l.params||Yt,T=this.buildStyles(s,f,h),A=new Set,I=new Map,P=new Map,k=s==="void",ye={params:To(f,b),delay:this.ast.options?.delay},G=d?[]:Zs(e,i,this.ast.animation,r,o,m,T,ye,c,h),F=0;if(G.forEach(ee=>{F=Math.max(ee.duration+ee.delay,F)}),h.length)return Ps(i,this._triggerName,t,s,k,m,T,[],[],I,P,F,h);G.forEach(ee=>{let te=ee.element,Mi=K(I,te,new Set);ee.preStyleProps.forEach(ae=>Mi.add(ae));let De=K(P,te,new Set);ee.postStyleProps.forEach(ae=>De.add(ae)),te!==i&&A.add(te)});let J=ut(A.values());return Ps(i,this._triggerName,t,s,k,m,T,G,J,I,P,F)}};function Eo(n,e,i,t,s){return n.some(r=>r(e,i,t,s))}function To(n,e){let i=Ue(e);for(let t in n)n.hasOwnProperty(t)&&n[t]!=null&&(i[t]=n[t]);return i}var ci=class{constructor(e,i,t){this.styles=e,this.defaultParams=i,this.normalizer=t}buildStyles(e,i){let t=new Map,s=Ue(this.defaultParams);return Object.keys(e).forEach(r=>{let o=e[r];o!==null&&(s[r]=o)}),this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Fe(o,s,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),t.set(a,o)})}),t}};function wo(n,e,i){return new di(n,e,i)}var di=class{constructor(e,i,t){this.name=e,this.ast=i,this._normalizer=t,this.transitionFactories=[],this.states=new Map,i.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new ci(s.style,r,t))}),Fs(this.states,"true","1"),Fs(this.states,"false","0"),i.transitions.forEach(s=>{this.transitionFactories.push(new _t(e,s,this.states))}),this.fallbackTransition=So(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,t,s){return this.transitionFactories.find(o=>o.match(e,i,t,s))||null}matchStyles(e,i,t){return this.fallbackTransition.buildStyles(e,i,t)}};function So(n,e,i){let r={type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0};return new _t(n,r,e)}function Fs(n,e,i){n.has(e)?n.has(i)||n.set(i,n.get(e)):n.has(i)&&n.set(e,n.get(i))}var Ao=new Le,hi=class{constructor(e,i,t){this.bodyNode=e,this._driver=i,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let t=[],s=[],r=Ys(this._driver,i,t,s);if(t.length)throw xr(t);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,i,t){let s=e.element,r=zs(this._normalizer,e.keyframes,i,t);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,i,t={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Zs(this._driver,i,r,Ws,ei,new Map,new Map,t,Ao,s),o.forEach(d=>{let h=K(a,d.element,new Map);d.postStyleProps.forEach(b=>h.set(b,null))})):(s.push(jr()),o=[]),s.length)throw Br(s);a.forEach((d,h)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(h,_,Z))})});let l=o.map(d=>{let h=a.get(d.element);return this._buildPlayer(d,new Map,h)}),c=oe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Ur(e);return i}listen(e,i,t,s){let r=gi(i,"","","");return pi(this._getPlayer(e),t,r,s),()=>{}}command(e,i,t,s){if(t=="register"){this.register(e,s[0]);return}if(t=="create"){let o=s[0]||{};this.create(e,i,o);return}let r=this._getPlayer(e);switch(t){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},Ls="ng-animate-queued",Io=".ng-animate-queued",Zt="ng-animate-disabled",Do=".ng-animate-disabled",Mo="ng-star-inserted",ko=".ng-star-inserted",Co=[],Xs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},No={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed",xe=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let t=e&&e.hasOwnProperty("value"),s=t?e.value:e;if(this.value=Ro(s),t){let r=Ue(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let t=this.options.params;Object.keys(i).forEach(s=>{t[s]==null&&(t[s]=i[s])})}}},Pe="void",Xt=new xe(Pe),ui=class{constructor(e,i,t){this.id=e,this.hostElement=i,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,W(i,this._hostClassName)}listen(e,i,t,s){if(!this._triggers.has(i))throw zr(t,i);if(t==null||t.length==0)throw Kr(i);if(!Po(t))throw Vr(t,i);let r=K(this._elementListeners,e,[]),o={name:i,phase:t,callback:s};r.push(o);let a=K(this._engine.statesByElement,e,new Map);return a.has(i)||(W(e,rt),W(e,rt+"-"+i),a.set(i,Xt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw $r(e);return i}trigger(e,i,t,s=!0){let r=this._getTrigger(i),o=new je(this.id,i,e),a=this._engine.statesByElement.get(e);a||(W(e,rt),W(e,rt+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new xe(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Xt),!(c.value===Pe)&&l.value===c.value){if(!xo(l.params,c.params)){let f=[],T=r.matchStyles(l.value,l.params,f),A=r.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(()=>{ge(e,T),X(e,A)})}return}let b=K(this._engine.playersByElement,e,[]);b.forEach(f=>{f.namespaceId==this.id&&f.triggerName==i&&f.queued&&f.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!_){if(!s)return;_=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(W(e,Ls),o.onStart(()=>{Se(e,Ls)})),o.onDone(()=>{let f=this.players.indexOf(o);f>=0&&this.players.splice(f,1);let T=this._engine.playersByElement.get(e);if(T){let A=T.indexOf(o);A>=0&&T.splice(A,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,t)=>{this._elementListeners.set(t,i.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let t=this._engine.driver.query(e,dt,!0);t.forEach(s=>{if(s[Q])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,i,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,i,t,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Pe,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),t&&oe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(i&&t){let s=new Set;i.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=t.get(o)||Xt,d=new xe(Pe),h=new je(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(e,i){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let s=!1;if(t.totalAnimations){let r=t.players.length?t.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(t.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)t.markElementAsRemoved(this.id,e,!1,i);else{let r=e[Q];(!r||r===Xs)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,i))}}insertNode(e,i){W(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(t=>{let s=t.player;if(s.destroyed)return;let r=t.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==t.triggerName){let l=gi(r,t.triggerName,t.fromState.value,t.toState.value);l._data=e,pi(t.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):i.push(t)}),this._queue=[],i.sort((t,s)=>{let r=t.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mi=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,t){this.bodyNode=e,this.driver=i,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,i){let t=new ui(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(t,i):(this.newHostElements.set(i,t),this.collectEnterElement(i)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,i){let t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=s.get(a);if(l){let c=t.indexOf(l);t.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||t.unshift(e)}else t.push(e);return s.set(i,e),e}register(e,i){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,i)),t}registerTrigger(e,i,t){let s=this._namespaceLookup[e];s&&s.register(i,t)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1),t.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,t=this.statesByElement.get(e);if(t){for(let s of t.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&i.add(r)}}return i}trigger(e,i,t,s){if(lt(i)){let r=this._fetchNamespace(e);if(r)return r.trigger(i,t,s),!0}return!1}insertNode(e,i,t,s){if(!lt(i))return;let r=i[Q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,t)}s&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,Zt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Se(e,Zt))}removeNode(e,i,t){if(lt(i)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(i,t):this.markElementAsRemoved(e,i,!1,t);let r=this.namespacesByHostElement.get(i);r&&r.id!==e&&r.removeNode(i,t)}else this._onRemovalComplete(i,t)}markElementAsRemoved(e,i,t,s,r){this.collectedLeaveElements.push(i),i[Q]={namespaceId:e,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,i,t,s,r){return lt(i)?this._fetchNamespace(e).listen(i,t,s,r):()=>{}}_buildInstruction(e,i,t,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,s,e.fromState.options,e.toState.options,i,r)}destroyInnerAnimations(e){let i=this.driver.query(e,dt,!0);i.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,ti,!0),i.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return oe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Q];if(i&&i.setForRemoval){if(e[Q]=Xs,i.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(i.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Zt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Do,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let s=this.collectedEnterElements[t];W(s,Mo)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{i=this._flushAnimations(t,e)}finally{for(let s=0;s<t.length;s++)t[s]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let s=this.collectedLeaveElements[t];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],i.length?oe(i).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(e){throw Wr(e)}_flushAnimations(e,i){let t=new Le,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(u=>{d.add(u);let p=this.driver.query(u,Io,!0);for(let g=0;g<p.length;g++)d.add(p[g])});let h=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=Bs(b,this.collectedEnterElements),m=new Map,f=0;_.forEach((u,p)=>{let g=Ws+f++;m.set(p,g),u.forEach(v=>W(v,g))});let T=[],A=new Set,I=new Set;for(let u=0;u<this.collectedLeaveElements.length;u++){let p=this.collectedLeaveElements[u],g=p[Q];g&&g.setForRemoval&&(T.push(p),A.add(p),g.hasAnimation?this.driver.query(p,ko,!0).forEach(v=>A.add(v)):I.add(p))}let P=new Map,k=Bs(b,Array.from(A));k.forEach((u,p)=>{let g=ei+f++;P.set(p,g),u.forEach(v=>W(v,g))}),e.push(()=>{_.forEach((u,p)=>{let g=m.get(p);u.forEach(v=>Se(v,g))}),k.forEach((u,p)=>{let g=P.get(p);u.forEach(v=>Se(v,g))}),T.forEach(u=>{this.processLeaveNode(u)})});let ye=[],G=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(i).forEach(g=>{let v=g.player,D=g.element;if(ye.push(v),this.collectedEnterElements.length){let O=D[Q];if(O&&O.setForMove){if(O.previousTriggersValues&&O.previousTriggersValues.has(g.triggerName)){let le=O.previousTriggersValues.get(g.triggerName),V=this.statesByElement.get(g.element);if(V&&V.has(g.triggerName)){let Ke=V.get(g.triggerName);Ke.value=le,V.set(g.triggerName,Ke)}}v.destroy();return}}let Y=!h||!this.driver.containsElement(h,D),B=P.get(D),ne=m.get(D),S=this._buildInstruction(g,t,ne,B,Y);if(S.errors&&S.errors.length){G.push(S);return}if(Y){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}if(g.isFallbackTransition){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}let Ni=[];S.timelines.forEach(O=>{O.stretchStartingKeyframe=!0,this.disabledNodes.has(O.element)||Ni.push(O)}),S.timelines=Ni,t.append(D,S.timelines);let pn={instruction:S,player:v,element:D};o.push(pn),S.queriedElements.forEach(O=>K(a,O,[]).push(v)),S.preStyleProps.forEach((O,le)=>{if(O.size){let V=l.get(le);V||l.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))}}),S.postStyleProps.forEach((O,le)=>{let V=c.get(le);V||c.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))})});if(G.length){let u=[];G.forEach(p=>{u.push(qr(p.triggerName,p.errors))}),ye.forEach(p=>p.destroy()),this.reportError(u)}let F=new Map,J=new Map;o.forEach(u=>{let p=u.element;t.has(p)&&(J.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,F))}),s.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(v=>{K(F,p,[]).push(v),v.destroy()})});let ee=T.filter(u=>Us(u,l,c)),te=new Map;js(te,this.driver,I,c,Z).forEach(u=>{Us(u,l,c)&&ee.push(u)});let De=new Map;_.forEach((u,p)=>{js(De,this.driver,new Set(u),l,Je)}),ee.forEach(u=>{let p=te.get(u),g=De.get(u);te.set(u,new Map([...p?.entries()??[],...g?.entries()??[]]))});let ae=[],ki=[],Ci={};o.forEach(u=>{let{element:p,player:g,instruction:v}=u;if(t.has(p)){if(d.has(p)){g.onDestroy(()=>X(p,v.toStyles)),g.disabled=!0,g.overrideTotalTime(v.totalTime),s.push(g);return}let D=Ci;if(J.size>1){let B=p,ne=[];for(;B=B.parentNode;){let S=J.get(B);if(S){D=S;break}ne.push(B)}ne.forEach(S=>J.set(S,D))}let Y=this._buildAnimation(g.namespaceId,v,F,r,De,te);if(g.setRealPlayer(Y),D===Ci)ae.push(g);else{let B=this.playersByElement.get(D);B&&B.length&&(g.parentPlayer=oe(B)),s.push(g)}}else ge(p,v.fromStyles),g.onDestroy(()=>X(p,v.toStyles)),ki.push(g),d.has(p)&&s.push(g)}),ki.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let g=oe(p);u.setRealPlayer(g)}}),s.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u<T.length;u++){let p=T[u],g=p[Q];if(Se(p,ei),g&&g.hasAnimation)continue;let v=[];if(a.size){let Y=a.get(p);Y&&Y.length&&v.push(...Y);let B=this.driver.query(p,ti,!0);for(let ne=0;ne<B.length;ne++){let S=a.get(B[ne]);S&&S.length&&v.push(...S)}}let D=v.filter(Y=>!Y.destroyed);D.length?Fo(this,p,D):this.processLeaveNode(p)}return T.length=0,ae.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,t,s,r){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Pe;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(t||s)&&(o=o.filter(a=>!(t&&t!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,i,t){let s=i.triggerName,r=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:s;for(let l of i.timelines){let c=l.element,d=c!==r,h=K(t,c,[]);this._getPreviousPlayers(c,d,o,a,i.toState).forEach(_=>{let m=_.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),_.destroy(),h.push(_)})}ge(r,i.fromStyles)}_buildAnimation(e,i,t,s,r,o){let a=i.triggerName,l=i.element,c=[],d=new Set,h=new Set,b=i.timelines.map(m=>{let f=m.element;d.add(f);let T=f[Q];if(T&&T.removedBeforeQueried)return new ve(m.duration,m.delay);let A=f!==l,I=Lo((t.get(f)||Co).map(F=>F.getRealPlayer())).filter(F=>{let J=F;return J.element?J.element===f:!1}),P=r.get(f),k=o.get(f),ye=zs(this._normalizer,m.keyframes,P,k),G=this._buildPlayer(m,ye,I);if(m.subTimeline&&s&&h.add(f),A){let F=new je(e,a,f);F.setRealPlayer(G),c.push(F)}return G});c.forEach(m=>{K(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Oo(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>W(m,Cs));let _=oe(b);return _.onDestroy(()=>{d.forEach(m=>Se(m,Cs)),X(l,i.toStyles)}),h.forEach(m=>{K(s,m,[]).push(_)}),_}_buildPlayer(e,i,t){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,t):new ve(e.duration,e.delay)}},je=class{constructor(e,i,t){this.namespaceId=e,this.triggerName=i,this.element=t,this._player=new ve,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,t)=>{i.forEach(s=>pi(e,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){K(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function Oo(n,e,i){let t=n.get(e);if(t){if(t.length){let s=t.indexOf(i);t.splice(s,1)}t.length==0&&n.delete(e)}return t}function Ro(n){return n??null}function lt(n){return n&&n.nodeType===1}function Po(n){return n=="start"||n=="done"}function xs(n,e){let i=n.style.display;return n.style.display=e??"none",i}function js(n,e,i,t,s){let r=[];i.forEach(l=>r.push(xs(l)));let o=[];t.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let b=e.computeStyle(c,h,s);d.set(h,b),(!b||b.length==0)&&(c[Q]=No,o.push(c))}),n.set(c,d)});let a=0;return i.forEach(l=>xs(l,r[a++])),o}function Bs(n,e){let i=new Map;if(n.forEach(a=>i.set(a,[])),e.length==0)return i;let t=1,s=new Set(e),r=new Map;function o(a){if(!a)return t;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:s.has(c)?l=t:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==t&&i.get(l).push(a)}),i}function W(n,e){n.classList?.add(e)}function Se(n,e){n.classList?.remove(e)}function Fo(n,e,i){oe(i).onDone(()=>n.processLeaveNode(e))}function Lo(n){let e=[];return Js(n,e),e}function Js(n,e){for(let i=0;i<n.length;i++){let t=n[i];t instanceof Pt?Js(t.players,e):e.push(t)}}function xo(n,e){let i=Object.keys(n),t=Object.keys(e);if(i.length!=t.length)return!1;for(let s=0;s<i.length;s++){let r=i[s];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function Us(n,e,i){let t=i.get(n);if(!t)return!1;let s=e.get(n);return s?t.forEach(r=>s.add(r)):e.set(n,t),i.delete(n),!0}var Ie=class{constructor(e,i,t){this._driver=i,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new mi(e.body,i,t),this._timelineEngine=new hi(e.body,i,t),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,i,t,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Ys(this._driver,r,l,c);if(l.length)throw Fr(s,l);c.length&&void 0,a=wo(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,s,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,t,s){this._transitionEngine.insertNode(e,i,t,s)}onRemove(e,i,t){this._transitionEngine.removeNode(e,i,t)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,t,s){if(t.charAt(0)=="@"){let[r,o]=Ms(t),a=s;this._timelineEngine.command(r,i,o,a)}else this._transitionEngine.trigger(e,i,t,s)}listen(e,i,t,s,r){if(t.charAt(0)=="@"){let[o,a]=Ms(t);return this._timelineEngine.listen(o,i,a,r)}return this._transitionEngine.listen(e,i,t,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function jo(n,e){let i=null,t=null;return Array.isArray(e)&&e.length?(i=Jt(e[0]),e.length>1&&(t=Jt(e[e.length-1]))):e instanceof Map&&(i=Jt(e)),i||t?new Bo(n,i,t):null}var Bo=(()=>{let e=class e{constructor(t,s,r){this._element=t,this._startStyles=s,this._endStyles=r,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&X(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(X(this._element,this._initialStyles),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ge(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),X(this._element,this._initialStyles),this._state=3)}};e.initialStylesByElement=new WeakMap;let n=e;return n})();function Jt(n){let e=null;return n.forEach((i,t)=>{Uo(t)&&(e=e||new Map,e.set(t,i))}),e}function Uo(n){return n==="display"||n==="position"}var yt=class{constructor(e,i,t,s){this.element=e,this.keyframes=i,this.options=t,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(t=>{i.push(Object.fromEntries(t))}),i}_triggerWebAnimation(e,i,t){return e.animate(this._convertKeyframesToObject(i),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{s!=="offset"&&e.set(s,this._finished?t:Qs(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0}},bt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return Ks(e,i)}getParentElement(e){return _i(e)}query(e,i,t){return Vs(e,i,t)}computeStyle(e,i,t){return window.getComputedStyle(e)[i]}animate(e,i,t,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:t,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof yt);so(t,s)&&d.forEach(_=>{_.currentSnapshot.forEach((m,f)=>c.set(f,m))});let h=eo(i).map(_=>Ae(_));h=no(e,h,c);let b=jo(e,h);return new yt(e,h,l,b)}};var ct="@",en="@.disabled",vt=class{constructor(e,i,t,s){this.namespaceId=e,this.delegate=i,this.engine=t,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,t,s=!0){this.delegate.insertBefore(e,i,t),this.engine.onInsert(this.namespaceId,i,e,s)}removeChild(e,i,t){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,t,s){this.delegate.setAttribute(e,i,t,s)}removeAttribute(e,i,t){this.delegate.removeAttribute(e,i,t)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,t,s){this.delegate.setStyle(e,i,t,s)}removeStyle(e,i,t){this.delegate.removeStyle(e,i,t)}setProperty(e,i,t){i.charAt(0)==ct&&i==en?this.disableAnimations(e,!!t):this.delegate.setProperty(e,i,t)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,t){return this.delegate.listen(e,i,t)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},fi=class extends vt{constructor(e,i,t,s,r){super(i,t,s,r),this.factory=e,this.namespaceId=i}setProperty(e,i,t){i.charAt(0)==ct?i.charAt(1)=="."&&i==en?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,i.slice(1),t):this.delegate.setProperty(e,i,t)}listen(e,i,t){if(i.charAt(0)==ct){let s=zo(e),r=i.slice(1),o="";return r.charAt(0)!=ct&&([r,o]=Ko(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,t,a)})}return this.delegate.listen(e,i,t)}};function zo(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ko(n){let e=n.indexOf("."),i=n.substring(0,e),t=n.slice(e+1);return[i,t]}var Et=class{constructor(e,i,t){this.delegate=e,this.engine=i,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,i){let t="",s=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let h=()=>c.delete(s);d=new vt(t,s,this.engine,h),c.set(s,d)}return d}let r=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return i.data.animation.forEach(a),new fi(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,t){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(t));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([i,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var $o=(()=>{let e=class e extends Ie{constructor(t,s,r,o){super(t,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(y(L),y(Be),y(_e),y(is))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})();function Wo(){return new mt}function qo(n,e,i){return new Et(n,e,i)}var sn=[{provide:_e,useFactory:Wo},{provide:Ie,useClass:$o},{provide:qi,useFactory:qo,deps:[rs,Ie,j]}],tn=[{provide:Be,useFactory:()=>new bt},{provide:ie,useValue:"BrowserAnimations"},...sn],Ho=[{provide:Be,useClass:yi},{provide:ie,useValue:"NoopAnimations"},...sn],kl=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?Ho:tn}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:tn,imports:[os]});let n=e;return n})();var Yo=["text"];function Zo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",6),n&2){let i=Xe();Qe("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function Xo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",7),n&2){let i=Xe();Qe("disabled",i.disabled)}}function Jo(n,e){if(n&1&&(kt(0,"span",8),Zi(1),Ct()),n&2){let i=Xe();ke(1),Xi("(",i.group.label,")")}}var ea=[[["mat-icon"]],"*"],ta=["mat-icon","*"];var Jl=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=e;return n})(),ec=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let n=e;return n})();function ia(){return!0}var sa=new x("mat-sanity-checks",{providedIn:"root",factory:ia}),wt=(()=>{let e=class e{constructor(t,s,r){this._sanityChecks=s,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return hs()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(s){return new(s||e)(y(qt),y(sa,8),y(L))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[Ht,Ht]});let n=e;return n})();function tc(n){return class extends n{get disabled(){return this._disabled}set disabled(e){this._disabled=jt(e)}constructor(...e){super(...e),this._disabled=!1}}}function ic(n,e){return class extends n{get color(){return this._color}set color(i){let t=i||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function sc(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=jt(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function nc(n,e=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=i!=null?us(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}function rc(n){return class extends n{updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,t=this.errorStateMatcher||this._defaultErrorStateMatcher,s=this.ngControl?this.ngControl.control:null,r=t.isErrorState(s,i);r!==e&&(this.errorState=r,this.stateChanges.next())}constructor(...e){super(...e),this.errorState=!1}}}function oc(n){return class extends n{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ve(i=>{this._isInitialized?this._notifySubscriber(i):this._pendingSubscribers.push(i)})}_markInitialized(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}var nn=new x("MAT_DATE_LOCALE",{providedIn:"root",factory:na});function na(){return U(ss)}var St=class{constructor(){this._localeChanges=new q,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,i){return this.getYear(e)-this.getYear(i)||this.getMonth(e)-this.getMonth(i)||this.getDate(e)-this.getDate(i)}sameDate(e,i){if(e&&i){let t=this.isValid(e),s=this.isValid(i);return t&&s?!this.compareDate(e,i):t==s}return e==i}clampDate(e,i,t){return i&&this.compareDate(e,i)<0?i:t&&this.compareDate(e,t)>0?t:e}},ra=new x("mat-date-formats"),oa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ei(n,e){let i=Array(n);for(let t=0;t<n;t++)i[t]=e(t);return i}var aa=(()=>{let e=class e extends St{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=U(nn,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let s=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Ei(12,r=>this._format(s,new Date(2017,r,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ei(31,s=>this._format(t,new Date(2017,0,s+1)))}getDayOfWeekNames(t){let s=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Ei(7,r=>this._format(s,new Date(2017,0,r+1)))}getYearName(t){let s=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(s,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,s,r){let o=this._createDateWithOverflow(t,s,r);return o.getMonth()!=s,o}today(){return new Date}parse(t,s){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,s){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Oi(R({},s),{timeZone:"utc"}));return this._format(r,t)}addCalendarYears(t,s){return this.addCalendarMonths(t,s*12)}addCalendarMonths(t,s){let r=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+s,this.getDate(t));return this.getMonth(r)!=((this.getMonth(t)+s)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(t,s){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+s)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(oa.test(t)){let s=new Date(t);if(this.isValid(s))return s}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,s,r){let o=new Date;return o.setFullYear(t,s,r),o.setHours(0,0,0,0),o}_2digit(t){return("00"+t).slice(-2)}_format(t,s){let r=new Date;return r.setUTCFullYear(s.getFullYear(),s.getMonth(),s.getDate()),r.setUTCHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),t.format(r)}};e.\u0275fac=function(s){return new(s||e)(y(nn,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),la={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ca=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:St,useClass:aa}]});let n=e;return n})(),ac=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:ra,useValue:la}],imports:[ca]});let n=e;return n})();var lc=(()=>{let e=class e{isErrorState(t,s){return!!(t&&t.invalid&&(t.touched||s&&s.submitted))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Si=class{constructor(e,i,t,s=!1){this._renderer=e,this.element=i,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}},rn=Te({passive:!0,capture:!0}),Ai=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=re(e);i&&this._events.get(e.type)?.forEach((t,s)=>{(s===i||s.contains(i))&&t.forEach(r=>r.handleEvent(e))})}}addHandler(e,i,t,s){let r=this._events.get(i);if(r){let o=r.get(t);o?o.add(s):r.set(t,new Set([s]))}else this._events.set(i,new Map([[t,new Set([s])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,rn)})}removeHandler(e,i,t){let s=this._events.get(e);if(!s)return;let r=s.get(i);r&&(r.delete(t),r.size===0&&s.delete(i),s.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,rn)))}},on={enterDuration:225,exitDuration:150},da=800,an=Te({passive:!0,capture:!0}),ln=["mousedown","touchstart"],cn=["mouseup","mouseleave","touchend","touchcancel"],ze=class ze{constructor(e,i,t,s){this._target=e,this._ngZone=i,this._platform=s,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ue(t))}fadeInRipple(e,i,t={}){let s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=R(R({},on),t.animation);t.centered&&(e=s.left+s.width/2,i=s.top+s.height/2);let o=t.radius||ha(e,i,s),a=e-s.left,l=i-s.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-o}px`,d.style.top=`${l-o}px`,d.style.height=`${o*2}px`,d.style.width=`${o*2}px`,t.color!=null&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let h=window.getComputedStyle(d),b=h.transitionProperty,_=h.transitionDuration,m=b==="none"||_==="0s"||_==="0s, 0s"||s.width===0&&s.height===0,f=new Si(this,d,t,m);d.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let T=null;return!m&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let A=()=>this._finishRippleTransition(f),I=()=>this._destroyRipple(f);d.addEventListener("transitionend",A),d.addEventListener("transitioncancel",I),T={onTransitionEnd:A,onTransitionCancel:I}}),this._activeRipples.set(f,T),(m||!c)&&this._finishRippleTransition(f),f}fadeOutRipple(e){if(e.state===2||e.state===3)return;let i=e.element,t=R(R({},on),e.config.animation);i.style.transitionDuration=`${t.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=ue(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,ln.forEach(t=>{ze._eventManager.addHandler(this._ngZone,t,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{cn.forEach(i=>{this._triggerElement.addEventListener(i,this,an)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===0?this._startFadeOutTransition(e):e.state===2&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=1,!t&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=$t(e),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+da;!this._target.rippleDisabled&&!i&&!t&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Wt(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let i=e.changedTouches;if(i)for(let t=0;t<i.length;t++)this.fadeInRipple(i[t].clientX,i[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let i=e.state===1||e.config.terminateOnPointerUp&&e.state===0;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(ln.forEach(i=>ze._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&cn.forEach(i=>e.removeEventListener(i,this,an)))}};ze._eventManager=new Ai;var Ii=ze;function ha(n,e,i){let t=Math.max(Math.abs(n-i.left),Math.abs(n-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(t*t+s*s)}var mn=new x("mat-ripple-global-options"),fn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,s,r,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ii(this,s,t,r)}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:R(R(R({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,s=0,r){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,s,R(R({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,R(R({},this.rippleConfig),t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(j),M($),M(mn,8),M(ie,8))},e.\u0275dir=ce({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(s,r){s&2&&Ge("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});let n=e;return n})(),ua=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt,wt]});let n=e;return n})(),ma=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(s){return new(s||e)(M(ie,8))},e.\u0275cmp=It({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(s,r){s&2&&Ge("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(s,r){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let n=e;return n})(),fa=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt]});let n=e;return n})(),pa=new x("MAT_OPTION_PARENT_COMPONENT");var ga=new x("MatOptgroup");var _a=0,Di=class{constructor(e,i=!1){this.source=e,this.isUserInput=i}},cc=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,s,r,o){this._element=t,this._changeDetectorRef=s,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${_a++}`,this.onSelectionChange=new be,this._stateChanges=new q}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,s){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(s)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!et(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Di(this,t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(Hi),M(pa,8),M(ga,8))},e.\u0275cmp=It({type:e,selectors:[["mat-option"]],viewQuery:function(s,r){if(s&1&&es(Yo,7),s&2){let o;Ji(o=ts())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(s,r){s&1&&Gi("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),s&2&&(Qi("id",r.id),Dt("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Ge("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:["disabled","disabled",Ne]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Ce],ngContentSelectors:ta,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(s,r){s&1&&(Yi(ea),Mt(0,Zo,1,2,"mat-pseudo-checkbox",0),Nt(1),kt(2,"span",1,2),Nt(4,1),Ct(),Mt(5,Xo,1,1,"mat-pseudo-checkbox",3)(6,Jo,2,1,"span",4),Ze(7,"div",5)),s&2&&(Ye(0,r.multiple?0:-1),ke(5),Ye(5,!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),ke(1),Ye(6,r.group&&r.group._inert?6:-1),ke(1),Qe("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[fn,ma],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();function dc(n,e,i){if(i.length){let t=e.toArray(),s=i.toArray(),r=0;for(let o=0;o<n+1;o++)t[o].group&&t[o].group===s[r]&&r++;return r}return 0}function hc(n,e,i,t){return n<i?n:n+e>i+t?Math.max(0,n-t+e):i}var uc=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ua,wt,fa]});let n=e;return n})(),dn={capture:!0},hn=["focus","click","mouseenter","touchstart"],Ti="mat-ripple-loader-uninitialized",wi="mat-ripple-loader-class-name",un="mat-ripple-loader-centered",Tt="mat-ripple-loader-disabled",mc=(()=>{let e=class e{constructor(){this._document=U(L,{optional:!0}),this._animationMode=U(ie,{optional:!0}),this._globalRippleOptions=U(mn,{optional:!0}),this._platform=U($),this._ngZone=U(j),this._hosts=new Map,this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;let r=t.target.closest(`[${Ti}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let t of hn)this._document?.addEventListener(t,this._onInteraction,dn)})}ngOnDestroy(){let t=this._hosts.keys();for(let s of t)this.destroyRipple(s);for(let s of hn)this._document?.removeEventListener(s,this._onInteraction,dn)}configureRipple(t,s){t.setAttribute(Ti,""),(s.className||!t.hasAttribute(wi))&&t.setAttribute(wi,s.className||""),s.centered&&t.setAttribute(un,""),s.disabled&&t.setAttribute(Tt,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,s){let r=this._hosts.get(t);if(r){r.disabled=s;return}s?t.setAttribute(Tt,""):t.removeAttribute(Tt)}_createRipple(t){if(!this._document)return;let s=this._hosts.get(t);if(s)return s;t.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",t.getAttribute(wi)),t.append(r);let o=new fn(new H(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=t,o.centered=t.hasAttribute(un),o.disabled=t.hasAttribute(Tt),this.attachRipple(t,o),o}attachRipple(t,s){t.removeAttribute(Ti),this._hosts.set(t,s)}destroyRipple(t){let s=this._hosts.get(t);s&&(s.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();export{jt as a,us as b,Bt as c,Da as d,ue as e,Ma as f,et as g,$ as h,wa as i,Te as j,Sa as k,cs as l,ds as m,re as n,hs as o,kl as p,ms as q,zn as r,Kn as s,il as t,ys as u,bs as v,Vn as w,er as x,sl as y,$t as z,Wt as A,nl as B,cr as C,rl as D,ol as E,_l as F,Ht as G,Jl as H,ec as I,wt as J,tc as K,ic as L,sc as M,nc as N,rc as O,oc as P,nn as Q,St as R,ra as S,ac as T,lc as U,mn as V,fn as W,ua as X,pa as Y,ga as Z,cc as _,dc as $,hc as aa,uc as ba,mc as ca};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-OGJ6YVG4.js";import{b as i}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-GAMNBDJD.js";import{_ as s,ba as n,q as o}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-LWR5YJ24.js";var g=(()=>{let a=class a{constructor(t){this.db=t,this.DATABASE="Categories"}saveCategoriesByChannelType(t,e){let c=this.getKey(e);return this.db.add(this.DATABASE,t,c).pipe(o(p=>t))}getCategoriesByChannelType(t){let e=this.getKey(t);return this.db.getByKey(this.DATABASE,e)}getKey(t){let e="";switch(t){case i.Lazada:e="Lazada";break;case i.Tokopedia:e="Tokopedia";break}return e}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){let t=localStorage.getItem("Authorization");return this.hostName=JSON.parse(t)?.Host,this.hostName}};a.\u0275fac=function(e){return new(e||a)(n(h))},a.\u0275prov=s({token:a,factory:a.\u0275fac,providedIn:"root"});let r=a;return r})();export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as q,b as f,c as _}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-CFL3VDAM.js";import{a as h,b as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-QV22VQ5Q.js";import{b as P,e as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-BBX2DZWF.js";import{c as M,h as v,k as S,r as j,t as K}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-UUMW24BF.js";import{c as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-GAMNBDJD.js";import{Ea as s,Fa as g,Na as d,Ta as y,Vb as W,Xb as A,Ya as t,Yb as N,Za as i,_a as k,da as C,gb as c,ib as x,nb as b,ob as m,pb as T,ub as L,vb as U,ya as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-LWR5YJ24.js";function G(a,n){if(a&1&&(t(0,"tr")(1,"td")(2,"a",11),k(3,"img",12),t(4,"span"),m(5),i()()(),t(6,"td"),m(7),i(),t(8,"td"),m(9),i()()),a&2){let u=n.$implicit;s(2),d("href","/menu/channel/marketplace/view?ID="+u.Key.ID,I),s(1),d("src",u.Logo,I),s(2),T(u.Key.Name),s(2),T(u.Value.Out),s(2),T(u.Value.Tg)}}var oe=(()=>{let n=class n{constructor(l,o){this.dialogRef=l,this.data=o,this.generateChannelName(),this.channels=this.setChannelLogo(o.channels)}ngOnInit(){this.modalConfig=new f,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=q.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.hideClose=!0}setChannelLogo(l){return l.map(o=>(o.Logo=F.getChannelLogoByTypeId(o.Key.TypeID),o))}generateChannelName(){this.channelNames="";let l=this.data.channels;l.forEach((o,e)=>{this.channelNames+=`${o.Key} ${e!=l.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)(g(h),g(O))},n.\u0275cmp=C({type:n,selectors:[["app-modal-channel-warning"]],decls:24,vars:2,consts:[[3,"config","onCancel","onClose"],["content","",1,"pt-2","px-4"],[1,"row"],[1,"col-12"],[1,"lh-base","fs-5"],[1,"mb-4"],[1,"table","table-bordered"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"fs-5","mt-4"],["href","https://support.dealpos.com/en/articles/8281096-setup-multiple-channel-marketplace-to-one-warehouse-outlet","target","_blank"],["target","_blank",3,"href"],[1,"me-3",2,"width","24px",3,"src"]],template:function(o,e){o&1&&(t(0,"modal-material",0),c("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),t(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),m(5,"When your order configuration is not unique, your Dashboard Sales Report will be invalid. You can use either Outlet or Order Tag to differentiate Channel Order. "),i(),t(6,"h5",5),m(7,"Your duplicate Channels are"),i(),t(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),m(12,"Channel"),i(),t(13,"th"),m(14,"Outlet"),i(),t(15,"th"),m(16,"Tag"),i()()(),t(17,"tbody"),y(18,G,10,5,"tr",8),i()(),t(19,"p",9),m(20," Please refer to this "),t(21,"a",10),m(22,"article"),i(),m(23," for more information "),i()()()()()),o&2&&(d("config",e.modalConfig),s(18),d("ngForOf",e.channels))},dependencies:[A,_]});let a=n;return a})();var me=(()=>{let n=class n{constructor(l,o,e){this.dialogRef=l,this.httpService=o,this.toastr=e,this.modalConfig=new f,this.modalConfig.title="Write Off Reason"}onSubmit(){let l={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",l).subscribe(o=>{this.toastr.success(o.Message,"Success"),this.dialogRef.close(l)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}};n.\u0275fac=function(o){return new(o||n)(g(h),g(V),g(P))},n.\u0275cmp=C({type:n,selectors:[["app-dialog-writeOff-reason"]],decls:7,vars:3,consts:[[3,"dynamicValidated","config","onClose","onCancel","onOk"],["content",""],[1,"form-label-group"],["type","text","id","writeOffReason","placeholder","Write Off Reason","name","writeOffReason",1,"form-control",3,"ngModel","ngModelChange"],["name","ngModel"],["for","shopid"]],template:function(o,e){o&1&&(t(0,"modal-material",0),c("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),t(1,"div",1)(2,"div",2)(3,"input",3,4),c("ngModelChange",function(p){return e.reason=p}),i(),t(5,"label",5),m(6,"Reason"),i()()()()),o&2&&(d("dynamicValidated",e.reason)("config",e.modalConfig),s(3),d("ngModel",e.reason))},dependencies:[M,v,S,_],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]});let a=n;return a})();function $(a,n){a&1&&(t(0,"p"),m(1," URL is required "),i())}function H(a,n){if(a&1&&(t(0,"div",13),y(1,$,2,0,"p",14),i()),a&2){x();let u=b(10);s(1),d("ngIf",u.errors.required)}}function Y(a,n){a&1&&(t(0,"p"),m(1," Email is required "),i())}function B(a,n){a&1&&(t(0,"p"),m(1," Email is not valid "),i())}function J(a,n){if(a&1&&(t(0,"div",13),y(1,Y,2,0,"p",14)(2,B,2,0,"p",14),i()),a&2){x();let u=b(16);s(1),d("ngIf",u.errors.required),s(1),d("ngIf",u.errors.pattern)}}var Q=a=>({invalid:a}),X=()=>({updateOn:"blur"}),pe=(()=>{let n=class n{constructor(l){this.dialogRef=l}ngOnInit(){this.data={},this.initModalConfig()}initModalConfig(){this.modalConfig=new f,this.modalConfig.title="Fill data for Customer Support"}onSubmit(){this.dialogRef.close(this.data)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)(g(h))},n.\u0275cmp=C({type:n,selectors:[["app-contact-support"]],decls:18,vars:11,consts:[[3,"dynamicValidated","config","onClose","onCancel","onOk"],["content",""],[1,"mx-4"],["for","customerURL"],[1,"input-group","mb-5"],[1,"input-group-prepend"],["id","tokopediaUrl",1,"border-start-0","rounded-start","input-group-text","pointer-default","bg-light",2,"height","58px",3,"ngClass"],["required","","type","text","id","customerURL","name","customerURL","data-toggle","tooltip","title","customerURL",1,"form-control","border-start-0","customerUrl",3,"ngModel","ngModelChange"],["url","ngModel"],["class","text-danger",4,"ngIf"],["for","customerEmail"],["required","","type","text","id","customerEmail","name","customerEmail","data-toggle","tooltip","title","customerEmail","pattern","\\b[\\w\\.-]+@[\\w\\.-]+\\.\\w{2,4}\\b",1,"form-control",3,"ngModel","ngModelOptions","ngModelChange"],["email","ngModel"],[1,"text-danger"],[4,"ngIf"]],template:function(o,e){if(o&1&&(t(0,"modal-material",0),c("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),t(1,"div",1)(2,"div",2)(3,"label",3),m(4,"Tokopedia URL"),i(),t(5,"div",4)(6,"div",5)(7,"span",6),m(8,"https://tokopedia.com/"),i()(),t(9,"input",7,8),c("ngModelChange",function(p){return e.data.URL=p}),i()(),y(11,H,2,1,"div",9),t(12,"label",10),m(13,"Requester's Email"),i(),t(14,"div",4)(15,"input",11,12),c("ngModelChange",function(p){return e.data.Email=p}),i()(),y(17,J,3,2,"div",9),i()()()),o&2){let r=b(10),p=b(16);d("dynamicValidated",!r.invalid&&!p.invalid)("config",e.modalConfig),s(7),d("ngClass",U(8,Q,r.invalid&&(r.dirty||r.touched))),s(2),d("ngModel",e.data.URL),s(2),d("ngIf",r.invalid&&(r.dirty||r.touched)),s(4),d("ngModel",e.data.Email)("ngModelOptions",L(10,X)),s(2),d("ngIf",p.invalid&&(p.dirty||p.touched))}},dependencies:[W,N,M,v,j,K,S,_],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.input-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.input-group[_ngcontent-%COMP%] > input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#fb404b}.input-group[_ngcontent-%COMP%] > input.customerUrl[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.invalid[_ngcontent-%COMP%]{border-color:#fb404b}.pointer-default[_ngcontent-%COMP%]{cursor:default}"]});let a=n;return a})();var ue=(()=>{let n=class n{constructor(l,o){this.dialogRef=l,this.data=o}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new f,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.data)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)(g(h),g(O))},n.\u0275cmp=C({type:n,selectors:[["app-modal-dialog-tokopedia"]],decls:7,vars:3,consts:[[3,"dynamicValidated","config","onClose","onCancel","onOk"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","ShopID","data-toggle","tooltip","title","Channel Name",1,"form-control",3,"ngModel","ngModelChange"],["name","ngModel"],["for","shopid"]],template:function(o,e){o&1&&(t(0,"modal-material",0),c("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),t(1,"div",1)(2,"div",2)(3,"input",3,4),c("ngModelChange",function(p){return e.data.ShopID=p}),i(),t(5,"label",5),m(6,"Shop ID"),i()()()()),o&2&&(d("dynamicValidated",e.data.ShopID)("config",e.modalConfig),s(3),d("ngModel",e.data.ShopID))},dependencies:[M,v,S,_],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let a=n;return a})();var Me=(()=>{let n=class n{constructor(l,o){this.dialogRef=l,this.data=o,this.modalConfig=new f}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new f,this.modalConfig.title="WooCommerce",this.modalConfig.okText="SAVE"}onSubmit(){this.data.TypeID=2,this.dialogRef.close(this.data)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)(g(h),g(O))},n.\u0275cmp=C({type:n,selectors:[["app-modal-dialog-woocommerce"]],decls:17,vars:5,consts:[[3,"dynamicValidated","config","onClose","onCancel","onOk"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","URL","data-toggle","tooltip","title","URL",1,"form-control",3,"ngModel","ngModelChange"],["name","ngModel"],["for","shopid"],["type","text","id","ConsumerKey","placeholder","Consumer Key","name","ConsumerKey","data-toggle","tooltip","title","ConsumerKey",1,"form-control",3,"ngModel","ngModelChange"],["for","ConsumerKey"],["type","text","id","ConsumerSecret","placeholder","Consumer Secret","name","ConsumerSecret","data-toggle","tooltip","title","ConsumerSecret",1,"form-control",3,"ngModel","ngModelChange"],["for","ConsumerSecret"]],template:function(o,e){o&1&&(t(0,"modal-material",0),c("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),t(1,"div",1)(2,"div",2)(3,"input",3,4),c("ngModelChange",function(p){return e.data.URL=p}),i(),t(5,"label",5),m(6,"URL"),i()(),t(7,"div",2)(8,"input",6,4),c("ngModelChange",function(p){return e.data.ConsumerKey=p}),i(),t(10,"label",7),m(11,"Consumer Key"),i()(),t(12,"div",2)(13,"input",8,4),c("ngModelChange",function(p){return e.data.ConsumerSecret=p}),i(),t(15,"label",9),m(16,"Consumer Secret"),i()()()()),o&2&&(d("dynamicValidated",e.data.ConsumerKey&&e.data.URL&&e.data.ConsumerSecret)("config",e.modalConfig),s(3),d("ngModel",e.data.URL),s(5),d("ngModel",e.data.ConsumerKey),s(5),d("ngModel",e.data.ConsumerSecret))},dependencies:[M,v,S,_],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let a=n;return a})();export{oe as a,me as b,pe as c,ue as d,Me as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as Me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-UUMW24BF.js";import{$ as Te,$a as M,A as Z,Aa as O,B as ge,Ca as ye,D as _e,Ea as u,Eb as p,Fa as h,Fb as _,Gb as R,H as fe,Ha as Ie,Hb as y,Ia as T,Ib as f,Ja as Fe,Jb as V,Ma as ee,Na as d,Pa as k,R as Ee,Ta as v,Tb as Le,U as P,Vb as Be,W as Ce,Xb as Ve,Y as ve,Ya as g,Yb as oe,Za as E,_ as J,_a as j,_b as ae,aa as be,ab as N,bb as se,c as W,cb as U,da as X,dc as Pe,ea as we,f as he,fa as w,gb as B,ha as G,i as pe,ia as I,ib as c,ja as F,jb as le,kb as re,lb as Se,na as ne,nb as A,ob as L,pb as Q,q as me,qb as Ae,sb as xe,vb as z,wb as De,x as q,xb as Oe,yb as ke}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-LWR5YJ24.js";import{a as de}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.1/Marketplace/chunk-J3NU4TSW.js";var We=["content"],qe=["scroll"],Ge=["padding"],Y=n=>({searchTerm:n});function $e(n,t){if(n&1&&(g(0,"div",6),se(1,7),E()),n&2){let s=c();u(1),d("ngTemplateOutlet",s.headerTemplate)("ngTemplateOutletContext",z(2,Y,s.filterValue))}}function Ye(n,t){if(n&1&&(g(0,"div",8),se(1,7),E()),n&2){let s=c();u(1),d("ngTemplateOutlet",s.footerTemplate)("ngTemplateOutletContext",z(2,Y,s.filterValue))}}var He=["*"],Ke=["searchInput"],Ze=["clearButton"];function Je(n,t){if(n&1){let s=U();g(0,"span",15),B("click",function(){I(s);let i=c().$implicit,l=c(2);return F(l.unselect(i))}),L(1,"\xD7"),E(),j(2,"span",16)}if(n&2){let s=c().$implicit,e=c(2);u(2),d("ngItemLabel",s.label)("escape",e.escapeHTML)}}function Xe(n,t){}var et=(n,t,s)=>({item:n,clear:t,label:s});function tt(n,t){if(n&1&&(g(0,"div",12),v(1,Je,3,2,"ng-template",null,13,V)(3,Xe,0,0,"ng-template",14),E()),n&2){let s=t.$implicit,e=A(2),i=c(2);k("ng-value-disabled",s.disabled),u(3),d("ngTemplateOutlet",i.labelTemplate||e)("ngTemplateOutletContext",Oe(4,et,s.value,i.clearItem,s.label))}}function it(n,t){if(n&1&&(M(0),v(1,tt,4,8,"div",11),N()),n&2){let s=c();u(1),d("ngForOf",s.selectedItems)("ngForTrackBy",s.trackByOption)}}function nt(n,t){}var st=(n,t)=>({items:n,clear:t});function lt(n,t){if(n&1&&v(0,nt,0,0,"ng-template",14),n&2){let s=c();d("ngTemplateOutlet",s.multiLabelTemplate)("ngTemplateOutletContext",De(2,st,s.selectedValues,s.clearItem))}}function rt(n,t){n&1&&j(0,"div",19)}function ot(n,t){}function at(n,t){if(n&1&&(M(0),v(1,rt,1,0,"ng-template",null,17,V)(3,ot,0,0,"ng-template",18),N()),n&2){let s=A(2),e=c();u(3),d("ngTemplateOutlet",e.loadingSpinnerTemplate||s)}}function ut(n,t){if(n&1&&(g(0,"span",20,21)(2,"span",22),L(3,"\xD7"),E()()),n&2){let s=c();Se("title",s.clearAllText)}}function ct(n,t){if(n&1&&j(0,"span",28),n&2){let s=c().$implicit,e=c(2);d("ngItemLabel",s.label)("escape",e.escapeHTML)}}function dt(n,t){}var ht=(n,t,s,e)=>({item:n,item$:t,index:s,searchTerm:e});function pt(n,t){if(n&1){let s=U();g(0,"div",26),B("click",function(){let l=I(s).$implicit,r=c(2);return F(r.toggleItem(l))})("mouseover",function(){let l=I(s).$implicit,r=c(2);return F(r.onItemHover(l))}),v(1,ct,1,2,"ng-template",null,27,V)(3,dt,0,0,"ng-template",14),E()}if(n&2){let s=t.$implicit,e=A(2),i=c(2);k("ng-option-disabled",s.disabled)("ng-option-selected",s.selected)("ng-optgroup",s.children)("ng-option",!s.children)("ng-option-child",!!s.parent)("ng-option-marked",s===i.itemsList.markedItem),ee("role",s.children?"group":"option")("aria-selected",s.selected)("id",s==null?null:s.htmlId),u(3),d("ngTemplateOutlet",s.children?i.optgroupTemplate||e:i.optionTemplate||e)("ngTemplateOutletContext",ke(17,ht,s.value,s,s.index,i.searchTerm))}}function mt(n,t){if(n&1&&(g(0,"span")(1,"span",31),L(2),E(),L(3),E()),n&2){let s=c(3);u(2),Q(s.addTagText),u(1),Ae('"',s.searchTerm,'"')}}function gt(n,t){}function _t(n,t){if(n&1){let s=U();g(0,"div",29),B("mouseover",function(){I(s);let i=c(2);return F(i.itemsList.unmarkItem())})("click",function(){I(s);let i=c(2);return F(i.selectTag())}),v(1,mt,4,2,"ng-template",null,30,V)(3,gt,0,0,"ng-template",14),E()}if(n&2){let s=A(2),e=c(2);k("ng-option-marked",!e.itemsList.markedItem),u(3),d("ngTemplateOutlet",e.tagTemplate||s)("ngTemplateOutletContext",z(4,Y,e.searchTerm))}}function ft(n,t){if(n&1&&(g(0,"div",33),L(1),E()),n&2){let s=c(3);u(1),Q(s.notFoundText)}}function Et(n,t){}function Ct(n,t){if(n&1&&(M(0),v(1,ft,2,1,"ng-template",null,32,V)(3,Et,0,0,"ng-template",14),N()),n&2){let s=A(2),e=c(2);u(3),d("ngTemplateOutlet",e.notFoundTemplate||s)("ngTemplateOutletContext",z(2,Y,e.searchTerm))}}function vt(n,t){if(n&1&&(g(0,"div",33),L(1),E()),n&2){let s=c(3);u(1),Q(s.typeToSearchText)}}function Tt(n,t){}function bt(n,t){if(n&1&&(M(0),v(1,vt,2,1,"ng-template",null,34,V)(3,Tt,0,0,"ng-template",18),N()),n&2){let s=A(2),e=c(2);u(3),d("ngTemplateOutlet",e.typeToSearchTemplate||s)}}function wt(n,t){if(n&1&&(g(0,"div",33),L(1),E()),n&2){let s=c(3);u(1),Q(s.loadingText)}}function yt(n,t){}function It(n,t){if(n&1&&(M(0),v(1,wt,2,1,"ng-template",null,35,V)(3,yt,0,0,"ng-template",14),N()),n&2){let s=A(2),e=c(2);u(3),d("ngTemplateOutlet",e.loadingTextTemplate||s)("ngTemplateOutletContext",z(2,Y,e.searchTerm))}}function Ft(n,t){if(n&1){let s=U();g(0,"ng-dropdown-panel",23),B("update",function(i){I(s);let l=c();return F(l.viewPortItems=i)})("scroll",function(i){I(s);let l=c();return F(l.scroll.emit(i))})("scrollToEnd",function(i){I(s);let l=c();return F(l.scrollToEnd.emit(i))})("outsideClick",function(){I(s);let i=c();return F(i.close())}),M(1),v(2,pt,4,22,"div",24)(3,_t,4,6,"div",25),N(),v(4,Ct,4,4,"ng-container",3)(5,bt,4,1,"ng-container",3)(6,It,4,4,"ng-container",3),E()}if(n&2){let s=c();k("ng-select-multiple",s.multiple),d("virtualScroll",s.virtualScroll)("bufferAmount",s.bufferAmount)("appendTo",s.appendTo)("position",s.dropdownPosition)("headerTemplate",s.headerTemplate)("footerTemplate",s.footerTemplate)("filterValue",s.searchTerm)("items",s.itemsList.filteredItems)("markedItem",s.itemsList.markedItem)("ngClass",s.appendTo?s.classes:null)("id",s.dropdownId),u(2),d("ngForOf",s.viewPortItems)("ngForTrackBy",s.trackByOption),u(1),d("ngIf",s.showAddTag),u(1),d("ngIf",s.showNoItemsFound()),u(1),d("ngIf",s.showTypeToSearch()),u(1),d("ngIf",s.loading&&s.itemsList.filteredItems.length===0)}}var je=/[&<>"']/g,St=RegExp(je.source),At={"&":"&","<":"<",">":">",'"':""","'":"'"};function xt(n){return n&&St.test(n)?n.replace(je,t=>At[t]):n}function m(n){return n!=null}function $(n){return typeof n=="object"&&m(n)}function Dt(n){return n instanceof Promise}function ie(n){return n instanceof Function}var Ot=(()=>{let t=class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?xt(this.ngItemLabel):this.ngItemLabel}};t.\u0275fac=function(i){return new(i||t)(h(O))},t.\u0275dir=w({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[G]});let n=t;return n})(),kt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-option-tmp",""]]});let n=t;return n})(),Lt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-optgroup-tmp",""]]});let n=t;return n})(),Bt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-label-tmp",""]]});let n=t;return n})(),Vt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-multi-label-tmp",""]]});let n=t;return n})(),Pt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-header-tmp",""]]});let n=t;return n})(),Mt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-footer-tmp",""]]});let n=t;return n})(),Nt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-notfound-tmp",""]]});let n=t;return n})(),Rt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-typetosearch-tmp",""]]});let n=t;return n})(),Ht=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-loadingtext-tmp",""]]});let n=t;return n})(),jt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-tag-tmp",""]]});let n=t;return n})(),Ut=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(h(p))},t.\u0275dir=w({type:t,selectors:[["","ng-loadingspinner-tmp",""]]});let n=t;return n})();function Ue(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Qt={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function te(n){let t=s=>Qt[s]||s;return n.replace(/[^\u0000-\u007E]/g,t)}var ue=class{constructor(t,s){this._ngSelect=t,this._selectionModel=s,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let s=this.selectedItems[t];if(!s.disabled)return s}return null}setItems(t){this._items=t.map((s,e)=>this.mapItem(s,e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let s=this._ngSelect.multiple;s||this.clearSelected(),this._selectionModel.select(t,s,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&m(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let s;return this._ngSelect.compareWith?s=e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?s=e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:s=e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(e=>s(e))}addItem(t){let s=this.mapItem(t,this._items.length);return this._items.push(s),this._filteredItems.push(s),s}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(s=>{s.selected=t&&s.selected&&s.disabled,s.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=te(t).toLocaleLowerCase(),this.filteredItems.find(s=>te(s.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:te(t).toLocaleLowerCase();let s=this._ngSelect.searchFn||this._defaultSearchFn,e=this._ngSelect.hideSelected;for(let i of Array.from(this._groups.keys())){let l=[];for(let r of this._groups.get(i)){if(e&&(r.parent&&r.parent.selected||r.selected))continue;let o=this._ngSelect.searchFn?r.value:r;s(t,o)&&l.push(r)}if(l.length>0){let[r]=l.slice(-1);if(r.parent){let o=this._items.find(a=>a===r.parent);this._filteredItems.push(o)}this._filteredItems.push(...l)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let s=this._getLastMarkedIndex();s>-1?this._markedIndex=s:this._markedIndex=t?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(t,s){if(!$(t))return t;if(s.indexOf(".")===-1)return t[s];{let e=s.split("."),i=t;for(let l=0,r=e.length;l<r;++l){if(i==null)return null;i=i[e[l]]}return i}}mapItem(t,s){let e=m(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),i=m(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:s,label:m(e)?e.toString():"",value:i,disabled:t.disabled,htmlId:`${this._ngSelect.dropdownId}-${s}`}}mapSelectedItems(){let t=this._ngSelect.multiple;for(let s of this.selectedItems){let e=this._ngSelect.bindValue?this.resolveNested(s.value,this._ngSelect.bindValue):s.value,i=m(e)?this.findItem(e):null;this._selectionModel.unselect(s,t),this._selectionModel.select(i||s,t,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(s=>this.selectedItems.indexOf(s)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let s=t.parent;this._filteredItems.find(i=>i===s)||this._filteredItems.push(s)}else if(t.children)for(let s of t.children)s.selected=!1,this._filteredItems.push(s);this._filteredItems=[...this._filteredItems.sort((s,e)=>s.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(s=>s!==t),t.parent?t.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(s=>s.parent!==t))}_defaultSearchFn(t,s){return te(s.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(s=>s.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,s){let e=new Map;if(t.length===0)return e;if(Array.isArray(t[0].value[s])){for(let r of t){let o=(r.value[s]||[]).map((a,S)=>this.mapItem(a,S));e.set(r,o)}return e}let i=ie(this._ngSelect.groupBy),l=r=>{let o=i?s(r.value):r.value[s];return m(o)?o:void 0};for(let r of t){let o=l(r),a=e.get(o);a?a.push(r):e.set(o,[r])}return e}_flatten(t){let s=ie(this._ngSelect.groupBy),e=[];for(let i of Array.from(t.keys())){let l=e.length;if(i===void 0){let b=t.get(void 0)||[];e.push(...b.map(H=>(H.index=l++,H)));continue}let r=$(i),o={label:r?"":String(i),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:Ue()},a=s?this._ngSelect.bindLabel:this._ngSelect.groupBy,S=this._ngSelect.groupValue||(()=>r?i.value:{[a]:i}),C=t.get(i).map(b=>(b.parent=o,b.children=void 0,b.index=l++,b));o.children=C,o.value=S(i,C.map(b=>b.value)),e.push(o),e.push(...C)}return e}},x=function(n){return n[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Esc=27]="Esc",n[n.Space=32]="Space",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowDown=40]="ArrowDown",n[n.Backspace=8]="Backspace",n}(x||{}),Qe=(()=>{let t=class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,l){let r=this._dimensions,o=r.itemHeight*i,S=Math.max(0,e)/o*i,C=Math.min(i,Math.ceil(S)+(r.itemsPerViewport+1)),H=Math.max(0,C-r.itemsPerViewport),D=Math.min(H,Math.floor(S)),K=r.itemHeight*Math.ceil(D)-r.itemHeight*Math.min(D,l);return K=isNaN(K)?0:K,D=isNaN(D)?-1:D,C=isNaN(C)?-1:C,D-=l,D=Math.max(0,D),C+=l,C=Math.min(i,C),{topPadding:K,scrollHeight:o,start:D,end:C}}setDimensions(e,i){let l=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:l}}getScrollTo(e,i,l){let{panelHeight:r}=this.dimensions,o=e+i,a=l,S=a+r;return r>=o&&l===e?null:o>S?a+o-S:e<=a?e:null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac});let n=t;return n})(),Ne=["top","right","bottom","left"],zt=typeof requestAnimationFrame<"u"?pe:he,Re=(()=>{let t=class t{constructor(e,i,l,r,o){this._renderer=e,this._zone=i,this._panelService=l,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new T,this.scroll=new T,this.scrollToEnd=new T,this.outsideClick=new T,this._destroy$=new W,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,l=this.markedItem.index*e;return i>l?0:l}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let l=this.items.indexOf(e);if(l<0||l>=this.itemsLength)return;let r;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(l*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),a=i?o.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,a)}m(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Ne.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Ne.forEach(l=>{let r=`ng-select-${l}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{q(this.scrollElementRef.nativeElement,"scroll").pipe(P(this._destroy$),_e(0,zt)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath(),l=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(l)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Z(q(this._document,"touchstart",{capture:!0}),q(this._document,"mousedown",{capture:!0})).pipe(P(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),m(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let l=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${l*this.itemsLength}px`;let r=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(l,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),l=document.documentElement.scrollTop||document.body.scrollTop,r=i.top+window.pageYOffset,o=i.height,a=e.getBoundingClientRect().height;return r+o+a>l+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.left-i.left;this._dropdown.style.left=l+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.height;if(this._currentPosition==="top"){let r=i.bottom-e.bottom;this._dropdown.style.bottom=r+l+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let r=e.top-i.top;this._dropdown.style.top=r+l+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{q(this._dropdown,"mousedown").pipe(P(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}};t.\u0275fac=function(i){return new(i||t)(h(ye),h(Fe),h(Qe),h(O),h(Le,8))},t.\u0275cmp=X({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,l){if(i&1&&(R(We,7,O),R(qe,7,O),R(Ge,7,O)),i&2){let r;_(r=f())&&(l.contentElementRef=r.first),_(r=f())&&(l.scrollElementRef=r.first),_(r=f())&&(l.paddingElementRef=r.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[G],ngContentSelectors:He,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(i,l){i&1&&(le(),v(0,$e,2,4,"div",0),g(1,"div",1,2),j(3,"div",null,3),g(5,"div",null,4),re(7),E()(),v(8,Ye,2,4,"div",5)),i&2&&(d("ngIf",l.headerTemplate),u(3),k("total-padding",l.virtualScroll),u(2),k("scrollable-content",l.virtualScroll&&l.items.length),u(3),d("ngIf",l.footerTemplate))},dependencies:[oe,ae],encapsulation:2,changeDetection:0});let n=t;return n})(),Wt=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){this._disabled=this._isDisabled(e)}constructor(e){this.elementRef=e,this.stateChange$=new W,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(e){return e!=null&&`${e}`!="false"}};t.\u0275fac=function(i){return new(i||t)(h(O))},t.\u0275cmp=X({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[G],ngContentSelectors:He,decls:1,vars:0,template:function(i,l){i&1&&(le(),re(0))},encapsulation:2,changeDetection:0});let n=t;return n})(),qt=(()=>{let t=class t{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Gt=(()=>{let t=class t{warn(e){console.warn(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ze=new be("ng-select-selection-model"),Ei=(()=>{let t=class t{get items(){return this._items}set items(e){e===null&&(e=[]),this._itemsAreUsed=!0,this._items=e}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!ie(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return m(this._clearSearchOnAdd)?this._clearSearchOnAdd:m(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return m(this._deselectOnClick)?this._deselectOnClick:m(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(e,i,l,r,o,a,S){this.classes=e,this.autoFocus=i,this.config=l,this._cd=a,this._console=S,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=C=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new T,this.focusEvent=new T,this.changeEvent=new T,this.openEvent=new T,this.closeEvent=new T,this.searchEvent=new T,this.clearEvent=new T,this.addEvent=new T,this.removeEvent=new T,this.scroll=new T,this.scrollToEnd=new T,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ue(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new W,this._keyPress$=new W,this._onChange=C=>{},this._onTouched=()=>{},this.clearItem=C=>{let b=this.selectedItems.find(H=>H.value===C);this.unselect(b)},this.trackByOption=(C,b)=>this.trackByFn?this.trackByFn(b.value):b,this._mergeGlobalConfig(l),this.itemsList=new ue(this,r()),this.element=o.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=m(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),m(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(x[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case x.ArrowDown:this._handleArrowDown(e);break;case x.ArrowUp:this._handleArrowUp(e);break;case x.Space:this._handleSpace(e);break;case x.Enter:this._handleEnter(e);break;case x.Tab:this._handleTab(e);break;case x.Esc:this.close(),e.preventDefault();break;case x.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case x.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value))}selectTag(){let e;ie(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=l=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(l,null):this.itemsList.addItem(l);Dt(e)?e.then(l=>this.select(i(l))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=m(i)?!$(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&m(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=l=>{this.items=l.map(r=>({$ngOptionValue:r.value,$ngOptionLabel:r.elementRef.nativeElement.innerHTML,disabled:r.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let l=Z(this.ngOptions.changes,this._destroy$);Z(...this.ngOptions.map(r=>r.stateChange$)).pipe(P(l)).subscribe(r=>{let o=this.itemsList.findItem(r.value);o.disabled=r.disabled,o.label=r.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Ee(this.ngOptions),P(this._destroy$)).subscribe(l=>{this.bindLabel=this._defaultLabel,e(l),i()})}_isValidWriteValue(e){if(!m(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=l=>!m(this.compareWith)&&$(l)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(l)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(l=>i(l)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=l=>{let r=this.itemsList.findItem(l);if(r)this.itemsList.select(r);else{let o=$(l),a=!o&&!this.bindValue;o||a?this.itemsList.select(this.itemsList.mapItem(l,null)):this.bindValue&&(r={[this.bindLabel]:null,[this.bindValue]:l},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple?e.forEach(l=>i(l)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(P(this._destroy$),Ce(e=>this._pressedKeys.push(e)),fe(200),ge(()=>this._pressedKeys.length>0),me(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=de({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let l of Object.keys(i))e.setAttribute(l,i[l])}_updateNgModel(){let e=[];for(let l of this.selectedItems)if(this.bindValue){let r=null;if(l.children){let o=this.groupValue?this.bindValue:this.groupBy;r=l.value[o||this.groupBy]}else r=this.itemsList.resolveNested(l.value,this.bindValue);e.push(r)}else e.push(l.value);let i=this.selectedItems.map(l=>l.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(m(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear())this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=m(this.virtualScroll)?this.virtualScroll:m(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=m(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}};t.\u0275fac=function(i){return new(i||t)(ne("class"),ne("autofocus"),h(qt),h(ze),h(O),h(Ie),h(Gt))},t.\u0275cmp=X({type:t,selectors:[["ng-select"]],contentQueries:function(i,l,r){if(i&1&&(y(r,kt,5,p),y(r,Lt,5,p),y(r,Bt,5,p),y(r,Vt,5,p),y(r,Pt,5,p),y(r,Mt,5,p),y(r,Nt,5,p),y(r,Rt,5,p),y(r,Ht,5,p),y(r,jt,5,p),y(r,Ut,5,p),y(r,Wt,5)),i&2){let o;_(o=f())&&(l.optionTemplate=o.first),_(o=f())&&(l.optgroupTemplate=o.first),_(o=f())&&(l.labelTemplate=o.first),_(o=f())&&(l.multiLabelTemplate=o.first),_(o=f())&&(l.headerTemplate=o.first),_(o=f())&&(l.footerTemplate=o.first),_(o=f())&&(l.notFoundTemplate=o.first),_(o=f())&&(l.typeToSearchTemplate=o.first),_(o=f())&&(l.loadingTextTemplate=o.first),_(o=f())&&(l.tagTemplate=o.first),_(o=f())&&(l.loadingSpinnerTemplate=o.first),_(o=f())&&(l.ngOptions=o)}},viewQuery:function(i,l){if(i&1&&(R(Re,5),R(Ke,7),R(Ze,5)),i&2){let r;_(r=f())&&(l.dropdownPanel=r.first),_(r=f())&&(l.searchInput=r.first),_(r=f())&&(l.clearButton=r.first)}},hostVars:20,hostBindings:function(i,l){i&1&&B("keydown",function(o){return l.handleKeyDown(o)}),i&2&&k("ng-select-typeahead",l.typeahead)("ng-select-multiple",l.multiple)("ng-select-taggable",l.addTag)("ng-select-searchable",l.searchable)("ng-select-clearable",l.clearable)("ng-select-opened",l.isOpen)("ng-select",l.useDefaultClass)("ng-select-disabled",l.disabled)("ng-select-filtered",l.filtered)("ng-select-single",l.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[xe([{provide:Me,useExisting:ve(()=>t),multi:!0},Qe]),G],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(i,l){if(i&1){let r=U();g(0,"div",0),B("mousedown",function(a){return l.handleMousedown(a)}),g(1,"div",1)(2,"div",2),L(3),E(),v(4,it,2,2,"ng-container",3)(5,lt,1,5,null,3),g(6,"div",4)(7,"input",5,6),B("input",function(){I(r);let a=A(8);return F(l.filter(a.value))})("compositionstart",function(){return l.onCompositionStart()})("compositionend",function(){I(r);let a=A(8);return F(l.onCompositionEnd(a.value))})("focus",function(a){return l.onInputFocus(a)})("blur",function(a){return l.onInputBlur(a)})("change",function(a){return a.stopPropagation()}),E()()(),v(9,at,4,1,"ng-container",3)(10,ut,4,1,"span",7),g(11,"span",8),j(12,"span",9),E()(),v(13,Ft,7,19,"ng-dropdown-panel",10)}i&2&&(k("ng-appearance-outline",l.appearance==="outline")("ng-has-value",l.hasValue),u(3),Q(l.placeholder),u(1),d("ngIf",(!l.multiLabelTemplate||!l.multiple)&&l.selectedItems.length>0),u(1),d("ngIf",l.multiple&&l.multiLabelTemplate&&l.selectedValues.length>0),u(1),ee("aria-expanded",l.isOpen)("aria-owns",l.isOpen?l.dropdownId:null),u(1),d("readOnly",!l.searchable||l.itemsList.maxItemsSelected)("disabled",l.disabled)("value",l.searchTerm?l.searchTerm:""),ee("id",l.labelForId)("tabindex",l.tabIndex)("aria-activedescendant",l.isOpen?l.itemsList==null||l.itemsList.markedItem==null?null:l.itemsList.markedItem.htmlId:null)("aria-controls",l.isOpen?l.dropdownId:null),u(2),d("ngIf",l.loading),u(1),d("ngIf",l.showClear()),u(3),d("ngIf",l.isOpen))},dependencies:[Be,Ve,oe,ae,Re,Ot],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}
|
|
2
|
+
`],encapsulation:2,changeDetection:0});let n=t;return n})();function $t(){return new ce}var ce=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,s,e){if(t.selected=!0,(!t.children||!s&&e)&&this._selected.push(t),s)if(t.parent){let i=t.parent.children.length,l=t.parent.children.filter(r=>r.selected).length;t.parent.selected=i===l}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),e&&this._activeChildren(t)?this._selected=[...this._selected.filter(i=>i.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(i=>!i.disabled)])}unselect(t,s){if(this._selected=this._selected.filter(e=>e!==t),t.selected=!1,s)if(t.parent&&t.parent.selected){let e=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...e.filter(i=>i!==t&&!i.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(s=>s.disabled):[]}_setChildrenSelectedState(t,s){for(let e of t)e.disabled||(e.selected=s)}_removeChildren(t){this._selected=[...this._selected.filter(s=>s.parent!==t),...t.children.filter(s=>s.parent===t&&s.disabled&&s.selected)]}_removeParent(t){this._selected=this._selected.filter(s=>s!==t)}_activeChildren(t){return t.children.every(s=>!s.disabled||s.selected)}},Ci=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=we({type:t}),t.\u0275inj=Te({providers:[{provide:ze,useValue:$t}],imports:[Pe]});let n=t;return n})();export{kt as a,Wt as b,Ei as c,Ci as d};
|